.product-window .window-body{grid-template-columns:180px minmax(0,1fr)}
.workspace-tabs .side-item{width:100%;min-height:40px;border:0;background:transparent;text-align:left;line-height:1.35}
.workspace-tabs .side-item:hover{background:#f0f5f7;color:#306378}
.workspace-tabs .side-item[aria-selected="true"]{color:#167fa5;background:#e7f3f9}
.workspace-tabs .side-item:focus-visible{outline-offset:1px}
.workspace-panel{min-height:440px}
#panel-tasks{height:440px;min-height:0;overflow:hidden}
.workspace-panel.workflow-panel{padding:0}
.workspace-panel .app-heading{min-height:52px;margin-bottom:26px}
.workspace-panel .goal-label{gap:10px;flex-wrap:wrap}
.owner .ai-avatar{width:24px;height:24px}
.owner .ai-avatar .icon{width:16px;height:16px}
.workspace-panel .app-note{line-height:1.5;align-items:flex-start}
.workspace-panel .task-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px 16px;padding:17px 0}
.task-summary{min-width:0}
.task-title{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:500;line-height:1.4}
.task-description{margin:5px 0 0 24px;font-size:11px;line-height:1.5;color:#617679}
.task-row>.status{margin-top:1px;max-width:130px;line-height:1.4}
.task-details{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-left:24px}
.task-owner{display:flex;align-items:center;gap:7px;min-width:0;font-size:10px;line-height:1.4;color:#526770}
.task-owner .avatar{width:23px;height:23px;font-size:9px}
.task-owner .ai-avatar .icon{width:14px;height:14px;color:#438ac1}
.task-comments{display:inline-flex;align-items:center;gap:5px;color:#617679;font-size:10px;font-variant-numeric:tabular-nums}
.task-comments .icon{width:14px;height:14px;color:inherit}
.branch-flow{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(132px,auto));gap:24px 22px;margin-top:24px}
.branch-connectors{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.branch-connectors>path{fill:none;stroke:#a8c7d5;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.branch-connectors marker path{fill:none;stroke:#a8c7d5;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.branch-flow .flow-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:11px 10px;border-radius:10px;background:#fff}
.branch-flow .node-research{grid-column:1;grid-row:1/3;align-self:center;min-height:132px}
.branch-flow .node-copy{grid-column:2;grid-row:1}
.branch-flow .node-visuals{grid-column:2;grid-row:2}
.branch-flow .node-formats{grid-column:3;grid-row:2}
.branch-flow .node-review{grid-column:4;grid-row:1/3;align-self:center;min-height:132px}
.branch-flow button.node-review{width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease}
.branch-flow button.node-review:hover,.branch-flow button.node-review:focus-visible{transform:translateY(-3px);background:#f6fcff;border-color:#4db4df;box-shadow:0 0 0 3px #e3f5fd,0 8px 20px #277d9d24}
.branch-flow button.node-review:focus-visible{outline:2px solid #167fa5;outline-offset:4px}
.branch-flow button.node-review:active{transform:translateY(-1px)}
@media(prefers-reduced-motion:reduce){.branch-flow button.node-review{transition:none}.branch-flow button.node-review:hover,.branch-flow button.node-review:focus-visible,.branch-flow button.node-review:active{transform:none}}
.branch-flow .card-top{gap:5px;align-items:flex-start;margin-bottom:11px}
.branch-flow .task-symbol{padding:5px}
.branch-flow .task-symbol .icon{width:13px;height:13px}
.branch-flow .status{display:inline-block;white-space:normal;font-size:8px;line-height:1.3;padding:4px 5px;text-align:center}
.branch-flow .flow-card strong{font-size:11px;line-height:1.4;min-height:31px}
.branch-flow .owner{margin-top:auto;padding-top:10px;font-size:9px;line-height:1.35;gap:5px;color:#617679}
.branch-flow .owner .avatar{width:20px;height:20px}
.branch-flow .owner .ai-avatar .icon{width:13px;height:13px}
.branch-note{font-size:11px;line-height:1.5;color:#617679;margin-top:18px}
.demo-conversation{display:grid;gap:18px}
.demo-message{display:flex;align-items:flex-start;gap:10px;font-size:12px}
.demo-message>div{min-width:0;flex:1}
.demo-message strong{display:block;font-size:11px;font-weight:600;color:#526770;margin:4px 0 7px}
.demo-message p{padding:12px 15px;border-radius:0 12px 12px;background:#f4f7f8;line-height:1.65;color:#526770}
.user-message{flex-direction:row-reverse;justify-self:end;max-width:85%}
.user-message strong{text-align:right}
.user-message p{border-radius:12px 0 12px 12px}
.agent-message p{background:#eef7fc;color:#365f72}
.task-chat .app-heading{align-items:flex-start;gap:12px;margin-bottom:10px}
.task-chat .app-heading>.status{flex-shrink:0;margin-top:4px;line-height:1.4}
.task-conversation{display:grid;gap:16px}
.chat-task-event{display:flex;justify-self:end;width:fit-content;max-width:85%;align-items:center;gap:8px;padding:10px 12px;border:1px solid #e4ecef;background:#f8fafb;border-radius:12px 0 12px 12px;color:#617679;font-size:10px;line-height:1.45}
.chat-task-event>.icon{width:15px;height:15px;color:#7798a6}
.chat-task-event small{display:block;font-size:9px;color:#81939a;margin-top:2px}
.chat-message{display:flex;gap:10px;align-items:flex-start;min-width:0}
.chat-message>.avatar{width:27px;height:27px;margin-top:2px}
.chat-message>.avatar .icon{width:16px;height:16px}
.chat-message-content{min-width:0;flex:1}
.chat-sender{font-size:11px;font-weight:600;line-height:1.4;color:#526770;margin:5px 0 8px}
.chat-bubble{border-radius:0 12px 12px;padding:14px 16px;background:#eef7fc;color:#365f72}
.chat-bubble>p{font-size:12px;line-height:1.65}
.chat-attachments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:13px}
.chat-attachment{display:flex;gap:9px;align-items:center;min-width:0;background:#fff;border:1px solid #dfe9ee;border-radius:8px;padding:10px}
.attachment-icon{display:grid;place-items:center;width:30px;height:34px;flex-shrink:0;background:#fdf0ed;color:#c07866;border-radius:6px}
.attachment-icon .icon{width:17px;height:17px}
.attachment-icon.mail{background:#eaf4fc;color:#338fc3}
.attachment-copy{min-width:0}
.attachment-name{display:block;font-size:11px;font-weight:500;line-height:1.4;color:#3e5965;overflow-wrap:anywhere}
.attachment-copy small{display:block;margin-top:3px;color:#71838b;font-size:9px;line-height:1.4}
.chat-connectors{display:flex;align-items:center;gap:10px;width:max-content;margin-top:12px;padding:6px 10px;border:1px solid #dcebf1;border-radius:99px;background:#ffffffb3}
.chat-connectors img{display:block;object-fit:contain;width:22px;height:22px}
.chat-review-note{display:flex;align-items:flex-start;gap:6px;margin-top:13px;padding-top:11px;border-top:1px solid #dbe9ef;font-size:10px;line-height:1.5;color:#537883}
.chat-review-note .icon{height:14px;width:14px;margin-top:1px}
.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.template-card{border:1px solid var(--line);border-radius:12px;padding:16px 13px;display:flex;flex-direction:column;align-items:flex-start}
.template-kind{display:flex;align-items:center;gap:6px;font-size:10px;color:#287e9d}
.template-kind .icon{height:14px;width:14px}
.template-card h4{font-size:14px;font-weight:600;letter-spacing:-.025em;line-height:1.35;margin:22px 0 9px}
.template-card p{font-size:11px;color:#6a777b;line-height:1.6;margin-bottom:20px}
.template-meta{font-size:9px;color:#70848d;line-height:1.5;margin-top:auto}
/* The slot preserves the workspace's final layout while the actual window travels. */
.product-reveal-slot{position:relative}
.product-stage.product-reveal{isolation:isolate;z-index:2;background:transparent}
.product-stage.product-reveal::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(145deg,#edf8ff,#c9e9f9 68%,#daf2ee);opacity:var(--reveal-backdrop,1);pointer-events:none}
.product-stage.product-reveal-moving{overflow:visible}
.product-reveal-surface{position:relative;transform-origin:50% 0;translate:0 0;transition:translate .18s ease}
.product-fitted .product-window{position:absolute;top:0;left:0;width:1024px;transform:scale(var(--mock-fit));transform-origin:0 0}
.product-fitted .product-reveal-surface{height:var(--mock-height)}
@media(max-width:1100px){.product-stage{padding:28px 20px 0}}
@media(max-width:760px){.product-stage{padding:18px 10px 0}}
.product-reveal-moving .product-reveal-surface{will-change:transform}
.product-reveal-moving .product-window{border-radius:15px}
.product-reveal-trigger{position:absolute;inset:0;z-index:5;width:100%;height:100%;padding:0;border:0;border-radius:inherit;background:transparent;cursor:pointer;touch-action:manipulation}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.product-reveal-moving .product-reveal-surface:hover{translate:0 -5px}}
.product-reveal-trigger:focus-visible{outline:3px solid #167fa5;outline-offset:-4px}
@media(prefers-reduced-motion:reduce){.product-reveal .product-reveal-surface{transform:none!important;translate:none;transition:none;will-change:auto}}
