/* Layout-only layer: all original controls and handlers remain in the document. */
:root{--demo-space:24px}
body{font-size:14px;background:#f5f7fb}
.content{max-width:1600px;padding:24px 32px 48px}
.page-head{margin-bottom:24px;gap:20px}.page-title{font-size:26px;line-height:1.4}
.page-sub,.hint{line-height:1.75}.card{border-radius:12px}.card-pad{padding:24px}
.btn{min-height:38px;border-radius:8px}.btn-sm{min-height:32px}.input:focus,.select:focus{outline:2px solid #b6cefb;outline-offset:1px}
button:focus-visible,[role=button]:focus-visible,a:focus-visible{outline:3px solid #96b9ff;outline-offset:3px}
.demo-tabs{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid #dce4ef;margin:0 0 24px;padding:0 0 10px}
.demo-tabs button{border:0;border-radius:8px;background:transparent;padding:10px 18px;color:#526177;font:inherit;cursor:pointer}
.demo-tabs button[aria-selected=true]{background:#eaf1ff;color:#245fc9;font-weight:700}
.demo-tabs button:hover{background:#f0f4fa}.demo-pane[hidden]{display:none!important}
.demo-group-head{display:flex;align-items:center;justify-content:space-between;width:100%;background:transparent;border:0;text-align:left;color:#65738a;padding:10px 12px;font:inherit;font-size:12px;cursor:pointer}.demo-group-head::after{content:'⌄'}.demo-group-head[aria-expanded=false]::after{content:'›'}
.nav-group.demo-collapsed>.nav-item{display:none}.nav-scroll .nav-item{margin:2px 0;padding-top:10px;padding-bottom:10px}
#aiSiteRoot .demo-pane>section{margin-bottom:24px!important}#aiSiteRoot .demo-pane .home-metric-grid{margin-top:0}
#aiSiteRoot .ai-site-status-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;width:100%;margin:0 0 16px}
#aiSiteRoot .ai-site-status-grid>.card{min-height:148px;padding:26px 28px;box-sizing:border-box}
#aiSiteRoot .ai-site-status-grid>.card b{display:block;margin-top:28px;font-size:28px;line-height:1.25;font-weight:760}
@media(max-width:760px){#aiSiteRoot .ai-site-status-grid{grid-template-columns:1fr}}
#aiSiteRoot .ai-dns-steps{margin:0 0 16px;padding:18px 20px;border:2px solid #E8A317;border-radius:12px;background:#FFF8E8}
#aiSiteRoot .ai-dns-steps-title{font-size:18px;font-weight:760;color:#8A4B08;margin:0 0 8px}
#aiSiteRoot .ai-dns-steps-note{margin:0 0 14px;color:#6B4A1B;font-size:14px;line-height:1.6}
#aiSiteRoot .ai-dns-steps-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#aiSiteRoot .ai-dns-steps-grid>div{background:#fff;border:1px solid #F3D48A;border-radius:10px;padding:12px 14px}
#aiSiteRoot .ai-dns-steps-grid span{display:block;font-size:12px;color:#8A6A32;margin-bottom:6px}
#aiSiteRoot .ai-dns-steps-grid b{display:block;font-size:22px;line-height:1.3;color:#1A1A1A;word-break:break-all}
#aiSiteRoot .ai-dns-steps-grid small{display:block;margin-top:6px;color:#8A6A32;font-size:12px;line-height:1.45}
@media(max-width:760px){#aiSiteRoot .ai-dns-steps-grid{grid-template-columns:1fr 1fr}}
#aiSiteRoot .ai-dns-links{display:flex;flex-wrap:wrap;gap:8px 16px;margin:0 0 8px}
#aiSiteRoot .ai-dns-links a{color:#1F6FEB;font-size:14px;font-weight:650;text-decoration:underline;text-underline-offset:3px}
#aiSiteRoot .ai-dns-links a:hover{color:#0F4FBE}
#aiSiteRoot a.ai-text-link{color:#1F6FEB;font-weight:650;text-decoration:underline;text-underline-offset:3px}
#aiSiteRoot a.ai-text-link:hover{color:#0F4FBE}
#aiSiteRoot #aiSiteThemes{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important}
.demo-site-overview{padding:24px;margin-bottom:24px}.demo-site-overview h2{font-size:20px;margin-bottom:10px}.demo-site-overview .demo-shortcuts{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}
.v32-article-workspace{gap:24px}.v32-editor-card{overflow:visible}.v32-editor-body{padding:18px}.v32-preview-body{max-height:78vh;overflow:auto}
.v32-article-actions{position:sticky;bottom:12px;z-index:6;background:#fff;border:1px solid #dce4ef;border-radius:10px;padding:12px;box-shadow:0 5px 22px #22395b12;display:flex;flex-wrap:wrap;gap:10px}
.v32-article-actions>div{display:flex;gap:8px;flex-wrap:wrap}.v32-article-actions>div:last-child{order:-1;width:100%;padding-bottom:10px;border-bottom:1px solid #edf0f5}
.demo-secondary-actions{margin-top:10px}.demo-secondary-actions summary{cursor:pointer;color:#526177;padding:8px 0}.demo-secondary-actions>div{display:flex;gap:8px;flex-wrap:wrap;padding:8px 0}
.demo-library-filters{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0;align-items:end}.demo-library-filters label{display:flex;flex-direction:column;gap:6px;color:#526177;font-size:12px}.demo-library-filters .input{min-width:150px;height:38px}
.demo-pager{display:flex;flex-wrap:wrap;align-items:center;gap:12px;justify-content:flex-end;margin:20px 0}.demo-pager select{width:85px}.demo-empty{padding:30px;color:#738199;text-align:center}
.video-pack-slides{gap:18px}.video-preview-actions{display:flex;flex-wrap:wrap;gap:6px}#videoPackCurrent>.page-actions{position:sticky;bottom:12px;z-index:5;background:white;border:1px solid #dce4ef;border-radius:10px;padding:12px;box-shadow:0 5px 22px #22395b12}
.v32-compliance-actions{position:sticky;bottom:12px;background:white;border:1px solid #dce4ef;padding:14px;border-radius:10px;z-index:5}
@media(max-width:1050px){.content{padding:20px}.v32-article-workspace{grid-template-columns:1fr}.v32-preview-body{max-height:500px}}
@media(max-width:650px){.content{padding:16px}.demo-tabs button{padding:9px 12px}.page-title{font-size:23px}.demo-library-filters label{width:100%}}
.v32-draft-row[hidden]{display:none!important}.nav-group.demo-collapsed>.nav-group{display:none}
.demo-nav-search{width:calc(100% - 16px);margin:8px;height:36px;font-size:12px}.nav-item[hidden],.nav-group[hidden]{display:none!important}
.demo-primary-actions{width:100%;display:flex;gap:8px;flex-wrap:wrap;padding-bottom:10px;border-bottom:1px solid #edf0f5}.demo-secondary-actions{width:100%;margin-top:0}

/* File templates live beside upload, with all original download options retained. */
#filesRoot .page-head{align-items:flex-start;flex-wrap:wrap}
/* Files list only: keep header in one row, scroll the table, not the page. */
#filesRoot .material-layout,
#filesRoot .material-layout>div{min-width:0;max-width:100%}
#filesRoot .table-wrap{overflow-x:auto;overflow-y:visible;max-width:100%;-webkit-overflow-scrolling:touch}
#filesRoot table.tbl{width:max-content;min-width:1120px;max-width:none;table-layout:fixed}
#filesRoot .tbl th{white-space:nowrap;vertical-align:middle;line-height:1.4}
#filesRoot .tbl td{white-space:normal;overflow-wrap:anywhere;word-break:break-word;vertical-align:middle}
#filesRoot .tbl th:nth-child(1),#filesRoot .tbl td:nth-child(1){width:220px;min-width:220px}
#filesRoot .tbl th:nth-child(2),#filesRoot .tbl td:nth-child(2){width:120px;min-width:120px}
#filesRoot .tbl th:nth-child(3),#filesRoot .tbl td:nth-child(3){width:160px;min-width:160px}
#filesRoot .tbl th:nth-child(4),#filesRoot .tbl td:nth-child(4){width:110px;min-width:110px}
#filesRoot .tbl th:nth-child(5),#filesRoot .tbl td:nth-child(5){width:140px;min-width:140px}
#filesRoot .tbl th:nth-child(6),#filesRoot .tbl td:nth-child(6){width:150px;min-width:150px}
#filesRoot .tbl th:nth-child(7),#filesRoot .tbl td:nth-child(7){width:140px;min-width:140px}
#filesRoot .tbl th:nth-child(8),#filesRoot .tbl td:nth-child(8){width:108px;min-width:108px;white-space:nowrap}
#filesRoot .tbl td .badge{white-space:normal;height:auto;line-height:1.35}
#filesRoot .tbl td:nth-child(8) .btn{white-space:nowrap;flex-shrink:0}
.demo-file-actions{display:flex;gap:12px;align-items:flex-start;margin-left:auto;flex-shrink:0}
.demo-template-menu{position:relative;z-index:10}
.demo-template-menu>summary{list-style:none;cursor:pointer;white-space:nowrap}
.demo-template-menu>summary::-webkit-details-marker{display:none}
.demo-template-menu>.material-template-card{position:absolute;right:0;top:calc(100% + 10px);width:360px;max-width:calc(100vw - 48px);border:1px solid #dce4ef;box-shadow:0 12px 32px #22395b20;background:white}
/* Both panels share one full-width bottom action row. */
.v32-article-workspace{align-items:stretch}
.v32-article-workspace>.v32-article-actions{grid-column:1/-1;bottom:0;margin:0}
.v32-article-workspace>.v32-editor-card,.v32-article-workspace>.v32-preview-card{margin-bottom:0}
.vis-published-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:8px 0 10px}
.vis-published-list{max-height:420px;overflow:auto;border:1px solid #dce4ef;border-radius:10px;padding:4px 12px}
.vis-published-row{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-bottom:1px dashed #edf0f5;cursor:pointer;font-size:14px;line-height:1.5}
.vis-published-row:last-child{border-bottom:0}
.vis-published-row small{display:block;color:#667085;font-size:12px;margin-top:2px}
.vis-published-row input{margin-top:4px;flex:none}
.vis-run-pick{display:flex;align-items:center;gap:8px;font-size:13px;color:#667085;flex:none}
.vis-run-pick select{width:auto;min-width:220px;max-width:min(100%,360px);height:36px}
@media(max-width:1180px){.v32-article-workspace>.v32-editor-card,.v32-article-workspace>.v32-preview-card{grid-column:1/-1}}
@media(max-width:650px){.demo-file-actions{margin-left:0;flex-wrap:wrap}.demo-template-menu>.material-template-card{left:0;right:auto}}

/* Knowledge overview precedes the original record list; every live node is retained. */
#knowledgeRoot .demo-knowledge-overview{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin:20px 0 28px}
#knowledgeRoot .demo-knowledge-overview>.card{padding:20px 24px;min-width:0;margin:0}
#knowledgeRoot .demo-knowledge-overview h3{font-size:16px;margin:0}
#knowledgeRoot .demo-knowledge-needs{border:1px solid #eadfc8;background:#fffdf8;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px}
#knowledgeRoot .demo-knowledge-needs>h3,#knowledgeRoot .demo-knowledge-needs>p,#knowledgeRoot .demo-knowledge-needs>.knowledge-module-summary{grid-column:1}
#knowledgeRoot .demo-knowledge-needs>button{grid-column:2;grid-row:1/4;align-self:center;width:auto!important;margin:0!important;padding:0 22px}
#knowledgeRoot .demo-knowledge-needs .knowledge-module-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px}
#knowledgeRoot .demo-knowledge-needs .knowledge-module-row{display:flex;align-items:flex-start;justify-content:flex-start;gap:10px;padding:8px 0;line-height:1.65}
#knowledgeRoot .demo-knowledge-needs .pill{flex-shrink:0}
#knowledgeRoot .demo-knowledge-categories .knowledge-module-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 14px;margin-top:14px}
#knowledgeRoot .demo-knowledge-categories .knowledge-module-row{display:grid;grid-template-columns:minmax(0,1fr) auto 44px;gap:10px;align-items:center;border:1px solid #e8edf4;border-radius:8px;padding:12px 14px;margin:0;min-height:52px}
#knowledgeRoot .demo-knowledge-categories .knowledge-module-row>b{line-height:1.5;font-weight:600}
#knowledgeRoot .demo-knowledge-categories .knowledge-module-row>span:last-child{text-align:right;white-space:nowrap}
#knowledgeRoot .demo-knowledge-process{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;background:#f8faff;border:1px solid #e4ebf5}
#knowledgeRoot .demo-knowledge-process .knowledge-flow{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0}
#knowledgeRoot .demo-knowledge-process>p{flex-basis:100%;margin:0}
#knowledgeRoot .knowledge-layout{grid-template-columns:minmax(0,1fr)!important;min-width:0}
@media(max-width:1400px){#knowledgeRoot .demo-knowledge-categories .knowledge-module-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){#knowledgeRoot .demo-knowledge-needs .knowledge-module-summary{grid-template-columns:1fr}#knowledgeRoot .demo-knowledge-needs{display:block}#knowledgeRoot .demo-knowledge-needs>button{margin-top:12px!important}#knowledgeRoot .demo-knowledge-categories .knowledge-module-summary{grid-template-columns:1fr}}
#knowledgeRoot .knowledge-layout>div{min-width:0}
#knowledgeRoot .table-wrap{max-width:100%;overflow-x:auto}
#knowledgeRoot .tbl{width:100%;min-width:1280px;table-layout:fixed}
#knowledgeRoot .tbl th{white-space:nowrap}
#knowledgeRoot .tbl td{overflow-wrap:anywhere;vertical-align:middle}
#knowledgeRoot .tbl th:nth-child(1){width:230px}
#knowledgeRoot .tbl th:nth-child(2){width:160px}
#knowledgeRoot .tbl th:nth-child(3){width:280px}
#knowledgeRoot .tbl th:nth-child(n+4){width:100px}
#knowledgeRoot .tbl td .btn-link{white-space:normal;text-align:left;overflow-wrap:anywhere;max-width:100%}
#knowledgeRoot .tbl td:last-child .btn{white-space:nowrap}

/* Focused workflow refinements; original controls and data remain in place. */
#v32QuestionsRoot,#filesRoot,#knowledgeRoot,#v32ComplianceRoot{min-width:0;max-width:100%}
#v32QuestionsRoot .table-wrap{min-width:0;max-width:100%;overflow-x:auto}
#v32QuestionsRoot .v32-question-table{min-width:1180px;width:100%;table-layout:fixed}
#v32QuestionsRoot .v32-question-table th{white-space:nowrap}
#v32QuestionsRoot .v32-question-table th:first-child{width:290px}
#v32QuestionsRoot .v32-question-table th:nth-child(2){width:145px}
#v32QuestionsRoot .v32-question-table th:nth-child(3),#v32QuestionsRoot .v32-question-table th:nth-child(4){width:150px}
#v32QuestionsRoot .v32-question-table th:last-child{width:110px}
#v32QuestionsRoot .v32-question-table td{overflow-wrap:anywhere}
#v32QuestionsRoot .v32-question-table.v32-diagnosis-table{min-width:0;width:100%;table-layout:fixed}
#v32QuestionsRoot .v32-question-table.v32-diagnosis-table th:first-child,#v32QuestionsRoot .v32-question-table.v32-diagnosis-table td:first-child{width:44px;padding-left:12px;padding-right:8px}
#v32QuestionsRoot .v32-question-table.v32-diagnosis-table th:nth-child(2),#v32QuestionsRoot .v32-question-table.v32-diagnosis-table td:nth-child(2){width:auto}
#v32QuestionsRoot .v32-question-table.v32-diagnosis-table th:nth-child(3),#v32QuestionsRoot .v32-question-table.v32-diagnosis-table td:nth-child(3){width:148px}
#v32QuestionsRoot .v32-question-table.v32-diagnosis-table th:nth-child(4),#v32QuestionsRoot .v32-question-table.v32-diagnosis-table td:nth-child(4){width:118px}
#v32QuestionsRoot .v32-question-table.v32-diagnosis-table th:nth-child(5),#v32QuestionsRoot .v32-question-table.v32-diagnosis-table td:nth-child(5){width:72px}
#v32QuestionsRoot .v32-question-table.v32-diagnosis-table th:nth-child(6),#v32QuestionsRoot .v32-question-table.v32-diagnosis-table td:nth-child(6){width:88px}
#v32QuestionsRoot .v32-question-table.v32-diagnosis-table th:last-child,#v32QuestionsRoot .v32-question-table.v32-diagnosis-table td:last-child{width:108px}
#v32QuestionsRoot .v32-question-table.v32-diagnosis-table .table-title{min-width:0;max-width:none}
.demo-scroll-table table th:last-child,.demo-scroll-table table td:last-child{position:sticky;right:0;background:#fff;box-shadow:-5px 0 9px -8px #62718b;z-index:1;white-space:nowrap}
.demo-scroll-table table th:last-child{background:#f8fafc;z-index:2}
.demo-scroll-hint{font-size:12px;color:#65748b;margin:8px 0}
.demo-synonyms summary{font-size:12px;cursor:pointer;color:#3266bb;margin-top:6px}
.demo-design-panel{padding:12px 0 20px}
.demo-design-save,.demo-report-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:white;padding:14px;border:1px solid #e4eaf2;border-radius:12px}
.demo-design-save{position:sticky;bottom:0;z-index:4;box-shadow:0 -5px 18px #20304a09}
.demo-design-save .page-sub{flex:1;margin:0;min-width:160px}
.demo-report-tools span{flex:1;overflow-wrap:anywhere}
.demo-category-link{font:inherit;text-align:left;width:100%;cursor:pointer;background:#fff;color:inherit;border:1px solid #e4eaf2;border-radius:10px;padding:12px}
.demo-category-link:hover,.demo-category-link:focus-visible{background:#eef4ff;outline:2px solid #b9d0ff}
.demo-editor-status{margin-left:auto;color:#65748b;font-size:12px}
.demo-publish-hint{display:block;flex-basis:100%;color:#65748b;font-size:12px}
.publish-selected{flex-wrap:wrap}
.demo-filter-summary{border-top:1px solid #e4eaf2;padding-top:12px;color:#526580;font-size:13px}
#v32ComplianceRoot .demo-library-filters{grid-template-columns:minmax(200px,1fr) minmax(140px,220px)}
#v32ComplianceRoot .v32-compliance-table{min-width:850px}
#v32ComplianceRoot .v32-compliance-table td:last-child{white-space:nowrap}
#v32ComplianceRoot .table-wrap{overflow-x:auto}
#filesRoot table.tbl{width:100%}
@media(max-width:900px){.demo-design-save{position:static}.demo-editor-status{margin-left:0;flex-basis:100%}.demo-design-save .btn{flex:1}#v32ComplianceRoot .demo-library-filters{grid-template-columns:1fr}}
#v32QuestionsRoot .v32-question-panel{grid-template-columns:minmax(0,1fr)}
#v32QuestionsRoot .v32-question-panel>*{min-width:0;max-width:100%}
.demo-video-copy{padding:18px;border:1px solid #e4eaf2;border-radius:12px;background:#fafcff;margin:16px 0 24px}
.demo-step-title{font-size:16px;margin:24px 0 14px}
.demo-video-save{position:sticky;bottom:0;z-index:3;padding:14px;background:#fff;border:1px solid #e4eaf2;border-radius:12px;box-shadow:0 -4px 15px #20304a08}
.demo-video-status{flex-basis:100%;color:#65748b;font-size:12px}
.demo-video-copy-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:14px}
.demo-video-copy-actions .demo-video-status{flex-basis:auto}
.demo-video-save #videoRerollLayout{margin-bottom:0}
.diag-fix-lead{font-weight:700;margin:0 0 8px}
.diag-fix-copy{margin:0;line-height:1.75;font-size:15px}
.diag-fix-item{padding:12px 0;border-top:1px solid #edf0f5}
.diag-fix-item:first-child{border-top:0;padding-top:0}
.diag-fix-item p{margin:6px 0 0;line-height:1.7;color:#3d4a5c}
