.thesis-workspace{--workspace-bg:#eef5f7;--workspace-panel:#fff;--workspace-panel-soft:#f7fbfc;--workspace-border:#d6e4ea;--workspace-text:#102233;--workspace-muted:#607486;--workspace-accent:#137f55;--workspace-accent-soft:#dff7ea;--workspace-success:#137f55;--workspace-warning:#9a5b00;--workspace-error:#a72727;--workspace-shadow:#0f2230;--editor-bg:#fbfdfc;--editor-text:#172a3a;--editor-gutter:#f0f6f7;--editor-active-line:#137f5514;--editor-selection:#1484d638;border:1px solid var(--workspace-border);background:radial-gradient(circle at 8% 8%, #137f551a, transparent 28rem), linear-gradient(135deg, #f8fcfb 0%, var(--workspace-bg) 100%);height:calc(100dvh - 2rem);min-height:48rem;color:var(--workspace-text);border-radius:24px;flex-direction:column;display:flex;overflow:hidden;box-shadow:0 24px 70px #0f22301f}.thesis-workspace[data-workspace-theme=dark]{--workspace-bg:#0d1117;--workspace-panel:#151b23;--workspace-panel-soft:#10161d;--workspace-border:#2b3642;--workspace-text:#e6edf3;--workspace-muted:#8d9aa8;--workspace-accent:#47c389;--workspace-accent-soft:#47c38929;--workspace-success:#47c389;--workspace-warning:#e2a33c;--workspace-error:#ff7474;--workspace-shadow:#000;--editor-bg:#0d1117;--editor-text:#e6edf3;--editor-gutter:#111820;--editor-active-line:#47c3891f;--editor-selection:#58a6ff47;background:radial-gradient(circle at 8% 8%,#47c3891f,#0000 28rem),#0d1117;box-shadow:0 24px 70px #00000059}.thesis-workspace[data-workspace-theme=sepia]{--workspace-bg:#f0eadc;--workspace-panel:#fffaf0;--workspace-panel-soft:#f8efd9;--workspace-border:#ddcda9;--workspace-text:#332818;--workspace-muted:#76664e;--workspace-accent:#8a5a19;--workspace-accent-soft:#ae722129;--workspace-success:#6f7d25;--workspace-warning:#9a5b00;--workspace-error:#9d2c24;--workspace-shadow:#4b3a22;--editor-bg:#fff8e8;--editor-text:#332818;--editor-gutter:#f3ead4;--editor-active-line:#8a5a1917;--editor-selection:#b07a2538;background:linear-gradient(#ffffff42, #ffffff14), repeating-linear-gradient(0deg, #8a5a1909, #8a5a1909 1px, transparent 1px, transparent 6px), var(--workspace-bg)}.thesis-workspace[data-workspace-mode=editor] .thesis-workspace-topbar,.thesis-workspace[data-workspace-mode=right-panel] .thesis-workspace-topbar{padding-block:.55rem}.thesis-workspace-topbar,.thesis-status-bar{border-bottom:1px solid var(--workspace-border);background:color-mix(in srgb, var(--workspace-panel) 86%, transparent);justify-content:space-between;align-items:center;gap:1rem;padding:.7rem 1rem;display:flex}.thesis-workspace-brand,.thesis-topbar-actions,.thesis-status-main,.thesis-status-actions,.thesis-tool-title,.thesis-draft-banner,.thesis-warning-strip,.thesis-error-strip,.thesis-empty-card{align-items:center;gap:.65rem;display:flex}.thesis-workspace-brand{flex:0 auto;min-width:0}.thesis-topbar-actions{flex-wrap:wrap;flex:34rem;justify-content:flex-end;min-width:0}.thesis-workspace-brand strong,.thesis-panel-heading h2{color:var(--workspace-text);font-size:.95rem;line-height:1.25}.thesis-kicker{color:var(--workspace-muted);letter-spacing:.16em;text-transform:uppercase;font-size:.68rem;font-weight:700}.thesis-theme-picker{color:var(--workspace-muted);align-items:center;gap:.45rem;font-size:.78rem;font-weight:700;display:flex}.thesis-theme-picker select,.thesis-search-box input,.thesis-tool-card input,.thesis-tool-card textarea{border:1px solid var(--workspace-border);background:var(--workspace-panel);color:var(--workspace-text);border-radius:12px;outline:none}.thesis-theme-picker select{min-height:2.25rem;padding:0 .65rem}.thesis-icon-button{border:1px solid var(--workspace-border);background:var(--workspace-panel);width:2.25rem;height:2.25rem;color:var(--workspace-muted);border-radius:12px;justify-content:center;align-items:center;transition:border-color .15s,color .15s,transform .15s;display:inline-flex}.thesis-icon-button:hover{border-color:var(--workspace-accent);color:var(--workspace-accent);transform:translateY(-1px)}.thesis-view-switcher,.thesis-tool-switcher{border:1px solid var(--workspace-border);background:color-mix(in srgb, var(--workspace-panel) 92%, transparent);border-radius:999px;flex-wrap:wrap;align-items:center;gap:.25rem;padding:.22rem;display:inline-flex}.thesis-tool-switcher{border-radius:14px}.thesis-view-switcher button,.thesis-tool-switcher button{min-height:1.85rem;color:var(--workspace-muted);border-radius:999px;align-items:center;gap:.32rem;padding:0 .65rem;font-size:.72rem;font-weight:800;transition:background .15s,color .15s,box-shadow .15s;display:inline-flex}.thesis-view-switcher button[aria-pressed=true],.thesis-tool-switcher button[aria-pressed=true]{background:var(--workspace-accent-soft);color:var(--workspace-accent);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--workspace-accent) 28%, transparent)}.thesis-mobile-rails{border-bottom:1px solid var(--workspace-border);gap:.5rem;padding:.65rem;display:none}.thesis-mobile-rails button{border:1px solid var(--workspace-border);background:var(--workspace-panel);color:var(--workspace-muted);text-align:center;white-space:normal;border-radius:999px;justify-content:center;align-items:center;gap:.4rem;min-width:0;padding:.45rem .75rem;font-size:.78rem;font-weight:700;display:inline-flex}.thesis-mobile-rails button[aria-pressed=true]{border-color:color-mix(in srgb, var(--workspace-accent) 36%, var(--workspace-border));background:var(--workspace-accent-soft);color:var(--workspace-accent);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--workspace-accent) 24%, transparent)}.thesis-panel-group{background:var(--workspace-border);flex:1;grid-template-columns:minmax(16rem,.68fr) minmax(0,3.15fr) minmax(16rem,.82fr);gap:1px;min-width:0;min-height:0;display:grid}.thesis-left-panel{overflow:auto}.thesis-scroll-handoff{overscroll-behavior-y:auto}.thesis-right-panel{flex-direction:column;display:flex;overflow:hidden}.thesis-right-panel>*{min-width:0;max-width:100%}.thesis-center-panel{flex-direction:column;min-width:0;display:flex}.thesis-latex-editor{border-bottom:1px solid var(--workspace-border);flex:1;min-height:36rem;overflow:hidden}.thesis-editor-shell{flex-direction:column;min-height:100%;display:flex;overflow:hidden}.thesis-editor-header{border-bottom:1px solid var(--workspace-border);background:var(--workspace-panel-soft);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem 1rem;padding:.72rem 1rem;display:flex}.thesis-editor-title{flex:12rem;min-width:0}.thesis-editor-header h1{max-width:100%;color:var(--workspace-text);overflow-wrap:anywhere;font-size:1rem;font-weight:800;line-height:1.1}.thesis-editor-title-field{max-width:min(34rem,100%);display:block}.thesis-editor-title-field input{width:100%;min-height:2.15rem;color:var(--workspace-text);background:0 0;border:1px solid #0000;border-radius:10px;outline:none;padding:.18rem .35rem;font-size:1rem;font-weight:800;line-height:1.15;transition:border-color .15s,background .15s,box-shadow .15s;display:block}.thesis-editor-title-field input:hover,.thesis-editor-title-field input:focus{border-color:color-mix(in srgb, var(--workspace-accent) 38%, var(--workspace-border));background:var(--workspace-panel);box-shadow:0 0 0 3px color-mix(in srgb, var(--workspace-accent-soft) 72%, transparent)}.thesis-editor-meta{color:var(--workspace-muted);flex-wrap:wrap;align-items:center;gap:.45rem;margin-top:.45rem;font-size:.75rem;display:flex}.thesis-import-canonical-callout{border-bottom:1px solid var(--workspace-border);background:color-mix(in srgb, var(--workspace-warning) 9%, var(--workspace-panel));color:var(--workspace-text);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem 1rem;padding:.72rem 1rem;display:flex}.thesis-import-canonical-callout>div{gap:.2rem;min-width:min(18rem,100%);display:grid}.thesis-import-canonical-callout strong{font-size:.86rem;line-height:1.35}.thesis-import-canonical-callout span{max-width:58rem;color:var(--workspace-muted);font-size:.78rem;line-height:1.45}.thesis-editor-controls{flex-wrap:wrap;flex:22rem;justify-content:flex-end;align-items:center;gap:.65rem;min-width:0;max-width:100%;display:flex}.thesis-document-font-control{min-width:min(13rem,100%);max-width:18rem;color:var(--workspace-muted);letter-spacing:.12em;text-transform:uppercase;flex-direction:column;flex:13rem;gap:.25rem;font-size:.68rem;font-weight:700;display:flex}.thesis-editor-mode-switch{border:1px solid var(--workspace-border);background:var(--workspace-panel);white-space:nowrap;border-radius:999px;flex:none;align-items:center;gap:.25rem;padding:.22rem;display:inline-flex}.thesis-editor-mode-switch button{min-height:1.95rem;color:var(--workspace-muted);border-radius:999px;padding:0 .8rem;font-size:.78rem;font-weight:850;transition:background .15s,color .15s,box-shadow .15s}.thesis-editor-mode-switch button[aria-pressed=true]{background:var(--workspace-accent);color:#fff;box-shadow:0 8px 20px color-mix(in srgb, var(--workspace-accent) 25%, transparent)}.thesis-editor-action-strip{z-index:8;border-bottom:1px solid var(--workspace-border);background:linear-gradient(90deg, color-mix(in srgb, var(--workspace-panel) 92%, transparent), var(--workspace-panel-soft)), var(--workspace-panel);box-shadow:0 10px 24px color-mix(in srgb, var(--workspace-shadow) 8%, transparent);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;padding:.65rem 1rem;display:none;position:sticky;top:0}.thesis-editor-action-strip.is-dirty{background:linear-gradient(90deg, color-mix(in srgb, var(--workspace-warning) 8%, var(--workspace-panel)), var(--workspace-panel)), var(--workspace-panel)}.thesis-editor-action-state,.thesis-editor-action-buttons{align-items:center;gap:.38rem .5rem;min-width:0;display:flex}.thesis-editor-action-state{color:var(--workspace-muted);flex:18rem;font-size:.76rem;font-weight:700}.thesis-editor-action-state>span:not(.thesis-status-pill){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.thesis-editor-action-state kbd{border:1px solid var(--workspace-border);background:var(--workspace-panel-soft);color:var(--workspace-muted);font-family:var(--font-jetbrains-mono), Consolas, monospace;border-radius:8px;flex:none;padding:.1rem .4rem;font-size:.68rem;font-weight:800}.thesis-editor-action-buttons{flex-wrap:wrap;flex:0 auto;justify-content:flex-end}.thesis-status-pill.is-saved{background:color-mix(in srgb, var(--workspace-success) 12%, transparent);color:var(--workspace-success)}.thesis-visual-editor{background:linear-gradient(90deg, color-mix(in srgb, var(--workspace-border) 34%, transparent) 0 1px, transparent 1px), linear-gradient(180deg, color-mix(in srgb, var(--workspace-panel-soft) 80%, var(--workspace-bg)), var(--workspace-bg));overscroll-behavior-y:auto;background-size:100% 100%,100% 100%;flex:1;grid-auto-rows:max-content;align-content:start;gap:0;min-width:0;min-height:0;padding:0;scroll-padding-top:4.25rem;display:grid;overflow:hidden auto}.thesis-workspace[data-workspace-mode=editor] .thesis-visual-editor{scroll-padding-top:4.25rem}.thesis-workspace[data-workspace-mode=editor] .thesis-editor-header{gap:.55rem .85rem;padding:.58rem .9rem}.thesis-workspace[data-workspace-mode=editor] .thesis-editor-page-frame{width:min(100%,74rem)}.thesis-tiptap-editor{align-content:start;gap:0;width:100%;min-width:0;max-width:100%;display:grid}.thesis-tiptap-editor.is-readonly .thesis-editor-sticky-controls,.thesis-tiptap-editor.is-readonly .thesis-visual-empty-actions{pointer-events:none;opacity:.62}.thesis-tiptap-editor.is-readonly .thesis-editor-page-frame{position:relative}.thesis-tiptap-editor.is-readonly .thesis-editor-page-frame:after{border:1px solid color-mix(in srgb, var(--workspace-accent) 26%, var(--workspace-border));background:color-mix(in srgb, var(--workspace-panel) 92%, transparent);color:var(--workspace-muted);content:"Saving...";pointer-events:none;box-shadow:0 10px 26px color-mix(in srgb, var(--workspace-shadow) 10%, transparent);border-radius:999px;padding:.32rem .62rem;font-size:.72rem;font-weight:850;position:absolute;top:1rem;right:1rem}.thesis-editor-sticky-controls{z-index:36;border-bottom:1px solid var(--workspace-border);background:color-mix(in srgb, var(--workspace-panel-soft) 78%, var(--workspace-panel));width:100%;min-width:0;max-width:100%;box-shadow:0 12px 26px color-mix(in srgb, var(--workspace-shadow) 8%, transparent);padding:.45rem .75rem;position:sticky;top:0}.thesis-visual-toolbar{box-sizing:border-box;border:1px solid color-mix(in srgb, var(--workspace-border) 88%, transparent);background:var(--workspace-panel);scrollbar-gutter:stable;width:100%;min-width:0;max-width:100%;box-shadow:0 1px 0 #fffc inset, 0 10px 22px color-mix(in srgb, var(--workspace-shadow) 6%, transparent);border-radius:14px;flex-wrap:wrap;align-content:center;align-items:center;gap:.42rem;padding:.36rem;display:flex;overflow:hidden}.thesis-visual-toolbar-group{border-right:1px solid color-mix(in srgb, var(--workspace-border) 76%, transparent);flex:none;align-items:center;gap:.26rem;min-height:2.1rem;padding-right:.42rem;display:inline-flex}.thesis-visual-toolbar-group:last-child{border-right:0;padding-right:0}.thesis-toolbar-button{width:2.05rem;height:2.05rem;color:var(--workspace-muted);background:0 0;border:1px solid #0000;border-radius:10px;flex:none;justify-content:center;align-items:center;transition:border-color .15s,background .15s,color .15s,box-shadow .15s;display:inline-flex}.thesis-toolbar-button:hover{border-color:color-mix(in srgb, var(--workspace-accent) 28%, var(--workspace-border));background:color-mix(in srgb, var(--workspace-accent-soft) 42%, var(--workspace-panel));color:var(--workspace-text)}.thesis-toolbar-button:focus-visible{outline:2px solid color-mix(in srgb, var(--workspace-accent) 52%, transparent);outline-offset:2px}.thesis-toolbar-button.is-active{border-color:color-mix(in srgb, var(--workspace-accent) 40%, var(--workspace-border));background:color-mix(in srgb, var(--workspace-accent-soft) 62%, var(--workspace-panel));color:var(--workspace-accent);box-shadow:0 7px 16px color-mix(in srgb, var(--workspace-accent) 10%, transparent)}.thesis-toolbar-button.is-disabled{cursor:not-allowed;opacity:.42}.thesis-toolbar-button.is-disabled:hover{color:var(--workspace-muted);background:0 0;border-color:#0000}.thesis-style-select{border:1px solid color-mix(in srgb, var(--workspace-border) 86%, transparent);background:color-mix(in srgb, var(--workspace-panel-soft) 55%, var(--workspace-panel));min-height:2.05rem;color:var(--workspace-muted);letter-spacing:.08em;text-transform:uppercase;border-radius:10px;flex:none;align-items:center;gap:.42rem;padding:0 .52rem;font-size:.68rem;font-weight:850;display:inline-flex}.thesis-style-select select{min-width:8.5rem;color:var(--workspace-text);letter-spacing:normal;text-transform:none;background:0 0;border:0;outline:none;font-size:.78rem;font-weight:850}.thesis-size-select select{min-width:4.9rem}.thesis-symbol-panel{border-bottom:1px solid var(--workspace-border);background:color-mix(in srgb, var(--workspace-panel) 88%, var(--workspace-accent-soft));gap:.75rem;padding:.85rem;display:grid}.thesis-symbol-group{grid-template-columns:5.5rem minmax(0,1fr);align-items:start;gap:.65rem;display:grid}.thesis-symbol-group>span{color:var(--workspace-muted);letter-spacing:.12em;text-transform:uppercase;font-size:.72rem;font-weight:900}.thesis-symbol-group>div{flex-wrap:wrap;gap:.35rem;display:flex}.thesis-symbol-group button{border:1px solid var(--workspace-border);background:var(--workspace-panel);min-width:2rem;min-height:2rem;color:var(--workspace-text);border-radius:.55rem;justify-content:center;align-items:center;font-family:Georgia,serif;font-size:1rem;font-weight:800;transition:border-color .15s,color .15s,transform .15s;display:inline-flex}.thesis-symbol-group button:hover{border-color:var(--workspace-accent);color:var(--workspace-accent);transform:translateY(-1px)}.thesis-rich-block-overlay{z-index:240;pointer-events:none;justify-content:center;align-items:center;padding:clamp(1rem,2.2vw,2rem);display:flex;position:fixed;inset:0}.thesis-rich-block-backdrop{background:radial-gradient(circle at 50% 16%, color-mix(in srgb, var(--workspace-accent-soft) 24%, transparent), transparent 28rem), #08172475;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);cursor:default;pointer-events:auto;border:0;position:absolute;inset:0}.thesis-rich-block-drawer{z-index:1;border:1px solid var(--workspace-border);background:var(--workspace-panel);pointer-events:auto;scrollbar-gutter:stable;border-radius:1.25rem;align-self:center;width:min(54rem,100vw - 2rem);min-height:0;max-height:min(42rem,100dvh - 5rem);display:flex;position:relative;overflow:hidden;box-shadow:0 28px 72px #08172447,inset 0 0 0 1px #fff6}.thesis-rich-block-drawer.is-equation,.thesis-rich-block-drawer.is-xref,.thesis-rich-block-drawer.is-citation{width:min(48rem,100vw - 2rem)}.thesis-rich-block-drawer.is-figure{width:min(58rem,100vw - 2rem);max-height:min(40rem,100dvh - 5rem)}.thesis-rich-block-drawer.is-table{width:min(54rem,100vw - 2rem);max-height:min(40rem,100dvh - 5rem)}.thesis-rich-block-drawer.is-table.is-editing{width:min(68rem,100vw - 2rem)}.thesis-rich-block-panel{background:var(--workspace-panel);width:100%;min-width:0;min-height:0;display:flex}.thesis-rich-block-card{background:linear-gradient(180deg, color-mix(in srgb, var(--workspace-accent-soft) 18%, var(--workspace-panel)), var(--workspace-panel) 12rem), var(--workspace-panel);grid-template-rows:auto minmax(0,1fr) auto;width:100%;min-height:0;display:grid}.thesis-rich-block-header,.thesis-rich-block-footer{justify-content:space-between;align-items:center;gap:1rem;padding:.95rem 1.15rem;display:flex}.thesis-rich-block-header{border-bottom:1px solid color-mix(in srgb, var(--workspace-border) 80%, transparent)}.thesis-rich-block-title{color:var(--workspace-text);font-size:1rem;font-weight:900;line-height:1.2}.thesis-rich-block-header p{max-width:46rem;color:var(--workspace-muted);margin-top:.2rem;font-size:.78rem;line-height:1.45}.thesis-rich-block-close{border:1px solid var(--workspace-border);background:var(--workspace-panel);min-height:2rem;color:var(--workspace-muted);border-radius:999px;flex:none;justify-content:center;align-items:center;padding:0 .85rem;font-size:.78rem;font-weight:800;transition:border-color .15s,color .15s,box-shadow .15s;display:inline-flex}.thesis-rich-block-close:hover{border-color:color-mix(in srgb, var(--workspace-accent) 42%, var(--workspace-border));color:var(--workspace-text);box-shadow:0 8px 18px #08172414}.thesis-rich-block-content{min-width:0;min-height:0;padding:1rem 1.15rem;overflow:auto}.thesis-rich-block-footer{border-top:1px solid color-mix(in srgb, var(--workspace-border) 80%, transparent);background:color-mix(in srgb, var(--workspace-panel) 88%, var(--workspace-accent-soft));flex-wrap:wrap;justify-content:flex-end}.thesis-rich-block-grid{gap:1rem;display:grid}.thesis-rich-block-grid-equation{grid-template-columns:minmax(0,1fr) minmax(13rem,17rem)}.thesis-rich-block-grid-figure{grid-template-columns:minmax(17rem,.82fr) minmax(0,1.18fr)}.thesis-rich-block-grid-citation,.thesis-rich-block-grid-xref{grid-template-columns:minmax(0,1fr) minmax(13rem,17rem)}.thesis-rich-block-stack{gap:1rem;display:grid}.thesis-table-picker-card{border:1px solid var(--workspace-border);background:var(--workspace-panel);border-radius:.95rem;width:fit-content;max-width:100%;padding:1rem;box-shadow:0 12px 28px #0f22300f}.thesis-table-toolbar{box-sizing:border-box;border-bottom:1px solid var(--workspace-border);background:color-mix(in srgb, var(--workspace-accent-soft) 28%, var(--workspace-panel));gap:.45rem;width:100%;min-width:0;max-width:100%;padding:.45rem .58rem .55rem;display:grid;overflow:visible}.thesis-table-toolbar-fields{flex-wrap:wrap;align-items:end;gap:.45rem;width:100%;min-width:0;display:flex}.thesis-table-toolbar-copy{border:1px solid color-mix(in srgb, var(--workspace-border) 72%, transparent);background:color-mix(in srgb, var(--workspace-panel) 76%, transparent);min-width:0;min-height:1.82rem;color:var(--workspace-muted);white-space:nowrap;border-radius:999px;flex:none;align-items:center;gap:.4rem;padding:0 .6rem;display:inline-flex}.thesis-table-toolbar-copy strong{color:var(--workspace-text);font-size:.72rem}.thesis-table-toolbar label{min-width:0;color:var(--workspace-muted);letter-spacing:.12em;text-transform:uppercase;flex:8.25rem;gap:.12rem;font-size:.58rem;font-weight:900;display:grid}.thesis-table-toolbar label.thesis-table-toolbar-caption{flex-grow:2;flex-basis:17rem}.thesis-table-toolbar input,.thesis-table-toolbar select{border:1px solid var(--workspace-border);background:var(--workspace-panel);min-width:0;min-height:1.82rem;color:var(--workspace-text);letter-spacing:normal;text-transform:none;border-radius:.6rem;outline:none;padding:0 .55rem;font-size:.75rem;font-weight:700}.thesis-table-toolbar input:focus,.thesis-table-toolbar select:focus{border-color:var(--workspace-accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--workspace-accent) 14%, transparent)}.thesis-table-toolbar-actions{border-top:1px solid color-mix(in srgb, var(--workspace-border) 64%, transparent);flex-wrap:wrap;align-items:center;gap:.32rem;width:100%;min-width:0;padding-top:.42rem;display:flex}.thesis-table-toolbar-action-group{border:1px solid color-mix(in srgb, var(--workspace-border) 76%, transparent);background:color-mix(in srgb, var(--workspace-panel) 82%, transparent);border-radius:999px;flex-wrap:wrap;flex:0 auto;align-items:center;gap:.22rem;min-width:0;padding:.18rem;display:inline-flex}.thesis-table-toolbar-actions button{min-height:1.54rem;color:var(--workspace-text);white-space:nowrap;background:0 0;border:1px solid #0000;border-radius:999px;justify-content:center;align-items:center;gap:.3rem;padding:0 .46rem;font-size:.66rem;font-weight:850;transition:background .15s,border-color .15s,color .15s,transform .15s;display:inline-flex}.thesis-table-toolbar-action-group-icons button{width:1.72rem;padding:0}.thesis-table-toolbar-actions button:hover{background:color-mix(in srgb, var(--workspace-accent-soft) 45%, transparent);border-color:color-mix(in srgb, var(--workspace-accent) 36%, transparent);color:var(--workspace-accent);transform:translateY(-1px)}.thesis-table-toolbar-actions button.active{border-color:color-mix(in srgb, var(--workspace-accent) 40%, transparent);background:color-mix(in srgb, var(--workspace-accent-soft) 72%, var(--workspace-panel));color:var(--workspace-accent)}.thesis-table-toolbar-action-group-danger{margin-left:auto}.thesis-table-toolbar-actions button.danger{border-color:color-mix(in srgb, #ef4444 34%, var(--workspace-border));background:color-mix(in srgb, #fff1f2 64%, var(--workspace-panel));color:#b91c1c}.thesis-tiptap-page{justify-items:center;gap:1rem;width:100%;min-width:0;max-width:100%;padding:1.5rem clamp(1rem,3vw,3.5rem) 3rem;display:grid;overflow-x:hidden}.thesis-workspace[data-workspace-mode=editor] .thesis-tiptap-page{padding-top:1rem;padding-bottom:2rem}.thesis-tiptap-page.is-empty{background:linear-gradient(180deg, color-mix(in srgb, var(--workspace-panel) 90%, transparent), var(--workspace-panel)), radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--workspace-accent) 10%, transparent), transparent 22rem);border-radius:24px}.thesis-editor-page-frame{width:min(100%, var(--thesis-editor-page-width,58rem));min-width:0;max-width:100%;margin:0 auto;position:relative}.thesis-panel-group.is-right-collapsed .thesis-editor-page-frame,.thesis-panel-group.is-left-collapsed.is-right-collapsed .thesis-editor-page-frame{width:min(100%, max(var(--thesis-editor-page-width,58rem), 66rem))}.thesis-tiptap-surface{box-sizing:border-box;width:100%;min-width:0;max-width:100%;color:var(--editor-text,var(--workspace-text));overflow-wrap:break-word;white-space:pre-wrap;word-break:normal;counter-reset:thesis-figure thesis-equation;overflow-x:hidden;box-shadow:inset 0 1px #ffffffe0,0 18px 42px #0f223021;border:1px solid color-mix(in srgb, var(--workspace-border) 86%, #9aa8b4)!important;background:linear-gradient(180deg, color-mix(in srgb, var(--editor-bg,var(--workspace-panel)) 96%, var(--workspace-panel)), var(--editor-bg,var(--workspace-panel)))!important;min-height:38rem!important;padding:min(var(--thesis-editor-margin-top,1in), clamp(2rem, 4vw, 4rem)) min(var(--thesis-editor-margin-right,1in), clamp(2rem, 4.5vw, 4.5rem)) min(var(--thesis-editor-margin-bottom,1in), clamp(2rem, 4vw, 4rem)) min(var(--thesis-editor-margin-left,1in), clamp(2rem, 4.5vw, 4.5rem))!important;font-size:var(--thesis-editor-font-size,12pt)!important;line-height:var(--thesis-editor-line-height,1.75)!important;border-radius:.2rem!important}.thesis-panel-group.is-left-collapsed.is-right-collapsed .thesis-tiptap-surface{min-height:max(72rem,100dvh - 8rem)!important}.thesis-tiptap-surface :where(p,li,h1,h2,h3,h4,h5,h6,blockquote,figcaption,td,th,span){overflow-wrap:break-word;word-break:normal;unicode-bidi:plaintext;max-width:100%}.thesis-tiptap-surface>p{text-indent:var(--thesis-paragraph-first-line-indent,1.5em);margin:0 0 .55rem}.thesis-tiptap-surface>h2{font-size:calc(1em * var(--thesis-heading-h2-scale,1.28))}.thesis-tiptap-surface>h3{font-size:calc(1em * var(--thesis-heading-h3-scale,1.12))}.thesis-tiptap-surface>h4{font-size:calc(1em * var(--thesis-heading-h4-scale,1.04))}.thesis-tiptap-surface>p:empty,.thesis-tiptap-surface>p.is-editor-empty,.thesis-tiptap-surface :where(li>p,td p,th p,figcaption p,blockquote p){text-indent:0}.thesis-tiptap-surface :where(ul,ol){white-space:normal;margin:.75rem 0;padding-inline-start:1.55rem}.thesis-tiptap-surface ul{list-style:outside}.thesis-tiptap-surface ol{list-style:decimal}.thesis-tiptap-surface li{white-space:normal;margin:.25rem 0;padding-inline-start:.18rem;display:list-item}.thesis-tiptap-surface li>p{margin:.1rem 0}.thesis-editor-page-frame.is-showing-formatting-marks .thesis-tiptap-surface :where(p,h1,h2,h3,h4,h5,h6):after{content:" ¶";color:color-mix(in srgb, var(--workspace-muted) 82%, transparent);pointer-events:none;-webkit-user-select:none;user-select:none;font-size:.72em;font-weight:700;line-height:1}.thesis-tiptap-surface :where(pre,code){white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.thesis-tiptap-surface :where(.thesis-inline-citation,.thesis-inline-xref){max-width:none;color:inherit;font:inherit;letter-spacing:0;white-space:normal;background:0 0;border:0;border-radius:0;padding:0;display:inline}.thesis-tiptap-surface :where(.thesis-inline-citation,.thesis-inline-xref).ProseMirror-selectednode{background:color-mix(in srgb, var(--workspace-accent) 12%, transparent);box-shadow:0 0 0 2px color-mix(in srgb, var(--workspace-accent) 16%, transparent);border-radius:.2rem}.thesis-tiptap-surface .thesis-text-size-small{font-size:.86em;line-height:1.65}.thesis-tiptap-surface .thesis-text-size-normal{font-size:1em;line-height:inherit}.thesis-tiptap-surface .thesis-text-size-large{font-size:1.18em;line-height:1.55}.thesis-tiptap-surface .thesis-text-size-xlarge{font-size:1.45em;line-height:1.4}.thesis-tiptap-surface .thesis-text-size-huge{font-size:1.9em;line-height:1.25}.thesis-tiptap-surface :where([data-thesis-equation],[data-thesis-table]){max-width:100%;overflow-x:auto}.thesis-tiptap-surface [data-thesis-equation]{counter-increment:thesis-equation}.thesis-rendered-page-break{color:color-mix(in srgb, var(--workspace-accent) 82%, var(--workspace-muted));letter-spacing:0;white-space:nowrap;-webkit-user-select:none;user-select:none;grid-template-columns:minmax(1rem,1fr) auto minmax(1rem,1fr);align-items:center;gap:.75rem;margin:1.6rem 0;font-size:.78rem;font-weight:800;display:grid}.thesis-rendered-page-break[data-page-start=true]{margin-top:0}.thesis-rendered-page-break:before,.thesis-rendered-page-break:after,.thesis-rendered-page-break>span{border-top:1px dashed color-mix(in srgb, var(--workspace-accent) 34%, transparent);content:"";min-width:0;height:1px;display:block}.thesis-rendered-page-break>span{display:none}.thesis-rendered-page-break>strong{border:1px solid color-mix(in srgb, var(--workspace-accent) 34%, var(--workspace-border));background:color-mix(in srgb, var(--workspace-panel) 94%, var(--workspace-accent-soft));min-width:0;color:color-mix(in srgb, var(--workspace-accent) 88%, var(--workspace-text));text-align:center;border-radius:999px;padding:.28rem .72rem;font-size:.76rem;line-height:1.1}.thesis-equation-preview{color:var(--workspace-text);text-align:center;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:1rem;margin:1.15rem 0;padding:.25rem 0;font-size:1.05rem;line-height:1.65;display:grid}.thesis-equation-preview.ProseMirror-selectednode{outline:2px solid color-mix(in srgb, var(--workspace-accent) 34%, transparent);outline-offset:.25rem;background:color-mix(in srgb, var(--workspace-accent-soft) 22%, transparent);border-radius:.55rem}.thesis-equation-line{justify-content:center;align-items:center;min-width:0;padding-block:.1rem;display:flex;overflow:auto visible}.thesis-equation-line .katex-display{text-align:center;margin:0;overflow:visible}.thesis-equation-line .katex{font-size:1.1em;line-height:1.2}.thesis-equation-number{color:var(--workspace-muted);white-space:nowrap;font-size:.95rem}.thesis-equation-number:not(.has-display-label):before{content:"(" counter(thesis-equation) ")"}.thesis-inline-math-view{max-width:100%;color:inherit;font:inherit;line-height:inherit;vertical-align:middle;white-space:nowrap;align-items:center;display:inline-flex}.thesis-inline-math-view .katex{color:inherit;font-size:1em;line-height:1}.thesis-math-fallback{font-family:Cambria,Times New Roman,serif}.thesis-tiptap-surface [data-thesis-block-id].thesis-compliance-target,.thesis-tiptap-surface .thesis-compliance-target [data-thesis-block-id]{outline:3px solid color-mix(in srgb, var(--workspace-accent) 64%, transparent);outline-offset:4px;box-shadow:0 0 0 8px color-mix(in srgb, var(--workspace-accent) 12%, transparent);transition:outline-color .18s,box-shadow .18s}.thesis-tiptap-surface .tableWrapper:has(.thesis-compliance-target){outline:3px solid color-mix(in srgb, var(--workspace-accent) 64%, transparent);outline-offset:4px;box-shadow:0 0 0 8px color-mix(in srgb, var(--workspace-accent) 12%, transparent);transition:outline-color .18s,box-shadow .18s}.thesis-tiptap-surface [data-thesis-figure]{counter-increment:thesis-figure;text-align:center;border-radius:.55rem;max-width:100%;margin:1.1rem 0;padding:.25rem 0;overflow:visible}.thesis-tiptap-surface [data-thesis-figure].is-document-image{counter-increment:none}.thesis-tiptap-surface [data-thesis-figure].ProseMirror-selectednode{outline:2px solid color-mix(in srgb, var(--workspace-accent) 34%, transparent);outline-offset:.35rem;background:color-mix(in srgb, var(--workspace-accent-soft) 18%, transparent)}.thesis-figure-preview-image{min-width:min(8rem,100%);max-width:100%;height:auto;max-height:min(var(--thesis-figure-max-height,52vh), 32rem);background:var(--workspace-panel);object-fit:contain;border:0;border-radius:.2rem;margin:.15rem auto .45rem;display:block}.thesis-figure-caption{max-width:min(100%,44rem);color:color-mix(in srgb, var(--workspace-text) 82%, var(--workspace-muted));font-size:calc(1em * var(--thesis-caption-font-size-scale,.92));text-align:center;margin:.35rem auto 0;line-height:1.45}.thesis-tiptap-surface [data-thesis-figure]:not(.has-display-label) .thesis-figure-caption:before{color:var(--workspace-text);content:"Figure " counter(thesis-figure) ". ";font-weight:750}.thesis-figure-caption-label{color:var(--workspace-text);font-weight:750}.thesis-figure-preview-placeholder{border:1px dashed color-mix(in srgb, var(--workspace-accent) 42%, var(--workspace-border));background:color-mix(in srgb, var(--workspace-accent-soft) 35%, var(--workspace-panel));min-height:7rem;color:var(--workspace-muted);border-radius:.85rem;place-items:center;margin-bottom:.75rem;font-weight:800;display:grid}.thesis-tiptap-surface [data-thesis-source-snapshot]{border:1px solid color-mix(in srgb, var(--workspace-accent) 30%, var(--workspace-border));background:color-mix(in srgb, var(--workspace-accent-soft) 24%, var(--workspace-panel));border-radius:.5rem;margin:1.1rem 0;padding:.85rem 1rem}.thesis-tiptap-surface [data-thesis-source-snapshot].ProseMirror-selectednode{outline:2px solid color-mix(in srgb, var(--workspace-accent) 42%, transparent);outline-offset:.25rem}.thesis-source-snapshot-title{color:var(--workspace-text);letter-spacing:.04em;text-transform:uppercase;font-size:.82rem;font-weight:800}.thesis-source-snapshot-trace,.thesis-source-snapshot-reason,.thesis-source-snapshot-text{color:var(--workspace-muted);margin-top:.35rem;font-size:.92rem;line-height:1.5}.thesis-source-snapshot-text{color:color-mix(in srgb, var(--workspace-text) 78%, var(--workspace-muted));margin-bottom:0}.thesis-figure-picker-panel,.thesis-figure-selected-card{border:1px solid var(--workspace-border);background:linear-gradient(180deg, color-mix(in srgb, var(--workspace-panel) 92%, transparent), var(--workspace-panel)), var(--workspace-panel);border-radius:1rem;min-width:0;padding:1rem;box-shadow:0 16px 34px #0f22300f}.thesis-figure-picker-list{scrollbar-gutter:stable;gap:.65rem;max-height:min(36vh,20rem);margin-top:.85rem;padding-right:.25rem;display:grid;overflow-y:auto}.thesis-figure-picker-option{border:1px solid var(--workspace-border);background:var(--workspace-panel);width:100%;color:var(--workspace-text);text-align:left;border-radius:.95rem;grid-template-columns:5.4rem minmax(0,1fr);align-items:center;gap:.75rem;padding:.65rem;transition:border-color .16s,background .16s,box-shadow .16s,transform .16s;display:grid}.thesis-figure-picker-option:hover{border-color:color-mix(in srgb, var(--workspace-accent) 44%, var(--workspace-border));transform:translateY(-1px);box-shadow:0 12px 24px #0f223014}.thesis-figure-picker-option.is-selected{border-color:var(--workspace-accent);background:color-mix(in srgb, var(--workspace-accent-soft) 45%, var(--workspace-panel));box-shadow:0 0 0 3px color-mix(in srgb, var(--workspace-accent) 14%, transparent)}.thesis-figure-picker-thumb{border:1px solid var(--workspace-border);background:linear-gradient(135deg, color-mix(in srgb, var(--workspace-accent-soft) 38%, transparent), transparent), var(--workspace-panel);width:5.4rem;height:4.4rem;color:var(--workspace-muted);border-radius:.8rem;place-items:center;display:grid;overflow:hidden}.thesis-figure-picker-thumb img{object-fit:contain;width:100%;height:100%}.thesis-figure-picker-copy{gap:.2rem;min-width:0;display:grid}.thesis-figure-picker-title{color:var(--workspace-text);text-overflow:ellipsis;white-space:nowrap;font-size:.85rem;font-weight:850;line-height:1.25;overflow:hidden}.thesis-figure-picker-meta,.thesis-figure-picker-file{color:var(--workspace-muted);text-overflow:ellipsis;white-space:nowrap;font-size:.72rem;line-height:1.25;overflow:hidden}.thesis-figure-picker-empty{border:1px dashed color-mix(in srgb, var(--workspace-accent) 32%, var(--workspace-border));background:color-mix(in srgb, var(--workspace-accent-soft) 28%, var(--workspace-panel));min-height:8rem;color:var(--workspace-muted);text-align:center;border-radius:.95rem;place-items:center;gap:.35rem;padding:1rem;display:grid}.thesis-figure-picker-empty strong{color:var(--workspace-text);font-size:.86rem}.thesis-figure-picker-empty span{max-width:22rem;font-size:.78rem;line-height:1.5}.thesis-figure-selected-preview{border:1px solid var(--workspace-border);background:linear-gradient(45deg, #94a3b814 25%, transparent 25%), linear-gradient(-45deg, #94a3b814 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #94a3b814 75%), linear-gradient(-45deg, transparent 75%, #94a3b814 75%), var(--workspace-panel);background-position:0 0,0 10px,10px -10px,-10px 0;background-size:20px 20px;border-radius:.95rem;place-items:center;min-height:10rem;margin-top:.85rem;padding:1rem;display:grid;overflow:hidden}.thesis-figure-selected-preview img{object-fit:contain;max-width:100%;max-height:14rem;display:block}.thesis-rich-block-panel.is-figure .thesis-figure-picker-panel,.thesis-rich-block-panel.is-figure .thesis-figure-selected-card{padding:.9rem}.thesis-rich-block-panel.is-figure .thesis-figure-picker-option{grid-template-columns:4.4rem minmax(0,1fr);gap:.65rem;padding:.55rem}.thesis-rich-block-panel.is-figure .thesis-figure-picker-thumb{width:4.4rem;height:3.45rem}.thesis-rich-block-panel.is-figure .thesis-figure-selected-preview{margin-top:.65rem}.thesis-tiptap-surface .tableWrapper{scrollbar-gutter:stable;max-width:100%;margin:.85rem 0 .55rem;padding-bottom:.15rem;overflow-x:auto}.thesis-tiptap-surface table{border-collapse:collapse;table-layout:fixed;border:1px solid color-mix(in srgb, var(--workspace-border) 82%, #9fb0ba);background:var(--workspace-panel);width:100%;max-width:100%;color:var(--workspace-text);font-size:calc(1em * var(--thesis-table-font-size-scale,.88));border-radius:.7rem;margin:.85rem 0 .55rem;line-height:1.42;overflow:hidden}.thesis-tiptap-surface .tableWrapper table{margin:0}.thesis-tiptap-surface table th,.thesis-tiptap-surface table td{border:1px solid color-mix(in srgb, var(--workspace-border) 82%, #9fb0ba);min-width:4.4rem;padding:var(--thesis-table-cell-padding,.45em);vertical-align:middle;overflow-wrap:anywhere;word-break:normal;position:relative}.thesis-tiptap-surface table th{background:color-mix(in srgb, var(--workspace-accent-soft) 34%, var(--workspace-panel));color:var(--workspace-text);text-align:center;font-weight:850}.thesis-tiptap-surface table p{min-height:1.15rem;margin:0}.thesis-tiptap-surface table :where(p,li,span){line-height:1.42}.thesis-tiptap-surface table [data-thesis-inline-math]{max-width:100%;color:inherit;font-family:inherit;font-size:1em;font-weight:inherit;line-height:inherit;vertical-align:baseline;white-space:nowrap;background:0 0;border:0;padding:0;display:inline-flex}.thesis-tiptap-surface table [data-thesis-equation]{border-radius:.45rem;max-width:100%;margin:.08rem 0;padding:.08rem .35rem;font-size:1em;line-height:1.35;display:inline-flex}.thesis-tiptap-surface .selectedCell:after{z-index:2;background:color-mix(in srgb, var(--workspace-accent) 16%, transparent);content:"";pointer-events:none;position:absolute;inset:0}.thesis-tiptap-surface .column-resize-handle{background:var(--workspace-accent);pointer-events:none;width:4px;position:absolute;top:0;bottom:-2px;right:-2px}.thesis-tiptap-surface.resize-cursor{cursor:ew-resize;cursor:col-resize}.thesis-tiptap-page.is-empty .thesis-tiptap-surface{border-style:dashed;box-shadow:inset 0 1px #ffffffe0,0 18px 42px #0f223017;min-height:24rem!important}.thesis-tiptap-surface:focus{border-color:color-mix(in srgb, var(--workspace-accent) 42%, var(--workspace-border));box-shadow:0 22px 56px #0f22301a, 0 0 0 4px color-mix(in srgb, var(--workspace-accent) 12%, transparent)}.thesis-tiptap-surface p.is-editor-empty:first-child:before{float:left;height:0;color:var(--workspace-muted);content:attr(data-placeholder);opacity:.75;pointer-events:none}.thesis-visual-empty-state{border:1px dashed color-mix(in srgb, var(--workspace-accent) 42%, var(--workspace-border));background:linear-gradient(135deg, color-mix(in srgb, var(--workspace-accent-soft) 54%, var(--workspace-panel)), var(--workspace-panel));border-radius:22px;gap:1rem;padding:1rem;display:grid}.thesis-visual-empty-state h3{color:var(--workspace-text);letter-spacing:-.01em;margin-top:.2rem;font-size:1.05rem;font-weight:850}.thesis-visual-empty-state p{max-width:46rem;color:var(--workspace-muted);margin-top:.35rem;font-size:.86rem;line-height:1.65}.thesis-visual-empty-kicker{color:var(--workspace-accent);letter-spacing:.16em;text-transform:uppercase;font-size:.68rem;font-weight:900}.thesis-visual-empty-actions{flex-wrap:wrap;gap:.5rem;display:flex}.thesis-visual-empty-actions button{border:1px solid var(--workspace-border);background:var(--workspace-panel);min-height:2.35rem;color:var(--workspace-text);border-radius:999px;align-items:center;gap:.45rem;padding:0 .85rem;font-size:.8rem;font-weight:800;transition:border-color .15s,color .15s,transform .15s,box-shadow .15s;display:inline-flex}.thesis-visual-empty-actions button:hover{border-color:var(--workspace-accent);color:var(--workspace-accent);box-shadow:0 10px 24px color-mix(in srgb, var(--workspace-accent) 12%, transparent);transform:translateY(-1px)}.thesis-structured-bridge{border-top:1px solid var(--workspace-border);background:var(--workspace-panel);max-height:24rem;padding:1rem;overflow:auto}.thesis-structured-bridge summary{cursor:pointer;color:var(--workspace-text);font-size:.82rem;font-weight:800}.thesis-panel-heading{justify-content:space-between;align-items:flex-start;gap:.75rem;margin-bottom:1rem;display:flex}.thesis-preview-actions{grid-template-columns:repeat(auto-fit,minmax(min(100%,8.5rem),1fr));gap:.5rem;width:100%;min-width:0;max-width:100%;display:grid}.thesis-preview-panel .thesis-panel-heading{flex-wrap:wrap}.thesis-preview-panel-heading{justify-content:flex-end;margin-bottom:.65rem}.thesis-preview-action{white-space:normal;width:100%;min-width:0;max-width:100%}.thesis-preview-action svg{flex:none}.thesis-outline-panel{background:color-mix(in srgb, var(--tb-surface) 86%, var(--tb-primary-soft));flex-direction:column;height:100%;min-height:0;display:flex;overflow:hidden}.thesis-outline-sticky-header{z-index:7;border-bottom:1px solid var(--workspace-border);background:color-mix(in srgb, var(--tb-surface) 92%, var(--tb-primary-soft));flex:none;gap:.65rem;padding:.85rem;display:grid;position:sticky;top:0}.thesis-outline-titlebar{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:.65rem;display:grid}.thesis-outline-titlebar h2{color:var(--workspace-text);margin:0;font-size:1rem;font-weight:900;line-height:1.12}.thesis-outline-titlebar p{color:var(--workspace-muted);margin:.18rem 0 0;font-size:.72rem;font-weight:700}.thesis-outline-primary-action{border:1px solid var(--workspace-border);background:var(--workspace-panel);min-height:2.15rem;color:var(--workspace-text);border-radius:999px;justify-content:center;align-items:center;gap:.4rem;padding:0 .75rem;font-size:.74rem;font-weight:850;transition:border-color .15s,color .15s,background .15s,box-shadow .15s;display:inline-flex}.thesis-outline-primary-action:hover{border-color:var(--workspace-accent);color:var(--workspace-accent);box-shadow:0 10px 22px color-mix(in srgb, var(--workspace-accent) 12%, transparent)}.thesis-outline-action-row{grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:.45rem;display:grid}.thesis-outline-search{border:1px solid var(--workspace-border);background:var(--workspace-panel);min-width:0;color:var(--workspace-muted);border-radius:999px;align-items:center;gap:.4rem;padding:0 .75rem;display:flex;position:relative}.thesis-outline-search input{width:100%;min-width:0;min-height:2.25rem;color:var(--workspace-text);background:0 0;border:0;outline:none;font-size:.78rem;font-weight:650}.thesis-outline-search:focus-within{border-color:color-mix(in srgb, var(--workspace-accent) 42%, var(--workspace-border));box-shadow:0 0 0 3px color-mix(in srgb, var(--workspace-accent) 12%, transparent)}.thesis-outline-page-menu,.thesis-outline-overflow{position:relative}.thesis-outline-page-menu summary,.thesis-outline-overflow summary{border:1px solid var(--workspace-border);background:var(--workspace-panel);width:2.3rem;min-height:2.25rem;color:var(--workspace-text);cursor:pointer;border-radius:999px;justify-content:center;align-items:center;gap:.25rem;font-size:.72rem;font-weight:850;list-style:none;transition:border-color .15s,color .15s,box-shadow .15s;display:inline-flex}.thesis-outline-page-menu summary{width:auto;padding:0 .72rem}.thesis-outline-page-menu summary::-webkit-details-marker{display:none}.thesis-outline-overflow summary::-webkit-details-marker{display:none}.thesis-outline-page-menu summary:hover,.thesis-outline-overflow summary:hover,.thesis-outline-page-menu[open] summary,.thesis-outline-overflow[open] summary{border-color:var(--workspace-accent);color:var(--workspace-accent);box-shadow:0 10px 22px color-mix(in srgb, var(--workspace-accent) 12%, transparent)}.thesis-outline-menu{z-index:20;border:1px solid var(--workspace-border);background:var(--workspace-panel);min-width:min(19rem,100vw - 2rem);box-shadow:var(--tb-shadow-md);border-radius:14px;gap:.55rem;padding:.7rem;display:grid;position:absolute;top:calc(100% + .45rem);right:0}.thesis-outline-menu label{color:var(--workspace-muted);letter-spacing:.08em;text-transform:uppercase;gap:.3rem;font-size:.68rem;font-weight:850;display:grid}.thesis-outline-menu input,.thesis-outline-menu select{border:1px solid var(--workspace-border);background:var(--workspace-panel-soft);min-height:2.2rem;color:var(--workspace-text);letter-spacing:0;text-transform:none;border-radius:12px;outline:none;padding:.45rem .65rem;font-size:.78rem;font-weight:650}.thesis-outline-menu button{border:1px solid var(--workspace-border);background:var(--workspace-panel-soft);min-height:2.15rem;color:var(--workspace-text);border-radius:999px;justify-content:center;align-items:center;font-size:.76rem;font-weight:850;display:inline-flex}.thesis-outline-menu button:hover{border-color:var(--workspace-accent);color:var(--workspace-accent)}.thesis-outline-tree{overscroll-behavior-y:auto;scrollbar-gutter:stable;flex:auto;min-height:0;padding:.7rem .6rem .9rem;overflow:auto}.thesis-outline-group{gap:.25rem;margin-bottom:.7rem;display:grid}.thesis-outline-group-title{width:100%;color:var(--workspace-muted);letter-spacing:.14em;text-transform:uppercase;text-align:left;background:0 0;border:0;border-radius:10px;grid-template-columns:auto auto minmax(0,1fr) auto;align-items:center;gap:.42rem;padding:.38rem .45rem;font-size:.68rem;font-weight:900;display:grid}.thesis-outline-group-title:hover{background:color-mix(in srgb, var(--workspace-panel-soft) 76%, transparent);color:var(--workspace-text)}.thesis-outline-count{border:1px solid var(--workspace-border);background:var(--workspace-panel);min-width:1.7rem;color:var(--workspace-muted);text-align:center;border-radius:999px;justify-self:end;padding:.08rem .38rem;font-size:.58rem;line-height:1.35}.thesis-outline-group-rows{gap:.14rem;display:grid}.thesis-outline-branch,.thesis-outline-children{gap:.12rem;display:grid}.thesis-outline-row{--outline-depth:0;min-height:2.35rem;padding:.18rem .35rem .18rem calc(.35rem + (var(--outline-depth) * .8rem));color:var(--workspace-muted);will-change:transform;border:1px solid #0000;border-radius:12px;grid-template-columns:1.15rem 1.25rem minmax(2.25rem,max-content) minmax(5rem,1fr) auto auto;align-items:center;gap:.25rem;transition:border-color .14s,background .14s,color .14s,opacity .14s,box-shadow .14s;display:grid;position:relative}.thesis-outline-row.is-page{grid-template-columns:1.15rem 1.25rem minmax(5rem,1fr) auto auto}.thesis-outline-row:hover{background:var(--workspace-panel-soft);color:var(--workspace-text)}.thesis-outline-row.is-active{border-color:color-mix(in srgb, var(--workspace-accent) 32%, var(--workspace-border));background:var(--workspace-accent-soft);color:var(--workspace-accent);box-shadow:inset 4px 0 0 var(--workspace-accent)}.thesis-outline-row.is-drop-target{border-color:color-mix(in srgb, var(--workspace-accent) 42%, var(--workspace-border));background:color-mix(in srgb, var(--workspace-accent-soft) 52%, var(--workspace-panel));box-shadow:0 12px 30px color-mix(in srgb, var(--workspace-accent) 12%, transparent)}.thesis-outline-row.is-drop-target:after{content:attr(data-drop-label);left:calc(1.4rem + (var(--outline-depth) * .8rem));z-index:3;border-top:2px solid var(--workspace-accent);min-height:.95rem;color:var(--workspace-accent);letter-spacing:.02em;text-align:right;pointer-events:none;font-size:.58rem;font-weight:900;line-height:1.05;position:absolute;top:-.52rem;right:.45rem}.thesis-outline-row.is-dragging{background:var(--workspace-panel);box-shadow:0 16px 34px color-mix(in srgb, var(--workspace-text) 16%, transparent);opacity:.88}.thesis-outline-drag-handle,.thesis-outline-disclosure,.thesis-outline-icon-action,.thesis-outline-kind-icon{width:1.35rem;height:1.55rem;color:color-mix(in srgb, var(--workspace-muted) 82%, transparent);background:0 0;border:0;border-radius:7px;justify-content:center;align-items:center;display:inline-flex}.thesis-outline-drag-handle{cursor:grab;touch-action:none}.thesis-outline-drag-handle:active{cursor:grabbing}.thesis-outline-disclosure:not(.is-empty):hover,.thesis-outline-icon-action:hover{background:var(--workspace-panel);color:var(--workspace-accent)}.thesis-outline-icon-action.is-danger:hover{color:var(--color-danger-700,#b42318)}.thesis-outline-disclosure.is-empty{opacity:.28}.thesis-outline-kind-icon{color:color-mix(in srgb, var(--workspace-muted) 78%, transparent)}.thesis-outline-number{min-width:2.1rem;color:var(--workspace-muted);font-family:var(--font-mono,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace);white-space:nowrap;font-size:.67rem;font-weight:800}.thesis-outline-title-input{width:100%;min-width:0;min-height:1.85rem;color:var(--workspace-text);text-overflow:ellipsis;background:0 0;border:1px solid #0000;border-radius:8px;outline:none;padding:.35rem .5rem;font-size:.82rem;font-weight:700;line-height:1.25;transition:border-color .14s,background .14s,box-shadow .14s}.thesis-outline-title-input:read-write{cursor:text;border-color:#0000}.thesis-outline-title-input:read-write:hover{border-color:color-mix(in srgb, var(--workspace-accent) 32%, var(--workspace-border));background:var(--workspace-panel)}.thesis-outline-title-input:focus{background:var(--workspace-panel);color:var(--workspace-text);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--workspace-accent) 38%, var(--workspace-border))}.thesis-outline-title-input:read-only{cursor:pointer;opacity:1;color:var(--workspace-text);-webkit-text-fill-color:var(--workspace-text);background:0 0}.thesis-outline-status-slot{justify-content:flex-end;min-width:max-content;display:inline-flex}.thesis-outline-row-actions{opacity:0;pointer-events:none;justify-content:flex-end;align-items:center;gap:.2rem;min-width:max-content;transition:opacity .14s;display:inline-flex}.thesis-outline-row:hover .thesis-outline-row-actions,.thesis-outline-row.is-active .thesis-outline-row-actions,.thesis-outline-row:focus-within .thesis-outline-row-actions{opacity:1;pointer-events:auto}.thesis-outline-chip{border:1px solid var(--workspace-border);background:var(--workspace-panel);color:var(--workspace-muted);text-transform:uppercase;border-radius:999px;justify-self:end;padding:.1rem .4rem;font-size:.58rem;font-weight:850;line-height:1.3}.thesis-outline-empty{border:1px dashed var(--workspace-border);background:color-mix(in srgb, var(--workspace-panel) 70%, transparent);color:var(--workspace-muted);border-radius:12px;padding:.75rem;font-size:.75rem;font-weight:750}.thesis-outline-footer{border-top:1px solid var(--workspace-border);background:color-mix(in srgb, var(--tb-surface) 92%, var(--tb-primary-soft));flex:none;gap:.1rem;padding:.65rem .85rem;display:grid}.thesis-outline-footer span{color:var(--workspace-muted);letter-spacing:.13em;text-transform:uppercase;font-size:.62rem;font-weight:900}.thesis-outline-footer strong{min-width:0;color:var(--workspace-text);text-overflow:ellipsis;white-space:nowrap;font-size:.78rem;font-weight:850;overflow:hidden}.thesis-editor-settings-panel{border:1px solid var(--workspace-border);background:color-mix(in srgb, var(--workspace-panel-soft) 62%, var(--workspace-panel));border-radius:14px;grid-template-columns:minmax(15rem,1.35fr) repeat(2,minmax(9rem,.82fr));align-items:end;gap:.55rem;padding:.55rem;display:grid}.thesis-editor-settings-note{color:var(--workspace-muted);grid-column:1/-1;font-size:.76rem;font-weight:750}.thesis-frontmatter-settings-strip{border:1px solid var(--workspace-border);background:color-mix(in srgb, var(--workspace-panel-soft) 72%, var(--workspace-panel));border-radius:14px;grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));align-items:end;gap:.55rem;padding:.5rem;display:grid}.thesis-section-label-field{min-width:0}.thesis-frontmatter-settings-note{color:var(--workspace-muted);grid-column:1/-1;font-size:.72rem;font-weight:750}.thesis-required-document-banner{border:1px solid color-mix(in srgb, var(--workspace-accent) 26%, var(--workspace-border));background:color-mix(in srgb, var(--workspace-panel) 88%, var(--workspace-accent-soft));border-radius:14px;justify-content:space-between;align-items:center;gap:.65rem;padding:.45rem .55rem;display:flex}.thesis-required-document-banner-copy{min-width:0;color:var(--workspace-text);align-items:center;gap:.45rem;font-size:.78rem;font-weight:850;display:inline-flex}.thesis-signature-timestamp{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--workspace-muted);text-align:right;align-self:center;font-size:.74rem;font-weight:700;line-height:1.35;overflow:hidden}.thesis-compact-field{min-width:0;color:var(--workspace-text);gap:.28rem;font-size:.73rem;font-weight:850;display:grid}.thesis-compact-field .thesis-input,.thesis-compact-field select,.thesis-compact-field input{min-height:2.3rem}.thesis-compact-field-wide{grid-column:1/-1}.thesis-compact-check{border:1px solid var(--workspace-border);background:var(--workspace-panel);min-height:2.3rem;color:var(--workspace-text);border-radius:12px;align-items:center;gap:.5rem;padding:.45rem .6rem;font-size:.76rem;font-weight:850;display:flex}.thesis-frontmatter-details{border:1px dashed color-mix(in srgb, var(--workspace-accent) 30%, var(--workspace-border));background:color-mix(in srgb, var(--workspace-panel) 78%, transparent);border-radius:12px;grid-column:1/-1;padding:.45rem .6rem}.thesis-frontmatter-details summary{cursor:pointer;color:var(--workspace-text);font-size:.76rem;font-weight:850}.thesis-frontmatter-details-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));gap:.55rem;margin-top:.55rem;display:grid}.thesis-compact-help{border:1px dashed var(--workspace-border);background:var(--workspace-panel-soft);color:var(--workspace-muted);border-radius:10px;margin-top:.55rem;padding:.45rem .55rem;font-size:.72rem;line-height:1.45}.thesis-policy-check-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.75rem;display:grid}.thesis-policy-check-card{border:1px solid var(--workspace-border);background:var(--workspace-panel);border-radius:16px;gap:.45rem;padding:.75rem;display:grid}.thesis-policy-check-card-title{color:var(--workspace-text);align-items:center;gap:.45rem;font-size:.82rem;font-weight:850;display:flex}.thesis-policy-check-row{background:var(--workspace-panel-soft);width:100%;color:var(--workspace-muted);text-align:left;border:1px solid #0000;border-radius:12px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.55rem;padding:.55rem .65rem;font-size:.74rem;font-weight:750;transition:border-color .15s,color .15s,background .15s;display:grid}.thesis-policy-check-row span:first-child{overflow-wrap:anywhere;min-width:0}.thesis-policy-check-row:not(:disabled):hover{border-color:var(--workspace-accent);color:var(--workspace-text)}.thesis-policy-check-row:disabled{cursor:default;opacity:.72}.thesis-policy-check-row.is-missing{opacity:.72}.thesis-policy-document-row{grid-template-columns:minmax(0,1fr);align-items:stretch;gap:.4rem;padding:.45rem}.thesis-policy-document-target{width:100%;min-width:0;color:inherit;font:inherit;text-align:left;background:0 0;border:0;border-radius:10px;grid-template-columns:minmax(0,1fr);align-items:start;gap:.45rem;padding:.5rem .55rem;display:grid}.thesis-policy-document-label{overflow-wrap:normal;word-break:normal;-webkit-hyphens:auto;hyphens:auto;min-width:0;line-height:1.35}.thesis-policy-document-status{white-space:normal;letter-spacing:.04em;justify-self:start;max-width:100%;line-height:1.25}.thesis-policy-document-target.is-full{grid-column:1/-1}.thesis-policy-document-target:not(:disabled):hover{background:color-mix(in srgb, var(--workspace-accent-soft) 55%, transparent);color:var(--workspace-text)}.thesis-policy-document-target:disabled{cursor:default}.thesis-policy-row-action{border:1px solid color-mix(in srgb, var(--workspace-accent) 42%, var(--workspace-border));background:var(--workspace-panel);width:100%;min-height:2.25rem;color:var(--workspace-accent);white-space:nowrap;border-radius:10px;padding:.48rem .62rem;font-size:.72rem;font-weight:850}.thesis-policy-row-action:hover{background:var(--workspace-accent);color:var(--workspace-accent-contrast)}.thesis-issues-panel{align-content:start;gap:.85rem;padding-right:.15rem;display:grid}.thesis-compliance-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem;display:grid}.thesis-compliance-metrics div,.thesis-compliance-validation-card{border:1px solid var(--workspace-border);background:color-mix(in srgb, var(--workspace-panel-soft) 74%, var(--workspace-panel));border-radius:14px;min-width:0;padding:.65rem}.thesis-compliance-metrics span,.thesis-compliance-validation-card span{color:var(--workspace-muted);letter-spacing:.12em;text-transform:uppercase;font-size:.62rem;font-weight:900;display:block}.thesis-compliance-metrics strong,.thesis-compliance-validation-card strong{color:var(--workspace-text);margin-top:.2rem;font-size:1.08rem;line-height:1.1;display:block}.thesis-validation-category-grid{gap:.5rem;min-width:0;display:grid}.thesis-validation-category-card{border:1px solid var(--workspace-border);background:var(--workspace-panel);border-radius:14px;gap:.42rem;min-width:0;padding:.7rem;display:grid}.thesis-validation-category-row,.thesis-validation-category-meta{justify-content:space-between;align-items:center;gap:.65rem;min-width:0;display:flex}.thesis-validation-category-row span{min-width:0;color:var(--workspace-text);overflow-wrap:anywhere;font-size:.78rem;font-weight:850}.thesis-validation-category-row strong{color:var(--workspace-accent);flex:none;font-size:.9rem;line-height:1}.thesis-validation-category-track{background:color-mix(in srgb, var(--workspace-border) 62%, transparent);border-radius:999px;height:.38rem;overflow:hidden}.thesis-validation-category-track span{border-radius:inherit;background:var(--workspace-accent);height:100%;display:block}.thesis-validation-category-meta{color:var(--workspace-muted);font-size:.68rem;font-weight:750}.thesis-compliance-section-heading{color:var(--workspace-muted);letter-spacing:.14em;text-transform:uppercase;justify-content:space-between;align-items:center;gap:.65rem;font-size:.68rem;font-weight:900;display:flex}.thesis-compliance-issue-list{gap:.65rem;min-width:0;display:grid}.thesis-compliance-issue-card{border:1px solid var(--workspace-border);background:var(--workspace-panel);width:100%;min-width:0;color:var(--workspace-text);text-align:left;border-radius:14px;gap:.38rem;padding:.72rem;transition:border-color .15s,background .15s,transform .15s;display:grid}.thesis-compliance-issue-card:hover{border-color:var(--workspace-accent);background:color-mix(in srgb, var(--workspace-accent-soft) 28%, var(--workspace-panel));transform:translateY(-1px)}.thesis-compliance-issue-card>*{min-width:0}.thesis-compliance-issue-code{color:var(--workspace-muted);font-family:var(--font-mono,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace);overflow-wrap:anywhere;font-size:.68rem}.thesis-compliance-issue-message{color:var(--workspace-text);overflow-wrap:anywhere;font-size:.84rem;font-weight:850;line-height:1.35}.thesis-compliance-issue-target,.thesis-compliance-issue-hint{color:var(--workspace-muted);overflow-wrap:anywhere;font-size:.74rem;line-height:1.45}.thesis-compliance-issue-hint{color:var(--workspace-accent)}.thesis-compliance-validation-card{justify-content:space-between;align-items:center;gap:.75rem;display:flex}.thesis-empty-card.is-compact{text-align:left;justify-content:flex-start;min-height:2.25rem;padding:.55rem .65rem}.thesis-delete-dialog{--delete-dialog-panel:#fff;--delete-dialog-panel-soft:#f8fafc;--delete-dialog-border:#d9e5eb;--delete-dialog-text:#102233;--delete-dialog-muted:#526579;--delete-dialog-danger:#b42318;--delete-dialog-danger-soft:#fff1f0;border:1px solid var(--delete-dialog-border);background:var(--delete-dialog-panel);width:min(32rem,100vw - 2rem);max-width:min(32rem,100vw - 2rem);color:var(--delete-dialog-text);border-radius:18px;gap:1rem;padding:1.25rem;box-shadow:0 28px 80px #0f172a42,inset 0 0 0 1px #ffffffe6}.thesis-delete-dialog>button{width:2rem;height:2rem;color:var(--delete-dialog-muted);border:1px solid #0000;border-radius:999px;justify-content:center;align-items:center;display:inline-flex;top:1rem;right:1rem}.thesis-delete-dialog>button:hover{border-color:var(--delete-dialog-border);background:var(--delete-dialog-panel-soft);color:var(--delete-dialog-text)}.thesis-delete-dialog-header{text-align:left;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:.85rem;display:grid}.thesis-delete-dialog-header>:not([hidden])~:not([hidden]){margin-top:0}.thesis-delete-dialog-icon{background:var(--delete-dialog-danger-soft);width:2.5rem;height:2.5rem;color:var(--delete-dialog-danger);border:1px solid #ffc7c2;border-radius:999px;justify-content:center;align-items:center;display:inline-flex;box-shadow:0 8px 18px #b423181f}.thesis-delete-dialog-description{color:var(--delete-dialog-muted);margin-top:.45rem;padding-right:1.75rem;line-height:1.6}.thesis-delete-dialog-warning{border:1px solid var(--delete-dialog-border);background:var(--delete-dialog-panel-soft);color:var(--delete-dialog-text);border-radius:12px;padding:.7rem .85rem;font-size:.82rem;font-weight:700;line-height:1.5}.thesis-delete-dialog-actions{gap:.6rem}.thesis-delete-dialog-actions>button{border-radius:12px;min-height:2.75rem}.thesis-signature-dialog{isolation:isolate;opacity:1;border:1px solid var(--workspace-border,#d6e4ea);-webkit-backdrop-filter:none;backdrop-filter:none;width:min(31rem,100vw - 2rem);max-width:min(31rem,100vw - 2rem);color:var(--workspace-text,#102233);border-radius:18px;gap:1rem;padding:1.2rem;box-shadow:0 28px 80px #0f172a57;background:var(--workspace-panel,#fff)!important}.thesis-signature-dialog-header{text-align:left;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:.85rem;display:grid}.thesis-signature-dialog-header>:not([hidden])~:not([hidden]){margin-top:0}.thesis-signature-dialog-icon{border:1px solid color-mix(in srgb, var(--workspace-accent) 32%, var(--workspace-border));background:var(--workspace-accent-soft);width:2.4rem;height:2.4rem;color:var(--workspace-accent);border-radius:999px;justify-content:center;align-items:center;display:inline-flex}.thesis-signature-dialog-description{color:var(--workspace-muted);margin-top:.4rem;line-height:1.55}.thesis-signature-dialog-body{gap:.8rem;display:grid}.thesis-signature-dialog-status{border:1px solid var(--workspace-border);background:var(--workspace-panel-soft);border-radius:13px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.7rem;padding:.7rem .8rem;font-size:.86rem;font-weight:850;display:grid}.thesis-signature-dialog-status>span:first-child{overflow-wrap:normal;word-break:normal;-webkit-hyphens:auto;hyphens:auto;min-width:0}.thesis-signature-dialog-badge{white-space:normal;letter-spacing:.04em;justify-self:end;max-width:100%;line-height:1.25}.thesis-signature-dialog-field{color:var(--workspace-muted);text-transform:uppercase;gap:.35rem;font-size:.72rem;font-weight:850;display:grid}.thesis-signature-dialog-timestamp{color:var(--workspace-muted);font-size:.78rem;font-weight:700}.thesis-signature-dialog-actions{gap:.6rem}.thesis-signature-dialog-actions>button{border-radius:12px;min-height:2.6rem}.thesis-policy-list-row{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.55rem;width:100%;min-width:0;display:grid}.thesis-policy-list-label{overflow-wrap:anywhere;min-width:0;line-height:1.35}.thesis-reference-panel,.thesis-preview-panel,.thesis-issues-panel{flex:auto;height:100%;min-height:0;overflow:hidden auto}.thesis-preview-panel--loading{color:var(--workspace-muted);place-items:center;font-weight:700;display:grid}.thesis-assets-panel-shell{flex:auto;height:100%;min-height:0;display:flex;overflow:hidden}.thesis-asset-manager{flex:auto;min-width:0;height:min(76vh,48rem);min-height:0;max-height:min(76vh,48rem);overflow:hidden}.thesis-assets-panel-shell .thesis-asset-manager{flex:100%;height:100%;max-height:none}.thesis-asset-manager-list{overscroll-behavior:contain;scrollbar-gutter:stable;flex:auto;min-height:0;max-height:min(56vh,38rem);overflow:hidden auto}.thesis-asset-manager-list>.grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));align-content:start}.thesis-assets-panel-shell .thesis-asset-manager-list{max-height:none}.thesis-asset-card{max-width:100%;overflow:hidden}.thesis-asset-card-body{grid-template-columns:4.6rem minmax(0,1fr);align-items:start;min-width:0}.thesis-asset-thumb{align-self:start;width:4.6rem;min-width:4.6rem;height:3.8rem}.thesis-asset-thumb img{display:block}.thesis-asset-upload-panel{scrollbar-gutter:stable;max-height:min(42vh,24rem);overflow:auto}.thesis-reference-panel{flex-direction:column;display:flex;overflow:hidden;container-type:inline-size}.thesis-search-box{border:1px solid var(--workspace-border);background:var(--workspace-panel);color:var(--workspace-muted);border-radius:14px;align-items:center;gap:.5rem;margin-bottom:.85rem;padding:.65rem .75rem;display:flex}.thesis-search-box input{background:0 0;border:0;width:100%;min-width:0;padding:0}.thesis-reference-workbench{overscroll-behavior:contain;min-height:0;padding-right:.25rem;padding-bottom:max(1rem, calc(env(safe-area-inset-bottom) + 5.5rem));scrollbar-gutter:stable;flex-direction:column;flex:auto;gap:.85rem;display:flex;overflow:hidden auto}.thesis-reference-list{flex:none;align-content:start;gap:.55rem;min-height:0;max-height:none;padding-right:0;display:grid;overflow:visible}.thesis-reference-row{border-bottom:1px solid var(--workspace-border);background:var(--workspace-panel);border-radius:14px;grid-template-columns:1.35rem 2.25rem minmax(0,1fr);align-items:start;gap:.75rem;min-width:0;max-width:100%;padding:.85rem;transition:box-shadow .15s,transform .15s;display:grid}.thesis-reference-bulkbar{border:1px solid var(--workspace-border);background:var(--workspace-panel-soft);color:var(--workspace-muted);border-radius:14px;flex-wrap:wrap;flex:none;align-items:center;gap:.65rem;margin:0;padding:.65rem;font-size:.78rem;display:flex}.thesis-reference-select-all,.thesis-reference-checkbox{align-items:center;gap:.4rem;min-width:0;display:inline-flex}.thesis-reference-checkbox{justify-content:center;padding-top:.1rem}.thesis-reference-select-all input,.thesis-reference-checkbox input{accent-color:var(--workspace-accent)}.thesis-reference-row:hover{transform:translateY(-1px);box-shadow:0 12px 28px #0f22301a}.thesis-reference-row.is-duplicate{border-color:color-mix(in srgb, var(--workspace-warning) 45%, var(--workspace-border))}.thesis-reference-ordinal{color:var(--workspace-muted);font-family:var(--font-jetbrains-mono), Consolas, monospace;font-size:.78rem;font-weight:800}.thesis-reference-body{text-indent:0;min-width:0;max-width:100%;padding-left:.15rem}.thesis-reference-title{color:var(--workspace-text);overflow-wrap:anywhere;word-break:normal;font-size:.82rem;line-height:1.5}.thesis-reference-source{color:var(--workspace-muted);overflow-wrap:anywhere;margin-top:.3rem;font-size:.76rem;line-height:1.45}.thesis-reference-meta{flex-wrap:wrap;align-items:center;gap:.45rem;margin-top:.45rem;display:flex}.thesis-reference-meta code{background:var(--workspace-panel-soft);color:var(--workspace-muted);border-radius:999px;padding:.2rem .45rem;font-size:.72rem}.thesis-reference-actions{flex-wrap:wrap;align-items:center;gap:.45rem;margin-top:.65rem;display:flex}.thesis-reference-edit-grid{gap:.55rem;display:grid}.thesis-reference-edit-grid input{border:1px solid var(--workspace-border);background:var(--workspace-panel);width:100%;color:var(--workspace-text);border-radius:12px;padding:.58rem .7rem;font-size:.8rem}.thesis-reference-tools{flex:none;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));align-items:start;gap:.75rem;margin-top:0;display:grid}.thesis-tool-card{border:1px solid var(--workspace-border);background:var(--workspace-panel-soft);border-radius:16px;gap:.55rem;min-width:0;padding:.8rem;display:grid}.thesis-tool-title{color:var(--workspace-text);font-size:.8rem;font-weight:800}.thesis-tool-card input,.thesis-tool-card textarea{width:100%;min-width:0;padding:.6rem .7rem;font-size:.8rem}.thesis-tool-card textarea{resize:vertical;min-height:6rem;max-height:16rem}@container (max-width:23rem){.thesis-reference-workbench{padding-right:.15rem;padding-bottom:max(1rem, calc(env(safe-area-inset-bottom) + 6rem));gap:.7rem}.thesis-reference-bulkbar{align-items:stretch}.thesis-reference-bulkbar button{justify-content:center;width:100%}.thesis-reference-row{grid-template-columns:1.25rem minmax(0,1fr);gap:.45rem .6rem;padding:.72rem}.thesis-reference-checkbox{grid-row:1/span 2;align-self:start}.thesis-reference-ordinal,.thesis-reference-body{grid-column:2}.thesis-reference-body{padding-left:0}.thesis-reference-actions button{flex:7.5rem;justify-content:center}.thesis-tool-card{border-radius:14px;padding:.75rem}}.thesis-numbering-prompt{border:1px dashed color-mix(in srgb, var(--workspace-accent) 55%, var(--workspace-border));background:color-mix(in srgb, var(--workspace-accent-soft) 55%, var(--workspace-panel));border-radius:14px;gap:.55rem;padding:.75rem;display:grid}.thesis-numbering-prompt p{color:var(--workspace-muted);margin:0;font-size:.78rem;line-height:1.45}.thesis-reference-dialog-backdrop{z-index:80;background:#0f172a6b;place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.thesis-reference-dialog{border:1px solid var(--workspace-border);background:var(--workspace-panel);border-radius:18px;gap:.75rem;width:min(28rem,100%);padding:1rem;display:grid;box-shadow:0 24px 70px #0f172a38}.thesis-reference-dialog p{color:var(--workspace-muted);margin:0;font-size:.84rem;line-height:1.55}.thesis-draft-banner,.thesis-warning-strip,.thesis-error-strip,.thesis-error-card,.thesis-empty-card{border:1px solid var(--workspace-border);border-radius:16px;padding:.85rem;font-size:.82rem;line-height:1.5}.thesis-draft-banner{background:var(--workspace-accent-soft);color:var(--workspace-accent);margin-bottom:.85rem}.thesis-warning-strip{border-color:color-mix(in srgb, var(--workspace-warning) 45%, var(--workspace-border));background:color-mix(in srgb, var(--workspace-warning) 10%, var(--workspace-panel));color:var(--workspace-warning);margin-bottom:.75rem}.thesis-error-strip,.thesis-error-card{border-color:color-mix(in srgb, var(--workspace-error) 35%, var(--workspace-border));background:color-mix(in srgb, var(--workspace-error) 8%, var(--workspace-panel));color:var(--workspace-error)}.thesis-error-card{align-items:flex-start;gap:.65rem;display:flex}.thesis-error-card a{font-weight:800;text-decoration:underline}.thesis-empty-card{min-height:8rem;color:var(--workspace-muted);border-style:dashed;justify-content:center}.thesis-pdf-scroll{justify-items:center;gap:1rem;padding-bottom:1rem;display:grid;overflow:hidden auto}.thesis-pdf-page{border:1px solid var(--workspace-border);background:#fff;border-radius:18px;width:min(100%,46rem);position:relative;overflow:hidden;box-shadow:0 18px 48px #0f22301f}.thesis-pdf-page canvas{width:100%;height:auto;display:block}.thesis-pdf-page-number{z-index:1;color:#fff;background:#0f172ab8;border-radius:999px;padding:.25rem .55rem;font-size:.7rem;font-weight:800;position:absolute;top:.6rem;right:.6rem}.thesis-pdf-loading{background:#ffffffb3;place-items:center;display:grid;position:absolute;inset:0}.thesis-preview-download{color:var(--workspace-accent);font-size:.82rem;font-weight:800;text-decoration:underline}.thesis-status-bar{border-top:1px solid var(--workspace-border);border-bottom:0;font-size:.78rem;position:relative}.thesis-status-main{min-width:0;color:var(--workspace-muted);font-weight:700}.thesis-status-pill{border-radius:999px;align-items:center;gap:.3rem;padding:.2rem .5rem;font-size:.7rem;font-weight:800;display:inline-flex}.thesis-status-pill.is-dirty{background:color-mix(in srgb, var(--workspace-warning) 13%, transparent);color:var(--workspace-warning)}.thesis-status-pill.is-error{background:color-mix(in srgb, var(--workspace-error) 10%, transparent);color:var(--workspace-error)}.thesis-status-progress{background:var(--workspace-accent);width:35%;height:2px;animation:1.2s ease-in-out infinite alternate thesis-progress;position:absolute;bottom:0;left:0}.thesis-diagnostic-drawer{border-top:1px solid var(--workspace-border);background:var(--workspace-panel);max-height:18rem;padding:.85rem 1rem;overflow:auto}.thesis-diagnostic-item{border:1px solid var(--workspace-border);border-radius:14px;gap:.4rem;margin-bottom:.6rem;padding:.75rem;font-size:.8rem;display:grid}.thesis-diagnostic-item pre{background:var(--editor-bg);color:var(--editor-text);font-family:var(--font-jetbrains-mono), Consolas, monospace;border-radius:12px;padding:.6rem;font-size:.72rem;overflow:auto}@keyframes thesis-progress{0%{transform:translate(0)}to{transform:translate(180%)}}@media (max-width:1280px){.thesis-editor-controls{justify-content:flex-start}.thesis-document-font-control{max-width:100%}}@media (min-width:1281px) and (max-width:1599px){.thesis-workspace[data-workspace-mode=full] .thesis-panel-group{grid-template-columns:minmax(15rem,.62fr) minmax(0,1.95fr) minmax(15rem,.68fr)}}@media (min-width:1025px) and (max-width:1280px){.thesis-workspace[data-workspace-mode=full] .thesis-panel-group{grid-template-columns:minmax(16rem,.72fr) minmax(0,1.65fr)}.thesis-workspace[data-workspace-mode=full] .thesis-right-panel{display:none}}@media (max-width:1024px){.thesis-workspace{border-radius:18px;height:auto;min-height:calc(100vh - 7rem)}.thesis-workspace[data-workspace-mode=editor],.thesis-workspace[data-workspace-mode=right-panel]{height:calc(100dvh - 1rem);min-height:min(40rem,100dvh - 1rem)}.thesis-mobile-rails{scrollbar-gutter:stable;padding-bottom:.75rem;display:flex;overflow-x:auto}.thesis-mobile-rails button{white-space:nowrap;flex:none;min-width:max-content}.thesis-view-switcher,.thesis-tool-switcher{display:none}.thesis-panel-group,.thesis-panel-group.is-left-collapsed,.thesis-panel-group.is-right-collapsed,.thesis-panel-group.is-left-collapsed.is-right-collapsed{grid-template-columns:minmax(0,1fr)}.thesis-left-panel{border-bottom:1px solid var(--workspace-border);max-height:min(52vh,32rem)}.thesis-right-panel{border-bottom:1px solid var(--workspace-border);max-height:min(72vh,42rem)}.thesis-workspace[data-workspace-mode=right-panel] .thesis-right-panel{max-height:none}.thesis-workspace[data-workspace-mode=right-panel] .thesis-center-panel{display:none}.thesis-workspace[data-workspace-mode=editor] .thesis-center-panel,.thesis-workspace[data-workspace-mode=right-panel] .thesis-right-panel{min-height:0;overflow:hidden}.thesis-workspace[data-workspace-mode=editor] .thesis-center-panel{overflow-y:auto}.thesis-workspace[data-workspace-mode=editor] .thesis-panel-group,.thesis-workspace[data-workspace-mode=right-panel] .thesis-panel-group{min-height:0}.thesis-status-bar,.thesis-workspace-topbar{flex-direction:column;justify-content:flex-start;align-items:flex-start}.thesis-workspace-brand,.thesis-topbar-actions{flex:0 auto;width:100%}.thesis-topbar-actions{justify-content:flex-start}.thesis-status-actions{flex-wrap:wrap;width:100%;overflow-x:hidden}.thesis-status-actions>button{flex:8rem;min-width:min(100%,7.5rem)}.thesis-editor-action-strip{flex-direction:column;align-items:flex-start}.thesis-editor-action-state,.thesis-editor-action-buttons{width:100%}.thesis-editor-action-buttons{justify-content:flex-start;padding-bottom:.1rem;overflow-x:auto}.thesis-workspace[data-workspace-mode=editor] .thesis-visual-editor{flex:none;scroll-padding-bottom:9rem;overflow:visible}.thesis-workspace[data-workspace-mode=editor] .thesis-status-bar{z-index:42;box-shadow:0 -14px 24px color-mix(in srgb, var(--workspace-shadow) 10%, transparent);position:sticky;bottom:0}.thesis-editor-sticky-controls{overscroll-behavior:contain;max-height:min(42dvh,16rem);overflow-y:auto}.thesis-visual-toolbar{scrollbar-gutter:auto;flex-wrap:wrap;align-items:center;max-height:none;overflow:hidden visible}.thesis-visual-toolbar-group,.thesis-style-select{flex:none}.thesis-table-toolbar{grid-template-columns:minmax(0,1fr);overflow:visible}.thesis-table-toolbar-copy{white-space:normal;flex-wrap:wrap}.thesis-table-toolbar-actions{flex-wrap:wrap;grid-column:auto;overflow:visible}.thesis-editor-settings-panel{grid-template-columns:minmax(0,1fr)}.thesis-required-document-banner{flex-direction:column;align-items:stretch}.thesis-required-document-banner>button{width:100%}.thesis-signature-timestamp{text-align:left}.thesis-signature-dialog-status{grid-template-columns:minmax(0,1fr)}.thesis-signature-dialog-badge{justify-self:start}.thesis-tiptap-page{padding:1rem .75rem 8rem}.thesis-tiptap-surface{min-height:max(44rem,100dvh - 14rem)!important;padding:1.5rem!important}.thesis-panel-group.is-left-collapsed.is-right-collapsed .thesis-tiptap-surface{min-height:max(52rem,100dvh - 9rem)!important}.thesis-rich-block-overlay{align-items:stretch;padding:.5rem}.thesis-rich-block-drawer{border-radius:1rem;width:100%;max-width:none;max-height:calc(100dvh - 1rem)}.thesis-rich-block-drawer.is-equation,.thesis-rich-block-drawer.is-xref,.thesis-rich-block-drawer.is-citation,.thesis-rich-block-drawer.is-figure,.thesis-rich-block-drawer.is-table,.thesis-rich-block-drawer.is-table.is-editing{width:100%;max-height:calc(100dvh - 1rem)}.thesis-rich-block-header,.thesis-rich-block-content,.thesis-rich-block-footer{padding-left:.85rem;padding-right:.85rem}.thesis-rich-block-grid-equation,.thesis-rich-block-grid-figure,.thesis-rich-block-grid-citation,.thesis-rich-block-grid-xref{grid-template-columns:minmax(0,1fr)}.thesis-figure-picker-list{max-height:18rem}}@media (max-width:560px){.thesis-mobile-rails{grid-template-columns:repeat(2,minmax(0,1fr));display:grid;overflow-x:hidden}.thesis-mobile-rails button{white-space:normal;min-width:0}}.thesis-workspace-page{height:calc(100dvh - .75rem);min-height:42rem}.thesis-workspace{--tb-bg:#f4f8fa;--tb-canvas:#eaf4f6;--tb-surface:#fff;--tb-surface-2:#f7fbfc;--tb-line:#d8e7ec;--tb-line-strong:#bfd6de;--tb-text:#102a3a;--tb-muted:#607483;--tb-muted-2:#8ea0ab;--tb-primary:#0789be;--tb-primary-soft:#e8f6fb;--tb-success:#15936e;--tb-success-soft:#e7f7f1;--tb-warning:#b36a00;--tb-warning-soft:#fff4da;--tb-danger:#c94545;--tb-danger-soft:#fdecec;--tb-shadow-sm:0 2px 8px #0b2a3a1a;--tb-shadow-md:0 8px 32px #0b2a3a1f;--tb-topbar-height:60px;--tb-nav-width:64px;--tb-context-height:56px;--tb-statusbar-height:40px;--tb-inspector-width:clamp(360px, 27vw, 520px);grid-template-columns:var(--tb-nav-width) minmax(0, 1fr);grid-template-rows:var(--tb-topbar-height) minmax(0, 1fr) var(--tb-statusbar-height);flex-direction:initial;border:1px solid var(--tb-line);background:var(--tb-bg);width:100%;height:100%;min-height:0;color:var(--tb-text);box-shadow:var(--tb-shadow-md);border-radius:18px;grid-template-areas:"rail top""rail main""rail status";display:grid;overflow:hidden}.thesis-workspace[data-workspace-theme=dark]{--tb-bg:#0b1117;--tb-canvas:#0f1821;--tb-surface:#141e28;--tb-surface-2:#101821;--tb-line:#263746;--tb-line-strong:#3b5263;--tb-text:#e8f0f6;--tb-muted:#a7b5c0;--tb-muted-2:#7f919f;--tb-primary:#38bdf8;--tb-primary-soft:#38bdf829;--tb-success:#45d19b;--tb-success-soft:#45d19b26;--tb-warning:#f0b84d;--tb-warning-soft:#f0b84d29;--tb-danger:#ff7b7b;--tb-danger-soft:#ff7b7b24;--tb-shadow-sm:0 2px 8px #00000057;--tb-shadow-md:0 18px 48px #0000006b;--workspace-bg:var(--tb-bg);--workspace-panel:var(--tb-surface);--workspace-panel-soft:var(--tb-surface-2);--workspace-border:var(--tb-line);--workspace-text:var(--tb-text);--workspace-muted:var(--tb-muted);--workspace-accent:var(--tb-primary);--workspace-accent-soft:var(--tb-primary-soft);--editor-bg:#121b25;--editor-text:var(--tb-text);background:linear-gradient(135deg, #091018 0%, var(--tb-bg) 100%)}.thesis-workspace[data-workspace-theme=sepia]{--tb-bg:#efe6d3;--tb-canvas:#eadfc7;--tb-surface:#fff9ed;--tb-surface-2:#f7ecd8;--tb-line:#dac9a9;--tb-line-strong:#bba37c;--tb-text:#332818;--tb-muted:#73634c;--tb-muted-2:#9a886a;--tb-primary:#93611d;--tb-primary-soft:#93611d24;--tb-success:#687a2b;--tb-success-soft:#687a2b24;--tb-warning:#a15e00;--tb-warning-soft:#a15e0024;--tb-danger:#a63a32;--tb-danger-soft:#a63a321f;--workspace-bg:var(--tb-bg);--workspace-panel:var(--tb-surface);--workspace-panel-soft:var(--tb-surface-2);--workspace-border:var(--tb-line);--workspace-text:var(--tb-text);--workspace-muted:var(--tb-muted);--workspace-accent:var(--tb-primary);--workspace-accent-soft:var(--tb-primary-soft);--editor-bg:#fffaf0;--editor-text:var(--tb-text);background:linear-gradient(#ffffff3d, #ffffff0d), var(--tb-bg)}.thesis-workspace-rail{border-right:1px solid var(--tb-line);background:color-mix(in srgb, var(--tb-surface) 86%, var(--tb-primary-soft));flex-direction:column;grid-area:rail;align-items:center;gap:.6rem;padding:.65rem .45rem;display:flex}.thesis-rail-item{display:inline-flex;position:relative}.thesis-rail-item:last-child{margin-top:auto}.thesis-workspace-rail button,.thesis-workspace-account-trigger,.thesis-icon-button{width:2.45rem;height:2.45rem;color:var(--tb-muted);border:1px solid #0000;border-radius:14px;justify-content:center;align-items:center;transition:background .15s,color .15s,border-color .15s,transform .15s;display:inline-flex}.thesis-workspace-rail button:hover,.thesis-workspace-rail button[aria-current=page],.thesis-workspace-rail button[aria-pressed=true]{border-color:color-mix(in srgb, var(--tb-primary) 28%, var(--tb-line));background:var(--tb-primary);color:#fff;box-shadow:var(--tb-shadow-sm)}.thesis-rail-item:after{z-index:140;opacity:0;pointer-events:none;border:1px solid color-mix(in srgb, var(--tb-line) 72%, transparent);max-width:13rem;box-shadow:var(--tb-shadow-sm);color:#fff;content:attr(data-tooltip);white-space:nowrap;background:#0f2636;border-radius:10px;padding:.45rem .58rem;font-size:.72rem;font-weight:800;line-height:1.2;transition:opacity .12s,transform .12s;position:absolute;top:50%;left:calc(100% + .65rem);transform:translateY(-50%)translate(-.2rem)}.thesis-rail-item:hover:after{opacity:1;transform:translateY(-50%)translate(0)}.thesis-rail-item:has(button:focus-visible):after{opacity:1;transform:translateY(-50%)translate(0)}.thesis-workspace-logo{cursor:pointer;background:var(--tb-primary);color:#fff;letter-spacing:-.03em;width:2.45rem;height:2.45rem;box-shadow:var(--tb-shadow-sm);border:0;border-radius:14px;place-items:center;font-size:.75rem;font-weight:900;display:grid}.thesis-workspace-topbar{z-index:100;border-bottom:1px solid var(--tb-line);background:color-mix(in srgb, var(--tb-surface) 94%, transparent);grid-area:top;grid-template-columns:minmax(10rem,1fr) minmax(0,auto) auto auto;align-items:center;gap:.75rem;min-width:0;padding:.45rem .8rem;display:grid;position:relative}.thesis-workspace-brand{cursor:pointer;text-align:left;background:0 0;border:0;border-radius:12px;align-items:center;gap:.65rem;min-width:0;padding:.25rem .35rem;display:flex}.thesis-workspace-brand:hover,.thesis-workspace-brand:focus-visible{background:var(--tb-primary-soft);outline:none}.thesis-workspace-brand>div{min-width:0;display:grid}.thesis-workspace-brand strong{color:var(--tb-text);text-overflow:ellipsis;white-space:nowrap;font-size:.94rem;overflow:hidden}.thesis-workspace-brand span,.thesis-focus-brand span{color:var(--tb-muted);text-overflow:ellipsis;white-space:nowrap;font-size:.74rem;font-weight:700;overflow:hidden}.thesis-topbar-project-actions{justify-content:flex-end;align-items:center;gap:.4rem;min-width:0;display:inline-flex}.thesis-topbar-project-actions .thesis-workspace-button{border-radius:11px;min-height:2.2rem;padding-inline:.68rem}.thesis-topbar-project-actions .thesis-support-trigger{border-color:color-mix(in srgb, var(--tb-primary) 26%, var(--tb-line));background:var(--tb-primary-soft);color:var(--tb-primary)}.thesis-topbar-project-actions .thesis-support-trigger:hover,.thesis-topbar-project-actions .thesis-support-trigger:focus-visible{border-color:color-mix(in srgb, var(--tb-primary) 42%, var(--tb-line));background:color-mix(in srgb, var(--tb-primary-soft) 72%, var(--tb-surface));outline:none}.thesis-topbar-project-actions .thesis-support-trigger:focus-visible{box-shadow:0 0 0 3px color-mix(in srgb, var(--tb-primary) 20%, transparent)}.thesis-topbar-project-actions .thesis-support-trigger[aria-expanded=true]{border-color:var(--tb-primary);background:var(--tb-primary);color:#fff;box-shadow:var(--tb-shadow-sm)}.thesis-topbar-project-actions .thesis-theme-picker{border:1px solid var(--tb-line);background:var(--tb-surface);min-height:2.2rem;color:var(--tb-muted);white-space:nowrap;border-radius:11px;gap:.35rem;padding:0 .35rem 0 .65rem;font-size:.76rem;font-weight:850}.thesis-topbar-project-actions .thesis-theme-picker select{background:var(--tb-surface-2);min-height:1.8rem;color:var(--tb-text);font:inherit;border:0;border-radius:9px;outline:none;padding:0 .35rem;font-weight:900}.thesis-mode-switcher,.thesis-inspector-tabs{z-index:2;border:1px solid var(--tb-line);background:var(--tb-surface-2);border-radius:999px;align-items:center;gap:.2rem;padding:.18rem;display:inline-flex;position:relative}.thesis-mode-switcher button,.thesis-inspector-tabs button{min-height:2.05rem;color:var(--tb-muted);white-space:nowrap;border-radius:999px;align-items:center;gap:.32rem;padding:0 .72rem;font-size:.78rem;font-weight:850;display:inline-flex}.thesis-mode-switcher button{justify-content:center;padding-inline:.56rem}.thesis-mode-label{display:none}.thesis-mode-switcher button[data-active=true] .thesis-mode-label{display:inline}.thesis-mode-switcher button[data-active=true],.thesis-inspector-tabs button[data-active=true]{background:var(--tb-surface);color:var(--tb-primary);box-shadow:var(--tb-shadow-sm)}.thesis-workspace-search{border:1px solid var(--tb-line);background:var(--tb-surface);min-width:0;min-height:2.4rem;color:var(--tb-muted-2);border-radius:999px;align-items:center;gap:.45rem;padding:0 .85rem;font-size:.78rem;font-weight:750;display:none}.thesis-workspace-search span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.thesis-workspace-primary,.thesis-workspace-button{border:1px solid var(--tb-line);background:var(--tb-surface);min-height:2.4rem;color:var(--tb-text);white-space:nowrap;border-radius:12px;justify-content:center;align-items:center;gap:.45rem;padding:0 .9rem;font-size:.78rem;font-weight:850;transition:transform .15s,box-shadow .15s,border-color .15s;display:inline-flex}.thesis-workspace-primary{border-color:var(--tb-primary);background:var(--tb-primary);color:#fff;box-shadow:0 10px 24px #0789be38}.thesis-workspace-primary.is-compact{border-radius:10px;min-height:2.1rem;padding-inline:.75rem;font-size:.74rem}.thesis-workspace-primary:disabled{border-color:var(--tb-line);background:var(--tb-surface-2);color:var(--tb-muted-2);box-shadow:none}.thesis-workspace-button:hover:not(:disabled),.thesis-workspace-primary:hover:not(:disabled){transform:translateY(-1px)}.thesis-workspace-account{position:relative}.thesis-workspace-account-trigger{cursor:pointer;background:var(--tb-primary);color:#fff;border:0;border-radius:999px;place-items:center;width:2.45rem;height:2.45rem;font-weight:900;display:grid}.thesis-workspace-account-trigger[aria-expanded=true]{box-shadow:0 0 0 3px var(--tb-primary-soft), var(--tb-shadow-sm)}.thesis-account-menu{z-index:80;border:1px solid var(--tb-line);background:var(--tb-surface);width:15rem;box-shadow:var(--tb-shadow-md);border-radius:14px;gap:.25rem;padding:.45rem;display:grid;position:absolute;top:calc(100% + .45rem);right:0}.thesis-account-menu div{border-bottom:1px solid var(--tb-line);gap:.15rem;padding:.45rem .55rem .65rem;display:grid}.thesis-account-menu small{color:var(--tb-muted);font-size:.72rem;font-weight:700}.thesis-account-menu button{min-height:2.25rem;color:var(--tb-text);border-radius:10px;align-items:center;gap:.5rem;padding:.35rem .55rem;font-size:.8rem;font-weight:800;display:flex}.thesis-account-menu button:hover{background:var(--tb-primary-soft);color:var(--tb-primary)}.thesis-workspace-main{grid-area:main;grid-template-rows:var(--tb-context-height) minmax(0, 1fr);min-width:0;min-height:0;display:grid;overflow:hidden}.thesis-context-bar{border-bottom:1px solid var(--tb-line);background:color-mix(in srgb, var(--tb-surface) 88%, transparent);justify-content:flex-start;align-items:center;gap:.75rem;min-width:0;padding:.45rem .85rem;display:flex}.thesis-context-path{min-width:0;color:var(--tb-muted);flex:auto;align-items:center;gap:.35rem;font-size:.82rem;font-weight:780;display:flex}.thesis-context-crumb-button{max-width:min(18rem,28vw);min-height:2rem;color:var(--tb-muted);font:inherit;text-overflow:ellipsis;white-space:nowrap;border-radius:999px;padding:0 .15rem;overflow:hidden}.thesis-context-crumb-button:hover{color:var(--tb-primary)}.thesis-context-title-input{min-width:min(22rem,38vw);max-width:min(30rem,46vw);height:2.25rem;color:var(--tb-text);background:0 0;border:1px solid #0000;border-radius:999px;outline:none;padding:0 .55rem;font-size:.95rem;font-weight:900}.thesis-context-title-input:hover,.thesis-context-title-input:focus{border-color:var(--tb-line-strong);background:var(--tb-surface);box-shadow:0 0 0 3px var(--tb-primary-soft)}.thesis-context-current-title{color:var(--tb-text);font-size:.95rem;font-weight:900}.thesis-context-path>span{align-items:center;gap:.35rem;min-width:0;display:inline-flex}.thesis-context-path>span:last-child{min-width:4rem;color:var(--tb-text);font-weight:900}.thesis-context-path span span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.thesis-context-state{flex-wrap:wrap;justify-content:flex-end;gap:.45rem;display:flex}.thesis-workspace-badge{border:1px solid var(--tb-line);white-space:nowrap;border-radius:999px;align-items:center;min-height:1.65rem;padding:0 .62rem;font-size:.72rem;font-weight:850;display:inline-flex}.thesis-workspace-badge.is-success{border-color:color-mix(in srgb, var(--tb-success) 28%, var(--tb-line));background:var(--tb-success-soft);color:var(--tb-success)}.thesis-workspace-badge.is-warning{border-color:color-mix(in srgb, var(--tb-warning) 35%, var(--tb-line));background:var(--tb-warning-soft);color:var(--tb-warning)}.thesis-workspace-badge.is-info{border-color:color-mix(in srgb, var(--tb-primary) 28%, var(--tb-line));background:var(--tb-primary-soft);color:var(--tb-primary)}.thesis-workspace-badge.is-muted{background:var(--tb-surface-2);color:var(--tb-muted)}.thesis-panel-group{grid-template-columns:minmax(22rem, 26rem) minmax(0, 1fr) var(--tb-inspector-width);background:var(--tb-line);gap:1px;min-width:0;min-height:0;display:grid}.thesis-panel-group.is-left-collapsed{grid-template-columns:minmax(0, 1fr) var(--tb-inspector-width)}.thesis-panel-group.is-right-collapsed{grid-template-columns:minmax(22rem,26rem) minmax(0,1fr)}.thesis-panel-group.is-left-collapsed.is-right-collapsed{grid-template-columns:minmax(0,1fr)}.thesis-left-panel,.thesis-center-panel,.thesis-right-panel{background:var(--tb-surface);min-width:0;min-height:0;overflow:hidden}.thesis-left-panel,.thesis-right-panel{padding:0}.thesis-left-panel{background:color-mix(in srgb, var(--tb-surface) 82%, var(--tb-primary-soft));overflow:hidden}.thesis-center-panel{background:linear-gradient(135deg, color-mix(in srgb, var(--tb-surface) 45%, var(--tb-canvas)) 0%, var(--tb-canvas) 100%);flex-direction:column;display:flex}.thesis-right-panel{border-left:1px solid var(--tb-line);background:color-mix(in srgb, var(--tb-surface) 92%, var(--tb-primary-soft));grid-template-rows:auto minmax(0,1fr);display:grid}.thesis-inspector-header{border-bottom:1px solid var(--tb-line);background:var(--tb-surface);justify-content:space-between;align-items:center;gap:.6rem;padding:.62rem .85rem;display:flex}.thesis-inspector-tabs{border-radius:12px;min-width:0;overflow-x:auto}.thesis-inspector-tabs button{min-height:1.9rem;padding-inline:.55rem}.thesis-collapsed-inspector-tab{z-index:20;writing-mode:vertical-rl;border:1px solid var(--tb-line);background:var(--tb-surface);color:var(--tb-muted);box-shadow:var(--tb-shadow-sm);border-radius:999px;align-items:center;gap:.3rem;padding:.8rem .4rem;font-size:.72rem;font-weight:900;display:inline-flex;position:absolute;top:52%;right:.6rem;transform:translateY(-50%)}.thesis-editor-shell{background:0 0}.thesis-editor-header{border-bottom:1px solid var(--tb-line);background:color-mix(in srgb, var(--tb-surface) 86%, transparent);min-height:4rem;padding:.55rem .8rem}.thesis-editor-controls{justify-content:flex-end;align-items:center;display:flex}.thesis-document-font-control,.thesis-visual-editor>.thesis-editor-settings-panel,.thesis-visual-editor>.thesis-frontmatter-settings-strip{display:none}.thesis-editor-title-field input{max-width:min(38rem,100%);color:var(--tb-text);background:0 0;border:0;border-bottom:1px solid #0000;outline:none;font-size:1.1rem;font-weight:900;line-height:1.2}.thesis-editor-title-field input:focus{border-bottom-color:var(--tb-primary)}.thesis-visual-editor{background:radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--tb-line) 48%, transparent) 1px, transparent 0) 0 0 / 24px 24px, linear-gradient(135deg, color-mix(in srgb, var(--tb-surface) 45%, var(--tb-canvas)) 0%, var(--tb-canvas) 100%);flex:1;min-height:0;padding:0;overflow:auto}.thesis-status-bar{min-height:var(--tb-statusbar-height);border-top:1px solid var(--tb-line);background:color-mix(in srgb, var(--tb-surface) 94%, transparent);border-bottom:0;grid-area:status;padding:0 .8rem}.thesis-status-actions{display:none}.thesis-status-main{color:var(--tb-muted);font-size:.76rem;font-weight:800}.thesis-review-panel{min-height:0;padding:.85rem;overflow:auto}.thesis-review-action-list{gap:.65rem;display:grid}.thesis-review-action-list button{border:1px solid var(--tb-line);background:var(--tb-surface);text-align:left;color:var(--tb-text);border-radius:14px;align-items:flex-start;gap:.65rem;padding:.8rem;display:flex}.thesis-review-action-list button:hover{border-color:color-mix(in srgb, var(--tb-primary) 28%, var(--tb-line));background:var(--tb-primary-soft)}.thesis-review-action-list span{gap:.2rem;display:grid}.thesis-review-action-list small,.thesis-review-status-grid span{color:var(--tb-muted);font-size:.76rem;line-height:1.35}.thesis-review-note{border:1px solid color-mix(in srgb, var(--tb-warning) 30%, var(--tb-line));background:var(--tb-warning-soft);color:var(--tb-warning);border-radius:14px;margin-top:.8rem;padding:.75rem;font-size:.82rem;font-weight:750}.thesis-review-status-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;margin-top:.8rem;display:grid}.thesis-review-status-grid>div{border:1px solid var(--tb-line);background:var(--tb-surface);border-radius:12px;gap:.2rem;padding:.65rem;display:grid}.thesis-inspector-title{color:var(--tb-text);letter-spacing:.08em;text-transform:uppercase;font-size:.78rem;font-weight:900}.thesis-right-panel .thesis-reference-panel,.thesis-right-panel .thesis-issues-panel,.thesis-right-panel .thesis-assets-panel-shell{padding:.78rem}.thesis-right-panel .thesis-panel-heading{align-items:center;margin:0 0 .62rem}.thesis-right-panel .thesis-panel-heading .thesis-kicker{display:none}.thesis-right-panel .thesis-panel-heading h2{margin:0;font-size:.98rem;line-height:1.2}.thesis-right-panel .thesis-reference-panel,.thesis-right-panel .thesis-issues-panel{min-height:0;overflow:hidden}.thesis-right-panel .thesis-issues-panel{overflow-y:auto}.thesis-right-panel .thesis-reference-workbench,.thesis-right-panel .thesis-issues-panel{scrollbar-gutter:stable;padding-right:.05rem}.thesis-right-panel .thesis-search-box{border-radius:13px;margin-bottom:.65rem}.thesis-right-panel .thesis-reference-tools{grid-template-columns:minmax(0,1fr);gap:.65rem}.thesis-right-panel .thesis-tool-card{border-radius:14px;padding:.72rem}.thesis-right-panel .thesis-assets-panel-shell .thesis-asset-manager{box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}.thesis-right-panel .thesis-assets-panel-shell .thesis-asset-manager>div:first-child{justify-content:flex-end;align-items:center;margin-bottom:.65rem}.thesis-right-panel .thesis-assets-panel-shell .thesis-asset-manager>div:first-child>div:first-child,.thesis-right-panel .thesis-assets-panel-shell .thesis-asset-manager>div:first-child p{display:none}.thesis-right-panel .thesis-assets-panel-shell .thesis-asset-manager-list{padding-right:0}.thesis-visual-toolbar-spacer{flex:auto;justify-content:flex-end;min-width:12rem;display:inline-flex}.thesis-toolbar-mode-switch,.thesis-code-toolbar-inline{flex:none}.thesis-code-toolbar-inline{border-bottom:1px solid var(--tb-line);background:color-mix(in srgb, var(--tb-surface) 92%, transparent);justify-content:flex-end;padding:.55rem .85rem;display:flex}.thesis-section-settings-dialog{--tb-surface:#fff;--tb-surface-2:#f7fbfc;--tb-line:#d8e7ec;--tb-text:#102a3a;--tb-muted:#607483;--tb-warning:#b36a00;--tb-warning-soft:#fff4da;--tb-shadow-md:0 8px 32px #0b2a3a1f;border:1px solid var(--tb-line);background:var(--tb-surface);width:min(42rem,100vw - 2rem);max-width:min(42rem,100vw - 2rem);max-height:min(42rem,100dvh - 3rem);color:var(--tb-text);box-shadow:var(--tb-shadow-md);border-radius:22px;padding:0;overflow:hidden}.thesis-section-settings-header{border-bottom:1px solid var(--tb-line);background:linear-gradient(180deg, color-mix(in srgb, var(--tb-surface-2) 80%, var(--tb-surface)), var(--tb-surface));padding:1.1rem 1.25rem .95rem}.thesis-section-settings-header [data-radix-dialog-title],.thesis-section-settings-header h2{color:var(--tb-text);font-size:1.05rem}.thesis-section-settings-body{min-width:0;padding:1rem 1.25rem;overflow:auto}.thesis-section-settings-body:disabled,.thesis-section-settings-body[disabled]{cursor:wait;opacity:.72}.thesis-section-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;display:grid}.thesis-section-settings-grid .thesis-compact-field-wide{grid-column:1/-1}.thesis-section-settings-footer{border-top:1px solid var(--tb-line);background:color-mix(in srgb, var(--tb-surface-2) 70%, var(--tb-surface));align-items:center;padding:.85rem 1.25rem}.thesis-section-settings-saving{color:var(--tb-muted);align-items:center;gap:.4rem;margin-right:auto;font-size:.8rem;font-weight:750;display:inline-flex}.thesis-import-warning-dialog{--tb-surface:#fff;--tb-surface-2:#f7fbfc;--tb-line:#d8e7ec;--tb-text:#102a3a;--tb-muted:#607483;--tb-warning:#b36a00;--tb-warning-soft:#fff4da;--tb-shadow-md:0 8px 32px #0b2a3a1f;border:1px solid var(--tb-line);background:var(--tb-surface);width:min(34rem,100vw - 2rem);max-width:min(34rem,100vw - 2rem);color:var(--tb-text);box-shadow:var(--tb-shadow-md);border-radius:22px}.thesis-import-warning-header{text-align:left;grid-template-columns:auto minmax(0,1fr);gap:.85rem;display:grid}.thesis-import-warning-icon{border:1px solid color-mix(in srgb, var(--tb-warning) 32%, var(--tb-line));background:var(--tb-warning-soft);width:2.6rem;height:2.6rem;color:var(--tb-warning);border-radius:14px;justify-content:center;align-items:center;display:inline-flex}.thesis-import-warning-body{border:1px solid color-mix(in srgb, var(--tb-warning) 26%, var(--tb-line));background:color-mix(in srgb, var(--tb-warning-soft) 68%, var(--tb-surface));color:var(--tb-text);border-radius:16px;padding:.9rem 1rem;font-size:.9rem;line-height:1.65}.thesis-import-warning-footer{align-items:center}@media (max-width:720px){.thesis-section-settings-grid{grid-template-columns:1fr}}.thesis-focus-workspace{--tb-bg:#f4f8fa;--tb-canvas:#eaf4f6;--tb-surface:#fff;--tb-surface-2:#f7fbfc;--tb-line:#d8e7ec;--tb-line-strong:#bfd6de;--tb-text:#102a3a;--tb-muted:#607483;--tb-muted-2:#8ea0ab;--tb-primary:#0789be;--tb-primary-soft:#e8f6fb;--workspace-bg:var(--tb-bg);--workspace-panel:var(--tb-surface);--workspace-panel-soft:var(--tb-surface-2);--workspace-border:var(--tb-line);--workspace-text:var(--tb-text);--workspace-muted:var(--tb-muted);--workspace-accent:var(--tb-primary);--workspace-accent-soft:var(--tb-primary-soft);--editor-bg:#fff;--editor-text:var(--tb-text);background:var(--tb-canvas);border:0;border-radius:0;grid-template-rows:52px minmax(0,1fr);height:100dvh;display:grid;overflow:hidden}.thesis-focus-workspace[data-workspace-theme=dark]{--tb-bg:#0b1117;--tb-canvas:#0f1821;--tb-surface:#141e28;--tb-surface-2:#101821;--tb-line:#263746;--tb-line-strong:#3b5263;--tb-text:#e8f0f6;--tb-muted:#a7b5c0;--tb-muted-2:#7f919f;--tb-primary:#38bdf8;--tb-primary-soft:#38bdf829;--workspace-bg:var(--tb-bg);--workspace-panel:var(--tb-surface);--workspace-panel-soft:var(--tb-surface-2);--workspace-border:var(--tb-line);--workspace-text:var(--tb-text);--workspace-muted:var(--tb-muted);--workspace-accent:var(--tb-primary);--workspace-accent-soft:var(--tb-primary-soft);--editor-bg:#121b25;--editor-text:var(--tb-text)}.thesis-focus-workspace[data-workspace-theme=sepia]{--tb-bg:#efe6d3;--tb-canvas:#eadfc7;--tb-surface:#fff9ed;--tb-surface-2:#f7ecd8;--tb-line:#dac9a9;--tb-line-strong:#bba37c;--tb-text:#332818;--tb-muted:#73634c;--tb-muted-2:#9a886a;--tb-primary:#93611d;--tb-primary-soft:#93611d24;--workspace-bg:var(--tb-bg);--workspace-panel:var(--tb-surface);--workspace-panel-soft:var(--tb-surface-2);--workspace-border:var(--tb-line);--workspace-text:var(--tb-text);--workspace-muted:var(--tb-muted);--workspace-accent:var(--tb-primary);--workspace-accent-soft:var(--tb-primary-soft);--editor-bg:#fffaf0;--editor-text:var(--tb-text)}.thesis-focus-header{border-bottom:1px solid var(--tb-line);background:var(--tb-surface);box-shadow:var(--tb-shadow-sm);justify-content:space-between;align-items:center;gap:1rem;padding:.4rem 1rem;display:flex}.thesis-focus-brand,.thesis-focus-actions{align-items:center;gap:.65rem;min-width:0;display:flex}.thesis-focus-brand>div:last-child{min-width:0;display:grid}.thesis-focus-brand strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.thesis-focus-main{overscroll-behavior-y:contain;background:radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--tb-line) 40%, transparent) 1px, transparent 0) 0 0 / 24px 24px, var(--tb-canvas);min-height:0;overflow:hidden auto}.thesis-focus-main .thesis-editor-header,.thesis-focus-main .thesis-import-canonical-callout,.thesis-focus-main .thesis-required-document-banner{display:none}.thesis-focus-main .thesis-visual-editor{background:0 0;height:auto;min-height:100%;overflow:visible}.thesis-focus-main .thesis-editor-shell{min-height:auto;overflow:visible}.thesis-focus-main .thesis-editor-sticky-controls{background:var(--tb-surface);border-bottom:1px solid var(--tb-line);box-shadow:var(--tb-shadow-sm)}.thesis-focus-main .thesis-tiptap-page{padding-top:1.5rem;padding-bottom:5rem}@media (max-width:1439px){.thesis-workspace-topbar{grid-template-columns:minmax(8rem,1fr) minmax(0,auto) auto auto;gap:.45rem}}@media (max-width:1199px){.thesis-topbar-project-actions .thesis-workspace-button span,.thesis-topbar-project-actions .thesis-theme-picker>span{display:none}.thesis-topbar-project-actions .thesis-workspace-button{width:2.2rem;padding-inline:0}}@media (max-width:1023px){.thesis-workspace{--tb-nav-width:52px;--tb-inspector-width:min(28rem, calc(100vw - 52px));grid-template-columns:52px minmax(0,1fr)}.thesis-workspace-topbar{grid-template-columns:minmax(7rem,1fr) minmax(0,auto) auto}.thesis-topbar-project-actions{scrollbar-width:none;max-width:min(18rem,42vw);overflow-x:auto}.thesis-topbar-project-actions::-webkit-scrollbar{display:none}.thesis-mode-switcher{max-width:none;overflow:visible}.thesis-mode-switcher button[data-active=true] .thesis-mode-label,.thesis-workspace-account{display:none}.thesis-context-bar{flex-direction:column;justify-content:center;align-items:flex-start}.thesis-panel-group,.thesis-panel-group.is-left-collapsed,.thesis-panel-group.is-right-collapsed,.thesis-panel-group.is-left-collapsed.is-right-collapsed{grid-template-columns:minmax(0,1fr)}.thesis-left-panel,.thesis-right-panel{top:var(--tb-topbar-height);bottom:var(--tb-statusbar-height);z-index:60;width:var(--tb-inspector-width);box-shadow:var(--tb-shadow-md);position:fixed}.thesis-left-panel{left:52px}.thesis-right-panel{right:0}}@media (max-width:767px){.thesis-workspace-page,.thesis-workspace,.thesis-focus-workspace{border-radius:0;height:100dvh;min-height:0}.thesis-mode-switcher button{padding-inline:.55rem}.thesis-section-settings-grid,.thesis-review-status-grid{grid-template-columns:minmax(0,1fr)}}
