.history-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;margin-top:24px}.history-list{display:flex;flex-direction:column;gap:8px;align-self:start}.history-version{display:grid;gap:7px;text-align:left;border:1px solid #e1e7f2;border-radius:12px;background:#fff;padding:14px;color:#43516a;cursor:pointer}.history-version[aria-pressed=true]{border-color:#315cff;background:#eff4ff}.history-version strong{color:#17253f}.history-version small{font-size:12px}.history-detail{border:1px solid #e1e7f2;border-radius:16px;background:white;padding:24px;min-width:0}.history-detail h2{margin-top:0}.version-preview{margin:24px 0;border:1px solid #e1e7f2;border-radius:10px;padding:16px}.version-preview summary{cursor:pointer;font-weight:600}.version-diff{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:15px}.version-diff del{background:#fee2e2;color:#991b1b;text-decoration:line-through}.version-diff ins{background:#dcfce7;color:#14532d;text-decoration:none}.page-access-form fieldset{border:1px solid #dce3ef;border-radius:12px;padding:20px}.page-access-form label{display:flex;align-items:center;gap:12px;padding:10px 0}.page-access-form input[type=checkbox],.page-access-form input[type=radio]{width:18px;height:18px;accent-color:#315cff}.access-choices{padding:18px;border:1px solid #dce3ef;border-radius:12px}.access-choices[hidden]{display:none}.access-choices label[hidden]{display:none}.access-notice{padding:16px;border-radius:10px;background:#fff8e6;color:#715307}.format-strike{text-decoration:line-through}.color-panel{display:grid;gap:12px;max-width:min(500px,90vw)}.color-panel>div{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.color-panel strong{min-width:80px;font-size:12px}.color-swatch{border:1px solid #cbd5e1;border-radius:7px;width:28px;height:28px;cursor:pointer;font-weight:700}.color-swatch:hover{outline:2px solid #315cff;outline-offset:2px}.editor-formatbar{flex-wrap:wrap}.format-panel.color-panel{z-index:20}.version-preview img{max-width:100%}
[data-text-color=red]{color:#b91c1c}[data-text-color=orange]{color:#b45309}[data-text-color=yellow]{color:#856300}[data-text-color=green]{color:#15803d}[data-text-color=blue]{color:#1d4ed8}[data-text-color=purple]{color:#7e22ce}[data-text-color=gray]{color:#596579}
[data-highlight=red]{background:#fee2e2}[data-highlight=orange]{background:#ffedd5}[data-highlight=yellow]{background:#fef08a}[data-highlight=green]{background:#dcfce7}[data-highlight=blue]{background:#dbeafe}[data-highlight=purple]{background:#f3e8ff}[data-highlight=gray]{background:#e5e7eb}mark[data-highlight]{color:inherit;border-radius:2px;padding:0 2px}
.is-reading [data-full-image]{display:block;cursor:zoom-in}.document-options .ghost-button{width:100%;text-align:left}
@media(max-width:760px){.history-layout{grid-template-columns:1fr}.history-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.history-detail{padding:16px}.editor-formatbar .format-button{min-height:36px}.color-panel strong{width:100%}}
.version-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}.version-snapshot{min-width:0;border:1px solid #dfe6f1;border-radius:12px;background:#fbfcff;padding:16px;overflow:auto}.version-snapshot h3{margin:4px 0 14px;overflow-wrap:anywhere}.version-snapshot-content .ce-block__content{max-width:100%}.version-snapshot-content img{max-width:100%}.version-snapshot-content .codex-editor__redactor{padding-bottom:20px!important}.format-select{height:34px;max-width:120px;border:1px solid #dbe3ef;border-radius:7px;background:#fff;color:#3e526f;padding:0 7px;font:inherit;font-size:12px}.format-clear{color:#805b1d}.editor-formatbar{top:46px;box-shadow:0 3px 8px #14213d0a}.editor-formatbar button:disabled{opacity:.38;cursor:not-allowed}.document-body code:not(.ce-code__textarea){padding:2px 5px;border:1px solid #dce4f0;border-radius:5px;background:#f1f4f9;color:#243b64;font:0.9em ui-monospace,SFMono-Regular,Menlo,monospace}.tc-table{border-left:1px solid var(--color-border,#dfe4ec)}.tc-cell{min-width:90px}.tc-row .tc-cell:not(:last-child){resize:horizontal;overflow:auto}.title-input{display:block;resize:none;overflow:hidden;min-height:44px;height:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit}.attachment-card-wrap{position:relative;min-width:0}.attachment-card-wrap>.attachment-card{display:block;height:100%}.attachment-remove{position:absolute;top:8px;right:8px;border:1px solid #f0c8c8;border-radius:8px;background:#fff;color:#a72c2c;padding:6px 9px;font-size:12px;font-weight:700;box-shadow:0 3px 12px #14213d1c}.attachment-remove:hover{background:#fff1f1}.loading-inline{display:flex;align-items:center;gap:9px;color:#65758f}.loading-inline::before,[aria-busy=true]::before{content:'';width:13px;height:13px;flex:0 0 13px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;display:inline-block;vertical-align:-2px;animation:workspace-spin .7s linear infinite;margin-right:6px}@keyframes workspace-spin{to{transform:rotate(360deg)}}
@media(max-width:900px){.version-comparison{grid-template-columns:1fr}}
@media(max-width:760px){.editor-formatbar{top:0}.format-select{max-width:106px}.tc-row .tc-cell:not(:last-child){resize:none}}

/* Rich blocks and compact insertion controls */
.wiki-divider{border:0;border-top:2px solid #dfe5ef;margin:28px 0}.wiki-toc{margin:18px 0;padding:18px 20px;border:1px solid #dfe6f1;border-radius:13px;background:#f8faff}.wiki-toc>strong{display:block;margin-bottom:8px;color:#263b5e}.wiki-toc>p{margin:0;color:#75839a;font-size:13px}.wiki-toc ol{margin:0;padding-left:20px;display:grid;gap:7px}.wiki-toc li::marker{color:#9aa8bd}.wiki-toc a{color:#315cae;text-decoration:none}.wiki-toc a:hover{text-decoration:underline;text-underline-offset:3px}.wiki-toc .toc-level-3{margin-left:15px}.wiki-toc .toc-level-4{margin-left:30px}
.insert-panel{gap:6px;align-items:center}.insert-panel .ghost-button,.insert-panel .danger-link{border:1px solid #dce4f0;background:#fff}.insert-panel .ghost-button:hover{background:#edf3ff}.document-body a{color:#245fbe;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.document-body[contenteditable=true] a{cursor:alias}.ce-popover,.ce-inline-toolbar,.tc-popover{z-index:80!important}.ce-popover--opened .ce-popover__container{max-height:min(360px,calc(100vh - 120px));overflow:auto}.tc-wrap{overflow-x:auto;overflow-y:visible;padding-top:6px}.tc-table{min-width:100%;width:max-content}.tc-cell{min-width:120px;overflow-wrap:anywhere}.tc-toolbox--column .tc-popover{top:auto;bottom:34px;left:-8px}.tc-toolbox--row .tc-popover{z-index:90}

/* Version changes are explicit; complete snapshots remain available below. */
.version-changes{margin-top:24px}.version-change{display:grid;gap:10px;margin:12px 0;padding:16px;border:1px solid #e2e7f0;border-left:4px solid #7890b7;border-radius:11px;background:#fff}.version-change.added{border-left-color:#27a269}.version-change.removed{border-left-color:#d34c59}.version-change.modified{border-left-color:#d39427}.change-value{display:grid;gap:5px;min-width:0}.change-value small{color:#758198;font-weight:650}.change-value del,.change-value ins{display:block;white-space:pre-wrap;overflow-wrap:anywhere;padding:10px 12px;border-radius:8px;text-decoration:none}.change-value.removed del{background:#fff0f1;color:#8f2430;text-decoration:line-through}.change-value.added ins{background:#eaf8f0;color:#17603e}.table-change-list{display:grid;gap:10px}.table-cell-change{display:grid;grid-template-columns:130px minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:start;padding-top:10px;border-top:1px solid #edf0f5}.version-snapshots{margin-top:24px}.version-snapshots>summary{cursor:pointer;color:#315cae;font-weight:650;padding:12px 0}.version-snapshots>summary:hover{text-decoration:underline;text-underline-offset:3px}

/* Inline discussions stay attached to selected document text. */
.selection-comment-button{position:fixed;z-index:120;border:0;border-radius:9px;background:#172b4d;color:#fff;padding:9px 13px;font-size:12px;font-weight:700;box-shadow:0 10px 28px #172b4d42}.comment-anchor{background:#fff0a8;border-bottom:2px solid #d89a18;border-radius:3px;padding:0 1px;cursor:pointer}.document-comments{margin:28px 0;padding:20px;border:1px solid #dfe6f1;border-radius:15px;background:#fbfcff}.comments-head,.comment-meta{display:flex;align-items:center;justify-content:space-between;gap:12px}.comments-title{font-size:19px;font-weight:750;color:#223653}.comments-hint{margin:14px 0;padding:12px 14px;border-radius:9px;background:#f0f4fb;color:#66758d;font-size:13px}.comment-form{display:grid;gap:11px;margin:16px 0;padding:16px;border:1px solid #d8e2f1;border-radius:12px;background:#fff}.comment-form blockquote,.comment-card blockquote{margin:0;padding:9px 12px;border-left:3px solid #f0b72d;background:#fff9e7;color:#5d6471;font-size:13px}.comment-form textarea{min-height:90px;resize:vertical;border:1px solid #ccd7e8;border-radius:9px;padding:11px}.comment-form .primary-button{justify-self:end}.comments-list{display:grid;gap:10px;margin-top:16px}.comments-list h3{margin:16px 0 2px;font-size:13px;color:#65738b}.comment-card{display:grid;gap:10px;padding:15px;border:1px solid #e0e6ef;border-radius:11px;background:#fff}.comment-card.resolved{opacity:.7}.comment-meta time{color:#7c899c;font-size:12px}.comment-card>p{margin:0;line-height:1.55}.comment-card>button{justify-self:start}

@media(max-width:760px){.table-cell-change{grid-template-columns:1fr}.document-comments{padding:16px}.selection-comment-button{max-width:calc(100vw - 24px)}.insert-panel{max-height:210px;overflow:auto}.table-change-list{grid-template-columns:1fr}}

/* Tables retain their grid structure when changed and support long rich text without overflowing. */
.tc-table{max-width:100%}.tc-cell{min-width:120px;max-width:min(58vw,560px);white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.history-table-diff{width:100%;border-collapse:collapse;table-layout:fixed}.history-table-diff th,.history-table-diff td{vertical-align:top;min-width:100px;border:1px solid #dfe6f1;padding:9px;overflow-wrap:anywhere}.history-cell-added{background:#eaf8f0;color:#17603e}.history-cell-removed{background:#fff0f1;color:#8f2430;text-decoration:line-through}.history-cell-missing{opacity:.42}.history-table-value{display:block;min-height:1.2em}.history-table-snapshot{min-width:0;overflow:auto}.history-table-snapshot>strong{display:block;margin-bottom:7px;color:#4b5d78}.table-change-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}

/* Inline comment cards open beside the highlighted text without taking the reader away from the page. */
.comment-popover{position:fixed;z-index:130;width:min(280px,calc(100vw - 24px));display:grid;gap:9px;padding:14px;border:1px solid #d7e1f0;border-radius:12px;background:#fff;box-shadow:0 14px 34px #172b4d30}.comment-popover strong{color:#233a5e}.comment-popover p{margin:0;line-height:1.45;color:#4f5f75}.comment-popover .ghost-button{justify-self:start;padding:0;color:#245fbe}

/* A single persisted width vector controls every row. */
.wiki-table{position:relative}.wiki-table .tc-table{width:100%;max-width:none}.wiki-table .tc-row{min-width:0}.wiki-table .tc-cell{min-width:0;max-width:none;resize:none!important;overflow:hidden;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}.wiki-table .tc-cell img,.history-table-diff img{max-width:100%;height:auto;object-fit:contain}.wiki-table .tc-cell ul,.wiki-table .tc-cell ol,.history-table-diff ul,.history-table-diff ol{box-sizing:border-box;max-width:100%;padding-left:1.5em;margin:.4em 0}.wiki-table .tc-cell p,.wiki-table .tc-cell h1,.wiki-table .tc-cell h2,.wiki-table .tc-cell h3{margin:.4em 0}.wiki-table .tc-cell pre{white-space:pre-wrap;overflow-wrap:anywhere}.table-resizers{position:absolute;inset:0;pointer-events:none}.table-column-resizer{position:absolute;transform:translateX(-4px);width:8px;padding:0;border:0;background:transparent;cursor:col-resize;pointer-events:auto;touch-action:none;z-index:2}.table-column-resizer:hover,.table-column-resizer:focus-visible{background:#316bcb66;outline:none}.wiki-table.tc-wrap--readonly .table-resizers{display:none}

::highlight(wiki-comments){background:#fff0a8;text-decoration:underline;text-decoration-color:#d89a18}.comment-popover{width:min(340px,calc(100vw - 24px));max-height:calc(100vh - 96px);overflow:auto}.comment-popover .comment-card{border:0;padding:0;margin:0}.comment-popover .comment-form{border:0;padding:0;margin:0}.comment-thread-actions{display:flex;justify-content:flex-end;gap:12px}.comment-reply-form{display:grid;gap:8px}.comment-reply-form textarea{min-height:70px;border:1px solid #ccd7e8;border-radius:8px;padding:10px;resize:vertical}.comment-reply-form button{justify-self:end}.comment-entry{border-bottom:1px solid #e4e9f1;padding-bottom:8px}.comment-entry p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.comment-card{margin:12px 0}.comment-meta{align-items:baseline;gap:8px;flex-wrap:wrap}.comment-meta time{font-size:11px}.history-rich-block{padding:8px 0;overflow-wrap:anywhere}.history-rich-block img{max-width:100%;height:auto}.history-rich-block pre{white-space:pre-wrap}.history-rich-block figure{margin:0}.history-block-added{background:#eaf8f0}.history-block-removed{background:#fff0f1;text-decoration:line-through}.history-table-snapshot{padding:8px 0}.history-table-diff td>div,.history-table-diff th>div{min-height:1.2em}.history-table-diff td,.history-table-diff th{min-width:0;word-break:break-word}.history-table-diff .history-cell-missing{background:repeating-linear-gradient(135deg,#f2f4f7,#f2f4f7 5px,#fff 5px,#fff 10px)}

.comment-thread-choice{text-align:left;white-space:normal;overflow-wrap:anywhere;border:1px solid #dce4f0;border-radius:8px;background:#fff;padding:10px;color:#245fbe}
