/* Shared navigation and controls: conversation and engineering stay in one product. */
:root{--green:#2c554e;--pine:#2c554e;--line:#cfd2cb;--rule:#cfd2cb;--sage:#e4e9e2;--muted:#65706c;--agent-header-height:73px;--agent-status-height:57px;--agent-picker-height:0px}
html{scroll-padding-top:calc(var(--agent-header-height) + 8px)}
.app-shell{display:grid;grid-template-columns:204px minmax(0,1fr);grid-template-rows:var(--agent-header-height) minmax(0,1fr);align-items:start;min-height:100vh;min-height:100dvh}
.agent-header{grid-column:1/-1;grid-row:1;position:sticky;top:0;z-index:10;height:var(--agent-header-height);padding:0 34px;display:flex;align-items:center;gap:24px;background:var(--paper);border-bottom:1px solid var(--line)}
.sidebar{grid-column:1;grid-row:2;border-right:1px solid var(--line);padding:22px 22px 24px;display:flex;flex-direction:column;position:sticky;top:var(--agent-header-height);height:calc(100vh - var(--agent-header-height));height:calc(100dvh - var(--agent-header-height));font-size:15px;line-height:1.65}
.brand{display:flex;align-items:center;gap:9px;width:max-content;color:var(--ink);text-decoration:none;min-height:34px}
.brand svg{width:28px;height:28px;fill:none;stroke:var(--ink);stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;flex:none}
.brand span{font:27px/1.2 Georgia,"Times New Roman",serif;letter-spacing:-1px}
.product-name{margin:0;font-size:14px;white-space:nowrap}
.product-name span{font-size:11px;margin-left:8px;color:var(--muted)}
.primary-nav{display:flex;align-items:center;gap:4px;margin-left:auto}
.primary-nav a{display:flex;gap:11px;align-items:center;text-decoration:none;color:var(--ink);min-height:44px;padding:7px 10px;border-radius:5px;font-size:15px;line-height:1.65;white-space:nowrap}
.primary-nav a[aria-current]{background:var(--sage);color:var(--green)}
.primary-nav a:hover{background:#e8e9e3}
.primary-nav a span{font-size:18px;width:20px;text-align:center}
.project-select{margin-top:0}
.project-select label{display:block;font-size:12px;color:var(--muted);margin-bottom:9px}
.project-select select{width:100%;min-height:44px;background:transparent;border:1px solid var(--line);border-radius:5px;padding:7px 23px 7px 9px;font-size:12px;font-family:inherit;color:var(--ink)}
.project-select p{font-size:12px;color:var(--muted);margin:9px 0;line-height:1.65}
.sidebar-foot{margin-top:auto;padding-top:28px;font-size:12px;color:var(--muted)}
.sidebar-foot p{margin:10px 0 17px;font-size:12px;line-height:1.65}
.sidebar-foot a{color:var(--muted);text-decoration:none}
.simulation-label{display:inline-block;color:var(--green);font-size:11px;line-height:1.6;padding:2px 7px;border:1px solid #b5c6bb;border-radius:3px;white-space:nowrap}
.main-area{grid-column:2;grid-row:2;min-width:0}
.app-topbar{height:var(--agent-status-height);border-bottom:1px solid var(--line);padding:0 34px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.app-shell .conversation{min-height:calc(100vh - var(--agent-header-height) - var(--agent-status-height) - var(--agent-picker-height));min-height:calc(100dvh - var(--agent-header-height) - var(--agent-status-height) - var(--agent-picker-height))}
.app-shell .context-panel{top:var(--agent-header-height);max-height:calc(100vh - var(--agent-header-height));max-height:calc(100dvh - var(--agent-header-height))}
.app-topbar>div{display:flex;align-items:center;gap:18px}
.header-name{font-size:14px}
.app-topbar .connection-status{font-size:11px;color:var(--muted);font-weight:400;line-height:1.65}
.app-topbar .connection-status.is-online:before{content:"";display:inline-block;width:5px;height:5px;background:var(--green);border-radius:50%;margin-right:6px;vertical-align:2px}
.quiet-button{border:0;background:transparent;min-height:44px;padding:8px 0;font-size:12px;display:none}
.quiet-button span{margin-left:10px}
.app-topbar .context-link{font-size:12px;color:var(--green);min-height:44px;display:flex;align-items:center;text-decoration:none;white-space:nowrap}
.button{min-height:44px;border:1px solid transparent;border-radius:5px;padding:10px 17px;font-size:12px;line-height:1.6;white-space:nowrap;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:10px;text-decoration:none}
.button-primary{background:var(--green);color:#fafbf7}
.button-primary:hover:enabled{background:#21433e}
.button-secondary{background:transparent;border-color:#aebdaf;color:var(--green)}
.button-secondary:hover:enabled{background:var(--sage)}
.text-button{border:0;background:transparent;padding:7px 0;min-height:44px;color:var(--green);font-size:11px;text-align:left}
.text-button:hover:enabled{text-decoration:underline;text-underline-offset:4px}
.app-shell :is(button,a,textarea,select,input,summary):focus-visible{outline:2px solid var(--green);outline-offset:4px}
.workbench .workspace{max-width:1440px;padding:26px 34px 32px}
.workbench .workspace-grid{grid-template-columns:250px minmax(0,1fr);gap:28px}
.workbench .workspace-heading h1{font-size:26px}
.workbench .workspace-heading p{max-width:65ch;line-height:1.9}
.workbench .app-footer{padding-left:34px;padding-right:34px}
@media(max-width:1180px){
 .agent-header{padding-left:27px;padding-right:27px;gap:18px}
 .sidebar{padding:22px 17px}
 .app-topbar{padding-left:27px;padding-right:27px}
 .header-name{font-size:13px}.app-topbar>div{gap:12px}
 .workbench .workspace{padding-left:27px;padding-right:27px}
 .workbench .workspace-grid{grid-template-columns:minmax(0,1fr);gap:25px}
 .workbench .agent-column{display:contents}
 .workbench .task-section{grid-column:1;grid-row:1}
 .workbench .application-column{grid-column:1;grid-row:2}
 .workbench .trace-section{grid-column:1;grid-row:3}
 .workbench .task-section textarea{min-height:85px}
 .workbench .task-section #model-status{min-height:0}
}
@media(max-width:960px){
 .quiet-button{display:block}
 .agent-header{gap:14px;padding-left:20px;padding-right:20px}
 .agent-header .product-name span{display:none}
 .primary-nav a{gap:7px;font-size:12px;padding-left:9px;padding-right:9px}
 .primary-nav a span{font-size:16px;width:16px}
 .app-shell .context-panel{max-height:none}
}
@media(max-width:640px){
 :root{--agent-header-height:88px;--agent-picker-height:69px}
 .app-shell{display:block}
 .agent-header{display:grid;grid-template-columns:1fr auto;grid-template-rows:28px 44px;gap:0 10px;padding:6px 16px 8px}
 .sidebar{position:static;height:var(--agent-picker-height);border-right:0;border-bottom:1px solid var(--line);padding:12px 20px;display:block}
 .brand{min-height:29px}.brand svg{width:23px;height:23px}.brand span{font-size:24px}
 .product-name{margin:0;font-size:12px;text-align:right}.agent-header .product-name span{display:inline;font-size:10px;margin-left:5px}
 .primary-nav{grid-column:1/-1;display:flex;align-self:start;align-content:start;gap:4px;margin:0;flex-wrap:wrap}
 .primary-nav a{font-size:12px;min-height:44px;padding:3px 9px;gap:5px}.primary-nav a span{font-size:15px;width:15px}
 .project-select{margin:0;display:flex;align-items:center;gap:10px}
 .project-select label{margin:0;white-space:nowrap;font-size:10px}.project-select select{min-height:44px;flex:1;font-size:11px;padding-left:9px;min-width:0}
 .project-select p,.sidebar-foot,.project-select #refresh-projects{display:none}
 .app-topbar{padding:0 20px}.app-topbar>div{display:block}.header-name{font-size:12px}
 .app-topbar .connection-status{font-size:10px;display:block;line-height:1.4;margin-top:1px;padding:0;text-align:left}
 .quiet-button,.app-topbar .context-link{font-size:11px}
 .workbench .workspace{padding:23px 20px 27px}.workbench .workspace-heading h1{font-size:24px}
 .workbench .workspace-heading p{max-width:30em;font-size:11px}
 .workbench .task-section #run-task{width:100%;float:none;min-width:0;margin-top:0}
 .workbench .task-section .mode-field{max-width:none}.workbench .task-section #model-status{padding-right:0;margin-bottom:13px}
 .workbench .app-footer{padding-left:20px;padding-right:20px}
}
@media(prefers-reduced-motion:reduce){.app-shell *{scroll-behavior:auto!important;transition:none!important}}

/* Nur uses one navigation row across conversation and workbench. */
:root{--agent-header-height:64px}
.agent-header{height:64px;padding:0 24px;gap:12px}
.agent-header .brand{gap:7px;min-height:44px}
.agent-header .brand span{font-size:27px;letter-spacing:-.7px}
.agent-header .product-name{font-size:12px;color:var(--muted)}
.primary-nav{gap:4px}
.icon-control,.primary-nav .icon-control{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;min-height:44px;padding:10px;border:0;border-radius:12px;background:transparent;color:var(--ink);text-decoration:none;cursor:pointer}
.icon-control svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
.icon-control:hover,.primary-nav .icon-control:hover{background:var(--sage)}
.icon-control[aria-current],.icon-control[aria-pressed=true],.icon-control[aria-expanded=true]{background:var(--sage);color:var(--green)}
.icon-control:disabled{cursor:default}
[data-tooltip]:after{content:attr(data-tooltip);position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);padding:5px 9px;border-radius:6px;background:var(--ink);color:#fff;font-size:12px;line-height:1.6;white-space:nowrap;pointer-events:none;opacity:0;z-index:60}
@media(hover:hover){[data-tooltip]:hover:after,[data-tooltip]:focus-visible:after{opacity:1}}
.primary-nav>[data-tooltip]:after{left:auto;right:0;transform:none}
@media(max-width:960px){.agent-header .product-name{display:none}}
@media(max-width:640px){
 :root{--agent-header-height:64px}
 .agent-header{display:flex;gap:2px;padding:0 8px}
 .agent-header .brand svg{width:25px;height:25px}
 .agent-header .brand span{font-size:25px}
 .primary-nav{gap:0;margin-left:auto;flex-wrap:nowrap;align-self:auto}
 .primary-nav .icon-control{padding:10px}
 .primary-nav a span{width:auto;font-size:inherit}
}
