/* Shared shell only. Authored HTML remains inside a separate opaque sandbox. */
.hw-shell{border:1px solid var(--line,#dfe6e5);border-radius:14px;background:#fff;overflow:hidden;margin-top:14px}.hw-toolbar,.hw-pane-title,.hw-preview-toolbar,.hw-import-dialog header{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.hw-toolbar{padding:14px 16px;background:#f6f9f8;border-bottom:1px solid #e0e8e5}.hw-toolbar>strong{margin-right:auto;color:#173f37}.hw-toolbar #html-bytes{font-size:11px;color:#647870}.hw-page-fields{padding:12px 16px 0;display:grid;grid-template-columns:1fr 1fr;gap:14px}.hw-page-fields .field{margin-bottom:10px}.hw-main{display:grid;grid-template-columns:minmax(180px,22%) minmax(280px,1fr) minmax(220px,25%);border-top:1px solid #e1e7e4;min-height:610px}.hw-tree-pane{min-width:0;background:#fbfcfc;border-right:1px solid #e2e7e6}.hw-pane-title{justify-content:space-between;padding:12px 10px;font-size:12px}.hw-pane-title .compact{font-size:11px;padding:5px 7px}.hw-search{display:block;padding:0 10px 10px}.hw-search input,.hw-field input,.hw-field textarea,.hw-field select,.hw-import-history select{font:inherit;color:#20382f;width:100%;min-width:0;border:1px solid #d5dfdb;border-radius:7px;padding:9px;background:#fff;box-sizing:border-box}.hw-search input{font-size:11px}.hw-tree-pane #hw-tree{height:555px;position:relative;overflow:auto;overscroll-behavior:contain}.hw-tree-spacer{position:relative;min-height:1px}.hw-tree-window{position:absolute;left:0;right:0}.hw-tree-row{height:30px;display:flex;align-items:center;box-sizing:border-box;white-space:nowrap;min-width:0}.hw-tree-row.selected{background:#e4f1ed;color:#0b5c48}.hw-tree-row:hover{background:#eef4f2}.hw-tree-toggle,.hw-tree-label{border:0;background:none;color:inherit;height:30px;text-align:left;cursor:pointer;font-family:inherit}.hw-tree-toggle{flex:0 0 23px;padding:0 4px}.hw-tree-toggle:disabled{opacity:.35;cursor:default}.hw-tree-label{font-size:11px;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1;padding:0 8px 0 0}.hw-preview-pane{background:#eaf0ed;padding:10px;min-width:0;overflow:hidden}.hw-preview-toolbar{justify-content:space-between;gap:8px}.hw-preview-modes,.hw-devices{display:flex;background:#fff;border:1px solid #d4e0da;border-radius:6px;overflow:hidden}.hw-preview-modes button,.hw-devices button{border:0;background:none;padding:7px 8px;font:inherit;font-size:11px;color:#5b6d65;cursor:pointer}.hw-preview-modes button.active,.hw-devices button.active{background:#dcece5;color:#15543f;font-weight:700}.hw-preview-pane>p{font-size:11px;line-height:1.7;color:#62766a;margin:10px 2px}.hw-preview-device{width:100%;max-width:100%;height:545px;margin:0 auto;background:#fff;border:1px solid #d8e1dc;border-radius:7px;overflow:hidden;box-shadow:0 2px 8px #263a3110;transition:width .15s}.hw-preview-device.tablet{width:768px}.hw-preview-device.mobile{width:390px}.hw-preview-device iframe{width:100%;height:100%;border:0;display:block;background:white}.hw-inspector{padding:0 12px 14px;min-width:0;overflow:auto;max-height:640px;border-left:1px solid #e0e7e2;overscroll-behavior:contain}.hw-inspector .hw-pane-title{padding-left:0;padding-right:0}.hw-field{display:block;font-size:12px;margin:10px 0}.hw-field>span{display:block;color:#496151;margin-bottom:6px;font-weight:600}.hw-field textarea{resize:vertical;line-height:1.65}.hw-inspector .btn{margin:2px 0;font-size:11px}.hw-note{font-size:11px;line-height:1.75;color:#697a71;overflow-wrap:anywhere}.hw-empty{padding:30px 8px;font-size:12px;line-height:1.9;color:#76877c}.hw-notice{padding:10px 14px;background:#edf6f1;color:#37614d;font-size:12px;line-height:1.7;border-top:1px solid #dce9e0}.hw-notice.error{background:#fff1e9;color:#8b4b32}.hw-selection{background:#edf5f3;border:1px solid #d5e7df;border-radius:8px;padding:10px;font-size:12px}.hw-selection p{white-space:pre-wrap;max-height:140px;overflow:auto;overflow-wrap:anywhere}.hw-ai-element{display:flex;flex-wrap:wrap;gap:5px;padding:9px 0}.hw-attributes,.hw-order{border-top:1px solid #e5eae6;margin-top:14px;padding-top:12px;font-size:12px}.hw-attributes summary,.hw-order summary{font-weight:650;color:#2d5340;cursor:pointer;margin-bottom:10px}.hw-attribute-read{display:grid;grid-template-columns:75px 1fr;font-size:11px;gap:6px;padding:5px 0;border-bottom:1px solid #f0f3f1}.hw-attribute-read strong{font-family:ui-monospace,monospace;color:#695179;overflow-wrap:anywhere}.hw-attribute-read span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#56755e}.hw-order-row{display:flex;align-items:center;gap:3px;padding:6px 0}.hw-order-row span{flex:1;min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:11px}.hw-order-row button{border:1px solid #d7e3db;border-radius:4px;color:#315a40;background:#f8faf8;width:25px;height:24px;cursor:pointer}.hw-source-area{border-top:1px solid #dce5df;padding:6px 16px 16px;background:#f9fbfa}.hw-source-area[hidden]{display:none}.hw-source-read{box-sizing:border-box;display:block;width:100%;min-height:360px;max-height:70vh;resize:vertical;border:1px solid #cbdad2;border-radius:8px;padding:14px;background:#18291f;color:#dbeddf;font:12px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre;tab-size:2}.hw-source-read[readonly]{background:#21352a;color:#d6e5da}.hw-save-load{margin:16px 10px}.hw-import-dialog{border:0;border-radius:16px;width:min(860px,calc(100vw - 28px));max-height:90vh;padding:0;color:#243c2e;box-shadow:0 24px 80px #132c3540}.hw-import-dialog::backdrop{background:#152b3c66;backdrop-filter:blur(3px)}.hw-import-dialog header{padding:18px 22px;background:#f2f8f4;border-bottom:1px solid #dae6de;justify-content:space-between}.hw-import-dialog h2{font-size:20px;margin:0}.hw-import-dialog header p{font-size:12px;color:#687c6d;margin:6px 0 0}.hw-import-body{padding:12px 22px 22px;overflow:auto}.hw-import-history{display:flex;gap:8px;border-top:1px solid #e1e8e3;padding-top:18px;margin-top:18px}.hw-resource-counts{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:16px 0}.hw-resource-counts span{padding:10px 8px;background:#edf4ef;border-radius:8px;font-size:11px;color:#6c7e70}.hw-resource-counts strong{display:block;font-size:23px;color:#274932;margin-top:3px}.hw-import-failure{background:#fff3ed;border-radius:7px;padding:8px;font-size:12px;color:#93563e;overflow-wrap:anywhere}.hw-import-failure small{display:block;font-size:10px;margin-top:5px}.hw-import-dialog h3{font-size:16px;margin-top:22px}.hw-import-dialog #hw-import-result>p{font-size:12px;line-height:1.8}.aid-plan{background:#f0f6f3;border:1px solid #d4e5db;border-radius:10px;padding:14px;margin:14px 0}.aid-plan h3{font-size:14px;margin:0 0 8px}.aid-plan-counts{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;margin:12px 0}.aid-plan-counts strong{font-size:20px;color:#24573d;margin-right:4px}.aid-plan details{font-size:11px;margin-top:12px}.aid-plan-units{max-height:220px;overflow:auto;padding-left:22px}.aid-plan-units li{padding:6px 4px;white-space:pre-wrap;overflow-wrap:anywhere}.aid-batches{list-style:none;display:grid;gap:5px;padding:0;margin:12px 0}.aid-batches li{display:flex;justify-content:space-between;gap:8px;padding:8px 10px;border:1px solid #dfe7e2;border-radius:6px;font-size:11px}.aid-copy-change{margin:12px 0;border:1px solid #dce5df;border-radius:8px;overflow:hidden}.aid-copy-change summary{background:#f4f8f5;padding:10px;font-size:12px;cursor:pointer}.aid-copy-diff{display:grid;grid-template-columns:1fr 1fr;gap:0}.aid-copy-diff>div{min-width:0;padding:10px;background:#fffaf6}.aid-copy-diff>div+div{background:#f3faf4;border-left:1px solid #dfe7e0}.aid-copy-diff small{font-size:10px;color:#738174}.aid-copy-diff pre{font-family:inherit;font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.aid-coverage{font-size:12px;color:#406b50;padding:10px;border-radius:6px;background:#edf6ed}
@media(max-width:1200px){.hw-main{grid-template-columns:180px minmax(260px,1fr)}.hw-inspector{grid-column:1/-1;max-height:none;border-left:0;border-top:1px solid #dce5df;display:block}.hw-inspector .hw-field textarea{max-height:220px}.hw-tree-pane #hw-tree{height:520px}.hw-preview-device{height:510px}.hw-page-fields{gap:10px}.hw-toolbar .btn{font-size:11px;padding:6px 8px}}
@media(max-width:700px){.hw-main{display:flex;flex-direction:column}.hw-preview-pane{order:0}.hw-tree-pane{order:1;border-right:0;border-top:1px solid #dce5df}.hw-inspector{order:2}.hw-tree-pane #hw-tree{height:230px}.hw-preview-device{height:440px}.hw-page-fields{grid-template-columns:1fr}.hw-toolbar{padding:12px;gap:6px}.hw-toolbar>strong{flex-basis:60%}.hw-resource-counts{gap:4px}.hw-resource-counts span{padding:8px 5px;font-size:10px}.hw-resource-counts strong{font-size:18px}.hw-import-dialog header,.hw-import-body{padding-left:14px;padding-right:14px}.hw-source-area{padding:8px}.hw-source-read{min-height:300px}.aid-copy-diff{grid-template-columns:1fr}.aid-copy-diff>div+div{border-left:0;border-top:1px solid #dfe7e0}}

.hw-inspector button[hidden]{display:none}

/* Compact HTML editing and a reversible focus view; device widths stay exact. */
#content.hw-editing{padding-top:16px}.hw-editing .editor-heading{margin-bottom:10px;gap:8px}.hw-editing .editor-heading h1{font-size:19px;max-width:270px}.hw-editing .editor-heading p{margin-top:5px}.hw-editing .editor-heading .btn{font-size:11px;padding:7px 9px;min-height:32px}.hw-editing .editor-modebar{padding:5px 9px;margin-bottom:8px}.hw-editing .editor-modebar .btn{min-height:28px;padding:5px 8px}.hw-editing .tracking-editor{margin-bottom:8px}.hw-editing .tracking-editor summary{padding:9px 13px}.hw-editing .aid-workflow-bar{padding:7px 10px;margin-bottom:8px;gap:6px}.hw-editing .preview-strip{padding:8px 11px;margin-bottom:9px;font-size:10px}.hw-editing .published-linkbar{margin:8px 0;padding:9px 12px}.hw-editing .hw-shell{margin-top:8px}.hw-page-settings{border-bottom:1px solid #e2e9e5}.hw-page-settings>summary{font-size:11px;color:#486858;font-weight:600;padding:8px 16px;cursor:pointer}.hw-page-settings>summary span{font-weight:400;color:#91a295;margin-left:12px}.hw-page-settings .hw-page-fields{padding-top:6px}.hw-main{grid-template-columns:180px minmax(280px,1fr);min-height:0}.hw-inspector[hidden]{display:none}.hw-main.hw-has-selection{grid-template-columns:180px minmax(280px,1fr) 260px}.hw-preview-device{overflow:auto;overscroll-behavior:contain;width:100%;transition:none}.hw-preview-device.tablet,.hw-preview-device.mobile{width:100%}.hw-preview-surface{position:relative;overflow:hidden;min-height:1px;margin:0 auto}.hw-preview-surface iframe{position:absolute;left:0;top:0;max-width:none}.hw-zoom-label{display:flex;align-items:center;gap:5px;font-size:10px;color:#6c7e70}.hw-zoom-label select{padding:5px;border:1px solid #d3ded7;border-radius:5px;font-size:11px;color:#385340;background:white}.hw-focus-actions{display:none}.hw-focus-active{overflow:hidden}.hw-shell.hw-focus{position:fixed;inset:10px;z-index:100;margin:0;max-height:none;overflow:auto;border-color:#bccfc3;box-shadow:0 8px 70px #213a3c55}.hw-focus .hw-toolbar{position:sticky;top:0;z-index:2;padding:10px 12px}.hw-focus .hw-focus-actions{display:flex;align-items:center;gap:7px;margin-left:auto}.hw-focus-actions>span{font-size:10px;color:#617d69}.hw-focus .hw-preview-device{height:calc(100dvh - 195px);min-height:320px}.hw-focus .hw-tree-pane #hw-tree{height:calc(100dvh - 220px);min-height:295px}.hw-focus .hw-inspector{max-height:calc(100dvh - 135px)}.hw-focus .hw-source-area{scroll-margin-top:65px}.hw-focus .hw-main{grid-template-columns:190px minmax(280px,1fr)}.hw-focus .hw-main.hw-has-selection{grid-template-columns:190px minmax(280px,1fr) 290px}
@media(max-width:1450px){.hw-main.hw-has-selection{grid-template-columns:180px minmax(280px,1fr)}.hw-inspector{grid-column:1/-1;border-left:0;border-top:1px solid #dde6df;max-height:none}.hw-focus .hw-inspector{grid-column:auto;border-left:1px solid #dde6df;border-top:0}.hw-toolbar{padding:10px 12px}}
@media(max-width:1050px){.hw-focus .hw-main.hw-has-selection{grid-template-columns:170px minmax(260px,1fr)}.hw-focus .hw-inspector{grid-column:1/-1;max-height:none;border-left:0;border-top:1px solid #dde6df}.hw-focus .hw-toolbar>strong{font-size:12px}.hw-focus-actions>span{display:none}}
@media(max-width:700px){#content.hw-editing{padding-top:12px}.hw-main,.hw-main.hw-has-selection,.hw-focus .hw-main,.hw-focus .hw-main.hw-has-selection{display:flex;flex-direction:column}.hw-shell.hw-focus{inset:4px;border-radius:9px}.hw-focus .hw-toolbar{gap:5px;padding:8px}.hw-focus .hw-toolbar>strong{flex-basis:50%;font-size:12px}.hw-focus .hw-focus-actions{gap:4px}.hw-focus .hw-preview-device{height:calc(100dvh - 260px);min-height:320px}.hw-focus .hw-tree-pane #hw-tree{height:210px;min-height:0}.hw-preview-toolbar{gap:5px}.hw-preview-modes button,.hw-devices button{padding:6px}.hw-page-settings>summary{padding:7px 12px}.hw-inspector{max-height:none}}
/* Keep the existing page-level tools reachable while the HTML workspace is focused. */
body.hw-focus-active #content.hw-editing{position:fixed;inset:10px;z-index:100;display:flex;flex-direction:column;box-sizing:border-box;width:auto;margin:0;padding:0;overflow:auto;background:#fff;border:1px solid #bccfc3;border-radius:14px;box-shadow:0 8px 70px #213a3c55}
body.hw-focus-active #content.hw-editing>:not(.editor-heading):not(.hw-shell){display:none!important}
body.hw-focus-active #content.hw-editing>.editor-heading{position:sticky;top:0;z-index:3;flex:0 0 auto;box-sizing:border-box;width:100%;max-height:34vh;max-height:min(34dvh,260px);margin:0;padding:10px 12px;overflow:auto;background:#fff;border-bottom:1px solid #dce5df}
body.hw-focus-active #content.hw-editing>.editor-heading .btn-row{flex-wrap:wrap}
body.hw-focus-active #content.hw-editing>.hw-shell.hw-focus{position:relative;inset:auto;z-index:auto;flex:0 0 auto;min-height:0;width:100%;max-height:none;margin:0;overflow:auto;border:0;border-radius:0;box-shadow:none}
@media(max-width:700px){body.hw-focus-active #content.hw-editing{inset:4px;border-radius:9px}body.hw-focus-active #content.hw-editing>.editor-heading{max-height:42vh;max-height:min(42dvh,300px);padding:8px}body.hw-focus-active #content.hw-editing>.hw-shell.hw-focus{border-radius:0}}
/* Mutually exclusive structure/source workspaces. */
.hw-shell [hidden]{display:none!important}.hw-editor-modes{display:flex;gap:4px}.hw-shell .hw-main,.hw-shell.hw-focus .hw-main,.hw-shell .hw-main.hw-has-selection,.hw-shell.hw-focus .hw-main.hw-has-selection{grid-template-columns:minmax(160px,var(--hw-left,230px)) 8px minmax(220px,1fr)}.hw-shell .hw-main.hw-has-selection,.hw-shell.hw-focus .hw-main.hw-has-selection,.hw-shell.hw-source-mode .hw-main{grid-template-columns:minmax(160px,var(--hw-left,230px)) 8px minmax(220px,1fr) 260px}.hw-shell .hw-inspector,.hw-shell.hw-focus .hw-inspector{grid-column:auto;border-left:1px solid #dce5df;border-top:0;max-height:680px}.hw-divider{background:#e4ebe7;cursor:col-resize;touch-action:none;position:relative;outline-offset:-2px}.hw-divider:after{content:'';position:absolute;left:3px;top:42%;height:52px;width:2px;background:#a9bcb0;border-radius:3px}.hw-divider:hover,.hw-divider:focus-visible{background:#bbd2c5}.hw-source-pane{min-width:0;background:#18291f;display:flex;flex-direction:column}.hw-source-pane .hw-pane-title{color:#d7e9df;border-bottom:1px solid #314b3d;flex:0 0 auto}.hw-source-pane .hw-note{color:#a3bba8}.hw-source-pane #hw-source-content{min-height:0;flex:1;display:flex;flex-direction:column}.hw-source-pane .hw-source-read{flex:1;min-height:610px;max-height:none;height:100%;resize:none;border:0;border-radius:0;outline-offset:-2px;font-size:12px;line-height:20px;white-space:pre;overflow:auto}.hw-source-ai{padding:0 12px 16px;border-left:1px solid #dce5df;background:#f9fcf8;min-width:0}.hw-source-ai>.btn{width:100%;margin:8px 0}.hw-source-ai-actions{display:flex;flex-direction:column;gap:8px;padding:14px 0;border-top:1px solid #dfe8dd;margin-top:8px}.hw-source-ai-actions .btn{justify-content:flex-start}.hw-live-label{font-size:11px;color:#41614d}.hw-tree-pane #hw-tree{overflow:auto}.hw-tree-window{min-width:100%;width:max-content;right:auto}.hw-tree-row{min-width:100%;white-space:pre}.hw-tree-label{font:11px/30px ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre;overflow:visible;text-overflow:clip;flex:initial;padding-right:16px}.hw-token-tag{color:#7a457f}.hw-token-text{color:#344b3e}.hw-token-comment{color:#8a967d}.hw-token-declaration{color:#8c755b}.hw-node-source{display:block;min-height:270px;width:100%;resize:vertical;white-space:pre;overflow:auto;font:12px/1.65 ui-monospace,monospace;padding:10px;background:#20362a;color:#daecdc;border:1px solid #cad8ce;border-radius:6px}.hw-focus .hw-source-pane .hw-source-read{height:calc(100dvh - 155px);min-height:400px}.hw-focus .hw-main{min-height:calc(100dvh - 115px)}.hw-live-retry{margin-left:8px}
@media(max-width:1250px){.hw-shell .hw-main.hw-has-selection,.hw-shell.hw-focus .hw-main.hw-has-selection,.hw-shell.hw-source-mode .hw-main{grid-template-columns:minmax(160px,var(--hw-left,230px)) 8px minmax(220px,1fr)}.hw-shell .hw-inspector,.hw-shell.hw-focus .hw-inspector{grid-column:1/-1;border-left:0;border-top:1px solid #dce5df;max-height:none}.hw-source-ai{grid-column:3;border-top:1px solid #dce5df}.hw-source-ai-actions{flex-direction:row;flex-wrap:wrap}.hw-source-pane{grid-row:1/3}.hw-divider{grid-row:1/3}.hw-source-pane .hw-source-read{min-height:740px}}
@media(max-width:760px){.hw-shell .hw-main,.hw-shell.hw-focus .hw-main,.hw-shell .hw-main.hw-has-selection,.hw-shell.hw-focus .hw-main.hw-has-selection,.hw-shell.hw-source-mode .hw-main{display:flex;flex-direction:column}.hw-divider{display:none}.hw-source-pane{order:0}.hw-source-mode .hw-preview-pane{order:1}.hw-source-ai{order:2;border-left:0}.hw-tree-pane{order:1}.hw-inspector{order:2}.hw-source-pane .hw-source-read,.hw-focus .hw-source-pane .hw-source-read{height:400px;min-height:400px}.hw-tree-pane #hw-tree{height:280px}.hw-source-ai-actions{display:grid;grid-template-columns:1fr 1fr}.hw-toolbar .hw-editor-modes{order:1;width:100%}}
.editor-meta-status{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px;font-size:11px;line-height:1.8}.editor-meta-status>section{padding:12px;border:1px solid #dbe5d6;border-radius:7px;background:#f7faf3}.editor-meta-status strong{color:#385e3d}.editor-meta-status p{margin:7px 0}.editor-meta-status>.scope-note{grid-column:1/-1}.editor-meta-status a{color:#276746;text-decoration:underline}@media(max-width:760px){.editor-meta-status{grid-template-columns:1fr}}
.hw-tree-label{white-space:nowrap}.hw-token-attribute{color:#795828}.hw-source-read::selection,.hw-node-source::selection{background:#426f85;color:#fff}
/* Import feedback follows confirmed requests and real server checkpoints. */
.hw-import-dialog button[aria-busy="true"]{position:relative;padding-left:31px}.hw-import-dialog button[aria-busy="true"]::before{content:'';position:absolute;left:11px;top:calc(50% - 6px);width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:hw-import-spin .8s linear infinite}.hw-import-dialog button:disabled{opacity:.6;cursor:not-allowed}.hw-import-empty{padding:30px 15px;text-align:center;font-size:12px;line-height:1.8;color:#738575;background:#f6f9f5;border:1px dashed #d5e1d6;border-radius:8px;margin-top:18px}.hw-intent-notice{padding:14px;background:#fff7e9;border:1px solid #e7d7b7;border-radius:9px;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.hw-intent-notice p{margin:7px 0}.hw-import-taskhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px}.hw-import-taskhead h3{margin:0!important}.hw-phase-label{font-size:11px;padding:5px 8px;border-radius:6px;background:#e6f1e9;color:#2b6442}.hw-import-clock{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:11px;color:#718573;margin:12px 0}.hw-current-resource{font-size:12px;line-height:1.8;overflow-wrap:anywhere;background:#f3f7f3;padding:10px 12px;border-radius:7px}.hw-import-dialog .hw-resource-counts{grid-template-columns:repeat(6,minmax(0,1fr))}.hw-import-issues{border-top:1px solid #dfe7df;margin:14px 0;padding-top:12px}.hw-import-issues summary{font-size:12px;cursor:pointer;color:#496c50}.hw-import-dialog #hw-import-start-reason{min-height:20px}.hw-import-dialog #hw-import-read-status:empty{display:none}.hw-import-dialog #hw-import-read-status{border-left:3px solid #acc5b0;padding-left:10px;margin:12px 0}.hw-import-dialog form[inert]{opacity:.8}.hw-import-dialog input[readonly]{background:#f2f5f1;color:#6f816d}.hw-import-dialog [hidden]{display:none!important}@keyframes hw-import-spin{to{transform:rotate(360deg)}}@media(max-width:620px){.hw-import-dialog .hw-resource-counts{grid-template-columns:repeat(3,minmax(0,1fr))}.hw-import-taskhead{align-items:flex-start;flex-direction:column}.hw-import-clock{flex-direction:column;gap:4px}.hw-import-dialog .hw-import-history{gap:6px}}

.hw-import-failure{display:flex;align-items:center;justify-content:space-between;gap:10px}.hw-import-failure-text{min-width:0;flex:1}.hw-import-failure label{cursor:pointer}.hw-import-failure input,.hw-partial-confirm input{width:16px;height:16px;vertical-align:middle;margin-right:7px}.hw-import-failure .btn{flex-shrink:0}.hw-import-preview{margin:16px 0;border:1px solid #d9e5dc;border-radius:8px;padding:12px}.hw-import-preview h4{margin:0 0 10px;font-size:13px}.hw-import-preview iframe{display:block;width:100%;height:520px;border:1px solid #dce5df;background:white}.hw-partial-confirm{display:flex;align-items:flex-start;gap:6px;padding:12px;margin:12px 0;background:#fff6e9;border:1px solid #e6d4b2;border-radius:8px;font-size:12px;line-height:1.8}.hw-manual-accepted{padding:12px;border-radius:8px;background:#e9f5ec;color:#285a38}@media(max-width:620px){.hw-import-failure{align-items:flex-start;flex-direction:column}.hw-import-preview{padding:8px}.hw-import-preview iframe{height:420px}}

.hw-find-replace{flex:0 0 auto;padding:10px 12px;background:#eef5f0;border-bottom:1px solid #bad0c2;color:#294634}
.hw-find-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.hw-find-fields label{display:grid;gap:4px;min-width:0;font-size:11px;font-weight:600}
.hw-find-fields input{box-sizing:border-box;width:100%;min-width:0;height:33px;padding:6px 9px;border:1px solid #aec6b7;border-radius:5px;background:#fff;color:#203b2c;font:12px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace}
.hw-find-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:9px}
.hw-find-case{display:inline-flex;align-items:center;gap:5px;font-size:11px;white-space:nowrap;cursor:pointer}
.hw-find-case input{width:15px;height:15px;margin:0;accent-color:#147557}
#hw-find-status{margin-right:auto;font-size:11px;color:#426d56;white-space:nowrap}
.hw-find-actions .btn{min-height:30px;padding:4px 7px;font-size:11px;white-space:nowrap}
.hw-find-actions .btn:disabled{opacity:.45;cursor:not-allowed}
.hw-find-replace input:focus-visible,.hw-find-replace button:focus-visible{outline:2px solid #138168;outline-offset:2px}
@media(max-width:760px){.hw-find-fields{grid-template-columns:1fr}.hw-find-actions{gap:5px}.hw-find-actions .btn{flex:0 0 auto}}
/* The editor owns the full viewport only while focus mode is active. */
body.hw-focus-active #content.hw-editing{inset:0;width:100%;height:100dvh;max-width:none;border:0;border-radius:0;box-shadow:none;overflow:hidden}
body.hw-focus-active #content.hw-editing>.editor-heading{position:relative;max-height:min(30dvh,220px)}
body.hw-focus-active #content.hw-editing>.hw-shell.hw-focus{flex:1 1 auto;display:flex;flex-direction:column;min-height:0;overflow:auto;scrollbar-gutter:stable}
body.hw-focus-active #content.hw-editing>.hw-shell.hw-focus .hw-toolbar,
body.hw-focus-active #content.hw-editing>.hw-shell.hw-focus .hw-page-settings{flex:0 0 auto}
body.hw-focus-active #content.hw-editing>.hw-shell.hw-focus .hw-main{flex:1 1 auto;min-height:0}
body.hw-focus-active #content.hw-editing>.hw-shell.hw-focus .hw-tree-pane,
body.hw-focus-active #content.hw-editing>.hw-shell.hw-focus .hw-preview-pane{display:flex;flex-direction:column;min-height:0}
body.hw-focus-active #content.hw-editing>.hw-shell.hw-focus .hw-tree-pane #hw-tree{flex:1 1 auto;height:auto;min-height:160px}
body.hw-focus-active #content.hw-editing>.hw-shell.hw-focus .hw-preview-device{flex:1 1 auto;height:auto;min-height:280px}
body.hw-focus-active #content.hw-editing>.hw-shell.hw-focus .hw-inspector{min-height:0;max-height:none}
body.hw-focus-active #content.hw-editing>.hw-shell.hw-focus .hw-source-pane .hw-source-read{height:100%;min-height:0}
@media(max-width:760px){body.hw-focus-active #content.hw-editing>.hw-shell.hw-focus .hw-main{flex:0 0 auto}body.hw-focus-active #content.hw-editing>.hw-shell.hw-focus .hw-tree-pane #hw-tree{flex:0 0 210px;height:210px}body.hw-focus-active #content.hw-editing>.hw-shell.hw-focus .hw-preview-device{flex:0 0 auto;height:min(55dvh,600px);min-height:320px}body.hw-focus-active #content.hw-editing>.hw-shell.hw-focus .hw-source-pane .hw-source-read{min-height:400px}}
@media(min-width:761px){.hw-shell .hw-tree-pane,.hw-shell .hw-source-pane{grid-column:1}.hw-shell .hw-divider{grid-column:2}.hw-shell .hw-preview-pane{grid-column:3}.hw-shell .hw-inspector,.hw-shell .hw-source-ai{grid-column:4}}
@media(min-width:761px) and (max-width:1250px){.hw-shell .hw-inspector{grid-column:1/-1}.hw-shell .hw-source-ai{grid-column:3}}
