#development{min-width:0}.dev-top{display:flex;gap:10px;align-items:center;margin-bottom:10px}.dev-top select{max-width:260px}.dev-grid{display:grid;grid-template-columns:200px minmax(0,1.2fr) minmax(0,1fr);gap:12px;min-height:65vh}.dev-grid>.card{min-width:0;margin:0}.dev-tree{max-height:66vh;overflow:auto}.dev-tree button{border:0;background:transparent;width:100%;text-align:start;font-size:12px;overflow-wrap:anywhere;padding:5px}.dev-tree li{padding:0}.dev-editor{display:flex;flex-direction:column}.dev-editor textarea{flex:1;min-height:360px;resize:vertical;font-family:ui-monospace,Consolas,monospace;font-size:13px;line-height:1.6;tab-size:2;white-space:pre;overflow:auto;direction:ltr;text-align:left}.dev-terminal pre{max-height:280px;overflow:auto;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.dev-terminal textarea{font-family:ui-monospace,Consolas,monospace;font-size:13px}.dev-terminal ul{max-height:50vh;overflow:auto}#devPreview{width:100%;height:480px;border:1px solid var(--border);background:white}.dev-visual{grid-column:2/4}.dev-screenshot{max-width:100%;max-height:400px;object-fit:contain}#devPane{display:none}.dev-help{font-size:12px}.dev-agent{grid-column:1/-1}.dev-agent form{display:flex;gap:8px;align-items:end}.dev-agent textarea{flex:1}.dev-agent label{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}
@media(max-width:800px), (max-width:950px) and (max-height:600px){#development{display:flex;flex-direction:column;overflow:hidden}#development[hidden]{display:none}.dev-top{flex:none;gap:6px}.dev-top select{max-width:50%;min-width:0}#devPane{display:block}.dev-grid{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden}.dev-grid>[data-dev-pane]{display:none}.dev-grid>[data-dev-pane].dev-active{display:flex;flex-direction:column;min-height:0;flex:1;overflow:auto;margin:0}.dev-editor textarea{min-height:100px;resize:none}.dev-tree{max-height:none}#devPreview{height:100%;min-height:250px}.dev-agent form{display:block}.dev-agent textarea{width:100%}.dev-help{display:none}.dev-terminal ul{max-height:none;flex:1;overflow:auto}.dev-terminal pre{max-height:220px}}
@media(min-width:801px) and (min-height:601px), (min-width:951px){#devPane{display:block}.dev-grid{height:calc(100dvh - 340px);min-height:440px;max-height:800px;grid-template-rows:minmax(0,1fr)}.dev-grid>.card{min-height:0;overflow:auto}.dev-tree{grid-column:1;grid-row:1}.dev-editor{grid-column:2;grid-row:1}.dev-editor textarea{min-height:100px;resize:none}.dev-terminal{grid-column:3;grid-row:1}.dev-visual,.dev-agent{display:none;grid-column:3;grid-row:1}.dev-visual.dev-active,.dev-agent.dev-active{display:flex;flex-direction:column}.dev-grid:has(.dev-visual.dev-active)>.dev-terminal,.dev-grid:has(.dev-agent.dev-active)>.dev-terminal{display:none}.dev-agent form{display:block}.dev-agent textarea{width:100%;min-height:160px}#devPreview{min-height:150px;height:auto;flex:1}.dev-terminal ul{max-height:none}.dev-terminal pre{max-height:200px}}
