.page.dashboard{max-width:none;padding:20px 24px}
.dashboard-topline{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 16px}
.dashboard-topline h1{font-size:var(--font-section);font-weight:500;letter-spacing:-.2px}
.dash-preview{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:var(--font-caption)}
.dash-state-switch{display:flex;background:var(--surface-soft);border:1px solid var(--border);padding:3px;border-radius:8px}
.dash-state-switch button{border-radius:5px;padding:6px 10px;font-size:var(--font-caption);color:var(--muted);white-space:nowrap}
.dash-state-switch button[aria-pressed=true]{background:var(--surface);box-shadow:0 1px 4px var(--shadow-color);color:var(--muted);font-weight:500}
.dash-state-switch button:focus-visible,.dash-agent button:focus-visible,.dash-workflows button:focus-visible{outline:2px solid var(--border);outline-offset:3px}
.dashboard-focus-grid{display:grid;grid-template-columns:minmax(0,1fr) clamp(320px,28vw,420px);gap:18px;align-items:start}
.dash-agent{display:flex;flex-direction:column;min-width:0;height:clamp(700px,calc(100vh - 105px),900px);overflow:hidden;border-color:var(--border);background:var(--surface-soft)}
.dash-agent-heading{padding:17px 18px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--border)}
.dash-agent-heading h2{font-size:var(--font-section);font-weight:600;letter-spacing:-.3px}
.dash-bot{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:var(--surface-soft);color:var(--text);flex-shrink:0}
.dash-bot .icon{width:23px;height:23px}
.dash-agent-header-actions{margin-left:auto;display:flex;align-items:center;gap:15px}
.dash-agent-header-actions>.link{font-size:var(--font-caption);font-weight:400;white-space:nowrap}
.dash-agent .link .icon,.dash-workflows .link .icon{width:13px;height:13px}
.dash-business{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:var(--surface-soft);margin:14px 15px 0;padding:11px 12px;border-radius:7px;font-size:var(--font-caption);color:var(--muted)}
.dash-business>strong{font-size:var(--font-caption);font-weight:500;color:var(--muted);white-space:nowrap}
.dash-business-values{display:flex;align-items:center;gap:12px;flex:1;flex-wrap:wrap}
.dash-business-values>span{white-space:nowrap}
.dash-business-values b{font-size:var(--font-caption);font-weight:500;color:var(--text);margin-left:4px}
.dash-business>.link{font-size:var(--font-caption);white-space:nowrap;margin-left:auto}
.dash-awaiting{font-size:var(--font-caption);color:var(--muted);margin-left:auto}
.dash-agent-body{padding:22px 20px 16px;overflow-y:auto;min-height:0;flex:1;scrollbar-width:thin;scrollbar-color:var(--border) transparent}
.dash-eyebrow{display:block;text-transform:uppercase;letter-spacing:.5px;font-size:var(--font-caption);font-weight:500;color:var(--muted);margin-bottom:10px}
.dash-focus h2{font-size:var(--font-title);line-height:1.4;font-weight:600;letter-spacing:-.5px}
.dash-focus>p{font-size:var(--font-caption);line-height:1.7;color:var(--muted);margin-top:6px}
.dash-focus-card{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-top:21px;padding:17px 16px;border:1px solid var(--border);border-left:3px solid var(--border);border-radius:9px;background:var(--surface-soft)}
.dash-task-icon{width:36px;height:36px;border-radius:8px;background:var(--surface-soft);display:grid;place-items:center;color:var(--muted);flex-shrink:0}
.dash-task-icon .icon{width:23px;height:23px}.dash-task-icon.blue{color:var(--text);background:var(--surface-soft)}
.dash-focus-copy{flex:1;min-width:170px}.dash-focus-copy .row{flex-wrap:wrap;gap:8px}
.dash-focus-copy h3{font-size:var(--font-body);font-weight:500;line-height:1.5}
.dash-focus-copy p{font-size:var(--font-caption);line-height:1.7;color:var(--muted);margin-top:3px}
.dash-focus-copy .dash-focus-description{font-size:var(--font-caption);color:var(--muted);margin-top:7px}
.dash-focus-card .pill{font-size:var(--font-caption);padding:3px 6px}
.dash-focus-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;width:100%;padding-left:48px}
.dash-focus-actions .btn{font-size:var(--font-caption);padding:8px 13px;min-height:34px}
.dash-focus-actions .link{font-size:var(--font-caption);font-weight:400}
.dash-focus .prompt-chips{margin-top:16px}
.dash-focus .prompt-chip{font-size:var(--font-caption);padding:7px 10px}
.dash-focus .prompt-chip .icon{width:14px;height:14px}
.dash-conversation{display:flex;flex-direction:column;gap:22px;margin-top:30px}
.dash-message{display:flex;align-items:flex-start;gap:9px;max-width:93%}
.dash-message.from-user{margin-left:auto;flex-direction:row-reverse}
.dash-message-avatar{height:27px;width:27px;flex-shrink:0;display:grid;place-items:center;border-radius:8px;color:var(--text);background:var(--surface-soft)}
.from-user .dash-message-avatar{background:var(--surface-soft);color:var(--muted)}
.dash-message-avatar .icon{width:19px;height:19px}
.dash-message-content{padding:11px 13px;border-radius:10px;background:var(--surface-soft);font-size:var(--font-caption);line-height:1.8;color:var(--text);min-width:0;overflow-wrap:anywhere}
.dash-message-content p{white-space:pre-wrap}.dash-message-content .btn{margin-top:10px}
.from-user .dash-message-content{background:var(--surface-soft);color:var(--text)}
.dash-thinking{font-size:var(--font-caption);color:var(--muted);padding-left:36px}
.dash-composer{flex-shrink:0;margin:0 15px 15px;padding:11px 12px;border:1px solid var(--border);border-radius:9px;background:var(--surface);box-shadow:0 2px 8px var(--shadow-color)}
.dash-composer:focus-within{border-color:var(--border);box-shadow:0 0 0 2px var(--shadow-color)}
.dash-message-input{display:block;width:100%;padding:0;border:0;box-shadow:none;resize:none;min-height:37px;font-size:var(--font-caption);line-height:1.65;background:transparent;color:var(--text)}
.dash-message-input:focus{outline:none;box-shadow:none;border:0}.dash-message-input::placeholder{color:var(--muted)}
.dash-composer-tools{display:flex;gap:8px;align-items:center;margin-top:5px;min-width:0}
.dash-composer-tools .icon-btn{height:26px;width:26px}.dash-composer-tools .btn{font-size:var(--font-caption);padding:5px 8px}
.dash-chat-hint{font-size:var(--font-caption);color:var(--muted);margin-left:auto;white-space:nowrap}
.dash-send{width:31px;height:31px;border-radius:8px;background:var(--primary);color:var(--on-primary);display:grid;place-items:center;flex-shrink:0;margin-left:auto}
.dash-send .icon{width:19px;height:19px}.dash-send:disabled{background:var(--surface-soft);color:var(--muted);cursor:default}
.dash-workflows{display:flex;flex-direction:column;gap:16px;min-width:0}
.dash-rail-card{padding:14px;overflow:hidden}
.dash-rail-heading{display:flex;align-items:center;gap:8px;justify-content:space-between;padding:3px 0 13px;margin-bottom:3px}
.dash-rail-heading h2{display:flex;align-items:center;gap:7px;font-size:var(--font-control);line-height:1.5;font-weight:500;white-space:nowrap}
.dash-rail-heading h2>span{font-size:var(--font-caption);font-weight:500;color:var(--text);background:var(--surface-soft);border-radius:4px;padding:1px 5px}
.dash-rail-heading .link{font-size:var(--font-caption);white-space:nowrap;color:var(--muted);font-weight:400}
.dash-request-row{display:flex;align-items:center;gap:8px;padding:13px 5px;border-top:1px solid var(--border)}
.dash-request-row.selected{border-radius:7px;background:var(--surface);border-top-color:transparent;padding-left:8px;padding-right:8px;margin-bottom:3px}
.dash-row-icon{display:grid;place-items:center;background:var(--surface-soft);color:var(--muted);width:29px;height:29px;border-radius:7px;flex-shrink:0}
.dash-row-icon .icon{width:18px;height:18px}
.dash-request-row .grow{min-width:0}
.dash-request-row h4{font-size:var(--font-caption);font-weight:500;line-height:1.5;overflow-wrap:anywhere}
.dash-request-row p{font-size:var(--font-caption);line-height:1.7;color:var(--muted);margin-top:3px}
.dash-due{color:var(--muted);white-space:nowrap}
.dash-row-link{font-size:var(--font-caption);display:flex;align-items:center;gap:5px;color:var(--muted);white-space:nowrap;flex-shrink:0}
.dash-row-link .icon{width:12px;height:12px;color:var(--muted)}
.dash-started-row{display:flex;width:100%;gap:9px;align-items:center;padding:13px 5px;border-top:1px solid var(--border);text-align:left;border-radius:0}
.dash-started-row:hover{background:var(--surface)}.dash-started-row>.icon{width:12px;height:12px;color:var(--muted);flex-shrink:0}
.dash-started-copy{display:block;flex:1;min-width:0}
.dash-started-copy strong{display:block;font-size:var(--font-caption);font-weight:500;line-height:1.5;overflow-wrap:anywhere}
.dash-started-copy small{display:block;font-size:var(--font-caption);color:var(--muted);line-height:1.6;margin-top:3px}
.dash-progress{display:flex;gap:9px;align-items:center;width:100%;max-width:230px;margin-top:9px;font-size:var(--font-caption);color:var(--muted)}
.dash-progress progress{display:block;height:4px;border:0;border-radius:9px;background:var(--surface-soft);flex:1;min-width:0;width:100%;appearance:none;overflow:hidden}
.dash-progress progress::-webkit-progress-bar{background:var(--surface-soft);border-radius:9px}
.dash-progress progress::-webkit-progress-value{background:var(--primary);border-radius:9px}
.dash-progress progress::-moz-progress-bar{background:var(--primary);border-radius:9px}
.dash-progress.complete progress::-webkit-progress-value{background:var(--selected)}.dash-progress.complete progress::-moz-progress-bar{background:var(--selected)}
.dash-progress.waiting progress::-webkit-progress-value{background:var(--selected)}.dash-progress.waiting progress::-moz-progress-bar{background:var(--selected)}
.dash-progress span{min-width:30px;text-align:right}.dash-focus-copy .dash-progress{max-width:210px}
.dash-empty{display:flex;align-items:flex-start;gap:11px;border-top:1px solid var(--border);padding:20px 4px 12px}
.dash-empty-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;color:var(--muted);background:var(--surface-soft);flex-shrink:0}
.dash-empty-icon.done{color:var(--muted);background:var(--surface-soft)}.dash-empty-icon .icon{width:20px;height:20px}
.dash-empty h3{font-size:var(--font-caption);line-height:1.5;font-weight:500}.dash-empty p{font-size:var(--font-caption);color:var(--muted);line-height:1.7;margin-top:5px}
.dash-empty .link{font-size:var(--font-caption);margin-top:10px}
.dash-detail-progress{margin:18px 0}.dash-detail-progress .dash-progress{max-width:none}
.dash-step-list{list-style:none;padding:0;margin:16px 0}
.dash-step-list li{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--border);font-size:var(--font-caption);color:var(--muted)}
.dash-step-list li .icon{width:18px;height:18px}.dash-step-list li small{margin-left:auto;font-size:var(--font-caption)}
.dash-step-list .done{color:var(--muted)}.dash-step-list .current{color:var(--text)}
.dashboard .quick-head{margin-top:26px}.dashboard .quick-head h2{font-size:var(--font-body)}
@media(min-width:1650px){.dash-focus-actions{width:auto;padding-left:0;margin-left:auto;align-self:center;flex-direction:column;align-items:flex-start}.dash-business{flex-wrap:nowrap}.dash-agent-body{padding:26px}.dash-rail-card{padding:17px}.dash-focus h2{font-size:var(--font-title)}.dash-focus-copy h3{font-size:var(--font-body)}.dash-message-content{font-size:var(--font-control)}}
@media(max-width:1150px){.page.dashboard{padding:18px}.dashboard-focus-grid{grid-template-columns:minmax(0,1.55fr) minmax(270px,1fr);gap:14px}.dash-business-values{gap:10px}.dash-business>strong{width:100%}.dash-agent-heading{padding:15px}.dash-agent-heading h2{font-size:var(--font-body)}.dash-rail-card{padding:12px}.dash-row-icon{display:none}.dash-rail-heading h2{font-size:var(--font-caption)}.dash-agent-body{padding:19px 15px}.dash-focus h2{font-size:var(--font-section)}.dash-chat-hint{display:none}}
@media(max-width:1000px){.dashboard-focus-grid{grid-template-columns:minmax(0,1fr)}.dash-agent{height:720px;min-height:0}.dash-workflows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.dash-focus-actions{width:auto;padding-left:0;margin-left:auto}.dash-business>strong{width:auto}.dash-focus-copy{min-width:210px}}
@media(max-width:800px){.page.dashboard{padding:59px 16px 20px}.dash-agent{height:690px}.dash-business>strong{width:100%}.dash-focus-actions{width:100%;padding-left:48px}.dash-state-switch button{padding:6px 8px;font-size:var(--font-caption)}.dash-preview>span{display:none}.dashboard-topline h1{font-size:var(--font-body)}}
@media(max-width:560px){.page.dashboard{padding-left:12px;padding-right:12px}.dashboard-topline{gap:6px}.dash-workflows{grid-template-columns:1fr}.dash-agent{height:730px}.dash-agent-heading{padding:13px 11px;gap:8px}.dash-agent-heading h2{font-size:var(--font-body)}.dash-agent-heading .link{font-size:var(--font-caption)}.dash-business{margin:12px 10px 0;padding:10px;gap:8px}.dash-business-values{width:100%;gap:10px}.dash-business-values>span{font-size:var(--font-caption)}.dash-business-values b{display:block;margin:2px 0 0;font-size:var(--font-caption)}.dash-business>.link{font-size:var(--font-caption)}.dash-agent-body{padding:18px 12px}.dash-focus h2{font-size:var(--font-section)}.dash-focus>p{font-size:var(--font-caption)}.dash-focus-card{padding:13px 11px;gap:9px}.dash-focus-copy{min-width:140px}.dash-task-icon{width:30px;height:30px}.dash-task-icon .icon{width:19px;height:19px}.dash-focus-actions{padding-left:0;gap:10px}.dash-focus-actions .btn{font-size:var(--font-caption)}.dash-focus-actions .link{font-size:var(--font-caption)}.dash-message{max-width:100%;gap:7px}.dash-message-content{font-size:var(--font-caption);padding:10px}.dash-conversation{gap:18px;margin-top:24px}.dash-composer{margin:0 10px 11px;padding:10px}.dash-message-input{font-size:var(--font-caption)}.dash-state-switch button{padding:6px;font-size:var(--font-caption)}.dash-preview{gap:0}.dash-row-icon{display:grid}.dash-rail-heading h2{font-size:var(--font-control)}}
/* Layout preference is independent of preview data and never resets the conversation. */
.dash-top-controls{display:flex;align-items:center;justify-content:flex-end;gap:18px;flex-wrap:wrap}
.dash-layout-control{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:var(--font-caption)}
.dash-layout-switch{display:flex;align-items:center;border:1px solid var(--border);border-radius:8px;padding:3px;background:var(--surface)}
.dash-layout-switch button{display:flex;align-items:center;gap:5px;padding:6px 8px;border-radius:5px;font-size:var(--font-caption);color:var(--muted);white-space:nowrap}
.dash-layout-switch .icon{width:14px;height:14px}
.dash-layout-switch button[aria-pressed=true]{color:var(--muted);background:var(--surface-soft);font-weight:500}
.dash-layout-switch button:focus-visible{outline:2px solid var(--border);outline-offset:3px}
.dash-agent-header-actions>.dash-restore-workflows{display:none}
.dash-restore-workflows b{font-size:var(--font-caption);font-weight:500;padding:2px 5px;border-radius:4px;background:var(--surface-soft);margin-left:3px}
.dash-workflows[hidden]{display:none}
.dashboard[data-layout=compact] .dashboard-focus-grid{grid-template-columns:minmax(0,1fr) 252px;gap:16px}
.dashboard[data-layout=compact] .dash-rail-card{padding:12px}
.dashboard[data-layout=compact] .dash-row-icon{display:none}
.dashboard[data-layout=compact] .dash-rail-heading{gap:4px;flex-wrap:wrap}
.dashboard[data-layout=compact] .dash-rail-heading h2{font-size:var(--font-caption)}
.dashboard[data-layout=compact] .dash-request-row{gap:6px;padding-left:3px;padding-right:3px}
.dashboard[data-layout=compact] .dash-request-row h4,.dashboard[data-layout=compact] .dash-started-copy strong{font-size:var(--font-caption)}
.page.dashboard[data-layout=focus]{display:flex;flex-direction:column;height:100dvh;min-height:430px;overflow:hidden}
.dashboard[data-layout=focus] .dashboard-topline{display:none}
.dashboard[data-layout=focus] .dashboard-focus-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);flex:1;min-height:0;gap:0}
.dashboard[data-layout=focus] .dash-agent-heading,.dashboard[data-layout=focus] .dash-business{flex-shrink:0}
.dashboard[data-layout=focus] .dash-agent-header-actions>.dash-restore-workflows{display:inline-flex}
.dashboard[data-layout=focus] .dash-focus,.dashboard[data-layout=focus] .dash-conversation{max-width:1000px;margin-left:auto;margin-right:auto}
.dashboard[data-layout=focus] .dash-composer{width:calc(100% - 32px);max-width:1000px;margin-left:auto;margin-right:auto}
@media(min-width:1101px){.dashboard[data-layout=focus] .dash-focus-actions{width:auto;margin-left:auto;padding-left:0;align-self:center;flex-direction:column;align-items:flex-start}}
@media(max-width:1250px){.dash-layout-control>span,.dash-preview>span{display:none}.dash-top-controls{gap:10px}}
@media(max-width:1150px) and (min-width:1001px){.dashboard[data-layout=expanded] .dashboard-focus-grid{grid-template-columns:minmax(0,1fr) 290px}.dashboard[data-layout=compact] .dashboard-focus-grid{grid-template-columns:minmax(0,1fr) 232px}}
@media(max-width:1000px){.dashboard[data-layout=compact] .dashboard-focus-grid{grid-template-columns:minmax(0,1fr)}.dashboard[data-layout=compact] .dash-workflows{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.dashboard-topline{align-items:flex-start;flex-wrap:wrap;gap:10px}.dashboard-topline h1{padding-top:7px}.dash-top-controls{display:contents}.dash-preview{margin-left:auto;order:1}.dash-layout-control{order:2;flex-basis:100%}.dash-layout-control>span{display:inline}.dash-layout-switch button{padding:6px 11px}.dash-agent-header-actions{gap:10px}.dash-agent-heading{flex-wrap:wrap}.dashboard[data-layout=focus] .dash-agent-header-actions{width:100%;justify-content:flex-end}.dashboard[data-layout=compact] .dash-workflows{grid-template-columns:1fr}.dashboard[data-layout=focus] .dash-composer{width:calc(100% - 20px)}}
