/* C2 host workspace: scoped component styles, existing semantic theme tokens. */
.hw-root{--hw-gap:14px;min-width:0}.hw-root button,.hw-dialog button{min-height:34px;padding:7px 11px;font-size:12px;gap:7px}.hw-root input,.hw-dialog input,.hw-dialog textarea{min-height:36px;padding:8px 10px;font-size:12px}.hw-root h1,.hw-root h2,.hw-root h3,.hw-dialog h2,.hw-dialog h3{line-height:1.35}.hw-icon{width:17px;height:17px;flex:0 0 17px;vertical-align:middle;display:inline-block}.hw-icon-only{width:34px;min-width:34px;padding:7px!important}.hw-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 20px}.hw-kicker{color:var(--accent);font:10px var(--font-mono);letter-spacing:1.3px;text-transform:uppercase}.hw-heading h1{font-size:26px;letter-spacing:-.5px;margin:6px 0}.hw-heading p{font-size:12px;color:var(--muted);margin:0}.hw-heading-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.hw-scope{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;color:var(--muted);font-size:11px;border:1px solid var(--line);border-radius:6px}.hw-notice,.hw-role-help{padding:9px 12px;border:1px solid var(--line);border-radius:8px;margin:0 0 12px;color:var(--muted);font-size:12px}.hw-notice.is-error{color:var(--red);border-color:var(--red)}.hw-workspace{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(400px,1.6fr);gap:var(--hw-gap);align-items:stretch;min-height:660px}.hw-browser,.hw-console{min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--card);overflow:hidden}.hw-browser{display:flex;flex-direction:column}.hw-browser-head{display:flex;align-items:center;gap:8px;padding:14px;border-bottom:1px solid var(--line)}.hw-search{display:flex;align-items:center;gap:7px;min-width:0;flex:1;border:1px solid var(--line);background:var(--pane);border-radius:8px;padding:0 9px;color:var(--muted)}.hw-search input{border:0!important;background:transparent;min-width:0;padding:8px 0;outline:none}.hw-search:focus-within{outline:2px solid var(--color-focus);outline-offset:2px}.hw-view-switch,.hw-segmented{display:flex;align-items:center;padding:3px;border:1px solid var(--line);border-radius:8px;background:var(--bg);gap:2px}.hw-view-switch button{width:30px;min-height:30px;padding:5px}.hw-view-switch button,.hw-segmented button{border-color:transparent;background:transparent;margin:0;border-radius:5px}.hw-view-switch button[aria-pressed=true],.hw-segmented button[aria-pressed=true]{color:var(--accent);background:var(--soft)}.hw-filter-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;padding:12px 14px 9px}.hw-filter-head .hw-picker{flex:1;max-width:250px}.hw-count{font:11px var(--font-mono);color:var(--muted);padding-bottom:10px;white-space:nowrap}.hw-facets{display:flex;gap:6px;padding:3px 14px 12px;overflow:auto;border-bottom:1px solid var(--line);scrollbar-width:thin;max-height:100px}.hw-facets button{font-size:11px;padding:5px 8px;min-height:28px;gap:8px;background:transparent;max-width:210px;flex-shrink:0}.hw-facets button>span:first-child{overflow:hidden;text-overflow:ellipsis}.hw-facets button small,.hw-facets button>span:last-child:not(:first-child){font:10px var(--font-mono);opacity:.7}.hw-facets button.active{background:var(--soft);color:var(--accent);border-color:var(--accent)}.hw-hosts{padding:8px;overflow:auto;flex:1;max-height:650px;scrollbar-width:thin}.hw-host-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;border:1px solid transparent;border-radius:9px;margin-bottom:4px;gap:0 6px;background:transparent}.hw-host-card:hover{background:var(--color-bg-raised)}.hw-host-card.is-selected{border-color:var(--accent);background:var(--soft)}.hw-host-main{display:flex;gap:10px;align-items:center;min-width:0;border:0!important;background:transparent!important;text-align:left;justify-content:flex-start;padding:10px!important;white-space:normal!important;min-height:76px!important}.hw-host-avatar{width:33px;height:38px;display:grid;place-items:center;flex:0 0 33px;border:1px solid var(--line);border-radius:8px;color:var(--muted);background:var(--card)}.hw-host-avatar.is-connected{color:var(--accent);border-color:var(--accent)}.hw-host-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.hw-host-copy strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hw-host-copy code{font:10px/1.5 var(--font-mono);color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hw-host-meta{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}.hw-host-actions{display:grid;grid-template-columns:repeat(2,28px);gap:2px;padding-right:7px}.hw-host-actions button{width:28px;min-height:28px;padding:5px;border-color:transparent;background:transparent}.hw-host-actions .hw-icon{width:14px;height:14px;flex-basis:14px}.hw-host-tags{grid-column:1/-1;display:flex;gap:4px;padding:0 10px 8px 53px;min-width:0}.hw-host-tags:empty{display:none}.hw-host-tags>span{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;padding:1px 5px;border-radius:4px;border:1px solid var(--line);color:var(--muted);background:var(--card)}.hw-hosts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-content:start}.hw-hosts-grid .hw-host-card{display:flex;flex-direction:column;align-items:stretch;border-color:var(--line);margin:0;overflow:hidden}.hw-hosts-grid .hw-host-card.is-selected{border-color:var(--accent)}.hw-hosts-grid .hw-host-main{padding:10px!important;gap:8px;align-items:flex-start}.hw-hosts-grid .hw-host-avatar{width:26px;height:32px;flex-basis:26px}.hw-hosts-grid .hw-host-tags{padding:0 8px 8px;flex-wrap:wrap}.hw-hosts-grid .hw-host-actions{display:flex;justify-content:flex-end;border-top:1px solid var(--line);padding:5px;gap:3px;margin-top:auto}.hw-hosts-grid .hw-host-actions button{flex:1}.hw-hosts-grid .hw-host-meta{max-width:100%}.hw-empty{text-align:center;margin:12px;padding:32px 16px;color:var(--muted);border:1px dashed var(--line);border-radius:10px}.hw-empty>.hw-icon{width:30px;height:30px;margin-bottom:12px;color:var(--accent)}.hw-empty h3{color:var(--text);font-size:14px;margin:0 0 8px}.hw-empty p{font-size:12px;max-width:290px;margin:0 auto 16px}.hw-hosts-grid>.hw-empty{grid-column:1/-1}.hw-empty-detail{min-height:500px;display:flex;align-items:center;justify-content:center;flex-direction:column;border:0;margin:0}.hw-empty-small{padding:24px 12px;text-align:center;color:var(--muted);font-size:12px;border:1px dashed var(--line);border-radius:8px}.hw-console{display:flex;flex-direction:column}.hw-terminal-tabs{display:flex;gap:0;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:thin;background:var(--pane);min-height:44px;align-items:stretch}.hw-terminal-tab-wrap{display:flex;align-items:center;flex-shrink:0;border-right:1px solid var(--line);border-bottom:2px solid transparent;max-width:230px}.hw-terminal-tabs>.hw-terminal-tab{border-bottom:2px solid transparent!important;flex-shrink:0;border-right:1px solid var(--line)!important}.hw-terminal-tab-wrap.active,.hw-terminal-tabs>.hw-terminal-tab.active{background:var(--card);border-bottom-color:var(--accent)!important;color:var(--accent)}.hw-terminal-tab{border:0!important;border-radius:0!important;background:transparent!important;padding:10px 12px!important;font-size:11px!important;min-height:42px!important;min-width:0;gap:7px!important;justify-content:flex-start!important;color:inherit}.hw-terminal-tab>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:150px}.hw-terminal-tabs .hw-tab-close{border:0;background:transparent;min-height:25px;width:25px;padding:4px;margin-right:6px}.hw-tab-close .hw-icon{width:13px;height:13px;flex-basis:13px}.hw-tab-dot{height:5px;width:5px;background:var(--muted);border-radius:50%;flex:0 0 5px}.hw-tab-dot.is-ready{background:var(--accent)}.hw-stage{display:flex;flex-direction:column;flex:1;min-height:0}.hw-detail{padding:20px;overflow:auto;max-height:720px}.hw-detail-heading{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.hw-detail-heading h2{font-size:21px;margin:5px 0;word-break:break-word}.hw-detail-heading code{font:11px var(--font-mono);color:var(--muted);overflow-wrap:anywhere}.hw-detail-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;flex:0 1 auto}.hw-detail-actions button{padding:7px 9px;min-height:32px}.hw-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;margin:0 0 20px}.hw-facts>div{padding:10px 0;border-bottom:1px solid var(--line);min-width:0}.hw-facts dt{color:var(--muted);font-size:10px;margin-bottom:4px}.hw-facts dd{margin:0;font-size:12px;overflow-wrap:anywhere}.hw-facts>div:last-child{grid-column:1/-1}.hw-facts>div:last-child dd{font:10px/1.6 var(--font-mono)}.hw-section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 10px;min-height:28px}.hw-section-heading h3{font-size:13px;margin:0;display:flex;align-items:center;gap:7px}.hw-section-heading>span{font:11px var(--font-mono);color:var(--muted)}.hw-help{font-size:11px;color:var(--muted);line-height:1.65;margin:7px 0 12px}.hw-table-scroll{overflow:auto;max-height:330px;border:1px solid var(--line);border-radius:8px}.hw-table-scroll table{min-width:400px;font-size:11px}.hw-table-scroll th,.hw-table-scroll td{padding:9px 10px}.hw-table-scroll th{font-size:10px;position:sticky;top:0;z-index:1}.hw-table-scroll td:last-child{white-space:normal}.hw-port-status{color:var(--muted);font-size:10px}.hw-port-status.is-ready{color:var(--accent)}.hw-detail-bottom{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.hw-terminal-toolbar{display:flex;align-items:center;justify-content:space-between;padding:9px 12px;gap:10px;border-bottom:1px solid var(--line);flex-wrap:wrap}.hw-terminal-toolbar>div{display:flex;align-items:center;gap:8px;min-width:0}.hw-terminal-toolbar>div:last-child{margin-left:auto}.hw-terminal-toolbar code{font:10px var(--font-mono);color:var(--muted);max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hw-terminal-toolbar button{min-height:30px;padding:6px 8px;font-size:11px}.hw-terminal-toolbar .hw-icon-only{width:30px;min-width:30px;padding:5px!important}.hw-status{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:10px;color:var(--muted)}.hw-status i{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:var(--muted)}.hw-status.is-ready{color:var(--accent)}.hw-status.is-ready i{background:var(--accent)}.hw-status.is-pending{color:var(--color-warning)}.hw-status.is-pending i{background:var(--color-warning)}.hw-terminal-surface{padding:10px;background:#0a1012;flex:1;min-height:490px;min-width:0;overflow:hidden}.hw-terminal-surface .xterm{height:100%;min-width:0}.hw-terminal-surface .xterm-viewport{scrollbar-width:thin}.hw-terminal-surface .xterm-helper-textarea{min-height:0!important;padding:0!important;min-width:0!important}[data-theme=light] .hw-terminal-surface{background:#f8fbf9}.hw-expanded{position:fixed;inset:12px;background:var(--bg);z-index:50;border:1px solid var(--line);border-radius:12px;padding:16px;display:flex;flex-direction:column;overflow:hidden}.hw-expanded .hw-heading{margin-bottom:12px}.hw-expanded .hw-heading p,.hw-expanded .hw-browser{display:none}.hw-expanded .hw-workspace{display:flex;flex:1;min-height:0}.hw-expanded .hw-console{flex:1}.hw-expanded .hw-terminal-surface{min-height:0}.hw-expanded .hw-stage{overflow:hidden}
/* Dialogs and custom controls. */
.hw-dialog{width:min(840px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);padding:22px;background:var(--card);color:var(--text);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);overflow:auto}.hw-dialog::backdrop{background:#030809b8;backdrop-filter:blur(4px)}.hw-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.hw-dialog-heading h2{font-size:19px;margin:0;overflow-wrap:anywhere}.hw-dialog-heading>button{border-color:transparent;background:transparent;flex:0 0 32px}.hw-dialog-small{width:min(520px,calc(100vw - 32px))}.hw-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.hw-field{display:flex;flex-direction:column;gap:7px;font-size:11px;color:var(--muted);min-width:0}.hw-full{grid-column:1/-1}.hw-field input,.hw-field textarea{min-width:0;width:100%;background:var(--pane)}.hw-field textarea{font-family:var(--font-mono);line-height:1.6;resize:vertical;min-height:100px}.hw-credential-field{padding:14px;border:1px solid var(--line);border-radius:9px;background:var(--bg);display:grid;gap:9px}.hw-credential-field .hw-help{margin:0}.hw-key-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.hw-picker{position:relative}.hw-picker>[role=combobox]{display:flex;justify-content:space-between;align-items:center;width:100%;background:var(--pane);border:1px solid var(--line);color:var(--text);text-align:left;min-height:36px;gap:10px}.hw-picker>[role=combobox]>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.hw-picker [role=combobox][aria-expanded=true]{border-color:var(--accent)}.hw-picker[data-hw-disabled] [role=combobox]{pointer-events:none;opacity:.65}.hw-options{position:absolute;top:100%;left:0;right:0;margin-top:4px;padding:4px;max-height:210px;overflow:auto;background:var(--color-bg-raised);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);z-index:15}.hw-options button{display:flex;justify-content:flex-start;text-align:left;white-space:normal;width:100%;border:0;border-radius:4px;background:transparent;min-height:32px;line-height:1.5;font-size:12px;padding:7px 9px}.hw-options button:hover,.hw-options button:focus{background:var(--soft);color:var(--accent)}.hw-options button[aria-selected=true]{color:var(--accent);background:var(--soft)}.hw-picker.is-up .hw-options{top:auto;bottom:calc(100% - 18px);margin:0 0 4px}.hw-modal-footer{display:flex;justify-content:flex-end;align-items:center;gap:8px;grid-column:1/-1;margin-top:6px;border-top:1px solid var(--line);padding-top:16px}.hw-modal-footer>button{min-width:84px}.hw-form-error{color:var(--red);font-size:12px;grid-column:1/-1;margin:0;line-height:1.6;overflow-wrap:anywhere}.hw-form-error:empty{display:none}.hw-confirm-body{font-size:13px;line-height:1.7;color:var(--muted)}.hw-fingerprint{padding:12px;font:12px/1.7 var(--font-mono);word-break:break-all;white-space:pre-wrap;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:8px}.hw-destination{display:flex;gap:10px;align-items:center;padding:10px 12px;margin-bottom:16px;border:1px solid var(--line);background:var(--soft);border-radius:8px;font-size:12px;flex-wrap:wrap}.hw-destination code{font:11px var(--font-mono);color:var(--muted);overflow-wrap:anywhere}.hw-group-list>div{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid var(--line)}.hw-group-list>div>span{display:flex;gap:8px;align-items:center;min-width:0;flex:1}.hw-group-list strong{font-size:12px;overflow-wrap:anywhere}.hw-group-list small{font:11px var(--font-mono);color:var(--muted)}.hw-group-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-top:18px;align-items:end}.hw-group-form .hw-form-error{grid-column:1/-1}.hw-flex-gap{flex:1}
/* Markdown note workspace. */
.hw-dialog-notes{width:min(1240px,calc(100vw - 32px))}.hw-notes-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;min-height:570px}.hw-note-index{border-right:1px solid var(--line);padding-right:16px;min-width:0}.hw-note-index [data-hw-note-list]{max-height:550px;overflow:auto}.hw-note-item{display:flex!important;flex-direction:column;align-items:flex-start!important;justify-content:flex-start!important;text-align:left;gap:5px!important;width:100%;padding:10px!important;border:1px solid transparent!important;background:transparent;margin-bottom:4px;white-space:normal!important}.hw-note-item strong{font-size:12px;overflow-wrap:anywhere}.hw-note-item>span{display:flex;align-items:center;gap:5px;font-size:10px;color:var(--muted)}.hw-note-item .hw-icon{width:12px;height:12px;flex-basis:12px}.hw-note-item small{font-size:9px;color:var(--muted);line-height:1.6}.hw-note-item.active{background:var(--soft);border-color:var(--accent)!important}.hw-note-workspace{min-width:0}.hw-note-form{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:12px}.hw-note-visibility{grid-column:1/-1;margin:0}.hw-md-toolbar{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.hw-md-toolbar>div{display:flex;align-items:center;gap:4px;min-width:0}.hw-md-toolbar button{font-size:11px;padding:5px 8px;min-height:29px}.hw-md-toolbar>div:first-child button{font-family:var(--font-mono);min-width:29px;padding:5px}.hw-md-toolbar .hw-segmented{padding:2px}.hw-readonly{color:var(--muted);font-size:10px}.hw-markdown{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border:1px solid var(--line);border-radius:9px;overflow:hidden;height:395px;min-width:0}.hw-md-editor{min-width:0;height:100%;overflow:hidden}.hw-md-editor .cm-editor{height:100%}.hw-md-preview{min-width:0;background:var(--bg);padding:14px;overflow:auto;border-left:1px solid var(--line);font-size:12px;overflow-wrap:anywhere}.hw-md-preview :first-child{margin-top:0}.hw-md-preview h1{font-size:22px}.hw-md-preview h2{font-size:18px}.hw-md-preview h3{font-size:15px}.hw-md-preview pre{max-height:none;font:11px/1.7 var(--font-mono);overflow:auto;white-space:pre-wrap;background:var(--card);padding:12px;border:1px solid var(--line);border-radius:6px}.hw-md-preview code{font:11px var(--font-mono);color:var(--accent)}.hw-md-preview img{max-width:100%}.hw-md-preview table{font-size:11px;min-width:0}.hw-md-preview th,.hw-md-preview td{padding:7px}.hw-md-preview blockquote{margin:10px 0;padding:2px 12px;border-left:3px solid var(--accent);color:var(--muted)}.hw-md-preview p,.hw-md-preview li{line-height:1.8}.hw-md-editor .cm-tooltip{background:var(--card);color:var(--text);border-color:var(--line)}.hw-md-editor .cm-panels{background:var(--card);color:var(--text)}.hw-md-editor .cm-search input{min-height:24px;padding:3px}.hw-md-editor .cm-search button{min-height:24px;padding:3px}.hw-md-editor .cm-selectionBackground{opacity:.65}.hw-md-editor .cm-matchingBracket{background:var(--soft)!important;color:var(--accent)!important}.hw-md-editor .cm-scroller{scrollbar-width:thin}.hw-md-editor .cm-line{overflow-wrap:anywhere}.hw-md-editor .cm-content{min-height:100%}.hw-md-editor .cm-focused{outline:0}.hw-md-editor .cm-activeLineGutter{color:var(--accent)}.hw-md-editor .cm-tooltip-autocomplete ul li{line-height:1.6}.hw-md-editor .cm-tooltip-autocomplete ul li[aria-selected]{background:var(--soft);color:var(--text)}.hw-md-editor .cm-gutterElement{padding:0 6px}.hw-md-editor .cm-foldGutter{min-width:10px}.hw-md-editor .cm-gutter{min-width:10px}.hw-md-editor .cm-editor{font-family:var(--font-mono)}.hw-markdown.hw-md-editor,.hw-markdown.hw-md-preview{display:block;padding:0}.hw-markdown.hw-md-editor>[data-hw-md-preview]{display:none}.hw-markdown.hw-md-preview>[data-hw-md-editor]{display:none}.hw-markdown.hw-md-preview>[data-hw-md-preview]{height:100%;border:0}.hw-markdown.hw-md-editor>[data-hw-md-editor]{height:100%}
/* SFTP file pickers and progress. */
.hw-dialog-sftp{width:min(1130px,calc(100vw - 32px))}.hw-sftp-identity{display:flex;gap:14px;align-items:center;margin:-7px 0 18px;font-size:12px;flex-wrap:wrap}.hw-sftp-identity code{color:var(--muted);font:11px var(--font-mono)}.hw-sftp{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}.hw-file-pane{border:1px solid var(--line);border-radius:10px;padding:14px;min-width:0;background:var(--bg);display:flex;flex-direction:column;min-height:340px}.hw-path-form{display:flex;gap:6px;align-items:center;margin-bottom:12px;min-width:0}.hw-path-form input{min-width:0;font-family:var(--font-mono);font-size:11px}.hw-path-form button{min-width:32px;width:32px;min-height:34px;padding:6px}.hw-file-list{max-height:320px;overflow:auto;scrollbar-width:thin}.hw-file-row{display:grid;grid-template-columns:minmax(0,1fr) 58px auto;align-items:center;gap:8px;padding:4px 0;border-bottom:1px solid var(--line)}.hw-file-row:last-child{border:0}.hw-file-row:hover,.hw-file-row.is-selected{background:var(--color-bg-raised)}.hw-file-name{justify-content:flex-start!important;text-align:left;background:transparent;border-color:transparent;min-width:0;padding:7px 4px!important;gap:6px!important;white-space:nowrap}.hw-file-name span{overflow:hidden;text-overflow:ellipsis;font-size:11px}.hw-file-name .hw-icon{width:15px;height:15px;flex-basis:15px;color:var(--muted)}.hw-file-row>small{text-align:right;color:var(--muted);font:10px var(--font-mono)}.hw-file-actions{display:flex;gap:2px}.hw-file-actions button{width:27px;min-width:27px;min-height:27px;padding:5px!important;border-color:transparent;background:transparent}.hw-file-actions .hw-icon{width:14px;height:14px;flex-basis:14px}.hw-file-source{align-self:flex-start;margin:0 0 13px;max-width:100%}.hw-file-source button{font-size:11px;min-width:0;white-space:normal}.hw-upload-description{display:flex;flex-direction:column;gap:5px;margin:4px 0 12px;font-size:11px;color:var(--muted)}.hw-upload-description code{font:10px var(--font-mono);overflow-wrap:anywhere;color:var(--text)}.hw-file-drop{flex:1;display:flex!important;flex-direction:column;align-items:center;justify-content:center;border:1px dashed var(--line)!important;border-radius:9px;background:var(--card);padding:22px!important;white-space:normal!important;min-height:170px!important;text-align:center;gap:10px!important}.hw-file-drop>.hw-icon{width:28px;height:28px;flex-basis:28px;color:var(--accent)}.hw-file-drop strong{font-size:12px}.hw-file-drop small{font-size:11px;color:var(--muted)}.hw-file-drop:hover,.hw-file-drop.is-dragging{background:var(--soft);border-color:var(--accent)!important}.hw-transfer-help{margin:12px 0 5px}.hw-storage-root{display:block;color:var(--muted);font:10px/1.6 var(--font-mono);overflow-wrap:anywhere}.hw-staging-upload{display:flex;justify-content:flex-end;margin-top:10px}.hw-transfers{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}.hw-transfer-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-height:200px;overflow:auto}.hw-transfer-row{border:1px solid var(--line);border-radius:8px;background:var(--bg);padding:10px 12px;min-width:0}.hw-transfer-row>div{display:flex;align-items:center;gap:8px;justify-content:space-between;min-width:0;font-size:11px}.hw-transfer-row strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.hw-transfer-row span{white-space:nowrap;font-size:10px;color:var(--muted)}.hw-transfer-row progress{width:100%;height:5px;accent-color:var(--accent);display:block;margin:8px 0}.hw-transfer-row small{font:10px/1.6 var(--font-mono);color:var(--muted);overflow-wrap:anywhere}.hw-transfer-row.is-error small{color:var(--red)}.hw-file-conflict{display:block;overflow-wrap:anywhere;font:11px/1.7 var(--font-mono);color:var(--text);background:var(--bg);padding:10px;border:1px solid var(--line);border-radius:6px}
@media(min-width:1500px){.hw-workspace{grid-template-columns:minmax(380px,1fr) minmax(500px,1.7fr)}}
@media(max-width:1200px){.hw-heading{align-items:flex-start}.hw-heading-actions{flex-wrap:wrap;justify-content:flex-end;max-width:340px}.hw-scope{display:none}.hw-workspace{grid-template-columns:minmax(265px,.85fr) minmax(330px,1.4fr)}.hw-detail{padding:16px}.hw-detail-heading{display:block}.hw-detail-actions{justify-content:flex-start;margin-top:12px}.hw-hosts-grid{grid-template-columns:1fr}.hw-hosts-grid .hw-host-card{display:grid;grid-template-columns:minmax(0,1fr) auto}.hw-hosts-grid .hw-host-actions{display:grid;grid-template-columns:repeat(2,28px);border:0;padding:5px;grid-column:2;grid-row:1/3}.hw-hosts-grid .hw-host-tags{grid-column:1;padding-left:44px}.hw-terminal-toolbar>div{flex-wrap:wrap}.hw-terminal-toolbar code{max-width:180px}.hw-terminal-toolbar button span{display:none}.hw-notes-layout{grid-template-columns:185px minmax(0,1fr)}.hw-md-toolbar>div:last-child{flex-wrap:wrap;justify-content:flex-end}.hw-note-form{grid-template-columns:minmax(0,1fr) 165px}}
@media(max-width:1000px){.hw-workspace{grid-template-columns:minmax(0,1fr);min-height:0}.hw-browser{max-height:400px}.hw-hosts{max-height:250px}.hw-hosts-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.hw-hosts-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hw-hosts-grid .hw-host-card{display:flex}.hw-hosts-grid .hw-host-actions{display:flex;border-top:1px solid var(--line);width:100%}.hw-hosts-grid .hw-host-tags{padding:0 8px 8px}.hw-console{min-height:530px}.hw-terminal-surface{height:470px;min-height:470px}.hw-detail-heading{display:flex}.hw-detail-actions{margin-top:0}.hw-detail{max-height:640px}.hw-heading-actions{max-width:310px}.hw-heading h1{font-size:23px}.hw-notes-layout{grid-template-columns:160px minmax(0,1fr);gap:12px}.hw-note-index{padding-right:10px}.hw-markdown{height:370px}.hw-md-toolbar{gap:6px}.hw-md-toolbar>div:last-child{margin-left:auto}.hw-expanded .hw-console{min-height:0}.hw-expanded .hw-terminal-surface{height:auto;min-height:0}.hw-note-form{grid-template-columns:1fr}.hw-note-form .hw-picker{max-width:230px}}
@media(max-width:720px){.hw-heading{display:block}.hw-heading-actions{margin-top:14px;max-width:none;justify-content:flex-start}.hw-heading-actions button{min-height:36px}.hw-heading h1{font-size:23px}.hw-heading p{font-size:11px}.hw-workspace{gap:12px}.hw-hosts-list{display:block}.hw-hosts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hw-hosts-grid .hw-host-copy strong{font-size:11px}.hw-hosts-grid .hw-host-copy code{font-size:9px}.hw-browser-head{padding:10px;gap:6px}.hw-filter-head{padding:10px}.hw-facets{padding:0 10px 10px}.hw-hosts{padding:6px;max-height:260px}.hw-browser{max-height:440px}.hw-detail{padding:14px}.hw-detail-heading{display:block}.hw-detail-actions{justify-content:flex-start;margin-top:12px}.hw-facts{gap:0 12px}.hw-terminal-toolbar{padding:8px;gap:8px}.hw-terminal-toolbar>div:last-child{gap:4px}.hw-terminal-toolbar code{max-width:150px}.hw-terminal-toolbar>div:first-child{gap:6px}.hw-terminal-surface{min-height:390px;height:390px;padding:7px}.hw-console{min-height:460px}.hw-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:16px;border-radius:10px}.hw-dialog-heading{margin-bottom:16px}.hw-dialog-heading h2{font-size:17px}.hw-form{grid-template-columns:1fr;gap:13px}.hw-key-actions{display:block}.hw-key-actions .hw-help{margin-top:8px}.hw-credential-field{padding:12px}.hw-modal-footer{gap:6px;padding-top:12px}.hw-modal-footer>button{min-width:76px;padding:8px 10px;min-height:36px}.hw-dialog-notes{width:calc(100vw - 16px)}.hw-notes-layout{display:block;min-height:0}.hw-note-index{padding:0 0 12px;border-right:0;border-bottom:1px solid var(--line);margin-bottom:14px}.hw-note-index [data-hw-note-list]{display:flex;gap:5px;max-height:130px;overflow:auto}.hw-note-item{min-width:150px;width:170px!important;flex-shrink:0}.hw-note-item small{font-size:8px}.hw-note-form{gap:10px}.hw-note-form .hw-picker{max-width:none}.hw-markdown{height:360px}.hw-md-toolbar>div{flex-wrap:wrap}.hw-md-toolbar>div:last-child{width:100%;justify-content:space-between;margin-left:0}.hw-md-toolbar .hw-segmented{margin-left:auto}.hw-md-toolbar .hw-segmented button{font-size:10px;padding:5px 6px;white-space:normal}.hw-markdown.hw-md-split{grid-template-columns:1fr;grid-template-rows:1fr 1fr;height:510px}.hw-markdown.hw-md-split .hw-md-preview{border-left:0;border-top:1px solid var(--line)}.hw-sftp{grid-template-columns:1fr;gap:12px}.hw-file-pane{padding:12px;min-height:220px}.hw-file-list{max-height:250px}.hw-file-row{grid-template-columns:minmax(0,1fr) 50px auto;gap:5px}.hw-file-row>small{font-size:9px}.hw-file-name span{font-size:10px}.hw-file-actions button{width:26px;min-width:26px}.hw-transfer-list{grid-template-columns:1fr}.hw-expanded{inset:0;border:0;border-radius:0;padding:10px}.hw-expanded .hw-heading{margin-bottom:10px;display:flex;align-items:center}.hw-expanded .hw-heading h1{font-size:18px}.hw-expanded .hw-heading-actions{display:none}.hw-expanded .hw-workspace{min-height:0}.hw-facts dd{font-size:11px}}
@media(pointer:coarse){.hw-root button,.hw-dialog button{min-height:40px}.hw-host-actions button,.hw-file-actions button,.hw-tab-close{min-height:36px}.hw-options button{min-height:40px}.hw-view-switch button{min-height:36px}.hw-note-item{min-height:64px}}
@media(prefers-reduced-motion:no-preference){.hw-host-card{transition:border-color .15s,background .15s}.hw-root{animation:hw-appear .16s ease-out}@keyframes hw-appear{from{opacity:.4;transform:translateY(3px)}to{opacity:1;transform:none}}}

.hw-dialog .hw-form-error.is-success{color:var(--accent)}

.hw-transfer-row.is-error progress{accent-color:var(--red)}.hw-transfer-row.is-error progress::-webkit-progress-value{background:var(--red)}.hw-transfer-row.is-error progress::-moz-progress-bar{background:var(--red)}

/* v020: compact connection status, grouped asset selection, and restrained dialog motion. */
.hw-background-note{display:flex;align-items:flex-start;gap:12px;margin:-8px 0 14px;font-size:10px;line-height:1.6;color:var(--muted)}.hw-background-note [data-hw-session-count]{flex-shrink:0;font-family:var(--font-mono);color:var(--accent);border:1px solid var(--line);border-radius:6px;padding:2px 7px;background:var(--pane)}.hw-host-tags .hw-dependency-tag{color:var(--accent);background:var(--soft);border-color:var(--line)}.hw-dependency-help{margin:-4px 0 0;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg)}.hw-field-hint{font-size:10px;line-height:1.5;color:var(--muted)}.hw-asset-picker .hw-options{min-width:min(420px,calc(100vw - 64px));max-height:320px;padding:0 4px 4px}.hw-asset-search{display:flex;align-items:center;gap:7px;position:sticky;top:0;z-index:2;padding:8px 5px;background:var(--color-bg-raised);border-bottom:1px solid var(--line)}.hw-asset-search .hw-icon{flex:0 0 14px;width:14px;height:14px}.hw-asset-search input{min-height:31px;padding:6px 8px;font-size:11px;width:100%}.hw-asset-option-group{border-top:1px solid var(--line);padding:4px 0}.hw-asset-option-group:first-of-type{border-top:0}.hw-asset-option-group button>span{display:flex;flex-direction:column;gap:2px;min-width:0}.hw-asset-option-group strong{font:11px/1.5 var(--font-mono);overflow-wrap:anywhere;word-break:break-word}.hw-asset-option-group small{font-size:10px;line-height:1.5;color:var(--muted)}.hw-options .hw-asset-child{padding-left:20px;font-size:10px}.hw-options .hw-asset-child strong{font-size:10px}.hw-asset-records summary{font-size:10px;color:var(--muted);padding:5px 9px;cursor:pointer}.hw-asset-records summary:hover{color:var(--accent)}.hw-asset-records[open]{margin-bottom:4px}.hw-dialog.is-closing{pointer-events:none}
@media(prefers-reduced-motion:no-preference){.hw-dialog[open]{animation:hw-dialog-enter 180ms cubic-bezier(.2,.75,.25,1) both}.hw-dialog[open]::backdrop{animation:hw-backdrop-enter 180ms ease-out both}.hw-dialog[open].is-closing{animation:hw-dialog-exit 140ms ease-in both}.hw-dialog[open].is-closing::backdrop{animation:hw-backdrop-exit 140ms ease-in both}@keyframes hw-dialog-enter{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}@keyframes hw-dialog-exit{from{opacity:1;transform:none}to{opacity:0;transform:translateY(5px) scale(.99)}}@keyframes hw-backdrop-enter{from{opacity:0}to{opacity:1}}@keyframes hw-backdrop-exit{from{opacity:1}to{opacity:0}}}
@media(prefers-reduced-motion:reduce){.hw-dialog,.hw-dialog::backdrop,.hw-root{animation:none!important;transition:none!important}}
@media(max-width:720px){.hw-background-note{display:block;margin-top:0}.hw-background-note>span:last-child{display:block;margin-top:7px}.hw-asset-picker .hw-options{min-width:0;max-height:280px}.hw-dependency-help{font-size:10px}}

.hw-asset-picker .hw-options{left:auto;right:0;width:max(100%,min(420px,calc(100vw - 64px)))}
@media(max-width:720px){.hw-asset-picker .hw-options{left:0;right:0;width:100%}}

/* v021: content must never grow the SSH viewport; all long content scrolls inside. */
.hw-workspace{height:clamp(460px,calc(100dvh - 265px),900px);min-height:0;grid-template-rows:minmax(0,1fr)}.hw-browser,.hw-console,.hw-stage{min-height:0;overflow:hidden}.hw-console{height:100%;max-height:100%;min-height:0}.hw-hosts{min-height:0;max-height:none}.hw-terminal-tabs,.hw-terminal-toolbar{flex-shrink:0}.hw-terminal-toolbar{min-height:50px}.hw-terminal-surface{position:relative;flex:1 1 0;min-height:0;height:0;max-height:100%;overflow:hidden;contain:size layout}.hw-terminal-surface .xterm{height:100%;max-height:100%;overflow:hidden}.hw-detail{flex:1;min-height:0;max-height:none;overflow:auto}.hw-empty-detail{min-height:260px}.hw-expanded .hw-workspace{height:auto;max-height:none;min-height:0;flex:1}.hw-expanded .hw-console{height:100%;min-height:0}.hw-expanded .hw-terminal-surface{height:0;min-height:0}.hw-expanded .hw-background-note{flex-shrink:0}
.hw-linked-asset{display:flex;flex-direction:column;min-width:0;gap:3px;text-align:left}.hw-linked-asset strong{font:11px/1.5 var(--font-mono);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hw-linked-asset small{font:10px/1.5 var(--font-mono);color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.hw-facts .hw-linked-asset small{white-space:normal;overflow-wrap:anywhere}.hw-asset-picker [role=combobox]>span:first-child{min-width:0;flex:1}.hw-asset-picker [role=combobox]{min-height:42px}.hw-asset-option-group button{display:flex;align-items:center;gap:9px;min-width:0}.hw-asset-option-group button>.hw-icon{width:14px;height:14px;flex:0 0 14px;color:var(--muted)}.hw-asset-option-group button>span{flex:1}.hw-asset-evidence{font:9px var(--font-mono);border:1px solid var(--line);border-radius:4px;padding:1px 5px;flex-shrink:0}.hw-asset-records summary{padding-left:32px}.hw-options .hw-asset-child{padding-left:32px}.hw-options .hw-asset-child strong{font-weight:400}.hw-port-filters{display:grid;grid-template-columns:minmax(140px,1fr) 170px;gap:10px;align-items:end;margin:12px 0}.hw-port-filters .hw-picker>span{font-size:10px}.hw-port-filters .hw-search{min-height:36px}.hw-port-filters .hw-search input{width:100%}.hw-geo-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin:-8px 0 18px}.hw-geo-meta .hw-help{margin:0}.hw-geo-meta button{flex-shrink:0;font-size:10px;min-height:28px;padding:5px 8px}.hw-history-preview{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.hw-history-preview .hw-section-heading button{min-height:28px;padding:4px 8px;font-size:10px}.hw-history-list{list-style:none;margin:0;padding:0}.hw-history-list li{display:flex;align-items:flex-start;gap:10px;padding:11px 0;border-bottom:1px solid var(--line)}.hw-history-list li:last-child{border-bottom:0}.hw-history-mark{display:grid;place-items:center;border:1px solid var(--line);border-radius:7px;width:28px;height:28px;flex:0 0 28px;color:var(--muted);background:var(--pane)}.hw-history-mark .hw-icon{width:14px;height:14px}.hw-history-mark.is-ready{color:var(--accent);border-color:var(--accent)}.hw-history-mark.is-failed{color:var(--red)}.hw-history-copy{flex:1;min-width:0}.hw-history-copy>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.hw-history-copy strong{font-size:11px}.hw-history-copy p{font-size:10px;line-height:1.6;color:var(--muted);margin:3px 0 0;overflow-wrap:anywhere}.hw-history-copy .hw-history-host{color:var(--text);font-family:var(--font-mono)}.hw-history-status{font-size:9px;color:var(--muted);border:1px solid var(--line);border-radius:4px;padding:1px 5px}.hw-history-duration{font:10px/1.6 var(--font-mono);color:var(--muted);white-space:nowrap}.hw-dialog-history{width:min(800px,calc(100vw - 32px))}.hw-dialog-history [data-hw-history-list]{max-height:55dvh;overflow:auto;scrollbar-width:thin}.hw-dialog-history .hw-history-list{padding-right:6px}
@media(max-width:1000px){.hw-workspace{height:auto;grid-template-rows:auto auto}.hw-browser{height:300px;max-height:300px}.hw-hosts{max-height:none}.hw-console{height:clamp(420px,calc(100dvh - 150px),680px);min-height:0;max-height:none}.hw-terminal-surface{height:0;min-height:0}.hw-expanded .hw-console{height:100%;max-height:100%}.hw-expanded .hw-workspace{height:0}}
@media(max-width:720px){.hw-workspace{height:auto}.hw-console{height:clamp(400px,calc(100dvh - 140px),650px);min-height:0}.hw-terminal-surface{height:0;min-height:0}.hw-port-filters{grid-template-columns:1fr;gap:8px}.hw-port-filters .hw-picker{max-width:210px}.hw-geo-meta{align-items:center}.hw-geo-meta button span{display:none}.hw-history-list li{gap:7px}.hw-history-duration{font-size:9px}.hw-dialog-history{width:calc(100vw - 20px)}}
.hw-geo-flag{width:18px;height:14px;object-fit:cover;display:inline-block;vertical-align:-2px;border-radius:2px;border:1px solid var(--line)}

/* Keep list actions beside the host, including when tags occupy a second row. */
.hw-hosts-list .hw-host-main{grid-column:1;grid-row:1}.hw-hosts-list .hw-host-tags{grid-column:1;grid-row:2}.hw-hosts-list .hw-host-actions{grid-column:2;grid-row:1/3;display:flex;align-items:center;gap:2px;padding:0 7px 0 0;align-self:center}.hw-hosts-list .hw-host-actions button{flex:0 0 28px}.hw-hosts-list .hw-host-meta{max-width:100%}

/* Connectivity labels stay intact; the table scrolls within its own pane. */
.hw-table-scroll table{min-width:580px;table-layout:auto}.hw-table-scroll td:last-child{white-space:nowrap;min-width:120px}.hw-table-scroll th:last-child{min-width:120px}.hw-port-status{display:inline-flex;white-space:nowrap;word-break:normal;overflow-wrap:normal;padding:3px 7px;border-radius:5px;background:var(--color-bg-raised)}.hw-port-status.is-ready{background:var(--soft)}
.hw-background-button{white-space:nowrap;font-size:11px}.hw-background-sessions{display:grid;gap:8px}.hw-background-row{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:8px}.hw-background-row>div{min-width:0;flex:1;display:grid;gap:4px}.hw-background-row strong{font-size:12px;overflow:hidden;text-overflow:ellipsis}.hw-background-row small{font-size:10px;color:var(--muted)}.hw-background-row>button{flex:none;font-size:11px;min-height:32px}
