/* Product page and interactive workbench preview. */
.product-page,.experience-section{
  --product-paper:var(--paper);
  --product-surface:var(--surface);
  --product-ink:var(--ink);
  --product-muted:var(--muted);
  --product-line:var(--line);
  --product-accent:var(--accent);
  --product-mono:var(--font-mono);
  color:var(--product-ink);
}
.product-page{padding-block:var(--page-top-space) var(--section-space)}
.product-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;padding-bottom:var(--page-content-gap)}
.product-hero-copy{min-width:0}
.product-hero>.button{align-self:center;justify-self:end}
.product-demo,.experience-section,.studio-figure,.studio-main{min-width:0}
.product-demo{scroll-margin-top:0}
.experience-section{margin:0}
.studio-figure{margin:0}

/* The preview is one editor surface; the surrounding page stays light. */
.studio-window{
  --studio-bg:#212121;--studio-toolbar:#292929;--studio-sidebar:#171717;
  --studio-raised:#303030;--studio-line:#3d3d3d;--studio-text:#ececec;
  --studio-muted:#ababab;--studio-accent:#d9aa91;--studio-success:#9bc9a4;
  overflow:hidden;border:1px solid var(--studio-line);border-radius:var(--radius-md);box-shadow:none;
  background:var(--studio-bg);color:var(--studio-text);color-scheme:dark;
}
.studio-titlebar{display:flex;align-items:center;gap:24px;min-height:var(--control-height);padding:12px 24px;border-bottom:1px solid var(--studio-line);background:var(--studio-toolbar);color:var(--studio-muted);font:var(--type-meta)/var(--line-ui) var(--product-mono)}
.studio-titlebar>span{display:inline-flex;align-items:center;gap:8px;min-width:0}
.studio-titlebar .icon{width:16px;height:16px}
.studio-project{color:var(--studio-text);font-weight:500;letter-spacing:0}
.studio-branch{font-family:var(--product-mono);font-size:11px;color:var(--studio-muted)}
.studio-caption{margin-left:auto;overflow-wrap:anywhere;text-align:end}
.studio-body{display:grid;grid-template-columns:216px minmax(0,1fr)}

/* Project navigation remains subordinate to the task. */
.studio-sidebar{display:flex;flex-direction:column;min-width:0;padding:24px 12px 16px;background:var(--studio-sidebar);border-right:1px solid var(--studio-line)}
.studio-sidebar-heading .icon{width:16px;height:16px}
.studio-sidebar-heading{display:flex;align-items:center;gap:8px;padding-inline:12px;margin-bottom:16px;font-size:var(--type-meta);font-weight:var(--weight-ui);line-height:var(--line-caption);color:var(--studio-muted)}
.studio-tree{display:grid;gap:2px;min-width:0}
.studio-tree>span{display:flex;align-items:center;gap:var(--gap-inline);min-width:0;min-height:36px;padding:8px 12px;border-left:2px solid transparent;font:var(--type-meta)/var(--line-caption) var(--font-sans);color:var(--studio-muted);overflow-wrap:anywhere}
.studio-tree .icon{flex:0 0 15px;width:15px;height:15px;color:var(--studio-muted)}
.studio-tree .tree-child{padding-left:23px}
.studio-tree .tree-selected{border-left-color:var(--studio-accent);background:var(--studio-raised);color:var(--studio-text)}
.studio-tree .tree-selected .icon{color:var(--studio-accent)}
.studio-sidebar-bottom{padding:24px 12px 0;margin-top:auto;font-size:var(--type-meta);line-height:var(--line-caption);color:var(--studio-muted)}
.studio-sidebar-bottom>span{display:flex;align-items:center;gap:8px}
.studio-sidebar-bottom .icon{width:14px;height:14px}
.studio-sidebar-bottom p{margin:9px 0 0;padding-left:22px;overflow-wrap:anywhere}

/* Real tabs with a compact reading area; longer content can expand naturally. */
.studio-tabs{display:flex;flex-wrap:wrap;gap:0;padding:0;border-bottom:1px solid var(--studio-line);background:var(--studio-sidebar)}
.studio-tabs button{display:inline-flex;align-items:center;gap:var(--gap-inline);min-width:44px;max-width:100%;min-height:var(--control-height);padding:12px 20px;border:0;border-right:1px solid var(--studio-line);border-bottom:2px solid transparent;background:none;color:var(--studio-muted);font-family:inherit;font-size:var(--type-caption);font-weight:var(--weight-ui);line-height:var(--line-ui);text-align:start;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.studio-tabs button[aria-selected=true]{border-bottom-color:var(--studio-accent);background:var(--studio-bg);color:var(--studio-text);font-weight:600}
.studio-tabs button:last-child{border-right:0}
.studio-tabs button:focus-visible{outline-color:var(--studio-accent);outline-offset:-5px}
.studio-tabs button span{min-width:18px;padding-inline:4px;border-radius:3px;background:var(--studio-raised);color:var(--studio-muted);font:10px/18px var(--product-mono);text-align:center}
.studio-tabs button[aria-selected=true] span{color:var(--studio-text)}
.studio-panel{min-width:0;min-height:340px;padding:24px;background:var(--studio-bg);color:var(--studio-text);font-size:var(--type-ui);line-height:var(--line-body);overflow-wrap:break-word}
.studio-panel[hidden]{display:none!important}
.studio-panel:not([hidden]){display:flex;flex-direction:column}
.studio-panel:focus-visible{outline-color:var(--studio-accent);outline-offset:-4px}
.studio-request{align-self:flex-end;max-width:82%;min-width:0;padding:16px;border:1px solid var(--studio-line);border-radius:18px;background:var(--studio-raised);color:var(--studio-text);font-size:var(--type-ui);line-height:var(--line-body)}
.studio-execution{min-width:0}
.studio-execution>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;list-style:none;font-size:14px;font-weight:500;color:var(--studio-muted);cursor:pointer}
.studio-execution>summary::-webkit-details-marker{display:none}
.studio-execution>summary:focus-visible{outline-color:var(--studio-accent);outline-offset:2px}
.studio-execution>summary>.icon{flex:0 0 15px;width:15px;height:15px}
.studio-execution[open]>summary{color:var(--studio-text)}
.studio-execution[open]>summary>.icon{transform:rotate(180deg)}
.studio-response{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:24px;margin:20px 0;min-width:0}
.studio-message{min-width:0}
.studio-agent{display:flex;align-items:center;gap:10px;color:var(--studio-text);font-size:14px;font-weight:600;line-height:1.5}
.studio-agent img{display:block;flex:0 0 auto;width:22px;height:22px}
.studio-message>p{max-width:66ch;margin:12px 0 0;font-size:14px;line-height:1.8;color:var(--studio-muted)}
.studio-checklist{display:grid;gap:0;margin:0;padding-left:24px;border-left:1px solid var(--studio-line)}
.studio-tool{display:flex;align-items:flex-start;gap:9px;min-width:0;padding:6px 0;color:var(--studio-muted);font-size:12px;line-height:1.75}
.studio-tool>.icon{width:15px;height:15px;margin-top:3px;color:var(--studio-success)}
.studio-tool>span{min-width:0}
.studio-tool code{font:11px/1.75 var(--product-mono);overflow-wrap:anywhere}
.studio-task-result{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 24px;padding-top:14px;margin-top:auto;border-top:1px solid var(--studio-line);color:var(--studio-muted);font-size:12px;line-height:1.6}
.studio-task-result button{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:44px;padding:6px 0;border:0;background:none;color:var(--studio-accent);font-family:inherit;font-size:13px;font-weight:500;line-height:1.5;text-align:start;overflow-wrap:anywhere;cursor:pointer}
.studio-task-result button:focus-visible{outline-color:var(--studio-accent)}
.studio-task-result button .icon{width:16px;height:16px}
.studio-status{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 20px;min-height:38px;padding:9px 18px;border-top:1px solid var(--studio-line);background:var(--studio-sidebar);color:var(--studio-muted);font:11px/1.5 var(--product-mono)}
.studio-status>span{display:inline-flex;align-items:center;gap:7px;min-width:0}
.studio-status .icon{width:14px;height:14px}
.studio-figure>figcaption{max-width:76ch;margin-top:12px;color:var(--product-muted);font-size:var(--type-caption);line-height:var(--line-caption);overflow-wrap:break-word}

/* Code review is an editor pane, with horizontal scrolling confined to code. */
.studio-file-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:16px;color:var(--studio-text);font:var(--type-meta)/var(--line-caption) var(--product-mono);overflow-wrap:anywhere}
.studio-file-title>.icon{width:16px;height:16px;color:var(--studio-muted)}
.studio-file-title>span{margin-left:auto;color:var(--studio-success);font-size:11px;white-space:nowrap}
.studio-diff pre{max-width:100%;margin:0;padding:12px 0;overflow-x:auto;overscroll-behavior-inline:contain;border:1px solid var(--studio-line);border-radius:var(--radius-sm);background:#181817;color:var(--studio-text);font:13px/1.9 var(--product-mono);tab-size:2;-webkit-overflow-scrolling:touch}
.studio-diff pre:focus-visible{outline-color:var(--studio-accent);outline-offset:3px}
.studio-diff pre code{display:block;width:max-content;min-width:100%;font:inherit;counter-reset:code-line}
.studio-diff pre code>span{position:relative;display:block;min-width:100%;padding-inline:46px 16px;counter-increment:code-line}
.studio-diff pre code>span:before{content:counter(code-line);position:absolute;inset-inline-start:0;width:32px;padding-inline-end:8px;border-inline-end:1px solid var(--studio-line);color:var(--studio-muted);text-align:end;user-select:none}
.studio-diff .diff-context{color:#c8c7bf}
.studio-diff .diff-removed{background:#3b2927;color:#e2aaa0}
.studio-diff .diff-added{background:#26382a;color:#b3d3aa}
.studio-diff .syntax-keyword{color:#e1b69c}
.studio-diff .syntax-function{color:#e2dec7}
.studio-diff .syntax-string{color:#b4cfa7}
.studio-diff .syntax-constant{color:#c9cdb6}
.studio-review-note{display:flex;align-items:flex-start;gap:8px;margin-top:auto;padding-top:18px;color:var(--studio-muted);font-size:12px;line-height:1.7}
.studio-review-note>.icon{width:15px;height:15px;margin-top:3px}

/* Test output has the same application grammar, not another marketing card. */
.studio-check-command{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;padding:12px 16px;margin-bottom:8px;border:1px solid var(--studio-line);border-radius:var(--radius-sm);background:#181817;color:var(--studio-muted);font-size:var(--type-meta);line-height:var(--line-caption)}
.studio-check-command code{color:var(--studio-text);font:12px/1.7 var(--product-mono);overflow-wrap:anywhere}
.studio-check-line{display:flex;align-items:flex-start;gap:var(--gap-inline);margin-top:16px;font-size:var(--type-ui);line-height:var(--line-body)}
.studio-check-line>.icon{width:17px;height:17px;margin-top:3px;color:var(--studio-success)}
.studio-test-result{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;margin-top:auto;padding-top:22px;color:var(--studio-success);font:12px/1.7 var(--product-mono)}
.studio-test-result>span{color:var(--studio-muted);overflow-wrap:anywhere}

.studio-composer{margin-top:24px;padding:14px 16px;border-radius:20px;background:var(--studio-raised);font-size:12px;line-height:1.6}
.studio-composer>div{display:flex;align-items:center;gap:12px;color:var(--studio-muted);font-size:11px}.studio-composer>div>span{min-width:0;overflow-wrap:anywhere}.studio-composer>p{margin:14px 0 24px;color:var(--studio-muted);font-size:14px}.studio-composer .icon{width:17px;height:17px}.studio-composer>div:last-child>span:nth-child(2){margin-left:auto;color:var(--studio-text)}.studio-composer>div:last-child>span:last-child{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:50%;background:var(--studio-text);color:var(--studio-bg)}
/* Delivery and boundaries form one compact section after the editor. */
.product-details{margin-top:var(--section-inset)}
.product-inclusions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;padding-bottom:24px}
.product-inclusions article{min-width:0;padding:var(--panel-inset);border:1px solid var(--product-line);border-radius:var(--radius-md);background:var(--product-surface)}
.product-inclusions h2{max-width:28ch;font-size:var(--type-subsection);line-height:var(--line-heading)}
.product-inclusions p{max-width:52ch;margin-top:12px;color:var(--product-muted);font-size:var(--type-body);line-height:var(--line-body);overflow-wrap:break-word}
.product-support{padding:var(--panel-inset);border-radius:var(--radius-md);background:var(--soft)}
.product-support-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;min-width:0}
.product-support-heading h2{min-width:0;font-size:var(--type-small-title);line-height:var(--line-heading)}
.product-support-heading>.inline-link{font-size:var(--type-ui)}
.product-notes-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 32px;margin-top:24px;min-width:0}
.product-notes-body p{min-width:0;color:var(--product-muted);font-size:var(--type-ui);line-height:var(--line-body);overflow-wrap:break-word}
.product-next{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:24px}
.product-next p{min-width:0;max-width:42ch;font-size:var(--type-small-title);font-weight:var(--weight-ui);line-height:var(--line-heading)}
.product-next>.button{flex:0 0 auto}

@media(min-width:801px){
  .studio-execution[data-responsive-details-ready=true]>summary{display:none}
}
@media(max-width:1000px){
  .studio-body{grid-template-columns:188px minmax(0,1fr)}
  .studio-tree>span{padding-inline:9px;font-size:11px}
  .studio-tree .tree-child{padding-left:17px}
  .studio-panel{padding:24px}
  .studio-response{grid-template-columns:1fr;gap:20px}
  .studio-checklist{padding:0 0 0 14px}
  .product-notes-body{grid-template-columns:minmax(0,1fr);gap:16px}
}
@media(max-width:800px){
  .product-page{padding-bottom:var(--section-space)}
  .product-hero{grid-template-columns:1fr;align-items:start;gap:24px;padding-bottom:var(--page-content-gap)}
  .product-hero>.button{justify-self:start}
  .studio-titlebar{flex-wrap:wrap;gap:8px 12px;padding:12px 16px}
  .studio-titlebar .studio-caption{display:none}
  .studio-branch{margin-left:auto;font-size:11px}
  .studio-body{grid-template-columns:minmax(0,1fr)}
  .studio-sidebar{display:none}
  .studio-tabs{flex-wrap:nowrap}
  .studio-tabs button{flex:1 1 auto;justify-content:center;min-width:0;padding-inline:12px}
  .studio-panel{min-height:280px;padding:20px 16px}
  .studio-request{max-width:92%;padding:12px 16px}.studio-composer>div:first-child{flex-wrap:wrap}.studio-composer{padding:12px}
  .studio-execution{margin-block:14px}
  .studio-response{gap:16px;margin:12px 0 8px}
  .studio-agent{font-size:14px}
  .studio-message>p{font-size:14px}
  .studio-checklist{padding:14px 0 0;border-left:0;border-top:1px solid var(--studio-line)}
  .studio-tool{font-size:13px}
  .studio-task-result{align-items:flex-start;flex-direction:column;gap:3px;margin-top:0}
  .studio-task-result button{padding-block:7px;font-size:13px}
  .studio-status{gap:5px 12px;padding:9px 13px;font-size:11px}
  .studio-status .icon{width:12px;height:12px}
  .studio-figure>figcaption{margin-top:12px;font-size:13px;line-height:1.7}
  .studio-file-title{font-size:var(--type-meta)}
  .studio-diff pre{font-size:12px}
  .studio-diff pre code>span{padding-inline:42px 12px}
  .studio-check-command{gap:7px 12px;padding:12px;font-size:11px}
  .studio-check-command code{font-size:11px}
  .studio-check-line{font-size:14px}
  .studio-test-result{font-size:11px}
  .product-inclusions{grid-template-columns:1fr;gap:20px;padding-bottom:20px}
  .product-inclusions h2{max-width:none}
  .product-inclusions p{max-width:none;margin-top:10px}
  .product-notes-body{margin-top:16px}
  .product-next{align-items:flex-start;flex-direction:column;gap:16px;margin-top:24px}
  .product-next p{max-width:none}
}
@media(max-width:380px){
  .studio-titlebar{padding-inline:12px;gap:10px}
  .studio-project{font-size:11px}
  .studio-tabs button{padding-inline:8px}
  .studio-panel{padding-inline:14px}
}
@media(hover:hover) and (pointer:fine){
  .studio-tabs button:hover{background:var(--studio-raised);color:var(--studio-text)}
  .studio-execution>summary:hover,.studio-task-result button:hover{color:var(--studio-text)}
}
@media(prefers-reduced-motion:no-preference){
  .studio-tabs button span{transition:color .16s ease-out,background-color .16s ease-out}
  .studio-execution>summary>.icon{transition:transform .16s ease-out}
}
