/* Veyra shell. Geometry follows the installed Notion desktop reference. */
html,body{margin:0;height:100%;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI Variable Display","Segoe UI",Helvetica,"Apple Color Emoji","Noto Sans Arabic","Noto Sans Hebrew",Arial,sans-serif,"Segoe UI Emoji","Segoe UI Symbol"}
#workspace-root{height:100%}.boot-message{padding:40px;color:#777}
.workspace{--muted:#787774;--sidebar-width:270px;font-size:14px}
.workspace.dark{--surface:#191919;--sidebar:#202020;--muted:#9b9b9b;--text:#ededeb;--border:#303030;--hover:#2c2c2c}
.workspace .sidebar{padding:0 8px 10px;border-right:1px solid var(--border)}
.workspace .workspace-brand{height:36px;min-height:36px;margin:0 2px 6px;gap:8px;flex-shrink:0}
.workspace-brand .brand-mark{font-size:14px;width:21px;height:22px;border:1px solid var(--muted);border-radius:4px;display:grid;place-items:center;background:transparent;color:var(--text);font-family:Georgia,serif;font-weight:800}
.workspace-brand>button:first-of-type{font-size:12px;font-weight:500;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace-brand .brand-new-page{margin-left:auto;padding:4px;color:var(--muted)}
.workspace .nav-row{min-height:31px;padding:5px 9px;gap:9px;border-radius:5px;font-size:14px;font-weight:400}
.workspace .nav-row.selected{font-weight:600;background:var(--hover)}
.workspace .nav-icon{width:18px;height:18px}.workspace .nav-icon svg{width:18px;height:18px}
.sidebar>.nav-row[aria-label="Search or ask"]{border:1px solid var(--border);color:var(--muted);margin:0 4px 12px;min-height:32px;font-size:13px;width:calc(100% - 8px)}
.sidebar>.nav-row[aria-label="Home"]{margin-bottom:12px;width:max-content;max-width:100%}
.sidebar .nav-section-label{font-size:12px;font-weight:400;margin:24px 8px 10px;color:var(--muted);text-transform:none;letter-spacing:0}
.sidebar .section-with-action{margin-top:24px}.sidebar .tree-row{min-height:31px}.sidebar .tree-page{font-size:14px;gap:7px;font-weight:400}.sidebar .tree-page-icon{width:20px}
.sidebar .sidebar-bottom{margin:8px -8px -10px;padding:8px 12px;border-top:1px solid var(--border);font-size:13px;min-height:42px}.sidebar-bottom>button{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar .new-page{font-size:13px;color:var(--muted);margin-top:6px}.sidebar .nav-row[aria-label="More"]{margin-top:8px}
.veyra-tabs{height:36px;min-height:36px;display:flex;overflow-x:auto;align-items:stretch;border-bottom:1px solid var(--border);background:var(--sidebar);scrollbar-width:none}
.veyra-tab{display:flex;align-items:center;border-right:1px solid var(--border);min-width:140px;max-width:240px;position:relative;flex-shrink:0;color:var(--muted)}
.veyra-tab.active{background:var(--surface);color:var(--text)}
.veyra-tab-open{height:100%;display:flex;align-items:center;gap:8px;flex:1;min-width:0;padding:0 32px 0 14px;font-size:12px;white-space:nowrap;border-radius:0}
.veyra-tab-open span{overflow:hidden;text-overflow:ellipsis}.veyra-tab-open svg{width:14px;height:14px;flex:none}
.veyra-tab-close{position:absolute;right:5px;font-size:17px;line-height:20px;padding:0 4px;opacity:0;color:var(--muted)}.veyra-tab:hover .veyra-tab-close,.veyra-tab:focus-within .veyra-tab-close{opacity:1}
.veyra-new-tab{width:40px;min-width:40px;font-size:22px;color:var(--muted);padding:0;border-radius:0}
.workspace .topbar{height:44px;min-height:44px;border-bottom:0}.workspace .topbar .save-state{font-size:11px;color:var(--muted)}
.workspace .page-title{font-size:40px;letter-spacing:-.7px}.workspace .page-inner{padding-top:44px}.workspace .peek-page .page-title{font-size:32px}
.workspace .editor-shell{position:relative}.workspace .editor-actions{position:absolute;top:-31px;left:0;margin:0;opacity:0;z-index:5}.workspace .editor-shell:hover>.editor-actions,.workspace .editor-actions:focus-within{opacity:1}
@media(hover:none){.workspace .editor-actions{position:static;opacity:1;margin-bottom:12px}}
.workspace .page-icon:empty{display:none}.workspace .page-icon{font-size:56px}
.veyra-ai{width:calc(100% - 80px);max-width:712px;margin:0 auto;padding:clamp(70px,24vh,310px) 0 40px;color:var(--text)}
.ai-welcome{text-align:center;margin-bottom:38px}.ai-emblem{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 20px;border-radius:50%;background:var(--text);color:var(--surface);font:italic 700 36px Georgia,serif}
.ai-welcome h1{font-size:28px;letter-spacing:-.5px;line-height:1.3;font-weight:650;margin:0}
.ai-composer{background:var(--sidebar);border:1px solid #80808040;border-radius:18px;box-shadow:0 3px 12px #00000005;padding:10px 12px 8px;position:relative}
.ai-composer textarea{font:14px/1.5 inherit;font-family:inherit;background:transparent;border:0;box-shadow:none!important;outline:none!important;color:var(--text);width:100%;min-height:42px;padding:0;resize:none;display:block;max-height:220px}
.ai-composer textarea::placeholder{color:var(--muted)}
.ai-composer-controls{display:flex;align-items:center;gap:8px;min-height:29px;font-size:12px;color:var(--muted)}
.ai-control-spacer{flex:1}.ai-composer select{font-size:12px;border:0;background:transparent;color:var(--text);max-width:200px;min-height:26px;outline-offset:2px;padding:3px 6px;cursor:pointer}
.ai-attach{font-size:24px;font-weight:300;padding:0 3px;line-height:25px}
.ai-send{border-radius:50%;background:var(--text);color:var(--surface);height:28px;min-width:28px;display:grid;place-items:center;padding:0;font-size:21px}.ai-send:disabled{opacity:.14}.ai-send[hidden]{display:none}
.ai-context{display:flex;align-items:center;gap:5px}.ai-context:not(:empty){padding:0 0 7px}.ai-context span{display:inline-flex;align-items:center;gap:5px;padding:3px 7px;border:1px solid var(--border);border-radius:5px;font-size:12px}.ai-context svg{width:13px;height:13px}.ai-context button{padding:0 4px}
.ai-suggestions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:26px}.ai-suggestions button{font-size:12px;color:var(--muted);padding:6px 9px;border:1px solid transparent;border-radius:5px}.ai-suggestions button:hover{border-color:var(--border)}
.ai-footnote{text-align:center;color:var(--muted);font-size:11px;margin-top:22px}.ai-error{font-size:13px;color:#c65d52;white-space:pre-wrap}.ai-error:empty{display:none}
.veyra-ai.has-messages{padding-top:30px}.ai-conversation:empty{display:none}.ai-conversation{padding-bottom:20px}.ai-message{margin:0 0 28px}.ai-message.user{background:var(--sidebar);padding:14px 18px;border-radius:14px;margin-left:40px}.ai-message-author{font-size:12px;font-weight:600;margin-bottom:9px;color:var(--muted)}
.ai-message-body{font-size:15px;line-height:1.65;overflow-wrap:anywhere;white-space:normal}.ai-message.user .ai-message-body{white-space:pre-wrap}.ai-message-body>:first-child{margin-top:0}.ai-message-body>:last-child{margin-bottom:0}.ai-message-body pre{background:var(--sidebar);padding:16px;border:1px solid var(--border);overflow:auto;border-radius:6px;font-size:12px}.ai-message-body a{color:#3994ed;text-decoration:underline}.ai-attached{color:var(--muted);display:block;margin-top:10px}.ai-save-answer{font-size:12px;color:var(--muted);margin-top:12px}
.ai-page-choices{max-height:55vh;overflow:auto}.ai-page-choices>button,.chat-library>button{display:flex;width:100%;gap:9px;padding:9px 10px;font-size:14px}.chat-library>button svg{width:16px;height:16px}
.connection-row{display:flex;gap:14px;align-items:center;margin-bottom:22px}.connection-row h3{margin:0 0 5px;font-size:16px}.connection-row p{margin:0;font-size:13px}.connection-symbol{border:1px solid var(--border);width:45px;height:45px;display:grid;place-items:center;border-radius:9px;font-size:30px}.connection-actions{display:flex;gap:8px;margin-top:20px}.device-code{display:block;font:700 24px/2 monospace;letter-spacing:3px}.account-menu{display:flex;flex-direction:column;gap:10px}.account-menu>button,.account-menu>a{padding:9px 10px;font-size:14px}.account-menu>p{margin:0 0 10px}
.ai-inline-panel{display:flex;flex-direction:column;gap:14px}.ai-selected-reference{border-left:3px solid var(--border);margin:0;padding:8px 14px;color:var(--muted);font-size:13px;max-height:130px;overflow:auto;white-space:pre-wrap}.ai-inline-presets,.ai-inline-actions{display:flex;flex-wrap:wrap;gap:6px}.ai-inline-presets button{font-size:12px;background:var(--hover)}.ai-inline-output{font-size:15px;line-height:1.6}.ai-inline-output:empty{display:none}.ai-inline-actions button:disabled{opacity:.3}
.workspace .selection-toolbar .selection-ai{color:#9b69c7;border-right:1px solid var(--border);border-radius:0;margin-right:4px}
.veyra-auth{background:#faf9f6;color:#272725;display:grid;place-items:center;min-height:100%;font-family:Inter,"Segoe UI",sans-serif}.auth-card{width:360px;max-width:calc(100vw - 48px);padding:48px 0}.veyra-logotype{font-size:24px;font-weight:700;display:flex;align-items:center;gap:10px;margin-bottom:38px}.auth-card h1{font-size:30px;letter-spacing:-1px;line-height:1.2;margin:0 0 14px}.auth-description{font-size:14px;line-height:1.6;color:#787774;margin-bottom:30px}.auth-card label{display:block;font-size:13px;margin-bottom:15px}.auth-card label>span{display:block;margin-bottom:6px}.auth-card input{box-sizing:border-box;width:100%;border:1px solid #d8d7d3;background:white;border-radius:5px;padding:10px 12px;font:14px inherit;color:#272725}.auth-card input:focus{outline:2px solid #86b8e8;outline-offset:1px}.auth-submit{width:100%;padding:10px;border:0;border-radius:5px;background:#2383e2;color:white;font:14px inherit;cursor:pointer;margin-top:7px}.auth-submit:disabled{opacity:.6}.auth-switch{border:0;background:none;font-size:13px;color:#787774;margin-top:20px;padding:0;cursor:pointer;text-align:left}.auth-card small{font-size:12px;color:#787774}.auth-error{font-size:13px;color:#b3433b}
@media(max-width:900px){.veyra-tab{min-width:120px;max-width:190px}.veyra-ai{width:calc(100% - 40px);padding-top:14vh}.ai-welcome h1{font-size:25px}.ai-context-caption{font-size:11px}.veyra-tab-close{opacity:1}.workspace .page-title{font-size:34px}.workspace .sidebar{padding-top:9px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* Page creation and contextual controls observed in the installed Notion app. */
.workspace .page.is-empty{padding-bottom:32px}.workspace .page.is-empty>.page-inner{min-height:calc(100vh - 112px);display:flex;flex-direction:column}.workspace .page.is-empty .editor-shell{flex:1}.page-starter{margin-top:40px;color:var(--muted)}.page-starter[hidden]{display:none}.page-starter>small{display:block;margin-bottom:12px}.page-starter>div{display:flex;gap:8px;flex-wrap:wrap}.page-starter button{display:flex;align-items:center;gap:6px;border:1px solid var(--border);border-radius:18px;padding:5px 10px;font-size:12px}.page-starter svg{width:15px;height:15px}.workspace .brand-new-page{flex:none}.new-content-menu{width:190px}.new-content-menu>header{display:none}.new-content-menu button{width:100%}.tiptap h4{font-size:17px;line-height:1.4;margin:18px 0 6px}
.workspace .selection-toolbar{width:200px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;display:flex;flex-direction:column;gap:3px;padding:6px;border-radius:8px}.workspace .selection-toolbar[hidden]{display:none}.workspace .selection-toolbar button{min-height:30px;font-size:12px}.selection-type{display:flex;align-items:center;gap:7px;width:100%;text-align:left!important}.selection-type span{flex:1}.selection-type svg{width:15px;height:15px}.selection-format-row{display:grid;grid-template-columns:repeat(5,1fr);gap:2px}.selection-format-row button{width:100%;padding:4px;text-align:center}.selection-format-row svg{width:15px;height:15px}.selection-type-options{border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:4px 0}.selection-type-options[hidden]{display:none}.selection-type-options button{display:block;width:100%;text-align:left!important}.selection-skills{border-top:1px solid var(--border);padding-top:6px;display:flex;flex-direction:column}.selection-skills small{padding:4px 6px;color:var(--muted);font-size:11px}.selection-skills button{text-align:left!important}.workspace .selection-toolbar .selection-ai{border-right:0;border-top:1px solid var(--border);margin:3px 0 0;padding-top:7px;text-align:left}
.insert-option-row{display:flex;align-items:center}.insert-option-row>[role=menuitem]{flex:1;min-width:0;display:flex;align-items:center;gap:9px;width:100%;padding:7px 9px;text-align:left}.insert-option-row>[role=menuitem].active{background:var(--hover)}.insert-option-row>[role=menuitem]>span{flex:1}.insert-option-row strong{font-size:13px;font-weight:400}.insert-option-row small{display:none}.insert-option-row svg{width:17px;height:17px;flex:none}.insert-option-row .table-size-trigger{padding:6px}.table-size-popover[hidden]{display:none!important}.table-size-popover:not([hidden]){display:block!important}.table-size-popover{width:240px}.insert-option-row kbd{margin-left:auto}
.workspace .selection-submenu{position:fixed;z-index:160;width:220px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;padding:5px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:8px;box-shadow:0 4px 18px #0002;font-size:13px}.workspace .selection-submenu[hidden]{display:none}.selection-type-options button{display:flex;align-items:center;gap:8px;width:100%;min-height:29px;padding:5px 8px;font-size:13px}.selection-type-options button::after{content:'';margin-left:auto;min-width:14px}.selection-type-options button[aria-checked=true]::after{content:'✓'}.workspace .selection-colours{width:196px;padding:10px 11px}.inline-colour-section+ .inline-colour-section{margin-top:14px}.inline-colour-section>small{display:block;color:var(--muted);font-size:11px;margin-bottom:7px}.inline-colour-grid{display:grid;grid-template-columns:repeat(5,26px);gap:7px}.inline-colour-grid>button{border:1px solid var(--border);padding:0;min-height:26px;width:26px;height:26px;border-radius:5px;display:grid;place-items:center}.inline-colour-grid>button[aria-checked=true]{box-shadow:0 0 0 1px var(--muted)}.inline-colour-sample{display:grid;place-items:center;font-weight:600;font-size:16px;width:22px;height:22px;border-radius:3px}.inline-colour-menu{width:198px!important;padding:10px 12px!important}.inline-colour-menu>header{display:none}.inline-colour-grid button:focus-visible{outline:2px solid #609fcd;outline-offset:2px}
.conversion-glyph{width:18px;flex:none;text-align:center;font-size:13px;color:var(--muted)}
.selection-type-options button[hidden]{display:none}
.page-actions-panel>header{display:none}.page-actions-panel{width:260px}.page-action-search>input{width:100%;margin:3px 0 8px;font-size:12px}.page-action-items>button[hidden],.page-action-search>[hidden]{display:none}.page-action-items>button[aria-selected=true]{background:var(--hover)}.page-action-items>button>.menu-label{flex:1}.page-action-items kbd{white-space:nowrap;font-size:10px}.page-action-footer{display:flex;flex-direction:column;border-top:1px solid var(--border);margin-top:8px;padding:10px 0 4px;color:var(--muted);font-size:12px;line-height:16px;gap:3px}.page-action-footer>.page-action-actor{display:flex;align-items:center;gap:4px;min-width:0;height:16px;color:var(--muted)}.page-action-footer small{font-size:11px;line-height:16px}.page-action-actor-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-action-footer .page-action-avatar{width:16px;height:16px;font-size:8px}.page-action-child{position:fixed;width:300px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;padding:12px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:8px;box-shadow:var(--floating-shadow,0 5px 30px #0003);z-index:170}.page-action-child .page-font-choices{gap:5px}.page-action-child .page-more-items>button{display:block;width:100%;font-size:13px;padding:7px 8px}.page-action-items [aria-checked=true] .menu-switch{background:#2383e2}.page-action-items [aria-checked=true] .menu-switch::after{transform:translateX(12px)}.page-lock-indicator{font-size:12px;color:var(--muted);white-space:nowrap}.page.is-locked .page-title{opacity:1;color:var(--text)}.page.is-locked .appearance-actions,.page.is-locked .editor-actions,.page.is-locked .editor-toolbar,.page.is-locked .block-gutter,.page.is-locked .table-edge-tools{display:none!important}.page.is-locked .tiptap{cursor:text}
.page-action-footer>*{margin:0!important}.page-action-footer{gap:3px!important}
.page-actions-panel .page-action-footer{margin:6px 5px 0;padding:10px 0 4px}
.modal.page-actions-panel{width:256px;padding:4px;border:0}
.modal.page-actions-panel,.page-action-child,.modal.page-location-picker,.modal.breadcrumb-title-panel{--surface:#fff;--text:#2c2c2b;--muted:#7d7a75;--border:#1c13011c;background:var(--surface);color:var(--text)}
body:has(.workspace.dark) .modal.page-actions-panel,body:has(.workspace.dark) .page-action-child,body:has(.workspace.dark) .modal.page-location-picker,body:has(.workspace.dark) .modal.breadcrumb-title-panel{--surface:#252525;--text:#f0efed;--muted:#ada9a3;--border:#ffffeb1a}
.page-private-location-wrap{position:relative;display:inline-flex;flex:none;margin-left:8px}
.breadcrumbs .page-private-location{display:inline-flex;align-items:center;gap:5px;min-height:24px;padding:2px 5px;color:var(--muted);background:transparent;font-size:12px;font-weight:400;white-space:nowrap}
.breadcrumbs .page-private-location:hover{background:var(--hover)}
.page-private-location>svg{width:14px;height:14px;flex:none}
.page-private-location>svg:last-child{width:10px;height:10px}
.page-private-tooltip{display:none;position:fixed;z-index:180;flex-direction:column;gap:2px;padding:7px 9px;border-radius:6px;background:#252525;color:#f0efed;box-shadow:0 3px 12px #0003;font-size:12px;line-height:16px;white-space:nowrap;pointer-events:none}
.breadcrumbs:has(>.page-private-location-wrap)>button:last-of-type{display:inline-block;flex-shrink:1;min-width:28px}
.page-private-location-wrap:has(>.page-private-location:hover)>.page-private-tooltip,.page-private-location-wrap:has(>.page-private-location:focus-visible)>.page-private-tooltip{display:flex}
.page-private-tooltip>span:last-child{color:#ada9a3}
.modal.page-location-picker{width:332px;padding:0;border:1px solid var(--border);overflow:hidden}
.page-location-picker>header{display:none}
.page-location-content{display:flex;flex-direction:column;min-height:min(452px,calc(100vh - 100px))}
.page-location-heading{display:none}
.page-location-search{position:relative;flex:none;margin:10px 10px 8px}
.page-location-search>.ui-icon{position:absolute;top:7px;left:8px;width:14px;height:14px;color:var(--muted);pointer-events:none}
.modal.page-location-picker .page-location-search>input{width:100%;height:28px;margin:0;padding:4px 8px 4px 28px;font-size:14px;line-height:1.2}
.page-location-suggested{padding:6px 12px;color:var(--muted);font-size:12px}
.page-location-content>[role=listbox]{max-height:300px;overflow:auto;padding:0 4px 4px}
.page-location-content [role=option]{display:flex;align-items:center;width:100%;min-height:30px;padding:4px 8px;text-align:left;font-size:14px;line-height:1.2}
.page-location-content [role=option][aria-selected=true]{background:var(--hover)}
.page-location-row{display:flex;align-items:center;min-width:0}
.page-location-row>[role=option]{flex:1;min-width:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.page-location-expand,.page-location-expand-spacer{display:inline-flex;align-items:center;justify-content:center;flex:0 0 18px;width:18px;height:26px;padding:3px}
.page-location-expand>.ui-icon{width:12px;height:12px}
.page-location-expand[aria-expanded=true]>.ui-icon{transform:rotate(90deg)}
.modal.breadcrumb-title-panel{width:380px;padding:2px 7px;border:1px solid var(--border)}
.breadcrumb-title-panel>header{display:none}
.breadcrumb-title-fields{display:flex;align-items:center;gap:6px}
.breadcrumb-title-icon{display:grid;place-items:center;width:28px;height:28px;padding:4px;flex:none}
.breadcrumb-title-icon img,.breadcrumb-title-icon svg{width:20px;height:20px}
.modal.breadcrumb-title-panel .breadcrumb-title-fields>input{flex:1;min-width:0;width:0;height:30px;margin:0;font-size:14px;line-height:20px;padding:4px 7px}
.modal.breadcrumb-title-panel .breadcrumb-title-fields>input:focus{outline:none;border-color:var(--border);box-shadow:none}
.breadcrumb-icon-child{position:fixed;z-index:180;width:360px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;padding:10px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:8px;box-shadow:var(--floating-shadow,0 5px 30px #0003)}
.page-location-content>[role=status]{padding:8px 12px;color:var(--muted);font-size:14px}
.page-location-workspace{margin-top:auto;border-top:1px solid var(--border);padding:8px 12px;color:var(--muted);font-size:12px;text-align:right}
.page-location-workspace{padding:4px}
.page-location-workspace-trigger{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:4px 5px;font-size:12px;color:var(--muted)}
.page-location-workspace-avatar{display:inline-grid;place-items:center;flex:none;width:16px;height:16px;border-radius:3px;background:var(--hover);font-size:10px}
.page-location-workspace-trigger>.ui-icon{width:10px;height:10px}
.page-location-workspace-menu{position:fixed;z-index:180;min-width:180px;max-width:min(260px,calc(100vw - 16px));padding:4px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:8px;box-shadow:var(--floating-shadow,0 5px 30px #0003)}
.page-location-workspace-menu>button{display:flex;align-items:center;gap:7px;width:100%;height:28px;padding:4px 6px;font-size:14px;white-space:nowrap}
.page-location-workspace-menu>button>span:nth-child(2){flex:1;overflow:hidden;text-overflow:ellipsis}
.page-location-workspace-menu .ui-icon{width:14px;height:14px;flex:none}
.page-move-toast{padding:11px 14px;gap:14px;max-width:calc(100vw - 32px);background:#fff;color:#2c2c2b;border-color:#1c13011c;font-size:14px;line-height:20px}
body:has(.workspace.dark) .page-move-toast{background:#252525;color:#f0efed;border-color:#ffffeb1a}
.page-move-toast>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.page-move-toast>button{flex:none;padding:0;font-weight:500}
.page-word-count{align-self:flex-start;border:0;background:transparent;color:var(--muted);font:inherit;padding:2px 0;cursor:pointer}.page-word-count:hover{color:var(--text)}.page-word-count:focus-visible{outline:2px solid var(--accent,#2383e2);outline-offset:2px}.page-activity-panel{width:301px;padding:0}.page-activity{padding-bottom:10px}.page-activity h3{font-size:12px;font-weight:400;color:var(--muted);line-height:20px;margin:0;padding:9px 12px;border-bottom:1px solid var(--border)}.page-activity-row{display:flex;align-items:center;gap:12px;height:34px;padding:0 12px;font-size:12px}.page-activity-initials{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;flex-shrink:0;border-radius:50%;background:var(--hover);font-size:10px}.page-activity-person{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-activity-label{color:var(--muted)}.page-activity-name{font-weight:600}.page-activity-row>time,.page-activity-row>span:last-child:not(.page-activity-person){flex-shrink:0;color:var(--muted)}
.contents-block{padding:8px 0;font-size:14px}.contents-block a,.page-outline-panel a{display:block;padding:3px 8px 3px calc(8px + var(--heading-indent,0)*14px);line-height:1.5;color:var(--muted);text-decoration:none;overflow-wrap:anywhere}.contents-block a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:underline;text-decoration-color:var(--border);text-underline-offset:3px}.contents-block a:hover,.page-outline-panel a:hover{color:var(--text);background:var(--hover);border-radius:4px}.contents-empty{color:var(--muted);font-size:14px}.breadcrumb-block{display:flex;align-items:center;gap:7px;padding:8px 0;font-size:13px;color:var(--muted);flex-wrap:wrap}.breadcrumb-block a{color:var(--text);text-decoration:none}.breadcrumb-block a:hover{text-decoration:underline}.page-outline{position:fixed;right:12px;top:200px;z-index:15}.page-outline[hidden]{display:none}.page-outline>button{display:flex;flex-direction:column;align-items:flex-end;gap:10px;width:28px;padding:8px 3px}.page-outline>button>span{height:2px;border-radius:1px;background:var(--muted);display:block}.page-outline-panel{position:fixed;right:42px;max-height:calc(100vh - 16px);overflow:auto;width:238px;max-width:calc(100vw - 16px);padding:12px 10px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--floating-shadow,0 5px 30px #0002);border-radius:10px;font-size:12px}.page-outline-panel[hidden]{display:none}.page-outline-panel a[aria-current=location]{color:#2383e2}.tiptap :is(h1,h2,h3,h4,h5,h6){scroll-margin-top:28px}.page.is-locked .contents-block a,.page.is-locked .breadcrumb-block a{pointer-events:auto}

.tiptap [data-node=columns].resizable-columns{display:block;position:relative}.columns-content{display:flex;gap:35px;min-width:0}.column-resize-handles{position:absolute;inset:0;pointer-events:none}.column-resize-handle{position:absolute;top:0;bottom:0;width:12px;pointer-events:auto;cursor:col-resize;touch-action:none;outline:none}.column-resize-handle::after{content:'';position:absolute;top:0;bottom:0;left:5px;width:2px;border-radius:2px;background:var(--border);opacity:0}.column-resize-handle:hover::after,.column-resize-handle:focus-visible::after,.resizing>.column-resize-handles>.column-resize-handle::after{opacity:1}.column-resize-handle:focus-visible::after,.resizing>.column-resize-handles>.column-resize-handle::after{background:#2383e2}.page.is-locked .column-resize-handle{display:none}

.developer-code{background:transparent;border:0}.tiptap .developer-code>pre{background:var(--faint);border-radius:6px;padding:34px 22px 22px;margin:0}.developer-code>.code-controls{position:absolute;right:4px;top:4px;border:1px solid var(--border);border-radius:6px;background:var(--surface);padding:1px 3px;gap:1px;z-index:1;opacity:0;flex-wrap:nowrap;max-width:calc(100% - 8px)}.developer-code:hover>.code-controls,.developer-code:focus-within>.code-controls{opacity:1}.code-controls button{font-size:11px;white-space:nowrap}.code-controls button[aria-label="Code language"]{min-width:0;max-width:145px;overflow:hidden;text-overflow:ellipsis}.code-caption{display:block;width:100%;border:0;background:transparent;color:var(--muted);font-size:12px;line-height:1.6;font-family:inherit;padding:7px 0;outline:none}.code-caption[hidden]{display:none}.code-caption:disabled{opacity:1;color:var(--muted)}

.workspace.with-ai-pane{--ai-pane-width:min(460px,45vw)}
.ai-side-pane{width:var(--ai-pane-width);flex:none;height:100%;min-width:280px;display:flex;flex-direction:column;border-left:1px solid var(--border);background:var(--surface);color:var(--text);z-index:32}
.ai-pane-header{display:flex;align-items:center;gap:8px;padding:10px 14px;min-height:44px}.ai-pane-header h2{font-size:14px;font-weight:500;letter-spacing:0;margin:0;flex:1}.ai-pane-hide{color:var(--muted)}.ai-pane-hide svg{width:16px;height:16px}
.ai-pane-content{flex:1;min-height:0;overflow:auto;padding:16px}.ai-side-pane .veyra-ai{width:100%;max-width:none;padding:0;min-height:100%;display:flex;flex-direction:column}.ai-pane-chat .ai-composer{margin-top:auto}.ai-pane-chat .ai-error{margin-top:10px}.ai-pane-chat .ai-message.user{margin-left:12px}.ai-pane-chat .ai-message-body{font-size:14px}.ai-selection-context{max-width:calc(100% - 28px);max-height:90px;overflow:auto;white-space:pre-wrap}
.workspace.with-ai-pane .peek-panel{right:var(--ai-pane-width);width:min(780px,calc(100vw - var(--ai-pane-width) - 235px))}.workspace.with-ai-pane .peek-shade{right:var(--ai-pane-width)}
@media(max-width:720px){.workspace.with-ai-pane{--ai-pane-width:min(460px,90vw)}.ai-side-pane{position:fixed;right:0;top:0;bottom:0;min-width:0}.workspace.with-ai-pane .peek-panel{right:0;width:calc(100vw - 40px)}}

.ai-pane-welcome{margin:32px 0 28px}.ai-pane-welcome h3{font-size:20px;font-weight:600;line-height:1.3;margin:0}

.ai-pane-header{position:relative}.ai-pane-header>button:not(.ai-pane-hide){color:var(--muted)}.ai-pane-header>button svg{width:16px;height:16px}
.ai-pane-mode-menu{position:absolute;right:10px;top:40px;width:180px;background:var(--surface);border:1px solid var(--border);border-radius:6px;box-shadow:0 4px 18px #0002;padding:4px;z-index:5}.ai-pane-mode-menu>button{width:100%;display:flex;align-items:center;gap:8px;padding:6px 8px;font-size:13px}.ai-pane-mode-menu>button>span:first-of-type{flex:1}.ai-pane-mode-menu svg{width:16px;height:16px;color:var(--muted)}
.ai-side-pane.ai-mode-floating{position:fixed;right:15px;bottom:15px;width:min(452px,calc(100vw - 30px));height:min(502px,calc(100vh - 30px));min-width:0;border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 35px #0003;overflow:hidden}
.ai-side-pane.ai-mode-fullscreen{width:100%;height:100%;min-width:0;border:0;z-index:auto}.ai-mode-fullscreen>.ai-pane-header{display:none}.ai-mode-fullscreen>.ai-pane-content{padding:0 24px;overflow:auto}.ai-mode-fullscreen .veyra-ai{max-width:712px;margin:0 auto;min-height:0;padding:clamp(70px,24vh,310px) 0 40px}.ai-mode-fullscreen .ai-pane-welcome{text-align:center;margin:0 0 38px}.ai-mode-fullscreen .ai-pane-welcome h3{font-size:28px}.ai-mode-fullscreen .ai-composer{margin-top:0}
.ai-pane-history{position:absolute;top:40px;right:10px;width:320px;max-width:calc(100vw - 32px);border:1px solid var(--border);background:var(--surface);box-shadow:0 4px 18px #0002;border-radius:8px;padding:8px;z-index:5}.ai-pane-history>input{width:100%;margin-bottom:8px}.ai-pane-history-list{max-height:340px;overflow:auto}.ai-pane-history-list>button{display:block;width:100%;text-align:left;padding:8px;border-radius:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai-pane-history-list>button:hover{background:var(--hover)}
.ai-pane-welcome>.ai-emblem{display:none}.workspace.ai-pane-fullscreen .topbar{display:none}.ai-mode-fullscreen .ai-pane-welcome>.ai-emblem{display:grid;width:64px;height:64px;border-radius:50%;margin:0 auto 20px;font-size:32px}.ai-mode-fullscreen .ai-pane-welcome{margin-bottom:38px}.ai-mode-fullscreen .ai-pane-chat:has(.ai-message){padding-top:32px;min-height:100%}.ai-fullscreen-back{width:32px;flex:none}.ai-pane-hide{font-size:23px;line-height:16px}

.ai-history-heading{display:flex;align-items:center;justify-content:space-between;padding:2px 4px 6px;font-size:13px}.ai-history-heading svg{width:16px;height:16px}.ai-history-day{font-size:11px;color:var(--muted);margin:6px 8px}.ai-pane-history-list>button{display:flex;align-items:center;gap:8px}.ai-pane-history-list>button>span{flex:1;overflow:hidden;text-overflow:ellipsis}.ai-pane-history-list small{color:var(--muted);font-size:11px}.ai-pane-history-footer{display:flex;justify-content:space-between;gap:8px;border-top:1px solid var(--border);margin-top:6px;padding:6px 4px 0;font-size:12px}.ai-pane-history-footer [aria-pressed=true]{font-weight:600}.ai-pane-toast{display:flex;align-items:center;gap:12px;padding:8px 12px;border:1px solid var(--border);border-radius:6px;background:var(--surface);font-size:13px}.ai-pane-toast button{text-decoration:underline}.ai-mode-fullscreen.ai-has-conversation>.ai-pane-header{display:flex;flex:none}.ai-mode-fullscreen .ai-pane-header h2{max-width:500px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.ai-mode-fullscreen>.ai-pane-header>[aria-label="Switch chat mode"],.ai-mode-fullscreen>.ai-pane-header>.ai-pane-hide{display:none}

.ai-pane-header h2{flex:0 1 auto;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ai-pane-header>[aria-label="Chat history"]{margin-right:auto}.ai-pane-mode-menu{width:220px}.ai-pane-mode-menu>[role="menuitemradio"]:last-child{border-top:1px solid var(--border);margin-top:4px;padding-top:8px}
.ai-chat-actions{width:180px;right:42px}.ai-chat-updated{border-top:1px solid var(--border);margin:4px 4px 0;padding:10px 4px 6px;font-size:11px;color:var(--muted)}
.ai-chat-rename{position:absolute;top:36px;right:42px;width:280px;max-width:calc(100vw - 32px);padding:6px;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:0 4px 18px #0002;z-index:5}.ai-chat-rename input{width:100%;height:28px;padding:4px 8px;font-size:13px}.ai-chat-rename input:focus-visible{outline:1px solid var(--border);outline-offset:0}
.ai-pane-header{padding-top:8px;padding-bottom:8px}.dark .ai-chat-actions,.dark .ai-chat-rename,.dark .ai-pane-history{background:#252525}.dark .ai-chat-rename input{background:#2c2c2c;border-color:#3d3d3d}
@media(min-width:721px){.workspace.with-ai-pane>.ai-side-pane{align-self:flex-end;height:calc(100% - 36px)}.workspace.with-ai-pane>.main>.veyra-tabs{width:calc(100% + var(--ai-pane-width));position:relative;z-index:33}}

.ai-tab-emblem{display:inline-grid;place-items:center;width:16px;height:16px;flex:none;border-radius:50%;background:var(--text);color:var(--surface);font-family:Georgia,serif;font-size:12px}

.workspace-navigation-tabs{display:flex;gap:6px;padding:4px 10px 10px}.workspace-navigation-tabs>button{position:relative;display:flex;align-items:center;justify-content:center;width:34px;height:30px;border-radius:5px;color:var(--muted)}.workspace-navigation-tabs>button[aria-pressed=true]{background:var(--hover);color:var(--text)}.workspace-navigation-tabs svg{width:18px;height:18px}.chat-unread-badge{position:absolute;right:-2px;top:-2px;background:#eb5757;color:white;border-radius:10px;font-size:10px;line-height:15px;min-width:15px;text-align:center}
.chat-sidebar{padding:0 8px;overflow:auto}.chat-sidebar>button{display:block;width:100%;padding:7px 8px;text-align:left}.chat-sidebar h3{font-size:12px;font-weight:500;color:var(--muted);padding:10px 8px 4px;margin:0}.chat-sidebar-row{display:flex;align-items:center;gap:4px;min-height:30px;border-radius:5px;padding:0 5px}.chat-sidebar-row:hover{background:var(--hover)}.chat-sidebar-row>button:first-child{flex:1;min-width:0;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;padding:6px 3px}.chat-sidebar-row svg{width:14px;height:14px}.chat-row-options{opacity:0}.chat-sidebar-row:hover .chat-row-options,.chat-sidebar-row:focus-within .chat-row-options{opacity:1}.chat-row-pin,.chat-row-options{display:flex;align-items:center;justify-content:center;width:22px;height:24px;color:var(--muted)}.chat-unread-dot{width:6px;height:6px;border-radius:50%;background:#2383e2;flex:none}.chat-sidebar-row input{width:0;flex:1;min-width:0;height:27px;padding:3px 5px;font-size:13px}
.veyra-ai.has-messages{max-width:762px}.ai-full-chat-header{margin:0 -12px 22px;padding:6px 10px;min-height:36px}.ai-full-chat-breadcrumb{font-size:13px;color:var(--muted);white-space:nowrap}.ai-full-chat-header h2{max-width:260px}.ai-full-chat-header kbd{margin-left:auto;font-size:11px;color:var(--muted)}.ai-full-chat-header .ai-header-pin[aria-pressed=true]{color:var(--text)}.ai-message.partial .ai-message-author::after{content:' · Incomplete response';font-weight:400;color:var(--muted)}

.main-scroll>.veyra-ai.has-messages{width:100%;max-width:none;min-height:100%;padding:0 0 16px;display:flex;flex-direction:column;align-items:center}.main-scroll>.veyra-ai.has-messages>.ai-full-chat-header{align-self:stretch;margin:0 0 20px;padding:8px 24px;flex:none}.main-scroll>.veyra-ai.has-messages>.ai-conversation,.main-scroll>.veyra-ai.has-messages>.ai-composer,.main-scroll>.veyra-ai.has-messages>.ai-error,.main-scroll>.veyra-ai.has-messages>.ai-footnote{width:calc(100% - 80px);max-width:762px}.main-scroll>.veyra-ai.has-messages>.ai-conversation{flex:1}.main-scroll>.veyra-ai.has-messages>.ai-composer{flex:none}.main-scroll>.veyra-ai.has-messages>.ai-error{margin:4px 0}.main-scroll>.veyra-ai.has-messages>.ai-footnote{margin:8px 0 0}
@media(max-width:900px){.main-scroll>.veyra-ai.has-messages>.ai-conversation,.main-scroll>.veyra-ai.has-messages>.ai-composer,.main-scroll>.veyra-ai.has-messages>.ai-error,.main-scroll>.veyra-ai.has-messages>.ai-footnote{width:calc(100% - 32px)}.ai-full-chat-breadcrumb{display:none}.main-scroll>.veyra-ai.has-messages>.ai-full-chat-header{padding:8px 16px}}
.main:has(.ai-full-chat-header)>.topbar{display:none}

.workspace-navigation-tabs>button[aria-label=Chats]{width:auto;gap:6px;padding:5px 9px}.chat-sidebar-row>button:first-child{display:flex;align-items:center;gap:7px}.chat-sidebar-row>button:first-child>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-sidebar-row>button:first-child>svg,.chat-row-pin>svg{flex:none;width:14px;height:14px}.chat-row-pin,.chat-row-options{padding:3px;flex:none}.main-scroll>.veyra-ai .ai-full-chat-header h2{font-weight:400}.ai-full-chat-header .ai-chat-actions,.ai-full-chat-header .ai-chat-rename{right:12px}.main-scroll>.veyra-ai.has-messages>.ai-footnote{display:none}.main-scroll>.veyra-ai.has-messages>.ai-composer{min-height:98px}

.main-scroll>.veyra-ai.has-messages{padding-bottom:24px}

.ai-full-chat-breadcrumb{display:inline-flex;align-items:center;gap:10px;color:var(--text);font-size:14px}.ai-chat-emblem{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex:none;border-radius:50%;background:#dededc;color:#252525}.ai-chat-emblem>svg{width:24px;height:24px;stroke-width:1.25}.ai-full-chat-divider{width:1px;height:16px;flex:none;background:var(--border);margin:0 1px}.ai-full-chat-controls{display:flex;align-items:center;gap:2px;margin-left:auto}.ai-full-chat-controls>button,.ai-full-chat-header>[aria-label="Chat history"]{display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;flex:none}.ai-full-chat-controls>button svg{width:18px;height:18px}.main-scroll>.veyra-ai.has-messages>.ai-full-chat-header{padding:8px 12px;min-height:44px}.ai-full-chat-header h2{font-size:14px;font-weight:400}.ai-header-pin[aria-pressed=true]>svg{fill:currentColor}.ai-side-pane .ai-pane-full-brand{display:none}.ai-side-pane.ai-mode-fullscreen .ai-pane-full-brand{display:inline-flex}.ai-mode-fullscreen.ai-has-conversation>.ai-pane-header{padding:8px 12px;gap:2px;min-height:44px}.ai-mode-fullscreen>.ai-pane-header>.ai-full-chat-divider{margin:0 8px}.ai-mode-fullscreen>.ai-pane-header>button{display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;flex:none}.ai-mode-fullscreen>.ai-pane-header>h2{margin-right:4px}.ai-mode-fullscreen>.ai-pane-header .ai-chat-actions,.ai-mode-fullscreen>.ai-pane-header .ai-chat-rename{right:12px}
.workspace-navigation-tabs{padding:0 0 10px}.workspace-navigation-tabs>button{height:32px}.workspace-navigation-tabs>button[aria-pressed=true]{font-weight:600}.workspace-navigation-tabs>button[aria-label=Chats][aria-pressed=true]>svg{fill:currentColor}.chat-sidebar{padding:0;flex:1;min-height:0}.chat-sidebar>button{display:flex;align-items:center;gap:10px;min-height:34px;padding:6px 10px;font-size:14px}.chat-sidebar>button>svg{width:18px;height:18px;flex:none}.chat-sidebar h3{padding:16px 8px 6px;line-height:18px}.chat-sidebar-row{position:relative;height:30px;min-height:30px;padding:0;gap:0}.chat-sidebar-row.selected{background:var(--hover)}.chat-sidebar-row>button:first-child{height:30px;padding:0 10px;gap:10px;font-size:13px;line-height:20px}.chat-sidebar-row>button:first-child>svg{width:16px;height:16px;flex:none}.chat-sidebar-row>button:first-child>span{min-width:0}.chat-row-actions{display:flex;align-items:center;flex:none;gap:2px;margin-right:4px}.chat-row-pin,.chat-row-options{display:flex;align-items:center;justify-content:center;width:22px;height:26px;padding:4px;opacity:0;flex:none;color:var(--muted)}.chat-row-options>svg{width:16px;height:16px}.chat-row-pin>svg{width:12px;height:12px}.chat-row-pin[aria-pressed=true]{opacity:1}.chat-row-pin[aria-pressed=true]>svg{fill:currentColor}.chat-sidebar-row:hover .chat-row-pin,.chat-sidebar-row:focus-within .chat-row-pin,.chat-sidebar-row:hover .chat-row-options,.chat-sidebar-row:focus-within .chat-row-options{opacity:1}.chat-unread-dot{position:absolute;right:11px;top:50%;transform:translateY(-50%);width:8px;height:8px;pointer-events:none}.chat-sidebar-row.unread:hover .chat-unread-dot,.chat-sidebar-row.unread:focus-within .chat-unread-dot{right:54px}.chat-sidebar-row.unread>button:first-child{padding-right:20px}

.ai-full-chat-controls>button{color:var(--muted)}.chat-row-actions{margin-right:8px}.chat-unread-dot{right:16px}.ai-chat-actions>.ai-chat-open-first{border-top:1px solid var(--border);margin-top:4px;padding-top:8px}
@media(max-width:900px){.ai-full-chat-header>.ai-full-chat-breadcrumb,.ai-full-chat-header>.ai-full-chat-divider,.ai-mode-fullscreen>.ai-pane-header>.ai-full-chat-breadcrumb,.ai-mode-fullscreen>.ai-pane-header>.ai-full-chat-divider{display:none}}
.ai-pane-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:1501;min-width:180px;min-height:45px;width:max-content;max-width:calc(100vw - 32px);justify-content:center;padding:10px 16px;line-height:20px;box-shadow:0 2px 12px #0003}

.workspace.dark .ai-chat-copy-toast{background:#292929;font-size:14px;padding-inline:15px}

.workspace.dark .ai-full-chat-header,.workspace.dark .ai-mode-fullscreen.ai-has-conversation>.ai-pane-header{--focus:#2383e2}

.workspace:not(.dark) .ai-chat-emblem{background:#fff}

/* Chat tooltip sizing and paint approximate observed dark source; Light is an accessible fallback. */
.ai-chat-tooltip{position:fixed;z-index:1600;display:flex;align-items:center;gap:12px;max-width:calc(100vw - 16px);padding:5px 8px;border-radius:5px;background:#252525;color:#ededeb;box-shadow:0 2px 8px #0003;font-size:12px;line-height:16px;white-space:nowrap;pointer-events:none}.ai-chat-tooltip-shortcut{color:#9b9b9b}.ai-chat-tooltip-shortcut[hidden]{display:none}

.modal-layer:has(.ai-chat-delete-dialog){inset:36px 0 0;padding:20px;align-items:center}
.ai-chat-delete-dialog{width:326px;padding:20px;box-sizing:border-box;border-radius:12px}.ai-chat-delete-dialog>header{justify-content:center;margin:0 0 12px;padding:0}.ai-chat-delete-dialog>header h2{font-size:16px;font-weight:600;line-height:20px;margin:0}.ai-chat-delete-buttons{display:flex;flex-direction:column;gap:8px}.ai-chat-delete-buttons>button{width:100%;height:32px;text-align:center;font-weight:600;justify-content:center;border:1px solid var(--border);border-radius:6px}.ai-chat-delete-buttons>button:first-child{background:#e46457;color:white;border-color:#e46457}.ai-chat-delete-error{margin:0;font-size:12px}.ai-chat-delete-buttons>button:last-of-type{background:transparent}
body:has(.workspace.dark) .ai-chat-delete-dialog{background:#202020}

/* Source112 ordinary page placement: paper and reference arrow share one glyph. */
.page-link-label>.page-link-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:20px;height:20px;color:var(--muted);text-decoration:none}
.page-link-icon>.page-link-glyph{display:block;flex:none}

/* Source113 Visit selects the owned page with the normal blue block band. */
.tiptap .page-link-block.ProseMirror-selectednode{background:rgba(35,131,226,.14);border-radius:3px}

/* Page-scoped Updates & analytics rail. */
.page-insights-panel{--insights-bg:#fff;--insights-text:#2c2c2b;--insights-muted:#7d7a75;--insights-border:#1c13011c;box-sizing:border-box;flex:0 0 386px;width:386px;min-width:0;height:100%;display:flex;flex-direction:column;border-left:1px solid var(--insights-border);background:var(--insights-bg);color:var(--insights-text);font:14px/1.4 "Segoe UI Variable Display","Segoe UI",sans-serif}.dark .page-insights-panel{--insights-bg:#191919;--insights-text:#f0efed;--insights-muted:#ada9a3;--insights-border:#ffffeb1a}.page-insights-panel *{box-sizing:border-box}.page-insights-panel button{font:inherit;color:inherit;border:0;background:transparent;cursor:pointer}.page-insights-panel button:hover{background:#8882}.page-insights-panel button:focus-visible{outline:2px solid #2383e2;outline-offset:2px}.page-insights-toolbar{height:42px;flex-shrink:0;display:flex;align-items:center;padding:0 12px}.page-insights-close{width:28px;height:28px;border-radius:4px;font-size:20px!important;color:var(--insights-muted)!important}.page-insights-tabs{display:flex;gap:24px;padding:0 24px;border-bottom:1px solid var(--insights-border)}.page-insights-tabs button{position:relative;padding:10px 0 12px;color:var(--insights-muted)}.page-insights-tabs button[aria-selected=true]{color:var(--insights-text)}.page-insights-tabs button[aria-selected=true]:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;background:currentColor}.page-insights-content{padding:22px 20px;overflow:auto;flex:1;min-height:0}.page-insights-message{color:var(--insights-muted);padding:14px 0}.page-insights-feed{display:flex;flex-direction:column;gap:24px}.page-insights-event{display:grid;grid-template-columns:24px minmax(0,1fr);gap:10px}.page-insights-avatar{width:24px;height:24px;border-radius:50%;background:#8882;display:inline-flex;align-items:center;justify-content:center;font-size:10px;color:var(--insights-muted);flex-shrink:0}.page-insights-event p{margin:0}.page-insights-time{color:var(--insights-muted);font-size:12px;display:block;margin-top:3px}.page-insights-page{font-weight:600!important;padding:0!important;text-align:left}.page-insights-version{display:flex;align-items:center;gap:6px;padding:4px 0!important;color:var(--insights-muted)!important;font-size:12px!important}.page-insights-preview{margin:8px 0 0;padding:10px 12px;border:1px solid var(--insights-border);border-radius:6px;overflow-wrap:anywhere;font-size:12px}.page-insights-preview p{margin:3px 0}.page-insights-preview del{color:var(--insights-muted);text-decoration:line-through}.page-insights-preview ins{background:#2ea04322;text-decoration:none}.page-insights-card{border:1px solid var(--insights-border);border-radius:10px;padding:16px;margin-bottom:16px}.page-insights-card h3{font-size:14px;font-weight:600;margin:0}.page-insights-card-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.page-insights-total{font-size:28px;line-height:1.25;margin:12px 0}.page-insights-caption{font-size:12px;color:var(--insights-muted)}.page-insights-chart{position:relative;margin-top:16px}.page-insights-chart svg{width:100%;height:130px;overflow:visible}.page-insights-chart-key{display:flex;gap:14px;color:var(--insights-muted);font-size:11px}.page-insights-chart-key i{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:5px;background:#2383e2}.page-insights-chart-key span:last-child i{background:#e9b84a}.page-insights-chart-tooltip{position:absolute;top:8px;left:30px;padding:8px 10px;background:var(--insights-bg);border:1px solid var(--insights-border);border-radius:6px;font-size:12px;box-shadow:0 3px 12px #0003;pointer-events:none;z-index:1}.page-insights-chart-tooltip p{margin:2px 0}.page-insights-menu-wrap{position:relative}.page-insights-choice{border:1px solid var(--insights-border)!important;border-radius:5px;padding:3px 7px!important;font-size:12px!important}.page-insights-menu{position:absolute;right:0;top:calc(100% + 5px);min-width:142px;padding:4px;border:1px solid var(--insights-border);border-radius:6px;background:var(--insights-bg);box-shadow:0 4px 16px #0002;z-index:3}.page-insights-menu button{display:flex;width:100%;justify-content:space-between;padding:5px 7px;border-radius:4px;text-align:left;font-size:12px}.page-insights-privacy{padding:14px 0;border-bottom:1px solid var(--insights-border);margin-bottom:12px}.page-insights-privacy h4{font-size:12px;font-weight:500;margin:0 0 4px}.page-insights-privacy p{font-size:12px;color:var(--insights-muted);margin:0 0 8px}.page-insights-person{display:flex;align-items:center;gap:9px;margin-top:12px}.page-insights-person-copy{flex:1;min-width:0}.page-insights-person time{font-size:11px;color:var(--insights-muted)}.page-insights-editor-label{font-size:12px;color:var(--insights-muted);margin-top:14px}.page-insights-panel a{color:inherit;text-decoration:underline}@media(max-width:650px){.page-insights-panel{width:min(386px,100vw);flex-basis:min(386px,100vw)}}

.page-insights-chart-axis{display:flex;justify-content:space-between;font-size:11px;color:var(--insights-muted);margin-bottom:12px}

.page-insights-host{display:flex;flex:0 0 386px;min-width:0;overflow:hidden}.with-page-insights>.main{min-width:0}.page-insights-preview .history-diff-legend,.page-insights-preview .history-comparison>h4:first-child{display:none}.page-insights-preview details{font-size:11px}

.page-insights-card-header .page-insights-total{font-size:12px;font-weight:400;line-height:inherit;margin:0;color:var(--insights-muted)}

.page-insights-tabs{gap:16px;padding:0 16px}.page-insights-content{padding:18px 16px}.page-insights-card{border:0;border-radius:0;padding:0;margin-bottom:28px}.page-insights-chart svg{height:150px}.page-insights-privacy{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 14px;background:#8881;border:0;border-radius:10px;padding:16px;margin-top:14px;margin-bottom:12px}.page-insights-privacy h4,.page-insights-privacy p{grid-column:1;margin:0}.page-insights-privacy>.page-insights-menu-wrap{grid-column:2;grid-row:1 / span 2;align-self:center}.page-insights-learn-more{display:inline;padding:0!important;text-decoration:underline;font:inherit!important;color:inherit!important}.page-insights-person-copy{display:flex;align-items:center;justify-content:space-between;gap:8px}.page-insights-person-copy time{margin:0;white-space:nowrap}.page-insights-version:disabled{cursor:default;opacity:.6}

/* Page-only fullscreen version history; workspace history keeps its existing dialog. */
.modal-layer.page-history-layer{padding:0;background:var(--bg,#fff);align-items:stretch}.modal.page-history-fullscreen{position:fixed;inset:0;width:100%;max-width:none;max-height:none;height:100%;padding:0;margin:0;border:0;border-radius:0;overflow:hidden;background:var(--bg,#fff);color:var(--text)}.page-history-fullscreen>header{display:none}.page-history-content{display:grid;grid-template-columns:320px minmax(0,1fr);height:100%;font:14px/1.4 "Segoe UI Variable Display","Segoe UI",sans-serif}.page-history-timeline{border-right:1px solid var(--border);overflow:auto;min-width:0}.page-history-timeline>header{padding:16px 24px;display:flex;flex-direction:column;gap:3px}.page-history-timeline>header small{font-size:12px;color:var(--muted)}.page-history-timeline>header strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-history-timeline .history-list{border:0;padding:8px 12px;overflow:visible;max-height:none}.page-history-timeline .history-list button{padding:12px;border:0;border-radius:8px;text-align:left;width:100%;background:transparent;color:inherit}.page-history-timeline .history-list button[aria-pressed=true]{background:var(--hover)}.page-history-main{display:flex;flex-direction:column;min-width:0;overflow:hidden}.page-history-topbar{display:flex;align-items:center;gap:8px;min-height:64px;padding:12px 16px;border-bottom:1px solid var(--border)}.page-history-date{font-size:13px}.page-history-current{padding:2px 5px;border-radius:4px;background:var(--hover);color:var(--muted);font-size:11px}.page-history-actions{margin-left:auto;display:flex;align-items:center;gap:16px}.page-history-actions .primary,.page-history-restore-summary .primary{border:0;border-radius:4px;padding:6px 10px;background:#2383e2;color:white;font:inherit}.page-history-actions .primary:disabled{opacity:.4;cursor:default}.page-history-document{overflow:auto;padding:70px max(40px,calc((100% - 920px)/2));flex:1;min-height:0}.page-history-document-title{font-size:40px;line-height:1.2;margin:0 0 24px}.page-history-document .history-comparison>h4:first-child,.page-history-document .history-diff-legend,.page-history-document .history-comparison>h4{display:none}.page-history-restore-review{position:absolute;inset:54px 0 20px 50px;display:grid;grid-template-columns:360px minmax(0,1fr);background:var(--bg,#fff);border:1px solid var(--border);border-radius:10px;box-shadow:0 12px 70px #0005;overflow:hidden;z-index:2}.page-history-restore-summary{padding:32px 24px;border-right:1px solid var(--border);display:flex;flex-direction:column;overflow:auto}.page-history-restore-summary h2{font-size:23px;overflow-wrap:anywhere}.page-history-restore-summary h3{font-size:13px;margin-top:32px}.page-history-restore-summary ul{padding-left:18px;font-size:13px}.page-history-restore-summary li{margin-bottom:18px}.page-history-restore-summary footer{margin-top:auto;font-size:12px}.page-history-restore-document{padding:70px 60px;overflow:auto}.page-history-restore-document>h1{font-size:38px}.page-history-restore-review>[aria-label="Cancel restore"]{position:absolute;right:16px;top:14px}.page-history-restore-summary [role=alert]{color:#d44}@media(max-width:700px){.page-history-content{grid-template-columns:220px minmax(0,1fr)}.page-history-restore-review{inset:20px 8px;grid-template-columns:minmax(210px,40%) minmax(0,1fr)}.page-history-document{padding:32px 24px}}

.history-version-row{position:relative;min-width:0}.page-history-timeline .history-version-select{padding-right:46px;display:flex;flex-direction:column;gap:5px}.page-history-timeline .history-version-select small{color:var(--muted);font-size:12px}.page-history-timeline .history-list .history-bookmark-action{position:absolute;right:6px;top:8px;width:28px;height:28px;padding:5px;color:var(--muted)}.page-history-bookmark-options{position:absolute;right:8px;top:36px;min-width:160px;padding:4px;background:var(--surface);border:1px solid var(--border);border-radius:6px;z-index:3}.page-history-bookmark-dialog{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(480px,calc(100vw - 32px));padding:24px;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:0 12px 80px #0006;z-index:4}.page-history-bookmark-dialog h2{font-size:20px;margin:0 0 12px}.page-history-bookmark-dialog p{font-size:13px;color:var(--muted)}.page-history-bookmark-dialog input{width:100%;font:inherit}.page-history-bookmark-dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.page-history-bookmark-dialog footer button{font:inherit;padding:6px 12px;border:1px solid var(--border);border-radius:5px}

.page-history-timeline>header{position:relative;padding-right:52px}.page-history-hide-timeline{position:absolute;right:16px;top:18px}.page-history-content.timeline-closed{grid-template-columns:minmax(0,1fr)}.page-history-topbar>[hidden]{display:none}.page-history-document .history-body{margin:0;padding:0;border:0}.page-history-change{outline:1px solid #2383e2;outline-offset:3px}.page-history-added-text{color:#2383e2}.page-history-selected-body>.history-body{margin-bottom:14px}.page-history-change-nav{position:fixed;left:calc(50% + 160px);bottom:24px;transform:translateX(-50%);display:flex;align-items:center;gap:14px;border:1px solid var(--border);border-radius:24px;background:var(--surface);padding:8px 18px;font-size:13px}.timeline-closed .page-history-change-nav{left:50%}.page-history-change-nav button{font:inherit;border:0;background:transparent;color:var(--muted);cursor:pointer}

.page-history-document .history-version-preview>h1{font-size:40px;line-height:1.2;margin:0 0 24px}.page-history-document .history-version-change{outline:none;outline-offset:3px}.page-history-document .history-version-added{color:#2383e2}.page-history-document .history-version-selected-change{outline:2px solid #2383e2}

.modal-layer.page-history-layer{--bg:#fff;--surface:#fff;--text:#2c2c2b;--muted:#7d7a75;--border:#1c13011c;--hover:#f1f1ef}body:has(.workspace.dark) .modal-layer.page-history-layer{--bg:#191919;--surface:#202020;--text:#f0efed;--muted:#ada9a3;--border:#ffffeb1a;--hover:#ffffff0e}

.modal-layer.page-history-layer{color-scheme:light}body:has(.workspace.dark) .modal-layer.page-history-layer{color-scheme:dark}

.page-history-group-control{position:relative;align-self:flex-start;margin-top:8px}.page-history-group-trigger{display:flex;align-items:center;gap:3px;padding:2px 5px;border:0;border-radius:4px;background:var(--hover);color:var(--muted);font:inherit;font-size:12px;line-height:16px;cursor:pointer}.page-history-group-trigger svg{width:12px;height:12px}.page-history-group-menu{position:absolute;left:0;top:calc(100% + 4px);width:191px;padding:4px;border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--text);box-shadow:0 4px 20px #0003;z-index:3}.page-history-group-heading{padding:6px 8px;color:var(--muted);font-size:12px;line-height:18px}.page-history-group-menu>[role=menuitemradio]{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:28px;padding:4px 8px;border:0;border-radius:5px;background:transparent;color:inherit;font:inherit;font-size:14px;line-height:20px;text-align:left;cursor:pointer}.page-history-group-menu>[aria-checked=true],.page-history-group-menu>button:hover,.page-history-group-menu>button:focus-visible{background:var(--hover)}body:has(.workspace.dark) .page-history-group-menu{background:#252525}.history-version-editor:before{content:"";display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:#2383e2;vertical-align:middle}.history-version-editor-unknown:before{display:none}.history-ribbon-glyph{display:inline-block;vertical-align:middle}.history-version-select strong>.history-ribbon-glyph{width:14px;height:14px;margin-right:6px;color:var(--muted)}.page-history-dialog-glyph{width:28px;height:28px;margin-bottom:12px;color:var(--muted)}.page-history-dialog-glyph>svg{width:28px;height:28px}.page-history-bookmark-dialog h2{font-size:20px;line-height:24px;font-weight:600;margin:0 0 4px}.page-history-bookmark-dialog p{margin:0 0 16px;font-size:13px;line-height:18px}.page-history-bookmark-dialog input{height:30px;border:1px solid var(--border);border-radius:5px;padding:4px 8px;background:transparent;color:inherit}.page-history-bookmark-dialog footer{margin-top:16px}.page-history-bookmark-delete{width:min(260px,calc(100vw - 32px));padding:16px}.page-history-bookmark-delete .page-history-dialog-glyph{margin-bottom:8px}.page-history-bookmark-delete h2{font-size:14px;line-height:20px}.page-history-bookmark-delete p{font-size:14px;line-height:18px}.page-history-bookmark-delete footer button{flex:1;border:0;background:var(--hover);min-height:32px}.page-history-bookmark-delete footer button.danger{background:#e56458;color:#fff}.page-history-bookmark-shade{position:absolute;inset:0;background:rgba(15,15,15,.6);z-index:3}body:has(.workspace.dark) .page-history-bookmark-shade{background:rgba(15,15,15,.8)}.page-history-bookmark-toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:24px;padding:10px 14px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text);box-shadow:0 4px 20px #0003;font-size:14px;z-index:5}.page-history-bookmark-toast button{border:0;background:transparent;color:inherit;font:inherit;font-weight:500;cursor:pointer}

.page-history-group-menu,.page-history-bookmark-dialog{box-sizing:border-box}.page-history-timeline .history-version-select{padding-right:76px}.page-history-timeline .history-bookmark-projection .history-version-select{padding-right:44px}.page-history-timeline .history-version-row:not(.history-bookmark-projection) .history-bookmark-action{right:34px}.page-history-timeline .history-list .history-version-details-trigger{position:absolute;right:5px;top:8px;width:26px;height:28px;padding:5px;color:var(--muted);border-radius:50%}.page-history-details-header{display:flex!important;align-items:center;justify-content:space-between;padding:18px 24px!important;min-height:64px}.page-history-details-header button{border:0;background:transparent;color:var(--text);font:inherit;padding:0;cursor:pointer}.page-history-details-summary{border:1px solid var(--border);border-radius:10px;background:var(--hover);padding:12px;margin-bottom:18px;display:flex;flex-direction:column;gap:5px}.page-history-details-summary small{font-size:12px;color:var(--muted)}.page-history-detail-events{position:relative}.page-history-detail-events:before{content:"";position:absolute;left:21px;top:0;bottom:18px;width:1px;background:var(--border)}.page-history-timeline .history-list .page-history-detail-row{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;padding:10px 12px;line-height:18px;font-size:13px}.page-history-detail-row strong{font-weight:600}.page-history-detail-row time{display:block;font-size:11px;color:var(--muted);margin-top:3px}.page-history-detail-avatar{width:18px;height:18px;font-size:8px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--surface);border:1px solid var(--border);z-index:1}.page-history-detail-row:disabled{opacity:.6;cursor:default}.page-history-detail-row:disabled:hover{background:transparent}

.page-history-timeline>header[hidden]{display:none}.page-history-timeline>.page-history-details-header{flex-direction:row}

/* Recovery remains separate from the workspace until retained work is reviewed. */
.offline-recovery-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:24px;border:1px solid var(--border,#e9e9e6);border-radius:12px;background:var(--surface,#fff);color:var(--text,#37352f);box-shadow:0 20px 70px rgba(0,0,0,.22);overflow:auto;font:14px/1.5 ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.offline-recovery-dialog::backdrop{background:rgba(0,0,0,.38)}
.offline-recovery-dialog h1{font-size:24px;line-height:1.25;letter-spacing:-.4px;margin:0 0 12px}
.offline-recovery-dialog p{margin:0 0 12px;overflow-wrap:anywhere}
.offline-recovery-dialog .offline-recovery-description{color:var(--muted,#787774)}
.offline-recovery-dialog .offline-recovery-context,.offline-recovery-dialog .offline-recovery-status,.offline-recovery-dialog .offline-recovery-confirmation{padding:14px;margin:16px 0;border:1px solid var(--border,#e9e9e6);border-radius:8px;background:var(--faint,#f7f7f5);overflow-wrap:anywhere}
.offline-recovery-dialog .offline-recovery-context p{margin-bottom:6px}
.offline-recovery-dialog .offline-recovery-context p:last-child,.offline-recovery-dialog .offline-recovery-confirmation p:last-child{margin-bottom:0}
.offline-recovery-dialog .offline-recovery-status{font-size:13px}
.offline-recovery-dialog .offline-recovery-error{color:var(--danger,#b3433b)}
.offline-recovery-dialog .offline-recovery-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:16px}
.offline-recovery-dialog button{max-width:100%;min-height:36px;padding:8px 12px;border:1px solid var(--border,#e9e9e6);border-radius:6px;font:inherit;font-weight:600;line-height:1.35;white-space:normal;overflow-wrap:anywhere;text-align:center}
.offline-recovery-dialog .offline-recovery-primary{background:#2383e2;border-color:#2383e2;color:white}
.offline-recovery-dialog .offline-recovery-primary:hover{background:#1b6ebd;border-color:#1b6ebd}
.offline-recovery-dialog .offline-recovery-secondary{background:var(--surface,#fff);color:var(--text,#37352f)}
.offline-recovery-dialog .offline-recovery-secondary:hover{background:var(--hover,#efefed)}
.offline-recovery-dialog button:focus-visible{outline:2px solid #2383e2;outline-offset:2px}
.offline-recovery-dialog [hidden],.offline-recovery-dialog .offline-recovery-context:empty,.offline-recovery-dialog .offline-recovery-status:empty,.offline-recovery-dialog .offline-recovery-error:empty{display:none!important}
body:has(.workspace.dark) .offline-recovery-dialog{--surface:#191919;--text:#ededeb;--muted:#9b9b9b;--border:#303030;--hover:#2c2c2c;--faint:#242424;--danger:#eb857a}
@media(max-width:480px){.offline-recovery-dialog{padding:20px}.offline-recovery-dialog h1{font-size:22px}}

/* Captured database history and restore switches. */
.has-database-history .page-history-restore-summary footer{display:block}.has-database-history.history-inline-host .page-history-restore-document>.history-version-preview>h1{font-size:40px;margin-left:0}
.history-inline-host .page-history-restore-document>.history-version-preview{max-width:920px;margin:auto}.history-inline-host .page-history-restore-document>.history-version-preview>h1{font-size:40px;margin-left:0}.history-database-preserved{padding:8px 12px;background:var(--hover);color:var(--muted);font-size:12px;border-radius:4px}
.history-databases-preserved h4{font-size:13px;margin:24px 0 8px}.history-databases-preserved>div{border:1px solid var(--border);border-radius:8px}.history-databases-preserved p{display:flex;align-items:center;gap:8px;margin:0;padding:8px 12px;font-size:13px}
.history-relation-effects h4{font-size:13px;margin:18px 0 8px}.history-relation-effects p{font-size:12px;margin:6px 0;color:var(--muted)}
.page-history-restore-review.has-database-history{right:50px}.has-database-history .page-history-restore-summary{padding:24px;overflow:hidden}.has-database-history .page-history-restore-summary header h2{font-size:14px;line-height:21px;margin:0;font-weight:400}.has-database-history .page-history-restore-summary header p{margin:0 0 12px;font-size:14px}.has-database-history .page-history-restore-details{flex:1;min-height:0;overflow:auto;padding-right:12px}.has-database-history .page-history-restore-details h3{font-size:13px;margin:28px 0 14px}.has-database-history .page-history-restore-details ul{list-style:none;padding:0}.has-database-history .page-history-restore-details li{font-size:14px;margin:0 0 24px}.has-database-history .page-history-restore-details li small{display:block;font-size:12px;line-height:17px;color:var(--muted);margin-top:3px}.has-database-history .page-history-restore-summary footer{padding-top:12px}.has-database-history .page-history-restore-summary footer .primary{width:100%;min-height:36px;font-weight:600}.has-database-history .page-history-restore-summary footer p{text-align:center;color:var(--muted);font-size:12px}.has-database-history .page-history-restore-document{padding:80px 24px}.has-database-history .page-history-restore-document>.history-version-preview>h1{font-size:32px;margin-left:80px}
.history-database-preview{margin:20px 0 32px;overflow:auto}.history-database-preview h3{font-size:23px;margin:0 0 8px}.history-database-view{display:inline-block;padding:4px 10px;border-radius:16px;background:var(--hover);margin-bottom:12px}.history-database-preview table{border-collapse:collapse;width:100%;font-size:14px;text-align:left}.history-database-preview th,.history-database-preview td{min-width:160px;padding:9px 12px;border-bottom:1px solid var(--border);border-right:1px solid var(--border);font-weight:400}.history-database-preview th{color:var(--muted)}.history-database-unavailable{padding:20px;max-width:380px;border-radius:10px;background:var(--hover);color:var(--muted);font-size:13px}
.history-database-options>button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:45px;padding:12px 0;border:0;border-bottom:1px solid var(--border);background:transparent;color:inherit;text-align:left;font:inherit;font-size:13px}.history-database-options .menu-switch{position:relative;flex:none;width:30px;height:18px;border-radius:10px;background:#777}.history-database-options .menu-switch::after{content:"";position:absolute;width:14px;height:14px;top:2px;left:2px;border-radius:50%;background:white;box-shadow:0 1px 2px #0004}.history-database-options [aria-checked=true] .menu-switch{background:#2383e2}.history-database-options [aria-checked=true] .menu-switch::after{transform:translateX(12px)}.history-database-options>p{font-size:12px;margin:12px 0 24px}.history-database-options>button:disabled{opacity:.5}

/* Mermaid code and preview controls. */
.developer-code>.code-controls>[hidden],.developer-code>pre[hidden],.developer-code>.code-line-numbers[hidden],.developer-code>.mermaid-preview[hidden]{display:none}
.developer-code.has-mermaid-preview{position:relative}.developer-code .code-preview-menu{position:absolute;right:0;top:calc(100% + 6px);display:flex;gap:2px;padding:4px;background:var(--surface);border:1px solid var(--border);border-radius:7px;box-shadow:0 4px 16px #0002;z-index:5}.code-preview-menu button{display:grid;place-items:center;min-width:34px;min-height:30px;border:0;background:transparent;border-radius:4px}.code-preview-menu button[aria-pressed=true]{background:var(--hover);color:#2383e2}.code-preview-menu button:focus-visible{outline:2px solid #2383e2;outline-offset:-2px}
.developer-code>.mermaid-preview{position:relative;min-width:0;padding:18px 14px;overflow:auto;background:var(--faint);border-radius:0 0 6px 6px}.mermaid-preview>.mermaid-expand{display:block;max-width:100%;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;text-align:center}.mermaid-expand>svg{display:block;margin:0 auto;max-width:100%;height:auto}.mermaid-preview-error{margin:0;color:#c43b3b;background:#eb57571a;border-radius:4px;padding:12px;font:12px/1.5 Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.mermaid-render-stage{position:absolute;left:0;top:0;visibility:hidden;pointer-events:none;min-width:400px}
.mermaid-fullscreen{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;background:#0009;padding:32px}.mermaid-fullscreen-diagram{width:100%;height:100%;min-width:0;min-height:0;outline:none;display:grid;place-items:center}.mermaid-fullscreen-diagram>svg{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important}.mermaid-fullscreen-diagram>img{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain}.code-diagram-action svg{display:block;width:16px;height:16px}

.dark .mermaid-preview-error{color:#f18686}

.developer-code.has-mermaid-preview:has(>.mermaid-preview:not([hidden]))>pre{border-bottom-left-radius:0;border-bottom-right-radius:0}.developer-code>pre[hidden]+.mermaid-preview{border-radius:6px}.mermaid-preview svg,.mermaid-fullscreen-diagram>svg{font-family:Arial,sans-serif}

.asset-block>.video-provider{display:block;width:100%;aspect-ratio:16/9;border:0}

/* Source-backed code toolbar grouping and hover controls. */
.developer-code>.code-controls{padding:2px;pointer-events:none}
.developer-code:hover>.code-controls,.developer-code:focus-within>.code-controls{pointer-events:auto}
.developer-code>.code-controls button{display:inline-flex;align-items:center;justify-content:center;gap:4px}
.code-controls .code-language-name{overflow:hidden;text-overflow:ellipsis;min-width:0}
.code-controls svg{display:block;flex:none}
.code-controls>.code-control-separator{display:block;flex:none;width:1px;height:16px;margin:0 4px;background:var(--border);border-radius:2px}
.has-mermaid-preview>.code-controls>[aria-label="Code language"]{order:0}
.has-mermaid-preview>.code-controls>.code-control-separator{order:1}
.has-mermaid-preview>.code-controls>[aria-label="Preview format"]{order:2}
.has-mermaid-preview>.code-controls>[aria-label="Expand diagram"]{order:3}
.has-mermaid-preview>.code-controls>[aria-label="Download diagram as JPEG"]{order:4}
.has-mermaid-preview>.code-controls>.code-copy-action{order:5}
.has-mermaid-preview>.code-controls>.code-wrap-action{order:6}
.has-mermaid-preview>.code-controls>.code-more-action{order:7}
.code-controls>.code-wrap-action[aria-pressed="true"]{background:var(--hover)}
