/* Butson native workspace system. Real content, small purposeful motion, local artwork. */
:root{--pw-accent:#a9d8cd;--pw-accent-ink:#152d28;--pw-elevated:#202429;--pw-soft:#181c20;--pw-shadow:0 18px 60px #0003;--pw-radius:16px;--pw-duration:180ms;--pw-ease:cubic-bezier(.2,.8,.2,1)}
:root[data-theme="light"]{--pw-accent:#286e61;--pw-accent-ink:#fff;--pw-elevated:#fff;--pw-soft:#f0f3f3;--pw-shadow:0 16px 55px #23423615}
body.pw-product{background:var(--bg);font-family:Inter,'Segoe UI Variable','Segoe UI',system-ui,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}
.pw-product .sidebar{position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;height:100dvh;min-height:0;width:252px;padding:22px 16px 15px;background:var(--panel);border-right:1px solid var(--border)}
.pw-product .workspace{margin-left:252px}.pw-product .brand{margin:0 10px 25px;gap:12px;font-size:26px}.pw-product .brand-mark{background:var(--pw-accent);color:var(--pw-accent-ink);border-radius:14px;box-shadow:0 4px 12px #0001}.pw-product .brand-mark span{color:var(--pw-accent-ink)}
.pw-product .brand-caption{font-size:8px;letter-spacing:1.5px;color:var(--muted)}.pw-product .nav-caption{display:none}
.pw-product nav{display:flex;flex-direction:column;gap:3px;overflow:auto;min-height:170px;scrollbar-width:thin;scrollbar-color:var(--border) transparent}
.pw-product nav a{padding:9px 12px;min-height:38px;font-size:12px;gap:11px;flex-shrink:0;border-radius:10px;transition:background var(--pw-duration),color var(--pw-duration),transform var(--pw-duration) var(--pw-ease)}
.pw-product nav a .cc-nav-label{font-size:12px}.pw-product nav a.active{background:color-mix(in srgb,var(--pw-accent) 13%,transparent);color:var(--pw-accent)}.pw-product nav a:hover{background:var(--cc-soft);transform:translateX(2px)}.pw-product nav a.active:hover{background:color-mix(in srgb,var(--pw-accent) 17%,transparent)}.pw-product nav .cc-icon{width:19px;height:19px}
.pw-nav-section{font-size:9px;letter-spacing:1.4px;color:var(--muted);padding:17px 12px 5px;flex-shrink:0}.pw-nav-section:first-child{padding-top:3px}.pw-product nav .cc-reference{margin-top:2px;font-size:10px;opacity:.7}.pw-product .pw-secondary-nav .cc-nav-label{font-size:11px}
.pw-product .cc-new-chat{border-radius:11px;background:var(--pw-accent);border-color:transparent;color:var(--pw-accent-ink);font-size:12px;font-weight:650;padding:11px 13px;margin:0 6px 15px;transition:transform var(--pw-duration) var(--pw-ease),filter var(--pw-duration)}.pw-product .cc-new-chat:hover{filter:brightness(1.08);transform:translateY(-1px)}
.pw-product .cc-conversations{display:flex;flex-direction:column;overflow:hidden;max-height:170px;min-height:90px;margin-top:13px;border-top:1px solid var(--border);padding-top:12px;flex:0 1 170px}.pw-product #cc-conversation-list{display:block;padding:0;flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--border) transparent}.pw-product .cc-conversation{width:100%;max-width:none;font-size:11px;border-radius:8px}.pw-product .cc-rail-head{display:flex;font-size:8px;letter-spacing:1px;flex-shrink:0}.pw-product .sidebar-bottom{padding:15px 9px 0;font-size:10px;flex-shrink:0;border-top:1px solid var(--border);margin-top:14px}.pw-product .sidebar-bottom p{font-size:9px}.pw-product .sidebar-bottom button{font-size:10px}
.pw-product .topbar{height:62px;padding:0 32px;background:var(--bg);gap:12px}.pw-product .breadcrumb{font-size:11px;white-space:nowrap}.pw-product .mode{font-size:8px;letter-spacing:.7px;border-radius:6px;background:var(--pw-soft);color:var(--muted)}.pw-product .cc-palette-trigger{margin-left:auto;border-radius:9px;padding:7px 10px;font-size:10px;background:var(--panel)}.pw-product .cc-palette-trigger kbd{font-size:9px}
.pw-activity-button{display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:var(--muted);font:inherit;font-size:10px;padding:7px;border-radius:8px;white-space:nowrap}.pw-activity-button .cc-icon{width:16px;height:16px}.pw-activity-button:hover{background:var(--cc-soft);color:var(--ink)}
.pw-product main{max-width:1580px;padding:34px 34px 48px}.pw-product .page-head{margin-bottom:23px;align-items:center}.pw-product h1{font-size:30px;font-weight:650;letter-spacing:-.8px;line-height:1.17}.pw-product .eyebrow{font-size:9px;letter-spacing:1.8px;color:var(--pw-accent)}.pw-product .intro{max-width:740px;font-size:12px;line-height:1.7}.pw-product h2{font-size:18px}.pw-product h3{font-size:16px}.pw-product .page-head .head-tag{font-size:9px}
.pw-product .card,.pw-product .project-card,.pw-product .stat{border-radius:var(--pw-radius);background:var(--panel);border-color:var(--border)}.pw-product .card{padding:23px}.pw-product .stat strong{font-size:29px;letter-spacing:-1px}.pw-product .stat-label{font-size:11px}.pw-product .note{background:var(--pw-soft);border-radius:12px;font-size:12px;line-height:1.65}.pw-product .note strong{color:var(--ink)}
.pw-product .link-button,.cc-dialog .link-button{background:var(--pw-accent);color:var(--pw-accent-ink);border-color:transparent;border-radius:9px;font-size:11px;font-weight:600;padding:9px 14px;min-height:36px}.pw-product .cc-secondary,.cc-dialog .cc-secondary{background:var(--pw-elevated);border:1px solid var(--border);border-radius:9px;font-size:11px;padding:8px 12px;min-height:34px;color:var(--ink)}.pw-product .text-button{font-size:11px}.pw-product input,.pw-product select,.pw-product textarea,.cc-dialog input,.cc-dialog select,.cc-dialog textarea{background:var(--pw-soft);border:1px solid var(--border);border-radius:9px;color:var(--ink);font:inherit;font-size:12px;padding:10px 12px;min-width:0}.pw-product input:focus,.pw-product select:focus,.pw-product textarea:focus{border-color:var(--pw-accent);outline:2px solid color-mix(in srgb,var(--pw-accent) 16%,transparent);outline-offset:2px}.pw-product button:disabled,.cc-dialog button:disabled{opacity:.46;cursor:not-allowed}
.pw-product button{transition:background var(--pw-duration),border-color var(--pw-duration),color var(--pw-duration),transform var(--pw-duration) var(--pw-ease)}.pw-product button:hover:not(:disabled){border-color:color-mix(in srgb,var(--muted) 55%,var(--border))}.pw-product .cc-filters{padding:14px;border-radius:13px;border:1px solid var(--border);background:var(--panel);gap:12px;margin:15px 0}.pw-product .cc-filters .cc-search{border:0;background:var(--pw-soft);border-radius:9px}.pw-product .cc-search input{border:0;outline-offset:0;padding:10px}.pw-product .cc-page-actions{gap:12px;font-size:11px}.pw-product .cc-summary{font-size:10px;color:var(--muted);margin:18px 0}.pw-product .chip{font-size:9px;border-radius:6px;padding:4px 7px;line-height:1.2}
.pw-product .cc-machine-grid,.pw-product .cc-docker-grid{gap:16px;grid-template-columns:repeat(auto-fill,minmax(225px,1fr))}.pw-product .cc-machine-card,.pw-product .cc-container-card,.pw-vm-card{border:1px solid var(--border);border-radius:16px;background:var(--panel);overflow:hidden;position:relative;transition:transform var(--pw-duration) var(--pw-ease),box-shadow var(--pw-duration),border-color var(--pw-duration)}.pw-product .cc-machine-card:hover,.pw-product .cc-container-card:hover,.pw-vm-card:hover{transform:translateY(-3px);box-shadow:var(--pw-shadow);border-color:color-mix(in srgb,var(--muted) 40%,var(--border))}.pw-product .cc-machine-open{padding:22px}.pw-product .cc-machine-open strong{font-size:16px;margin-top:17px;font-weight:600;letter-spacing:-.3px}.pw-product .cc-platform-glyph{border-radius:14px;width:48px;height:48px;background:var(--pw-soft)}.pw-product .cc-platform-glyph .cc-icon{width:28px;height:28px}.pw-product .cc-machine-address{font-size:11px}.pw-product .cc-machine-roles{font-size:10px;min-height:30px}.pw-product .cc-card-check{font-size:9px}.pw-product .cc-connection{font-size:10px}.pw-product .cc-container-card>header{padding:19px 20px 0;display:flex;align-items:center;gap:11px}.pw-product .cc-container-glyph{background:var(--pw-soft);border-radius:11px;width:38px;height:38px;padding:6px}.pw-product .cc-container-open{padding:18px 20px 15px}.pw-product .cc-container-open strong{font-size:16px;letter-spacing:-.3px}.pw-product .cc-container-open p{font-size:11px;min-height:20px}.pw-product .cc-container-actions{padding:13px 20px;border-top:1px solid var(--border);margin:0;gap:7px;display:flex;flex-wrap:wrap}.pw-product .cc-container-actions button{font-size:10px;min-height:30px;padding:6px 9px}
.pw-app-art{height:32px;width:32px;display:inline-block;object-fit:contain;flex-shrink:0}.mc-connection .pw-app-art{width:25px;height:25px}.mc-segment .pw-app-art,.cc-service-switcher .pw-app-art{width:18px;height:18px;margin-right:7px;vertical-align:middle}.pw-product .mc-app-glyph{padding:7px;border-radius:13px;background:var(--pw-soft)}.pw-product .mc-app-glyph .pw-app-art{width:35px;height:35px}.pw-product .mc-app-card{border-radius:16px;background:var(--panel);transition:transform var(--pw-duration) var(--pw-ease),box-shadow var(--pw-duration)}.pw-product .mc-app-card:hover{transform:translateY(-3px);box-shadow:var(--pw-shadow)}.pw-product .mc-title-card{border-radius:14px;overflow:hidden;background:var(--panel);transition:transform var(--pw-duration) var(--pw-ease),box-shadow var(--pw-duration)}.pw-product .mc-title-card:hover{transform:translateY(-4px);box-shadow:var(--pw-shadow)}.pw-product .mc-title-copy{padding:13px}.pw-product .mc-title-copy strong{font-size:12px}.pw-product .mc-title-copy small{font-size:10px}.pw-product .mc-poster{border-radius:0}.pw-product .mc-library-grid{gap:17px;grid-template-columns:repeat(auto-fill,minmax(145px,1fr))}.pw-product .mc-download{border-radius:14px;background:var(--panel);border-color:var(--border);padding:18px 21px}.pw-product .mc-download-heading strong{font-size:13px}.pw-product .mc-download-meta{font-size:10px}.pw-product progress,.cc-dialog progress{accent-color:var(--pw-accent);width:100%;height:7px;border:0;border-radius:8px;overflow:hidden}.pw-product progress::-webkit-progress-bar,.cc-dialog progress::-webkit-progress-bar{background:var(--cc-soft);border-radius:8px}.pw-product progress::-webkit-progress-value,.cc-dialog progress::-webkit-progress-value{background:var(--pw-accent);border-radius:8px;transition:width var(--pw-duration)}.pw-product footer{font-size:10px;padding:18px 34px;background:var(--bg)}

/* Texting workspace: the composer is always close, history remains scrollable. */
body.pw-product[data-view="chat"] main{height:calc(100dvh - 62px);padding:0;max-width:none}.pw-product[data-view="chat"] footer{display:none}.pw-chat-workspace{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto auto;max-width:1180px;margin:0 auto;padding:0 32px 14px;min-width:0}.pw-chat-top{display:flex;align-items:center;gap:12px;padding:21px 6px 19px;border-bottom:1px solid var(--border)}.pw-chat-top h1{font-size:17px;letter-spacing:-.35px;margin:0 0 3px}.pw-chat-top p{font-size:10px;color:var(--muted);margin:0}.pw-assistant-avatar{display:grid;place-items:center;position:relative;width:39px;height:39px;border-radius:13px;background:color-mix(in srgb,var(--pw-accent) 14%,var(--panel));color:var(--pw-accent);font-size:27px;font-weight:650;flex-shrink:0}.pw-assistant-avatar i{width:7px;height:7px;background:var(--pw-accent);border-radius:50%;position:absolute;bottom:7px;right:7px}.pw-chat-top-actions{margin-left:auto;display:flex;gap:13px;align-items:center}.pw-chat-top-actions .cc-secondary{min-height:31px;font-size:10px;display:flex;align-items:center;gap:7px}.pw-chat-top-actions .cc-icon{width:16px;height:16px}.pw-message-stream{min-height:0;overflow:auto;overscroll-behavior:contain;padding:22px 6px;scrollbar-width:thin;scrollbar-color:var(--border) transparent;scroll-behavior:smooth}
.pw-product .pw-message-stream .chat-message{border:0;background:transparent;border-radius:0;padding:10px 0;margin:0 0 24px!important;max-width:100%;box-shadow:none;animation:pw-message-in var(--pw-duration) var(--pw-ease)}.pw-product .pw-message-stream .chat-message-user{background:color-mix(in srgb,var(--pw-accent) 12%,var(--panel));border:1px solid color-mix(in srgb,var(--pw-accent) 14%,var(--border));border-radius:17px 17px 4px 17px;width:fit-content;max-width:78%;margin-left:auto!important;padding:13px 17px!important}.pw-message-meta{font-size:9px;color:var(--muted);margin-bottom:7px;letter-spacing:0;text-transform:none}.chat-message-user .pw-message-meta{font-size:8px;margin:0 0 5px;opacity:.7}.pw-message-body{font-size:13px;line-height:1.8;overflow-wrap:anywhere;white-space:normal}.chat-message-user .pw-message-body{white-space:pre-wrap}.pw-product .chat-markdown>p{font-size:13px;color:var(--ink);margin-bottom:14px}.pw-product .chat-markdown li{font-size:13px;color:var(--ink)}.pw-product .chat-markdown h3{font-size:14px;margin:18px 0 9px}.pw-product .chat-markdown pre{border-radius:11px;background:var(--pw-soft);padding:15px;font-size:11px}.pw-product .chat-markdown code{background:var(--cc-soft);border-radius:5px;font-size:11px;padding:2px 5px}.pw-product .chat-markdown pre code{background:none;padding:0}.pw-product .chat-message .note{margin:12px 0 9px;padding:13px 15px;font-size:11px}.pw-product .chat-message .result-summary{font-size:9px;margin:12px 0 8px;line-height:1.6}.pw-message-actions{display:flex;align-items:center;gap:12px;margin:9px 0 0}.pw-message-actions button{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:9px}.pw-message-actions .cc-icon{height:13px;width:13px}.pw-message-actions button:hover{color:var(--ink)}.pw-message-stream figure{margin:12px 0}.pw-message-stream figure img{max-width:100%;max-height:520px;border-radius:15px;object-fit:contain}.pw-message-stream figcaption{margin-top:5px}.pw-product .pw-message-stream .pw-compare-reply{display:inline-block;vertical-align:top;width:calc(50% - 10px);background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:16px!important;margin:0 6px 20px 0!important}.pw-compare-reply .pw-message-meta{color:var(--pw-accent);font-weight:600}.pw-copy-text{width:100%;min-height:260px;resize:vertical}
.pw-message-compose{border:1px solid var(--border);border-radius:17px!important;background:var(--panel);box-shadow:0 5px 25px #0001;padding:13px 14px 8px!important;margin:0!important;min-width:0}.pw-message-compose form{display:block}.pw-product .pw-message-compose textarea{width:100%;border:0;outline:none;background:transparent;resize:vertical;min-height:53px;max-height:190px;padding:3px 4px 8px;font-size:13px;line-height:1.65;box-shadow:none}.pw-product .pw-message-compose textarea:focus{border:0;outline:none}.pw-compose-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.pw-product .pw-compose-tools select{font-size:10px;border-color:transparent;padding:6px 9px;background:var(--pw-soft);max-width:210px;height:33px;cursor:pointer}.pw-attachment-control{cursor:pointer;display:flex;align-items:center;gap:6px;padding:7px;color:var(--muted);border-radius:8px;font-size:10px}.pw-attachment-control:hover{background:var(--pw-soft);color:var(--ink)}.pw-attachment-control .cc-icon{height:18px;width:18px}.pw-send{margin-left:auto;display:grid;place-items:center;background:var(--pw-accent);color:var(--pw-accent-ink);border:0;border-radius:11px;min-width:38px;height:36px}.pw-send .cc-icon{height:19px;width:19px;transform:rotate(-90deg)}.pw-send:hover:not(:disabled){filter:brightness(1.08);transform:translateY(-1px)}.pw-product #chat-error{font-size:11px;margin:5px 0;color:var(--amber)}.pw-product #chat-error:empty{display:none}.pw-compose-caption{font-size:9px!important;color:var(--muted)!important;margin:6px 5px 0!important}.pw-chat-shortcuts{font-size:9px;color:var(--muted);margin:8px 4px 0;text-align:center}.pw-chat-shortcuts button{font-size:9px}.pw-product #chat-attachment figure{margin:6px 0;display:inline-flex;align-items:center;gap:13px}.pw-product #chat-attachment figure img{width:76px;height:62px;object-fit:cover;border-radius:9px}.pw-product #chat-attachment figcaption{font-size:10px}.pw-product #chat-attachment .text-button{font-size:10px;margin:0 8px}.pw-product #action-result:empty{display:none}
.pw-chat-welcome{max-width:670px;margin:30px auto 20px;text-align:center}.pw-welcome-orbit{background:color-mix(in srgb,var(--pw-accent) 10%,var(--panel));color:var(--pw-accent);border:1px solid color-mix(in srgb,var(--pw-accent) 18%,var(--border));display:grid;place-items:center;width:64px;height:64px;border-radius:22px;margin:0 auto 20px;transform:rotate(-5deg)}.pw-welcome-orbit .cc-icon{width:32px;height:32px;transform:rotate(5deg)}.pw-chat-welcome h2{font-size:24px;font-weight:600;letter-spacing:-.7px;line-height:1.25;margin:0 0 10px}.pw-chat-welcome>p{font-size:12px;color:var(--muted);margin:0 0 27px}.pw-starters{display:grid;grid-template-columns:1fr 1fr;gap:10px;text-align:left}.pw-starters button{display:flex;align-items:center;gap:11px;text-align:left;border:1px solid var(--border);background:var(--panel);color:var(--ink);font-size:11px;padding:15px;border-radius:12px;transition:transform var(--pw-duration) var(--pw-ease),border-color var(--pw-duration)}.pw-starters button .cc-icon{width:17px;height:17px;color:var(--pw-accent);flex-shrink:0}.pw-starters button>.cc-icon:last-child{margin-left:auto;width:13px;height:13px;color:var(--muted)}.pw-starters button:hover{transform:translateY(-2px);border-color:var(--pw-accent)}
.pw-chat-task{background:var(--pw-soft);border:1px solid var(--border);border-radius:12px;padding:12px 15px;margin:0 0 12px;font-size:11px}.pw-chat-task .pw-task-heading{display:flex;align-items:center;gap:10px}.pw-task-heading strong{font-size:11px;font-weight:550}.pw-task-heading>span:last-child{margin-left:auto;color:var(--muted);font-size:9px}.pw-chat-task p{margin:7px 0 0;font-size:10px}.pw-chat-task details{font-size:10px;margin-top:7px;color:var(--muted)}.pw-chat-task ol{padding:0 0 0 20px;max-height:150px;overflow:auto;margin:10px 0}.pw-chat-task li{padding:5px 0}.pw-chat-task li small{display:block;color:var(--muted);font-size:8px}.pw-chat-task-terminal{border-color:color-mix(in srgb,var(--pw-accent) 24%,var(--border))}.pw-chat-task-terminal>.text-button{font-size:9px;margin-top:7px}.pw-typing{display:flex;gap:4px;align-items:center;min-width:22px}.pw-typing i{width:4px;height:4px;border-radius:50%;background:var(--pw-accent);animation:pw-typing 1.1s infinite ease-in-out}.pw-typing i:nth-child(2){animation-delay:.15s}.pw-typing i:nth-child(3){animation-delay:.3s}
/* The live reply marker belongs to the transcript, never the fixed composer. */
.pw-message-stream .pw-reply-task{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;align-items:start;min-width:0;width:100%;padding:7px 3px;margin:0 0 12px;color:var(--ink)}
.pw-reply-logo{position:relative;display:grid;place-items:center;width:28px;height:28px;margin-top:8px;border-radius:50%;background:var(--pw-soft);color:var(--pw-accent);font-size:21px;font-weight:650;line-height:1}
.pw-reply-logo::after{content:"";position:absolute;inset:-3px;border:2px solid transparent;border-top-color:var(--pw-accent);border-right-color:color-mix(in srgb,var(--pw-accent) 35%,transparent);border-radius:50%;animation:pw-spin 1.15s linear infinite}
.pw-reply-task-terminal .pw-reply-logo::after{display:none}
.pw-reply-body{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:0 10px;min-width:0}
.pw-reply-status{grid-column:1;grid-row:1;display:flex;flex-direction:column;justify-content:center;min-width:0;min-height:44px}
.pw-reply-status strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:550;line-height:1.45}
.pw-reply-meta{display:flex;gap:8px;min-width:0;color:var(--muted);font-size:11px;line-height:1.5;white-space:nowrap}.pw-reply-meta>span:first-child{overflow:hidden;text-overflow:ellipsis}.pw-reply-elapsed:empty{display:none}
.pw-reply-trace{grid-column:2;grid-row:1;min-width:0;margin:0;color:var(--muted);font-size:11px}
.pw-reply-trace>summary{display:flex;align-items:center;min-height:44px;padding:0 4px;cursor:pointer;white-space:nowrap;color:var(--muted);border-radius:6px}.pw-reply-trace>summary::before{content:"›";margin-right:6px;font-size:16px;transform:rotate(0);transition:transform 150ms ease}.pw-reply-trace[open]>summary::before{transform:rotate(90deg)}
.pw-reply-trace[open]{grid-column:1/-1;grid-row:2;width:100%}.pw-reply-trace ol{max-height:min(170px,25dvh);overflow:auto;overscroll-behavior:contain;padding:0 0 0 18px;margin:0 0 6px}.pw-reply-trace li{padding:5px 0;overflow-wrap:anywhere}.pw-reply-trace li small{display:block;color:var(--muted);font-size:10px;line-height:1.4}
.pw-reply-body>.pw-reply-notice{grid-column:1/-1;margin:3px 0 6px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.pw-reply-body>#pw-chat-task-dismiss{grid-column:2;min-height:44px;margin:0;padding:0 4px;font-size:11px}.pw-reply-body:has(.pw-reply-trace)>#pw-chat-task-dismiss{grid-row:3}
.pw-reply-task-terminal .pw-reply-status strong{font-size:12px;color:var(--muted)}
.pw-message-stream #pw-chat-live-replies{min-width:0;width:100%}.pw-message-stream .pw-streaming-message{min-width:0;padding:10px 3px;margin:0 0 12px;color:var(--ink)}
.pw-streaming-message .pw-message-meta{color:var(--muted);font-size:11px;margin-bottom:7px}.pw-live-text{font-size:16px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.pw-stream-delta{animation:none}.pw-stream-word{animation:pw-word-in 220ms cubic-bezier(.2,.7,.2,1) both}@keyframes pw-word-in{from{opacity:.14}to{opacity:1}}
body.pw-product #chat-messages .chat-message.pw-stream-settled{animation:none!important}
:root[data-reduced-motion="true"] .pw-stream-word,:root[data-motion="reduced"] .pw-stream-word{animation:none!important}
@media(prefers-reduced-motion:reduce){:root:not([data-motion="full"]) .pw-stream-word{animation:none!important}}
.pw-stream-cursor{display:inline-block;width:2px;height:1em;background:currentColor;vertical-align:-.12em;margin-left:3px;animation:pw-cursor 850ms ease-in-out infinite}
@keyframes pw-token-in{from{opacity:.35}to{opacity:1}}@keyframes pw-cursor{0%,100%{opacity:.35}50%{opacity:1}}
@media(max-width:650px){.pw-message-stream .pw-reply-task{gap:9px;padding:4px 1px;margin-bottom:8px}.pw-reply-body{gap:0 6px}.pw-reply-status strong{font-size:12px}.pw-reply-trace .pw-phone-trace-label{display:inline}.pw-reply-trace .pw-trace-label{display:none}}

/* Rich native detail surfaces and resource tabs. */
.pw-workspace-tabs{display:flex;align-items:center;gap:5px;overflow:auto;border-bottom:1px solid var(--border);padding:4px 0 10px;margin:0 0 17px;scrollbar-width:none}.pw-workspace-tabs button{border:0;background:transparent;color:var(--muted);border-radius:8px;padding:8px 12px;font-size:11px;white-space:nowrap;display:flex;align-items:center;gap:6px}.pw-workspace-tabs button .cc-icon{width:15px;height:15px}.pw-workspace-tabs button[aria-pressed="true"]{background:color-mix(in srgb,var(--pw-accent) 12%,transparent);color:var(--pw-accent);font-weight:600}.pw-workspace-tabs button:hover{background:var(--cc-soft);color:var(--ink)}.pw-resource-heading{display:flex;align-items:center;gap:15px;justify-content:space-between;margin:23px 0 17px}.pw-resource-heading span{font-size:10px;color:var(--muted)}.pw-table{overflow:auto;border:1px solid var(--border);border-radius:12px;margin:12px 0 24px}.pw-table table{border-collapse:collapse;width:100%;font-size:11px;text-align:left}.pw-table th{font-size:9px;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);font-weight:500;background:var(--pw-soft);padding:11px 15px;white-space:nowrap}.pw-table td{padding:12px 15px;border-top:1px solid var(--border);max-width:350px;overflow-wrap:anywhere;color:var(--ink)}.pw-table tr:hover td{background:color-mix(in srgb,var(--pw-soft) 50%,transparent)}
.cc-dialog{background:var(--panel);border-radius:19px;border-color:var(--border);box-shadow:var(--pw-shadow);animation:pw-dialog-in var(--pw-duration) var(--pw-ease);font-size:13px}.cc-dialog::backdrop{background:#05090b9c;backdrop-filter:blur(4px);animation:pw-backdrop-in var(--pw-duration) ease-out}.cc-dialog .cc-dialog-head{margin-bottom:22px;padding-bottom:16px}.cc-dialog .cc-dialog-head h2{font-size:18px;font-weight:600;letter-spacing:-.4px}.cc-dialog .cc-close{border-radius:9px}.cc-dialog .cc-resource-grid{gap:13px}.cc-dialog .cc-resource{border-radius:13px;background:var(--pw-soft);padding:19px}.cc-dialog .cc-resource strong{font-size:25px;font-weight:550;letter-spacing:-.6px}.cc-dialog .cc-resource p{font-size:10px}.cc-dialog .cc-meter{accent-color:var(--pw-accent)}.cc-dialog .cc-detail-list{font-size:11px;gap:10px 17px}.cc-dialog .note{background:var(--pw-soft);border-radius:12px}.cc-dialog .cc-command-output{border-radius:11px;font-size:11px;line-height:1.8;padding:16px;background:var(--bg)}.cc-dialog .result-summary{font-size:10px;line-height:1.6}.cc-side-panel{border-radius:20px 0 0 20px;animation:pw-panel-in var(--pw-duration) var(--pw-ease)}.pw-native-workspace{width:min(1040px,calc(100vw - 34px));max-width:1040px;padding:25px}.pw-workspace-identity{display:flex;align-items:center;gap:13px;margin:0 0 22px}.pw-workspace-identity>.pw-app-art,.pw-workspace-identity>.pw-vm-glyph{width:43px;height:43px;object-fit:contain;background:var(--pw-soft);border-radius:12px;padding:6px}.pw-workspace-identity strong{font-size:17px}.pw-workspace-identity p{font-size:10px;color:var(--muted);margin:3px 0 0}.pw-workspace-identity>.chip{margin-left:auto}.pw-workspace-bottom{display:flex;gap:15px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--border);padding:17px 0;margin-top:22px;color:var(--muted);font-size:10px}.pw-workspace-bottom>span{margin-left:auto}.pw-live-toggle{display:flex;align-items:center;gap:6px;font-size:10px}.pw-live-toggle input{accent-color:var(--pw-accent)}.pw-log-output{max-height:430px;overflow:auto}.pw-native-workspace form label{display:block;font-size:11px;margin-bottom:7px;color:var(--muted)}.pw-native-workspace form textarea{width:100%;resize:vertical}.pw-console-welcome{text-align:center;padding:35px 20px}.pw-console-welcome>.cc-icon{width:38px;height:38px;color:var(--pw-accent);margin-bottom:14px}.pw-console-welcome h3{font-size:20px;letter-spacing:-.5px}.pw-console-welcome>p{font-size:12px;color:var(--muted);max-width:560px;margin:10px auto 23px}.pw-console-welcome .cc-detail-actions{justify-content:center}.pw-console-dialog{width:min(1400px,calc(100vw - 24px));height:min(900px,calc(100dvh - 24px));max-width:none;max-height:none;display:flex;flex-direction:column;padding:18px}.pw-console-dialog:not([open]){display:none}.pw-console-dialog .cc-dialog-head{flex-shrink:0;margin-bottom:7px;padding-bottom:10px}.pw-console-frame{width:100%;flex:1;min-height:320px;border:1px solid var(--border);background:#090b0e;border-radius:11px}.pw-console-dialog>p{flex-shrink:0}
.pw-vm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:17px}.pw-vm-open{display:grid;grid-template-columns:1fr auto;text-align:left;background:transparent;border:0;color:var(--ink);width:100%;padding:22px}.pw-vm-glyph{display:grid;place-items:center;width:43px;height:43px;border-radius:12px;background:color-mix(in srgb,var(--pw-accent) 9%,var(--pw-soft));color:var(--pw-accent)}.pw-vm-glyph .cc-icon{width:25px;height:25px}.pw-vm-open>.chip{align-self:start;margin-top:3px}.pw-vm-open strong{font-size:17px;grid-column:1/-1;font-weight:600;letter-spacing:-.4px;margin:18px 0 4px}.pw-vm-open small{color:var(--muted);font-size:10px;grid-column:1/-1}.pw-open-caption{display:flex;align-items:center;justify-content:space-between;gap:13px;grid-column:1/-1;border-top:1px solid var(--border);margin-top:18px;padding-top:13px;color:var(--muted);font-size:9px}.pw-open-caption .cc-icon{width:14px;height:14px}.pw-backup-form{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:var(--pw-soft);padding:13px;border-radius:12px;margin-bottom:25px}.pw-native-workspace .pw-backup-form label{margin:0}.pw-backup-form select{max-width:300px}.pw-backup-form>p{width:100%;font-size:11px;margin:0}
.pw-loading{display:flex;align-items:center;justify-content:center;gap:11px;min-height:115px;color:var(--muted);font-size:12px}.pw-spinner{display:inline-block;width:15px;height:15px;border-radius:50%;border:2px solid var(--border);border-top-color:var(--pw-accent);animation:pw-spin .85s linear infinite;flex-shrink:0}.pw-task{display:flex;align-items:flex-start;gap:13px;border-bottom:1px solid var(--border);padding:15px 2px}.pw-task strong{font-size:12px;font-weight:550}.pw-task p{font-size:10px;color:var(--muted);margin:4px 0 0;overflow-wrap:anywhere}.pw-task .pw-spinner{margin-top:3px}.pw-task-state{width:19px;height:19px;display:grid;place-items:center;border-radius:50%;background:var(--pw-soft);color:var(--pw-accent);font-size:11px;flex-shrink:0}.pw-task-heading .cc-icon{width:17px;height:17px}

/* ROM browsing uses real game artwork from the authenticated TC2 proxy. */
.pw-rom-hero{display:flex;align-items:center;justify-content:space-between;gap:25px;background:linear-gradient(115deg,var(--panel),color-mix(in srgb,var(--pw-accent) 8%,var(--panel)));border:1px solid var(--border);border-radius:20px;padding:30px 32px;margin:0 0 24px;overflow:hidden}.pw-rom-hero h1{font-size:35px;letter-spacing:-1.3px;margin-bottom:11px}.pw-rom-hero p{font-size:12px;color:var(--muted);max-width:580px;margin-bottom:17px}.pw-rom-totals{display:flex;align-items:center;gap:17px;flex-wrap:wrap}.pw-rom-totals strong{color:var(--pw-accent);font-size:17px;font-weight:550;letter-spacing:-.4px}.pw-rom-totals span{font-size:10px;color:var(--muted)}.pw-rom-totals .pw-loading{min-height:35px;justify-content:flex-start;font-size:11px}.pw-rom-hero-art{display:grid;place-items:center;width:140px;height:140px;border-radius:40px;color:var(--pw-accent);background:color-mix(in srgb,var(--pw-accent) 8%,transparent);transform:rotate(-8deg);flex-shrink:0}.pw-rom-hero-art .cc-icon{width:90px;height:90px;stroke-width:1.2}.pw-rom-systems{display:flex;gap:8px;overflow:auto;padding:5px 0 15px;margin:0 0 8px;scrollbar-width:thin}.pw-system-chip{flex-shrink:0;display:flex;align-items:center;gap:9px;background:var(--panel);border:1px solid var(--border);border-radius:9px;color:var(--muted);padding:9px 12px;font-size:10px}.pw-system-chip strong{font-weight:500;color:var(--ink)}.pw-system-chip span{font-size:9px;opacity:.6}.pw-system-chip[aria-pressed="true"]{border-color:var(--pw-accent);background:color-mix(in srgb,var(--pw-accent) 10%,var(--panel))}.pw-rom-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:19px}.pw-rom-card{border:1px solid var(--border);border-radius:14px;overflow:hidden;background:var(--panel);position:relative;transition:transform var(--pw-duration) var(--pw-ease),box-shadow var(--pw-duration)}.pw-rom-card:hover{transform:translateY(-4px) rotate(-.3deg);box-shadow:var(--pw-shadow)}.pw-rom-open{display:block;border:0;background:transparent;color:var(--ink);width:100%;padding:0;text-align:left}.pw-rom-art{display:block;width:100%;height:218px;object-fit:contain;background:color-mix(in srgb,var(--pw-soft) 65%,#000);padding:13px}.pw-rom-art-empty{display:grid;place-items:center;background:var(--pw-soft);color:var(--muted)}.pw-rom-art-empty .cc-icon{width:58px;height:58px;stroke-width:1}.pw-rom-open>span:last-child{display:block;padding:13px 14px 16px}.pw-rom-open strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:12px;line-height:1.55;margin-bottom:7px;min-height:37px}.pw-rom-open small{display:block;font-size:9px;color:var(--muted)}.pw-rom-card .cc-favorite{top:10px;right:9px;position:absolute;background:color-mix(in srgb,var(--panel) 80%,transparent);backdrop-filter:blur(5px);width:30px;height:30px;border-radius:9px}.pw-rom-detail-grid{display:grid;grid-template-columns:260px 1fr;gap:27px;padding-top:3px}.pw-rom-detail-art{height:auto;min-height:280px;max-height:440px;object-fit:contain;border-radius:12px;padding:20px}.pw-rom-detail-grid h3{font-size:25px;letter-spacing:-.7px;margin:8px 0 15px}.pw-rom-detail-grid p{font-size:12px;color:var(--muted);line-height:1.7}.pw-rom-detail-grid .cc-detail-list{font-size:10px;margin:20px 0}.pw-rom-detail-grid .cc-detail-actions button{display:inline-flex;align-items:center;gap:7px}.pw-rom-detail-grid .cc-detail-actions .cc-icon{width:17px;height:17px}.pw-export-progress{border:1px solid var(--border);padding:16px;border-radius:13px;background:var(--pw-soft);margin-top:17px}.pw-export-progress strong{font-size:12px;display:block;margin-bottom:10px}.pw-export-progress>span{font-size:10px;color:var(--muted)}.pw-export-progress .pw-loading{min-height:50px;font-size:10px}.pw-rom-player-frame{min-height:430px}

@keyframes pw-spin{to{transform:rotate(360deg)}}@keyframes pw-typing{0%,60%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-3px);opacity:1}}@keyframes pw-message-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}@keyframes pw-dialog-in{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:none}}@keyframes pw-panel-in{from{opacity:0;transform:translateX(17px)}to{opacity:1;transform:none}}@keyframes pw-backdrop-in{from{opacity:0}to{opacity:1}}@keyframes pw-tap{50%{transform:scale(.975)}to{transform:scale(1)}}.pw-tap{animation:pw-tap 180ms var(--pw-ease)}.pw-view-enter{animation:pw-message-in var(--pw-duration) var(--pw-ease)}
@media(min-width:1700px){.pw-product main{padding-top:44px}.pw-product .cc-machine-grid,.pw-product .cc-docker-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}.pw-message-stream{padding:28px 20px}.pw-chat-workspace{padding-left:44px;padding-right:44px}}
@media(max-width:1200px){.pw-product .sidebar{width:217px;padding:19px 12px 13px}.pw-product .workspace{margin-left:217px}.pw-product .topbar{padding:0 23px}.pw-product main{padding:27px 24px}.pw-product .mode{display:none}.pw-chat-workspace{padding-left:24px;padding-right:24px}.pw-rom-hero h1{font-size:29px}.pw-rom-hero-art{width:110px;height:110px}.pw-product .cc-machine-grid,.pw-product .cc-docker-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}}
@media(max-width:850px){.pw-product .sidebar{width:185px;padding:16px 9px}.pw-product .workspace{margin-left:185px}.pw-product .brand{font-size:23px;gap:9px;margin-left:8px}.pw-product .brand-mark{width:35px;height:35px;font-size:27px}.pw-product nav a{padding:8px 10px;font-size:11px;gap:9px}.pw-product nav a .cc-nav-label{font-size:11px}.pw-product .cc-conversations{max-height:130px}.pw-product .topbar{padding:0 17px}.pw-product .cc-palette-trigger{font-size:0;padding:8px}.pw-product .cc-palette-trigger kbd{font-size:9px}.pw-product main{padding:24px 20px}.pw-product .page-head .head-tag{display:none}.pw-product h1{font-size:26px}.pw-chat-workspace{padding:0 17px 10px}.pw-chat-welcome h2{font-size:21px}.pw-starters{gap:8px}.pw-starters button{font-size:10px;padding:12px;gap:8px}.pw-product .pw-compose-tools select{max-width:166px;font-size:9px}.pw-rom-hero{padding:24px}.pw-rom-hero-art{display:none}.pw-rom-detail-grid{grid-template-columns:180px 1fr;gap:20px}.pw-rom-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:13px}.pw-rom-art{height:190px}.pw-native-workspace{padding:20px}.pw-product .pw-message-stream .pw-compare-reply{width:100%;display:block}}
@media(max-width:650px){.pw-product .sidebar{position:sticky;inset:auto;top:0;width:100%;height:auto;max-height:none;padding:0;background:var(--panel);border-right:0;border-bottom:1px solid var(--border);z-index:15;display:block}.pw-product .brand{display:none}.pw-product nav{display:flex;flex-direction:row;flex-wrap:nowrap;overflow:auto;min-height:0;gap:3px;padding:8px;scrollbar-width:none}.pw-product nav a{flex-shrink:0;flex-direction:column;justify-content:center;gap:4px;padding:8px 11px;min-width:59px;min-height:52px;border-radius:9px}.pw-product nav .cc-icon{width:18px;height:18px}.pw-product nav a .cc-nav-label{font-size:9px}.pw-product nav small{display:none}.pw-nav-section,.pw-product nav .cc-reference,.pw-product .cc-conversations,.pw-product .sidebar-bottom,.pw-product .cc-new-chat{display:none!important}.pw-product .workspace{margin:0}.pw-product .topbar{height:47px;padding:0 15px;gap:7px}.pw-product .breadcrumb{font-size:10px}.pw-product .breadcrumb span{margin:0 6px}.pw-product .cc-palette-trigger{padding:6px}.pw-activity-button{padding:5px;font-size:9px;gap:5px}.pw-activity-button>span:last-child{display:none}.pw-product .cc-attention-label{display:none}.pw-product .cc-attention-button{font-size:10px;min-height:25px;padding:5px 7px}.pw-product main{padding:24px 16px}.pw-product .page-head{margin-bottom:18px}.pw-product h1{font-size:26px;max-width:95%}.pw-product .intro{font-size:11px}.pw-product .cc-filters{padding:10px;gap:8px;flex-wrap:wrap}.pw-product .cc-filters .cc-search{flex:1 0 100%}.pw-product .cc-filters select{flex:1;width:auto;max-width:100%;font-size:10px}.pw-product .cc-machine-grid,.pw-product .cc-docker-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pw-product .cc-machine-open{padding:16px 13px}.pw-product .cc-machine-open strong{font-size:14px}.pw-product .cc-platform-glyph{height:39px;width:39px}.pw-product .cc-machine-address{font-size:9px}.pw-product .cc-machine-roles{font-size:9px;min-height:36px}.pw-product .cc-machine-roles,.pw-product .cc-machine-address{overflow-wrap:anywhere}.pw-product .cc-card-check{font-size:8px}.pw-product .cc-container-card>header{padding:14px 12px 0;gap:7px;flex-wrap:wrap}.pw-product .cc-container-glyph{height:32px;width:32px}.pw-product .cc-container-card header .chip{font-size:8px}.pw-product .cc-container-open{padding:14px 12px}.pw-product .cc-container-open strong{font-size:13px;overflow-wrap:anywhere}.pw-product .cc-container-open span,.pw-product .cc-container-open p{font-size:9px}.pw-product .cc-container-actions{padding:10px 12px;gap:5px}.pw-product .cc-container-actions button{padding:5px 7px;font-size:9px;min-height:28px}.pw-product .cc-favorite{width:25px;height:25px}.pw-vm-grid{grid-template-columns:minmax(0,1fr)}.pw-vm-open{padding:19px}.pw-product .mc-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.pw-product .mc-workspace-toolbar{gap:9px;flex-wrap:wrap}.pw-product .mc-segment{gap:3px}.pw-product .mc-segment button{font-size:10px;padding:7px 10px}.pw-product .mc-connections{gap:7px}.pw-product .mc-connection{padding:10px 8px;gap:6px}.pw-product .mc-connection .pw-app-art{width:20px;height:20px}.pw-product .mc-connection strong{font-size:10px}.pw-product .mc-connection small{font-size:8px}.pw-product .mc-download{padding:15px}.pw-product .mc-download-heading strong{font-size:12px}.pw-product .mc-app-card{padding:20px}.pw-product footer{padding:18px 16px}.pw-product .cc-command-layout{grid-template-columns:minmax(0,1fr)}
 body.pw-product[data-view="chat"] main{height:calc(100dvh - 123px);padding:0}.pw-chat-workspace{padding:0 12px 8px}.pw-chat-top{padding:14px 3px;gap:9px}.pw-chat-top h1{font-size:14px;letter-spacing:-.2px}.pw-chat-top p{font-size:8px}.pw-assistant-avatar{height:33px;width:33px;border-radius:11px;font-size:23px}.pw-assistant-avatar i{height:6px;width:6px;right:6px;bottom:6px}.pw-chat-top-actions{gap:8px}.pw-chat-top-actions .cc-secondary{padding:6px 9px;min-height:29px;font-size:9px}.pw-chat-top-actions #chat-compose{display:none}.pw-message-stream{padding:17px 3px}.pw-chat-welcome{margin:23px auto 15px}.pw-welcome-orbit{height:52px;width:52px;border-radius:18px;margin-bottom:15px}.pw-welcome-orbit .cc-icon{height:27px;width:27px}.pw-chat-welcome h2{font-size:21px;max-width:260px;margin-left:auto;margin-right:auto}.pw-chat-welcome>p{font-size:11px;max-width:300px;margin-left:auto;margin-right:auto;margin-bottom:21px}.pw-starters{gap:7px}.pw-starters button{font-size:9px;padding:12px 10px;gap:7px}.pw-starters button .cc-icon{width:15px;height:15px}.pw-starters button>.cc-icon:last-child{display:none}.pw-product .pw-message-stream .chat-message-user{max-width:88%;padding:12px 14px!important}.pw-product .chat-markdown>p,.pw-product .chat-markdown li{font-size:12px}.pw-message-body{font-size:12px}.pw-message-compose{padding:11px 10px 7px!important;border-radius:15px!important}.pw-product .pw-message-compose textarea{font-size:12px;min-height:50px}.pw-compose-tools{gap:5px}.pw-attachment-control{padding:5px;font-size:9px}.pw-attachment-control>span{display:none}.pw-product .pw-compose-tools select{font-size:9px;padding:5px 7px;max-width:174px;height:31px}.pw-product .pw-compose-tools #chat-mode{max-width:120px}.pw-send{min-width:33px;height:32px;border-radius:9px}.pw-compose-caption{font-size:8px!important;margin-top:5px!important}.pw-chat-shortcuts{font-size:8px;margin:5px 0 0}.pw-chat-shortcuts button{font-size:8px}.pw-chat-task{padding:9px 12px;margin-bottom:9px}.pw-task-heading strong{font-size:10px}.pw-chat-task ol{max-height:100px}.pw-chat-task details{font-size:9px}.pw-chat-task p{font-size:9px}
 .cc-dialog{padding:19px;border-radius:17px;max-width:calc(100vw - 20px);max-height:calc(100dvh - 24px)}.cc-side-panel{width:100%;border-radius:17px 0 0 17px}.pw-native-workspace{padding:18px;width:calc(100vw - 20px)}.cc-dialog .cc-dialog-head h2{font-size:17px}.pw-workspace-tabs{gap:2px;margin-bottom:13px}.pw-workspace-tabs button{font-size:10px;padding:8px 10px}.pw-workspace-identity{gap:10px;margin-bottom:16px}.pw-workspace-identity strong{font-size:14px}.pw-workspace-identity p{font-size:9px}.cc-dialog .cc-resource-grid{grid-template-columns:minmax(0,1fr);gap:9px}.cc-dialog .cc-resource{padding:15px}.cc-dialog .cc-resource strong{font-size:23px}.pw-table th,.pw-table td{padding:10px 12px}.pw-table td{font-size:10px}.pw-workspace-bottom{gap:10px;font-size:9px}.pw-console-dialog{height:calc(100dvh - 16px);max-height:none;width:calc(100vw - 12px);max-width:none;padding:12px}.pw-console-frame{min-height:270px}.pw-rom-hero{padding:22px 20px;border-radius:17px}.pw-rom-hero h1{font-size:28px;letter-spacing:-1px}.pw-rom-hero p{font-size:11px}.pw-rom-totals{gap:10px}.pw-rom-totals strong{font-size:15px}.pw-rom-totals span{font-size:9px}.pw-rom-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pw-rom-art{height:191px;padding:11px}.pw-rom-open strong{font-size:11px}.pw-rom-open>span:last-child{padding:12px}.pw-rom-open small{font-size:8px}.pw-rom-detail-grid{grid-template-columns:minmax(0,1fr);gap:20px}.pw-rom-detail-art{width:220px;margin:0 auto;height:270px;min-height:0}.pw-rom-detail-grid h3{font-size:23px}.pw-resource-heading{flex-wrap:wrap;gap:7px}
}
/* Override the earlier card-grid chat layout: the stream alone owns scrolling. */
.pw-product .sidebar{overflow-x:hidden}.pw-product .cc-new-chat{width:auto;align-self:stretch}.pw-product .pw-message-stream#chat-messages{display:block;margin:0;max-height:none;gap:0;padding-right:6px}.pw-product #chat-messages .chat-message{overflow:visible;min-height:0}.pw-product .pw-message-compose #assistant-form{display:block}.pw-product #assistant-form #assistant-prompt{min-height:53px;border:0;background:transparent;padding:3px 4px 8px;outline:none;border-radius:0;width:100%;box-shadow:none}.pw-product .pw-message-stream .chat-message-user{background:color-mix(in srgb,var(--pw-accent) 12%,var(--panel))!important;border-color:color-mix(in srgb,var(--pw-accent) 14%,var(--border))!important}.pw-product .pw-message-stream .chat-message-user .pw-message-body{font-size:13px}

/* Main-area recent history. Tab changes preserve the live composer and request. */
.pw-product .cc-conversations{display:none!important}
.pw-chat-workspace{grid-template-rows:auto minmax(0,1fr)}
.pw-chat-panel{grid-row:2;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto auto;min-height:0;min-width:0}
.pw-chat-panel:not([hidden]),.pw-conversations-panel:not([hidden]){animation:pw-message-in var(--pw-duration) var(--pw-ease)}
.pw-chat-tabbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:15px 6px 0;border-bottom:1px solid var(--border);min-width:0}
.pw-background-jobs{display:flex;flex-wrap:wrap;gap:7px;width:100%;padding-bottom:10px}
.pw-background-job{display:flex;align-items:center;gap:7px;min-width:0;max-width:100%;background:var(--panel);border:1px solid var(--border);border-radius:9px;padding:8px 10px;color:var(--muted);font-size:10px;text-align:left}
.pw-background-job.active{border-color:color-mix(in srgb,var(--pw-accent) 40%,var(--border))}.pw-background-job strong{color:var(--pw-accent);font-size:10px;white-space:nowrap}.pw-background-job>span:last-of-type{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.pw-background-job .pw-spinner,.pw-background-job .cc-icon{width:13px;height:13px;flex-shrink:0}.pw-job-discovery-error{font-size:10px;color:var(--amber);line-height:1.5}
.pw-chat-tabs{display:flex;gap:5px;align-self:stretch;min-width:0}
.pw-chat-tabs button{display:flex;align-items:center;gap:8px;position:relative;background:transparent;border:0;border-radius:8px 8px 0 0;color:var(--muted);padding:12px 14px 14px;font-size:12px;font-weight:600;min-height:44px;white-space:nowrap}
.pw-chat-tabs button .cc-icon{width:17px;height:17px}
.pw-chat-tabs button[aria-selected="true"]{color:var(--pw-accent);background:color-mix(in srgb,var(--pw-accent) 7%,transparent)}
.pw-chat-tabs button[aria-selected="true"]:after{content:"";position:absolute;bottom:-1px;left:12px;right:12px;height:2px;background:var(--pw-accent);border-radius:2px}
.pw-chat-tabs button:focus-visible,.pw-conversation-card:focus-visible{outline:2px solid var(--pw-accent);outline-offset:-3px}
.pw-chat-tabs small{font-size:9px;background:var(--cc-soft);border-radius:5px;padding:2px 5px;color:var(--muted)}
.pw-chat-tabbar #new-chat{margin:0 0 8px auto;display:flex;align-items:center;gap:7px;white-space:nowrap;min-height:34px;font-size:11px}
.pw-chat-tabbar #new-chat .cc-icon{width:16px;height:16px}
.pw-conversations-panel{grid-row:2;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;padding:30px 6px 24px;scrollbar-width:thin;scrollbar-color:var(--border) transparent}
.pw-history-heading{display:flex;align-items:center;gap:20px;margin-bottom:22px}
.pw-history-heading h1{font-size:25px;margin:5px 0 9px;letter-spacing:-.6px}
.pw-history-heading p:last-child{font-size:12px;line-height:1.6;color:var(--muted);margin:0}
.pw-history-heading .eyebrow{font-size:9px;margin:0}
.pw-history-heading button{display:flex;align-items:center;gap:7px;margin-left:auto;flex-shrink:0}
.pw-history-heading button .cc-icon,.pw-history-heading .pw-spinner{width:15px;height:15px}
.pw-history-search{display:flex;align-items:center;gap:10px;border:1px solid var(--border);background:var(--panel);border-radius:12px;padding:0 15px;min-height:48px}
.pw-history-search .cc-icon{width:19px;height:19px;color:var(--muted);flex-shrink:0}
.pw-product .pw-history-search input{border:0;background:transparent;border-radius:0;font-size:13px;padding:14px 0;flex:1;width:100%;outline-offset:3px}
.pw-history-status{font-size:10px;line-height:1.6;color:var(--muted);margin:14px 3px}
.pw-history-error,.pw-history-busy{padding:13px 15px;border:1px solid var(--border);border-radius:10px;background:var(--pw-soft);font-size:11px;line-height:1.6;margin:13px 0}
.pw-history-error{color:var(--amber);border-color:color-mix(in srgb,var(--amber) 35%,var(--border))}
.pw-conversation-results{display:grid;gap:10px;min-width:0}
.pw-product .pw-conversation-card{display:flex;align-items:center;gap:16px;width:100%;min-width:0;text-align:left;padding:20px 21px;color:var(--ink);border:1px solid var(--border);border-radius:14px;background:var(--panel);transition:background var(--pw-duration),border-color var(--pw-duration),transform var(--pw-duration) var(--pw-ease)}
.pw-conversation-card:hover:not(:disabled){background:var(--pw-elevated);transform:translateY(-1px)}
.pw-conversation-card.active{border-color:color-mix(in srgb,var(--pw-accent) 40%,var(--border))}
.pw-conversation-card>.cc-icon{width:21px;height:21px;color:var(--pw-accent);flex-shrink:0}
.pw-conversation-copy{display:flex;flex-direction:column;gap:7px;min-width:0;flex:1}
.pw-conversation-copy strong{font-size:13px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.pw-conversation-preview{font-size:11px;color:var(--muted);line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.pw-conversation-meta{display:flex;gap:14px;flex-wrap:wrap;font-size:9px;color:var(--muted);line-height:1.5}
.pw-conversation-open{margin-left:auto;color:var(--pw-accent);font-size:9px;flex-shrink:0}
.pw-conversation-open .cc-icon{width:18px;height:18px}
.pw-history-empty{text-align:center;padding:60px 24px;background:var(--panel);border:1px dashed var(--border);border-radius:14px}
.pw-history-empty>.cc-icon{width:30px;height:30px;color:var(--muted);margin-bottom:12px}
.pw-history-empty h2{font-size:17px;margin:0 0 10px}.pw-history-empty p{font-size:12px;color:var(--muted);line-height:1.7;margin:0 auto;max-width:450px}
@media(max-width:850px){.pw-chat-tabbar{gap:10px;padding-top:11px}.pw-chat-tabs button{font-size:11px;padding:11px 10px 13px;gap:6px}.pw-chat-tabbar #new-chat{font-size:10px;padding:7px 10px}.pw-history-heading h1{font-size:22px}.pw-conversations-panel{padding-top:24px}}
@media(max-width:650px){.pw-chat-tabbar{padding:9px 0 0;gap:7px}.pw-chat-tabs{gap:2px}.pw-chat-tabs button{font-size:10px;padding:10px 7px 12px;gap:5px}.pw-chat-tabs button>.cc-icon{width:14px;height:14px}.pw-chat-tabs small{font-size:8px;padding:1px 4px}.pw-chat-tabbar #new-chat{font-size:9px;gap:4px;padding:6px 7px;min-height:31px}.pw-chat-tabbar #new-chat .cc-icon{display:none}.pw-conversations-panel{padding:23px 1px 16px}.pw-history-heading{gap:12px;align-items:flex-start;margin-bottom:18px}.pw-history-heading h1{font-size:22px;line-height:1.2;margin:6px 0 8px}.pw-history-heading p:last-child{font-size:10px}.pw-history-heading button{font-size:9px;padding:7px 8px;min-height:31px}.pw-history-heading button .cc-icon{display:none}.pw-history-search{padding:0 12px;min-height:43px}.pw-product .pw-history-search input{font-size:12px;padding:12px 0}.pw-history-status{font-size:9px}.pw-product .pw-conversation-card{padding:17px 13px;gap:11px}.pw-conversation-card>.cc-icon{width:17px;height:17px}.pw-conversation-copy strong{font-size:12px}.pw-conversation-preview{font-size:10px}.pw-conversation-meta{font-size:8px;gap:8px}.pw-history-empty{padding:40px 16px}.pw-history-empty h2{font-size:16px}.pw-history-empty p{font-size:11px}}
:root[data-reduced-motion="true"] *, :root[data-reduced-motion="true"] *::before, :root[data-reduced-motion="true"] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){:root:not([data-motion="full"]) *,:root:not([data-motion="full"]) *::before,:root:not([data-motion="full"]) *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}:root:not([data-motion="full"]) .pw-rom-card:hover,:root:not([data-motion="full"]) .cc-machine-card:hover,:root:not([data-motion="full"]) .cc-container-card:hover,:root:not([data-motion="full"]) .pw-vm-card:hover,:root:not([data-motion="full"]) .pw-starters button:hover,:root:not([data-motion="full"]) .mc-title-card:hover,:root:not([data-motion="full"]) .mc-app-card:hover{transform:none}}
:root[data-reduced-motion="true"] .pw-rom-card:hover,:root[data-reduced-motion="true"] .cc-machine-card:hover,:root[data-reduced-motion="true"] .cc-container-card:hover,:root[data-reduced-motion="true"] .pw-vm-card:hover,:root[data-reduced-motion="true"] .pw-starters button:hover,:root[data-reduced-motion="true"] .mc-title-card:hover,:root[data-reduced-motion="true"] .mc-app-card:hover,:root[data-reduced-motion="true"] nav a:hover{transform:none}
:root[data-reduced-motion="true"] .pw-conversation-card:hover{transform:none}

.pw-system-art{width:21px;height:21px;object-fit:contain;margin-right:2px}.cc-platform-glyph .pw-app-art{width:31px;height:31px}.pw-chat-task-terminal{padding:9px 14px}.pw-chat-task-terminal .pw-task-heading{display:none}.pw-chat-task-terminal details{display:inline-block;margin:0}.pw-chat-task-terminal>.text-button{float:right;margin:0;font-size:9px}.pw-chat-task-terminal:has(>p) .pw-task-heading{display:flex}.pw-chat-task-terminal:has(>p) details{margin-top:7px}

/* Bounded native Docker inventory, exact resource inspections, and current events. */
.pw-docker-card-tools{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:8px 2px 10px;color:var(--muted);font-size:10px}.pw-docker-card-tools label{display:flex;gap:8px;align-items:center;white-space:nowrap}.pw-docker-card-tools select{font-size:10px;padding:7px 9px}.pw-container-access{padding:11px 0 0;margin-top:12px;border-top:1px solid var(--border);font-size:9px;color:var(--muted);line-height:1.6}.pw-container-access>span{display:flex;gap:6px;align-items:center}.pw-container-access .cc-icon{width:12px;height:12px;flex:none}.pw-container-access button{font-size:9px;display:block;margin-top:7px}.pw-docker-resource-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--panel);margin-bottom:12px}.pw-docker-resource-tools>.cc-search{flex:1;min-width:170px}.pw-docker-resource-tools select{font-size:10px;padding:9px}.pw-docker-resource-tools>span{font-size:9px;color:var(--muted)}.pw-docker-resource-list{border:1px solid var(--border);border-radius:13px;overflow:auto;max-height:560px;scrollbar-width:thin;overscroll-behavior:contain}.pw-docker-resource-list:empty{display:none}.pw-product .pw-docker-resource-row{display:flex;width:100%;gap:16px;align-items:center;padding:16px 18px;border:0;border-bottom:1px solid var(--border);background:var(--panel);text-align:left;color:var(--ink);min-width:0;transition:background 150ms}.pw-docker-resource-row:last-child{border-bottom:0}.pw-docker-resource-row:hover{background:var(--pw-soft)}.pw-docker-resource-row>.cc-icon:first-child{width:21px;height:21px;color:var(--pw-accent);flex:none}.pw-docker-resource-row>span{flex:1;min-width:0}.pw-docker-resource-row strong{display:block;font-size:12px;overflow-wrap:anywhere;font-weight:550;line-height:1.6}.pw-docker-resource-row small{display:block;font-size:9px;color:var(--muted);overflow-wrap:anywhere;margin-top:5px;line-height:1.6}.pw-docker-resource-row>.cc-icon:last-child{width:15px;height:15px;color:var(--muted);flex:none}.pw-image-layers{padding:12px;border:1px solid var(--border);border-radius:9px;margin-top:15px}.pw-image-layers summary{font-size:11px;cursor:pointer}.pw-image-layers .pw-table{margin-top:10px;max-height:230px;overflow:auto}.pw-docker-resource-dialog .ex-detail-grid dd{overflow-wrap:anywhere}.pw-docker-resource-dialog .ex-detail-actions button{display:flex;gap:8px;align-items:center}
@media(max-width:650px){.pw-docker-resource-tools{gap:8px;padding:10px}.pw-docker-resource-tools>.cc-search{flex:1 0 100%}.pw-docker-resource-tools>span{font-size:8px;flex:1}.pw-docker-resource-row{padding:12px!important;gap:11px!important}.pw-docker-resource-row strong{font-size:10px}.pw-docker-resource-row small{font-size:8px}.pw-docker-card-tools{font-size:9px}.pw-docker-card-tools label{font-size:8px}.pw-docker-card-tools select{font-size:9px}.pw-container-access{font-size:8px}.pw-container-access button{font-size:8px}}
:root[data-reduced-motion=true] .pw-docker-resource-row{transition:none}

.pw-log-tools{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:12px 0}.pw-log-tools label{display:grid;gap:6px;font-size:12px;color:var(--muted)}.pw-log-tools label:first-child{flex:1;min-width:180px}.pw-log-tools input,.pw-log-tools select{width:100%;min-height:42px}.pw-log-output{min-height:120px;max-height:50vh;overflow:auto}

/* Image choices stay inside the existing message-options disclosure. */
.pw-image-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;min-width:0;flex-basis:100%;grid-column:1/-1}
.pw-image-options select{width:100%;min-width:0;max-width:100%}
.pw-image-options :is(#pw-image-note,#pw-image-refresh){grid-column:1/-1;margin:0}
@media(max-width:650px){body.aurora-hub.pw-product[data-view="chat"] #pw-phone-options .pw-compose-tools .pw-image-options{grid-column:1/-1;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}body.aurora-hub.pw-product[data-view="chat"] #pw-phone-options .pw-image-options select{font-size:16px!important;min-height:44px}}

/* Additional installed chat profiles wrap without squeezing phone choices. */
.cs-models.cs-models-expanded{flex-wrap:wrap}.cs-models-expanded .cs-model{flex:1 1 calc((100% - 14px)/3)}

/* Model names and uses stay readable in a native, searchable choice sheet. */
.pw-image-options .pw-image-model-button{min-width:0;max-width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--pw-soft);color:var(--ink);font:inherit;font-size:12px;text-align:left;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.pw-image-picker.cc-dialog{width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 24px);box-sizing:border-box;display:flex;flex-direction:column;gap:12px;overflow:hidden}
.pw-image-picker .cc-dialog-head{flex-shrink:0}.pw-image-picker-intro{margin:0;color:var(--muted);font-size:13px}.pw-image-picker input[type=search]{width:100%;box-sizing:border-box;font-size:16px;min-height:44px;flex-shrink:0}
.pw-image-model-list{overflow-y:auto;min-height:0;display:grid;gap:8px;overscroll-behavior:contain;padding:2px}
.pw-image-model-row{display:grid;gap:5px;width:100%;text-align:left;padding:14px;border:1px solid var(--border);border-radius:14px;background:var(--pw-soft);color:var(--ink);cursor:pointer;white-space:normal;overflow-wrap:anywhere;transition:border-color .16s ease,background .16s ease,transform .16s ease}
.pw-image-model-row[hidden]{display:none}.pw-image-model-row:not(:disabled):hover{border-color:var(--pw-accent);background:var(--pw-elevated)}.pw-image-model-row:not(:disabled):active{transform:scale(.99)}.pw-image-model-row[aria-pressed=true]{border-color:var(--pw-accent);background:color-mix(in srgb,var(--pw-accent) 12%,var(--pw-soft))}.pw-image-model-row:focus-visible,.pw-image-model-button:focus-visible{outline:2px solid var(--pw-accent);outline-offset:2px}
.pw-image-row-title{font-size:15px;font-weight:650;line-height:1.35}.pw-image-row-description{font-size:13px;line-height:1.45;color:var(--muted)}.pw-image-row-badge,.pw-image-row-reason{font-size:11px;line-height:1.4;color:var(--pw-accent)}
@media(max-width:650px){.pw-image-options .pw-image-model-button{font-size:14px}.pw-image-picker.cc-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:16px;border-radius:20px}.pw-image-row-title{font-size:15px}.pw-image-row-description{font-size:13px}}

/* Ordered scene and identity references stay compact on phone. */
.pw-reference-help{font-size:12px;line-height:1.5;color:var(--muted);margin:6px 0}.pw-reference-list{display:flex;gap:8px;overflow-x:auto;padding:4px 0}.pw-reference-card{flex:0 0 145px;padding:8px;border:1px solid var(--border);border-radius:12px;background:var(--panel)}.pw-reference-card strong{display:block;font-size:11px;margin:4px 0}.pw-reference-card .text-button{min-height:32px;padding:5px;font-size:11px}.pw-reference-card figure{margin:0!important}.pw-reference-card figure img{width:120px!important;height:75px!important}.pw-reference-card figcaption{display:none}
