/* AraPage: the document stays central; one restrained blue AI workspace. */
:root{--hub-ink:#24354b;--hub-muted:#5d6f86;--hub-line:#e0e7ef;--hub-blue:#315fcd;--hub-paper:#fff;--hub-soft:#f5f8fc}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.hub-launch{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:9px 15px;font-size:13px;background:var(--hub-blue);border-radius:8px;white-space:nowrap}.hub-launch:hover{background:#264fac!important}.hub-launch span{font-size:12px;padding:1px 6px;border-radius:20px;background:#ffffff25}.top-actions{gap:10px}.top-actions #saveState{order:-1}.topbar{min-height:62px}.tabs-row{min-height:48px}.page-eyebrow{letter-spacing:.6px}.page-section .section-no{display:none}.paper{max-width:950px;padding:38px 42px}.page-scroll{background:#f5f7fa;padding:24px}.paper{border:1px solid #e4e9f0;border-radius:4px}.work-area{overflow:hidden}.ai-hub{width:390px;flex:0 0 390px;min-height:0;display:flex;flex-direction:column;border-left:1px solid var(--hub-line);background:var(--hub-paper);color:var(--hub-ink)}
.hub-header{display:flex;justify-content:space-between;align-items:center;padding:0 18px;min-height:54px;border-bottom:1px solid #e8edf3;gap:8px}.hub-header strong{display:flex;align-items:center;gap:8px;font-size:16px}.hub-header strong svg{color:var(--hub-blue)}.hub-header small{font-size:12px;font-weight:400;color:var(--hub-muted)}.hub-header>div{display:flex;gap:2px}.hub-header .icon{width:38px;height:44px;color:#657c9a}.hub-nav{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:5px 18px;border-bottom:1px solid #edf1f6;font-size:12px;color:var(--hub-muted);min-height:44px}.hub-nav button{display:flex;align-items:center;gap:6px;min-height:36px;padding:6px 0;color:#315f95}.hub-nav svg{width:15px}.hub-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}.hub-pane{padding:24px 20px}.hub-pane h2{font-size:21px;line-height:1.5;letter-spacing:-.6px;margin:0 0 10px}.hub-description{font-size:13px;line-height:1.8;color:var(--hub-muted);margin:0}.hub-quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:24px 0}.hub-quick button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;border:1px solid #dfe6f0;border-radius:9px;padding:15px 5px;min-height:80px;font-size:12px;color:#3f597b}.hub-quick button:hover,.hub-create-grid button:hover{background:#f1f5fd;border-color:#b9cae8}.hub-quick svg{color:#547aa9;width:21px;height:21px}.hub-recommendation{border:1px solid #d9e4f5;border-radius:10px;padding:17px;background:#f7faff}.hub-overline{font-size:12px;color:#547baa}.hub-recommendation h3{font-size:15px;line-height:1.65;margin:9px 0}.hub-recommendation p{font-size:12px;line-height:1.8;color:var(--hub-muted);margin:0 0 12px}.hub-recommendation button{background:#fff;border:1px solid #cbd9ed;border-radius:7px;min-height:44px;width:100%;font-size:12px;color:#315f98}.hub-empty-note{font-size:12px;line-height:1.8;color:var(--hub-muted);border-left:2px solid #d5e0ef;padding-left:12px}.hub-guide{font-size:12px;color:var(--hub-muted);margin-top:24px}.hub-guide summary{cursor:pointer;padding:12px 0;min-height:44px}.hub-guide ol{padding-left:21px;line-height:1.9}.hub-guide p{margin-top:10px;line-height:1.8}.hub-create-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}.hub-create-grid button{text-align:left;border:1px solid var(--hub-line);border-radius:9px;padding:16px 12px;min-height:90px;font-size:14px}.hub-create-grid small{display:block;font-size:12px;line-height:1.6;color:var(--hub-muted);margin-top:7px}.hub-composer-wrap{border-top:1px solid #e7ecf3;padding:13px 18px 16px;background:#fff;flex-shrink:0}.hub-composer-context,.hub-scope-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--hub-muted)}.hub-composer-context>span{font-weight:700;color:#3a557a}.hub-composer-context button{font-size:12px;min-height:30px;color:#5e779c;padding:4px 0}.hub-scope-row{margin-top:3px}.hub-scope-row select{max-width:235px;font:inherit;border:1px solid #e0e6ee;padding:7px;border-radius:5px;background:#f8fafc;color:#536983;min-height:34px}.hub-scope-row select:disabled{opacity:.8}#hubScopeDetail{font-size:12px;color:#61778f;line-height:1.6;margin:7px 0 10px;overflow-wrap:anywhere}#hubComposer{border:1px solid #b9cce9;border-radius:11px;padding:10px 11px;background:white}#hubComposer:focus-within{outline:2px solid #a9c0e6;outline-offset:1px}#hubRequest{border:0;outline:0;width:100%;height:64px;max-height:140px;resize:vertical;background:transparent;font-size:13px;line-height:1.7;display:block;padding:0;color:#2c425e}#hubRequest::placeholder{color:#657991}.hub-send-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:7px}.hub-send-row span{font-size:12px;color:#627992;line-height:1.5}.hub-send-row button{width:40px;height:40px;flex-shrink:0;padding:0;display:grid;place-items:center;border-radius:7px;background:var(--hub-blue)}.hub-send-row svg{width:18px;height:18px}.hub-save-note{display:block;text-align:center;color:#697d94;font-size:12px;margin-top:9px}.hub-request-actions{display:flex;gap:10px}.hub-request-actions button{font-size:12px;color:#315f95;min-height:36px;text-align:left}#hubStatus{font-size:12px;line-height:1.7;color:#42658e;margin-top:8px}#hubStatus:empty{display:none}.hub-history-actions{display:flex;flex-direction:column;gap:8px;margin:20px 0}.hub-history-actions button{min-height:44px;border:1px solid #dce5f0;border-radius:6px;text-align:left;padding:8px 12px;color:#42638e;font-size:13px}.hub-history-row{border-bottom:1px solid #edf1f5;padding:15px 0;display:flex;flex-direction:column;gap:6px;font-size:13px;line-height:1.7}.hub-history-row time{font-size:12px;color:#71859e}.hub-structure{margin-top:15px;border-top:1px solid #e0e6ee;font-size:12px}.hub-structure>summary{cursor:pointer;padding:14px 10px;min-height:44px;color:#576f90}.hub-structure #structurePanel{padding:0}.hub-structure .inspector-heading,.hub-structure #aiShortcut{display:none}.hub-structure .selection-settings{padding:10px}.hub-structure .source-box{padding:10px}.sidebar{overflow-y:auto}.sidebar-note{display:none}.sidebar-bottom{padding-bottom:0}.sidebar .project-list{flex:none;max-height:26vh}.workspace-name{padding-top:15px}.project-name{padding-left:10px}.sidebar #currentProjectName{display:none}
/* Existing AI views retain service state while being presented in a single dock. */
#hubSurfaces,#hubLegacy,#hubChanges{padding:0}#aiHub dialog.hub-dialog{position:static;inset:auto;max-width:none;width:100%;max-height:none;height:auto;overflow:visible;margin:0;padding:20px;border:0;border-radius:0;box-shadow:none;background:#fff;color:var(--hub-ink)}#aiHub dialog.hub-dialog[open]{display:block}#aiHub dialog.hub-dialog header{padding:0 0 14px;margin:0 0 14px;border-bottom:1px solid #e8edf3;gap:8px}#aiHub dialog.hub-dialog h2{font-size:18px;line-height:1.5;margin:0}#aiHub dialog.hub-dialog p{font-size:13px;line-height:1.8;margin:10px 0;color:#4c6380}#aiHub dialog.hub-dialog button{min-height:40px;max-width:100%;font-size:12px;white-space:normal}#aiHub dialog.hub-dialog footer{position:static;padding:16px 0 0;margin-top:16px;display:flex;flex-wrap:wrap;gap:8px;background:#fff;border-top:1px solid #e4eaf2}#aiHub dialog.hub-dialog footer button{flex:1 1 125px}#aiHub dialog.hub-dialog header button[data-close],#aiHub #pageAIDraftClose{display:none}#aiHub dialog.hub-dialog img,#aiHub dialog.hub-dialog video{max-width:100%;height:auto}#aiHub .page-ai-draft article{padding:10px 0}#aiHub .page-ai-draft h1{font-size:23px;margin:12px 0}#aiHub .page-ai-draft table{font-size:12px;display:block;overflow:auto}#aiHub .page-ai-draft-note{padding:0}#aiHub .check-issue{padding:13px;margin-top:12px}#aiHub .check-issue h3{font-size:15px}#aiHub .check-evidence{padding:10px}#aiHub .check-evidence blockquote{font-size:12px}#aiHub .agent-label{display:none}#aiHub .agent-steps{gap:4px}#aiHub .agent-steps li{font-size:12px;padding:5px 7px}#aiHub #documentCheckDialog>.field,#aiHub #documentCheckDialog>.check-actions{display:none}#aiHub #pageVisualDialog [data-run]{display:none}#aiHub #pageVisualDialog [data-preview] details{font-size:12px}#aiHub #pageVisualDialog [data-preview] li{margin:12px 0;font-size:13px}#aiHub .source-update-banner{margin:0;padding:20px;border:0;border-radius:0;max-height:none;overflow:visible;background:white}#aiHub .source-update-heading{flex-direction:column;align-items:stretch;gap:12px}#aiHub .source-update-heading strong{font-size:16px;line-height:1.7}#aiHub .source-update-heading p{font-size:13px;line-height:1.8}#aiHub .source-update-buttons{flex-wrap:wrap;justify-content:flex-start}#aiHub .source-update-diffs{max-height:none;overflow:visible;padding:0}#aiHub .source-field-values{grid-template-columns:1fr}#aiHub .source-update-banner details>summary{font-size:13px}#aiHub .source-field{padding:12px 0}#aiHub .source-field-values p{font-size:13px;line-height:1.8}#aiHub .source-change-title{flex-direction:column;align-items:stretch}#aiHub .source-change-title h3{font-size:15px}#aiHub .source-document-links button{width:100%;font-size:12px}#aiHub .source-evidence{font-size:12px}#aiHub .source-evidence blockquote{margin:10px 0;font-size:12px}#aiHub .generation-progress ol{font-size:12px;gap:8px}#aiHub .generation-symbol{width:22px;height:22px;margin-bottom:14px}#aiHub .generation-progress .generation-detail{font-size:14px}
#hubLegacy>div{padding:20px}#hubLegacy .inspector-heading,#hubLegacy .ai-label,#hubLegacy label[for="aiRequest"],#hubLegacy textarea,#hubLegacy #previewAI,#hubLegacy .ai-options,#hubLegacy #pageAIGenerate,#hubLegacy #pageAIExample,#hubLegacy .page-ai-preview-choice,#hubLegacy .mock-note:not([role=status]){display:none}#hubLegacy #aiProgress,#hubLegacy #pageAIStatus{font-size:13px;line-height:1.8;color:#46658a}#hubLegacy .scope-label{margin-bottom:15px}#hubLegacy .proposal-before,#hubLegacy .proposal-after{font-size:13px;line-height:1.8;padding:13px;border-radius:7px}#hubLegacy .proposal-actions{display:flex;flex-wrap:wrap;gap:8px}#hubLegacy .proposal-actions button{min-height:42px;font-size:12px}.ai-hub button:focus-visible,.ai-hub select:focus-visible{outline:2px solid #648ddd;outline-offset:2px}.editor-workflow{padding:9px 16px}.editor-workflow-actions{flex-shrink:1}.editor-workflow-actions button{font-size:12px}.source-document-context{max-height:23vh}.source-document-context details{font-size:12px}.document-toolbar{flex-wrap:wrap}.hub-dialog .artifact-frame{min-width:0;max-width:100%}
@media(min-width:1700px){.ai-hub{width:410px;flex-basis:410px}}
@media(max-width:1200px) and (min-width:1001px){.ai-hub{width:355px;flex-basis:355px}.paper{padding:30px 25px}.page-scroll{padding:17px}.hub-header small{display:none}}
@media(max-width:1000px){.ai-hub{position:fixed;inset:110px 0 0 auto;width:min(420px,100vw);z-index:30;box-shadow:-10px 0 35px #1f355321;border-left:1px solid #cad7e8}.ai-hub .hub-header{min-height:54px}.hub-launch{min-height:44px}.hub-header button{width:44px}.hub-composer-wrap{padding-bottom:max(13px,env(safe-area-inset-bottom))}.hub-send-row button{width:44px;height:44px}.hub-scope-row select{min-height:40px}.hub-composer-context button{min-height:36px}.hub-pane button,#aiHub dialog.hub-dialog button{min-height:44px}.hub-request-actions button{min-height:44px}}
@media(max-width:700px){.topbar{padding:0 10px;gap:7px}.top-actions{gap:6px}.hub-launch{font-size:12px;padding:8px 11px}.top-actions .mockup{display:none}.top-actions #sharePage{font-size:12px;padding:6px 9px}.page-scroll{padding:10px}.paper{padding:27px 23px;border-radius:2px}.ai-hub{top:62px;width:100%;max-height:calc(100dvh - 62px)}.hub-header{padding:0 16px}.hub-header small{font-size:12px}.hub-pane{padding:20px}.hub-composer-wrap{padding:10px 16px 12px}.hub-save-note{display:none}.hub-composer-context{font-size:12px}.hub-scope-row{font-size:12px}#hubScopeDetail{margin:5px 0 8px}#hubRequest{height:55px;font-size:16px}.hub-description{font-size:14px}.hub-guide{font-size:13px}.hub-create-grid small{font-size:12px}.editor-workflow{padding:8px 10px}.editor-workflow p{font-size:12px}.source-document-context{max-height:25vh}}
@media(prefers-reduced-motion:reduce){.ai-hub *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

#hubSectionSelect{max-width:240px}#hubLegacy #cancelAI,#hubLegacy #pageAICancel{display:none}

#aiHub #documentCheckDialog header button[data-close],#aiHub #pageVisualDialog header button[data-close]{display:inline-flex;flex-shrink:0}
