:root{color-scheme:dark;--bg:#0d1421;--panel:#182338;--line:#2c3b53;--txt:#edf2fc;--muted:#a7b6cf;--accent:#6ea9ff;--btn:#3b78ce;--alert:#523036;--ok:#3f7b65;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 0 0,#1b2d4b 0,var(--bg) 40%);color:var(--txt);min-height:100vh;line-height:1.5}header{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:19px clamp(16px,4vw,60px);background:#101a2c}header .brand{font-weight:750;letter-spacing:.01em}header .brand small{display:inline-block;color:var(--muted);font-weight:400;font-size:11px;margin-left:8px}nav{display:flex;align-items:center;gap:22px;flex-wrap:wrap}nav form{display:inline;margin:0}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}nav a,.linkbtn{color:var(--txt);font-size:13px}.linkbtn{background:none;border:0;padding:0;cursor:pointer}main{max-width:1300px;margin:0 auto;padding:clamp(16px,3.5vw,48px);min-height:75vh}.panel{background:linear-gradient(150deg,#18253b,#141e31);border:1px solid var(--line);border-radius:14px;padding:clamp(16px,2.8vw,28px);box-shadow:0 8px 38px #00000018;margin-bottom:18px}.narrow{max-width:490px;margin:4vh auto}h1{font-size:clamp(24px,3vw,33px);margin:0 0 9px}h2{font-size:19px;margin:0 0 16px}h3{font-size:16px}p{color:var(--muted)}.pagehead{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-bottom:26px;flex-wrap:wrap}.pagehead p{margin:2px 0}.cols{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(260px,.8fr);gap:20px}.editor-cols{grid-template-columns:minmax(0,2.4fr) minmax(250px,.75fr)}label{display:block;font-weight:550;font-size:14px;margin:0 0 20px}label small{font-weight:400;color:var(--muted)}input,textarea,select{margin-top:7px;width:100%;border:1px solid #50617a;border-radius:8px;background:#101a2b;color:var(--txt);padding:12px;font:inherit;outline:none}input:focus,textarea:focus,select:focus{border-color:#80b7ff;box-shadow:0 0 0 3px #70a8fa2d}textarea{min-height:310px;resize:vertical;font-family:ui-monospace,Consolas,monospace;font-size:14px}button,.button{display:inline-block;background:var(--btn);color:white;border:1px solid #598ee0;border-radius:8px;font-weight:600;padding:11px 18px;cursor:pointer;font-size:14px;text-decoration:none}button:hover,.button:hover{background:#4b89df;text-decoration:none}button.secondary{background:#23334c;border-color:#4a5c78;padding:7px 12px}.project-card{display:flex;justify-content:space-between;gap:15px;border:1px solid var(--line);border-radius:10px;margin:9px 0;padding:17px;color:var(--txt);align-items:center}.project-card:hover{background:#24344f;text-decoration:none}.project-card small,.hint,time{font-size:12px;color:var(--muted)}.chapter-row{padding:11px 6px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:9px}.chapter-row a{color:var(--txt)}.crumb{font-size:13px}.notice,.alert,.success{padding:12px 16px;border-radius:8px;margin-bottom:20px;background:#284b42;border:1px solid var(--ok)}.alert{background:var(--alert);border-color:#95535c}.secret{font-family:ui-monospace,Consolas,monospace;background:#101a2b;border:1px dashed var(--accent);padding:17px;font-size:19px;letter-spacing:2px;word-break:break-all;border-radius:8px}.wrap{word-break:break-all;display:block}.status{border:1px solid var(--line);border-radius:20px;padding:8px 12px;font-size:12px;color:var(--muted)}.editor-tools{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}.actions{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.version-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0;border-bottom:1px solid var(--line);padding-bottom:12px}.version-row span{font-size:12px}footer{text-align:center;padding:30px;color:var(--muted);font-size:12px;border-top:1px solid var(--line)}@media(max-width:800px){header{align-items:start;flex-direction:column}nav{gap:12px}.cols,.editor-cols{grid-template-columns:1fr}.chapter-row{flex-wrap:wrap}.project-card{align-items:start;flex-direction:column}main{padding:16px}}

.depth-1{padding-left:20px}.depth-2{padding-left:36px}.depth-3{padding-left:52px}.depth-4{padding-left:68px}.depth-5{padding-left:84px}.depth-6{padding-left:100px}
/* Gefuehrte Ersteinrichtung: ohne JavaScript alle Abschnitte sichtbar und nutzbar */
.setup-panel{max-width:760px;margin:20px auto}.setup-title{margin-bottom:20px}.setup-kicker{font-size:.77rem;letter-spacing:.12em;opacity:.8;font-weight:800}
.setup-progress{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0}.setup-progress span{flex:1;min-width:130px;padding:10px 12px;border:1px solid var(--border,#485266);border-radius:9px;text-align:center;opacity:.6;font-size:.87rem}.setup-progress .current{opacity:1;border-color:var(--accent,#7898ff);font-weight:800}
.setup-form section{margin-top:16px}.setup-form section[hidden]{display:none}.setup-form .setup-check{display:flex;align-items:flex-start;gap:10px}.setup-check input{width:auto;flex:0 0 auto;margin:6px 0}
.setup-buttons{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:22px}.setup-buttons [hidden]{display:none}.setup-form [data-setup-error][hidden]{display:none}

.backup-file{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.backup-file form{display:flex;gap:8px}.backup-file p{margin:3px 0}

#deployment-check-message{margin:14px 0;font-size:.95rem;line-height:1.5}
.setup-form button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

/* Datenbankdiagnose im Einrichtungsassistenten */
.setup-db-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:0 0 14px}.setup-db-actions button{flex:none}.setup-db-actions .hint{max-width:430px}.setup-db-actions button:disabled,.setup-buttons button:disabled{opacity:.65;cursor:progress}#setup-db-diagnostic[hidden]{display:none}

/* MFA-Ersteinrichtung: QR direkt im Browser, ohne externe Bilddienste */
.mfa-qr-area{text-align:center;margin:20px 0;padding:12px 0}
.mfa-qr{display:flex;justify-content:center;align-items:center;margin:0 auto;padding:12px;background:#fff;color:#0c1930;border-radius:12px;width:min(100%,308px);min-height:308px}
.mfa-qr svg{display:block;width:min(100%,280px);height:auto;aspect-ratio:1/1;image-rendering:pixelated;shape-rendering:crispEdges}
.mfa-qr-area .hint{margin:9px 0 0;font-size:12px}
@media(max-width:420px){.mfa-qr{min-height:auto;padding:9px;width:min(100%,290px)}}
/* ManualStudio 0.3 – Authoring workspace */
:root{--panel:#17233a;--muted:#aebbd3;--accent:#91baff;--btn:#326aca;--line:#32425e}
header{position:sticky;top:0;z-index:15;box-shadow:0 5px 28px #0002;background:#111d30ee;backdrop-filter:blur(14px)}
header .brand{font-size:1.12rem}header .brand small{font-size:12px;letter-spacing:.03em}
main{max-width:1760px;margin:auto;padding:clamp(18px,2.5vw,42px)}
.panel{background:linear-gradient(145deg,#18263c,#162136);border-color:#33425b}
button,.button{transition:background .16s,border-color .16s}button:focus-visible,a:focus-visible{outline:3px solid #b8d3ff;outline-offset:3px}
.studio-back{font-size:13px;margin:0 0 22px}.studio-heading{margin:12px 0 20px}.studio-heading h1{font-size:clamp(26px,3vw,39px);letter-spacing:-.025em}.studio-heading p{margin:6px 0 0;max-width:950px}.kicker{font-size:11px;letter-spacing:.17em;color:#99b8e1;font-weight:800;margin-bottom:6px}
.studio-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 20px}.studio-tabs a{padding:9px 14px}
.studio-grid{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(400px,2fr) minmax(270px,.9fr);gap:17px;align-items:start}
.studio-grid .panel,.studio-editor-layout .panel{margin-bottom:10px;min-height:280px}.studio-section-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}.studio-section-heading h2{margin:0}.pill{font-size:11px;padding:4px 9px;background:#293b56;border-radius:12px;color:#a6bddb}
.studio-tree-item{display:flex;align-items:center;justify-content:space-between;gap:7px;min-width:0;padding:8px 3px;border-bottom:1px solid #334158}.studio-tree-item a{color:#e5edf9;white-space:normal;font-size:13px}.tree-icon{margin-right:7px;opacity:.7}.studio-tree-item.depth-1{padding-left:14px}.studio-tree-item.depth-2{padding-left:28px}.studio-tree-item.depth-3{padding-left:42px}.studio-tree-item.depth-4{padding-left:56px}.studio-tree-item.depth-5{padding-left:70px}.studio-tree-item.depth-6{padding-left:84px}.topic-status{width:8px;height:8px;background:#687e9b;border-radius:50%;flex:0 0 auto}.topic-status.s-approved{background:#64c7a0}.topic-status.s-review{background:#e9bd6b}.topic-status.s-archived{background:#797f90}.topic-status.s-draft{background:#7faaff}
.studio-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:15px 0 25px}.studio-stat-grid>div{border:1px solid var(--line);background:#142038;padding:18px;border-radius:11px;display:flex;flex-direction:column}.studio-stat-grid strong{font-size:30px;letter-spacing:-.04em}.studio-stat-grid span{color:var(--muted);font-size:12px}.studio-list-link{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line);padding:12px 2px;color:var(--txt)}.studio-list-link small{color:var(--muted);font-size:11px}.studio-main hr,.studio-aside hr,.studio-properties hr{border:0;border-top:1px solid var(--line);margin:25px 0}.export-links{gap:8px;flex-wrap:wrap}.toolbar{display:flex;gap:8px;flex-wrap:wrap}.tool-links{display:flex;flex-direction:column;align-items:flex-start;gap:9px}
.studio-editor-layout{display:grid;grid-template-columns:minmax(200px,.7fr) minmax(460px,2.15fr) minmax(250px,.8fr);gap:17px;align-items:start}.studio-editor-tree{max-height:calc(100vh - 150px);overflow-y:auto;position:sticky;top:92px}.studio-editor-tree h2{margin-bottom:16px}.editor-nav-item{display:block;color:#e5edf9;padding:8px 10px;border-left:2px solid transparent;font-size:13px}.editor-nav-item.selected{border-color:#87b6ff;background:#233955}.editor-nav-item.depth-1{padding-left:24px}.editor-nav-item.depth-2{padding-left:38px}.editor-nav-item.depth-3{padding-left:52px}.editor-nav-item.depth-4{padding-left:66px}
.studio-ribbon{display:flex;gap:5px;flex-wrap:wrap;background:#121d31;border:1px solid #42546e;border-radius:11px;padding:8px;margin-top:10px}.studio-ribbon button{font-size:12px;background:#243651;border-color:#405677;padding:7px 11px;min-width:34px}.studio-ribbon button:hover{background:#34547f}.studio-edit-area{min-height:450px;background:#fcfdff;color:#17263b;margin:12px 0 15px;padding:clamp(17px,4vw,38px);border:1px solid #a4b5cc;outline:none;border-radius:10px;overflow-wrap:anywhere;box-shadow:inset 0 0 0 1px #fff}.studio-edit-area:focus{box-shadow:0 0 0 3px #79b8ff55}.studio-edit-area h1,.studio-edit-area h2,.studio-edit-area h3{color:#182c49}.studio-edit-area p{color:#25364d}.studio-edit-area a{color:#174cab}.studio-edit-area img{max-width:100%;height:auto}.studio-edit-area table,.studio-preview-content table{border-collapse:collapse;max-width:100%}.studio-edit-area td,.studio-edit-area th,.studio-preview-content td,.studio-preview-content th{border:1px solid #889bb1;padding:7px}.studio-edit-area pre{background:#e9eef7;white-space:pre-wrap;padding:12px}.studio-edit-area [data-ms-channel]{border-left:4px solid #3a83df;background:#ebf2fe;padding:10px}.studio-save{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.studio-preview-card{margin-top:35px;border-top:1px solid #36455c;padding-top:19px}.studio-preview-content{background:#121d2e;border:1px solid #354963;border-radius:9px;padding:20px;min-height:90px}.studio-preview-content img{max-width:100%}.studio-preview-content table{color:#dce9fa}.studio-preview-content p{color:#d5e0f1}.studio-preview-content h2,.studio-preview-content h3{color:#f0f4fb}.studio-properties label{margin-bottom:14px}.check-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:10px 0 20px}.check-stack label,.studio-checkbox{font-weight:400;display:flex;align-items:center;gap:6px;font-size:12px}.check-stack input,.studio-checkbox input{width:auto;margin:0}.history-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:5px}.studio-comment{border-bottom:1px solid var(--line);padding:10px 0}.studio-comment p{margin:5px 0 0;font-size:13px;white-space:pre-wrap}
.studio-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px}.studio-media-card{padding:14px;background:#142038;border:1px solid var(--line);border-radius:11px;display:flex;flex-direction:column;gap:8px;overflow-wrap:anywhere}.studio-media-card img{object-fit:contain;height:135px;max-width:100%;margin:auto}.studio-media-card strong{font-size:12px}.studio-media-card small{color:var(--muted)}.media-file-icon{display:flex;justify-content:center;align-items:center;height:135px;font-size:35px;color:#a9bedf}.studio-table{width:100%;border-collapse:collapse}.studio-table th{text-align:left;color:#afbfda}.studio-table th,.studio-table td{padding:11px;border-bottom:1px solid #394a62;font-size:13px}.settings-width{max-width:900px}
@media(max-width:1320px){.studio-grid{grid-template-columns:minmax(210px,.8fr) minmax(340px,1.6fr)}.studio-aside{grid-column:1/-1}.studio-editor-layout{grid-template-columns:minmax(200px,.7fr) minmax(360px,2fr)}.studio-properties{grid-column:1/-1}}
@media(max-width:850px){.studio-grid,.studio-editor-layout{display:block}.studio-grid>*,.studio-editor-layout>*{width:100%;margin-bottom:14px}.studio-editor-tree{position:static;max-height:230px}.studio-stat-grid{gap:7px}.studio-stat-grid>div{padding:12px}.studio-edit-area{min-height:330px;padding:18px}.studio-properties{position:static}.studio-tabs{gap:6px}header nav{gap:10px}header{position:static}}
.studio-diff{white-space:pre-wrap;overflow-wrap:anywhere;background:#10192a;padding:18px;border:1px solid #42536a;border-radius:8px;font-size:13px;line-height:1.65}.history-compare{font-size:11px}
.studio-tree-item[draggable="true"]{cursor:grab}.studio-tree-item.drop-hover{background:#29456a;outline:2px dashed #9dc4ff}.studio-root-drop{border:1px dashed #536b89;border-radius:8px;margin-top:18px;padding:11px;text-align:center;font-size:12px;color:#bdcce2}.studio-root-drop:hover{background:#253c58}

/* ManualStudio 0.3.1: Help-authoring workbench + context menu + theme */
[hidden]{display:none!important}
.ms-workbench{--ms-surface:#152136;--ms-surface-2:#1b2b42;--ms-line:#33465f;--ms-paper:#fdfefe;--ms-text:#e7effc;--ms-quiet:#aabbd3;margin:-22px -18px 20px;border:1px solid var(--ms-line);border-radius:12px;overflow:hidden;background:var(--ms-surface);color:var(--ms-text);min-height:calc(100vh - 185px)}
.ms-workbench button{white-space:nowrap}.ms-workbench-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:11px 17px;background:#0f1b2c;border-bottom:1px solid var(--ms-line)}
.ms-top-title{display:flex;align-items:center;gap:12px;min-width:0;font-size:14px}.ms-top-title strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:380px}.ms-workbench-logo{font-weight:800;color:#a9cafa}.ms-top-separator{color:#70849d}
.ms-top-actions{display:flex;align-items:center;gap:7px;flex:1;justify-content:flex-end;min-width:280px}.ms-top-search{display:flex;align-items:center;gap:6px;min-width:200px;max-width:510px;width:100%;margin:0}.ms-top-search input{margin:0;padding:8px 11px;min-width:0;font-size:12px}.ms-top-search button,.ms-theme-button{font-size:12px;padding:8px 12px!important}
.ms-icon-btn,.ms-mini-btn{font-size:15px;padding:4px 8px;background:transparent;border:1px solid var(--ms-line);color:inherit;border-radius:5px}.ms-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.ms-ribbon-tabs{display:flex;gap:2px;padding:2px 12px 0;background:#1a2a42;border-bottom:1px solid var(--ms-line)}.ms-ribbon-tabs button{background:transparent;color:#cbd8ec;border:0;border-radius:5px 5px 0 0;font-size:12px;padding:9px 14px}.ms-ribbon-tabs button[aria-selected="true"]{background:#273c57;color:#fff;box-shadow:inset 0 -2px #86b7ff}
.ms-ribbon-body{min-height:78px;padding:8px 13px;border-bottom:1px solid var(--ms-line);background:#21314a}.ms-ribbon-panel{display:flex;align-items:stretch;gap:7px;flex-wrap:wrap;min-height:64px}.ms-ribbon-action{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:74px;padding:7px 10px;text-align:center;border:1px solid #405575;background:#2b405e;color:#ebf3ff!important;border-radius:6px;text-decoration:none;font-weight:750;font-size:19px;line-height:1}.ms-ribbon-action span{font-size:10px;font-weight:500}.ms-ribbon-action:hover{background:#3a5579;text-decoration:none}.ms-ribbon-hint{font-size:12px;margin:auto 0;color:#bfcee1}
.ms-workbench-stage{display:grid;grid-template-columns:minmax(220px,280px) minmax(360px,1fr) minmax(220px,285px);align-items:stretch;min-height:640px}.ms-workbench.ms-no-explorer .ms-workbench-stage{grid-template-columns:minmax(360px,1fr) minmax(220px,285px)}.ms-workbench.ms-no-explorer .ms-explorer{display:none}
.ms-explorer{background:#1a2940;border-right:1px solid var(--ms-line);overflow:auto;min-width:0;max-height:calc(100vh - 160px);position:sticky;top:0;padding:0 0 15px}.ms-explorer-head{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-bottom:1px solid var(--ms-line);font-size:12px}.ms-project-name{font-size:13px;font-weight:750;padding:12px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#dce8fa}.ms-tree-section{border-top:1px solid var(--ms-line)}.ms-tree-section>summary{display:flex;align-items:center;gap:8px;cursor:pointer;padding:10px 9px;background:#1d3049;color:#dce7f7;font-size:12px;font-weight:720}.ms-tree-section>summary small{margin-left:auto;color:#b6c9de}.ms-tree-branch{padding:4px 3px 8px}.ms-tree-node{min-width:0}.ms-tree-children{padding-left:17px;border-left:1px dashed #354f6f;margin-left:14px}.ms-tree-row{display:flex;align-items:center;gap:4px;min-height:29px;padding:2px 4px;border-radius:4px;font-size:12px;cursor:default;min-width:0;outline-offset:-2px}.ms-tree-row:hover{background:#304964}.ms-tree-row.ms-current{background:#38577c;box-shadow:inset 3px 0 #a9ccff}.ms-tree-link{color:#e7f0fb!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}.ms-tree-toggle{background:none;border:0;color:#e8f0fa;font-size:12px;padding:3px;width:21px;min-width:21px}.ms-tree-toggle-spacer{width:21px;flex:0 0 21px}.ms-doc-icon{color:#b9d8f8}.ms-explorer-link{display:block;color:#cfdeef;font-size:12px;padding:6px 12px 6px 20px}.ms-explorer-link:hover{background:#304964;text-decoration:none}.ms-tree-warning,.ms-tree-empty{font-size:12px;padding:10px}.ms-root-drop{margin:6px;border:1px dashed #46668b;border-radius:5px;color:#aebfd2;text-align:center;font-size:11px;padding:7px}.ms-tree-row.drop-hover{outline:2px dashed #a9cafa}
.ms-document-pane{min-width:0;background:#d9e1ea;color:#1b2b40}.ms-document-tabs{display:flex;align-items:center;gap:9px;background:#c6d2de;border-bottom:1px solid #a7bacb;min-height:34px;padding:0 13px;font-size:11px;color:#4c657b}.ms-active-tab{align-self:stretch;display:flex;align-items:center;padding:0 15px;background:#f4f8fc;border:1px solid #b9c9d5;border-bottom:0;color:#1d3e61;font-weight:700}.ms-document-page{margin:22px auto 30px;padding:clamp(23px,4vw,48px);width:min(94%,900px);background:var(--ms-paper);box-shadow:0 5px 24px #23334b24;min-height:560px;color:#263549}.ms-document-page h1,.ms-document-page h2{color:#192b44}.ms-document-page p{color:#445770}.ms-document-page .studio-stat-grid>div{background:#f1f5fa;border-color:#d8e1ea}.ms-document-page .studio-list-link{color:#1e4a78}.ms-document-page .studio-list-link small{color:#667a90}.ms-document-page .hint{color:#6c7a8e}
.ms-editor-surface{padding:18px clamp(10px,2vw,26px) 28px}.ms-editor-heading{display:flex;justify-content:space-between;align-items:center;gap:7px;margin-bottom:12px;font-size:12px}.ms-editor-surface label{color:#273a4c}.ms-editor-surface label input{margin-top:5px;background:#fff;color:#192d42;border-color:#b3c4d6}.ms-editor-surface .studio-edit-area{margin-top:9px;border-radius:3px;min-height:570px;box-shadow:0 5px 24px #23334b24;padding:clamp(20px,4vw,46px)}.ms-editor-surface .studio-preview-card{color:#e9f2fd;padding:14px;background:#1f324d;border-radius:8px}.ms-inline-toolbar{display:flex;gap:5px;align-items:center;flex-wrap:wrap;background:#ecf3f9;color:#263f5a;padding:8px;border:1px solid #b7c7d5;border-radius:7px}.ms-inline-toolbar>span{font-size:12px;margin-right:7px}.ms-inline-toolbar button{padding:5px 9px;background:white;color:#223e60;border-color:#c3d2df;font-size:12px}
.ms-inspector{background:#1b2b43;border-left:1px solid var(--ms-line);padding:15px;max-height:calc(100vh - 160px);overflow:auto;position:sticky;top:0;min-width:0}.ms-inspector h2{font-size:15px}.ms-inspector h3{font-size:13px;margin:14px 0 9px}.ms-inspector section{border-top:1px solid var(--ms-line);padding:9px 0}.ms-inspector label{font-size:11px;margin-bottom:11px}.ms-inspector input,.ms-inspector select,.ms-inspector textarea{font-size:12px;padding:8px}.ms-inspector button{font-size:12px;padding:8px 10px}.ms-inspector .tool-links{gap:3px}.ms-inspector .tool-links a{font-size:12px;padding:5px 0}.ms-inspector .history-row{flex-wrap:wrap}
.ms-context-menu{position:fixed;z-index:1000;display:flex;flex-direction:column;min-width:230px;max-width:300px;padding:6px;background:#f9fbff;color:#203049;border:1px solid #a7b9cb;border-radius:8px;box-shadow:0 14px 38px #0007}.ms-context-menu button{display:block;text-align:left;color:#203049;background:transparent;border:0;border-radius:4px;padding:7px 12px;font-size:12px;font-weight:500;white-space:nowrap}.ms-context-menu button:hover:not(:disabled),.ms-context-menu button:focus-visible{background:#e4eefc}.ms-context-menu button:disabled{color:#8994a6;cursor:not-allowed}.ms-context-divider{height:1px;background:#d8e2ed;margin:5px 6px}
.ms-global-search{display:grid;grid-template-columns:minmax(290px,410px) minmax(350px,1fr);gap:20px}.ms-global-search .panel{min-width:0}.ms-search-areas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:10px;border:1px solid var(--line);border-radius:8px;margin-bottom:13px}.ms-search-areas legend{font-size:12px}.ms-search-areas label,.ms-search-options label{font-size:12px;font-weight:400;margin:0;display:flex;align-items:center;gap:7px}.ms-search-areas input,.ms-search-options input{width:auto;margin:0}.ms-search-options{display:grid;gap:7px;margin-bottom:15px}.ms-hit{display:flex;flex-direction:column;gap:4px;color:var(--txt);border-bottom:1px solid var(--line);padding:12px 0}.ms-hit:hover{text-decoration:none;background:#263c57}.ms-hit strong{font-size:14px}.ms-hit span:last-child{font-size:12px;color:var(--muted)}.ms-hit-type{font-size:11px;color:#91baff}
html[data-ms-theme="light"]{color-scheme:light;--bg:#e9eef5;--panel:#fff;--line:#c8d4e2;--txt:#20334b;--muted:#4c627c;--accent:#1759a3;--btn:#2a68ac;--alert:#fff0ed;--ok:#a2d7c0}html[data-ms-theme="light"] body{background:#e9eef5;color:#20334b}html[data-ms-theme="light"] header{background:#f6f9fd;border-color:#c5d3e2;box-shadow:none}html[data-ms-theme="light"] header nav a,html[data-ms-theme="light"] header .brand,html[data-ms-theme="light"] .linkbtn{color:#183e65}html[data-ms-theme="light"] .panel{background:#fff;border-color:#d0dbe6;box-shadow:0 4px 15px #1a456010}html[data-ms-theme="light"] input,html[data-ms-theme="light"] textarea,html[data-ms-theme="light"] select{background:white;color:#17304c;border-color:#aabecf}html[data-ms-theme="light"] .notice,html[data-ms-theme="light"] .success{background:#e1f2e9}html[data-ms-theme="light"] .alert{background:#fff0ed;border-color:#e4a3a3;color:#66333a}html[data-ms-theme="light"] button.secondary{background:#e1e9f3;color:#203c5d;border-color:#b8cbde}html[data-ms-theme="light"] .studio-media-card{background:#f4f8fc;border-color:#d1dfea}html[data-ms-theme="light"] .studio-list-link,html[data-ms-theme="light"] .project-card{color:#24466e}html[data-ms-theme="light"] .studio-table th,html[data-ms-theme="light"] .studio-table td{border-color:#d3dfea;color:#263b54}html[data-ms-theme="light"] .studio-diff{background:#f5f8fb;color:#234162}
html[data-ms-theme="light"] .ms-workbench{--ms-surface:#ecf2f8;--ms-surface-2:#e3ebf4;--ms-line:#b8cadc;--ms-text:#1d3c5b;--ms-quiet:#516d87;background:#edf2f8;color:#1d3c5b}html[data-ms-theme="light"] .ms-workbench-top{background:#f7fbff}html[data-ms-theme="light"] .ms-workbench-logo{color:#184d87}html[data-ms-theme="light"] .ms-ribbon-tabs{background:#e8f0f8}html[data-ms-theme="light"] .ms-ribbon-tabs button{color:#31567a}html[data-ms-theme="light"] .ms-ribbon-tabs button[aria-selected="true"]{background:white;color:#173e68}html[data-ms-theme="light"] .ms-ribbon-body{background:#f5f9fd}html[data-ms-theme="light"] .ms-ribbon-action{background:#e4edf8;border-color:#bad0e5;color:#174a7d!important}html[data-ms-theme="light"] .ms-ribbon-action:hover{background:#d2e5f6}html[data-ms-theme="light"] .ms-explorer{background:#f0f5fa}html[data-ms-theme="light"] .ms-project-name{color:#173e61}html[data-ms-theme="light"] .ms-explorer-head{color:#24476a}html[data-ms-theme="light"] .ms-tree-section>summary{background:#e1ebf5;color:#254b70}html[data-ms-theme="light"] .ms-tree-row:hover{background:#dceaf8}html[data-ms-theme="light"] .ms-tree-row.ms-current{background:#d0e4fb}html[data-ms-theme="light"] .ms-tree-link,html[data-ms-theme="light"] .ms-explorer-link{color:#214a74!important}html[data-ms-theme="light"] .ms-tree-toggle{color:#254c76}html[data-ms-theme="light"] .ms-inspector{background:#eaf2fa;color:#294866}html[data-ms-theme="light"] .ms-inspector label{color:#2c4c6f}html[data-ms-theme="light"] .ms-inspector .hint{color:#5b7490}html[data-ms-theme="light"] .ms-document-pane{background:#d5dfe9}
@media(max-width:1260px){.ms-workbench-stage{grid-template-columns:230px minmax(320px,1fr)}.ms-inspector{position:static;max-height:none;grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ms-inspector>h2{grid-column:1/-1}.ms-workbench.ms-no-explorer .ms-workbench-stage{grid-template-columns:1fr}}
@media(max-width:760px){.ms-workbench{margin:0;border-radius:8px}.ms-workbench-top{align-items:stretch}.ms-top-title strong{max-width:180px}.ms-top-actions{min-width:0;width:100%}.ms-ribbon-tabs{overflow-x:auto}.ms-ribbon-body{overflow-x:auto}.ms-workbench-stage,.ms-workbench.ms-no-explorer .ms-workbench-stage{display:block}.ms-explorer{max-height:350px;position:static}.ms-inspector{display:block;position:static;max-height:none}.ms-document-page{width:100%;margin:0;padding:22px 16px}.ms-editor-surface{padding:10px}.ms-global-search{display:block}.ms-context-menu{max-height:75vh;overflow:auto}.ms-top-search button{padding:7px!important}}

.ms-tree-row .ms-menu-trigger{border:0;background:transparent;color:inherit;font-size:17px;line-height:1;min-width:24px;padding:1px 3px;opacity:.5}.ms-tree-row:hover .ms-menu-trigger,.ms-tree-row:focus-within .ms-menu-trigger{opacity:1}.ms-tree-row .ms-menu-trigger:hover{background:#446182;border-radius:4px}html[data-ms-theme="light"] .ms-tree-row .ms-menu-trigger:hover{background:#bdd2e9}.ms-global-theme{margin:0 14px 0 0;min-width:60px;border:1px solid var(--line);border-radius:6px;padding:7px 10px}

.ms-tree-controls{display:flex;align-items:center;gap:3px;margin-left:auto}.ms-explorer-head .ms-mini-btn{min-width:23px;padding:2px 5px}
/* 0.3.2 – erweitertes Autorensystem */
.ms-ribbon-panel[hidden],.ms-tree-children[hidden],.ms-context-menu[hidden],[data-dialog-mode][hidden],[data-link-kind][hidden]{display:none!important}
.ms-ribbon-panel{gap:10px;align-items:stretch}.ms-ribbon-group{display:flex;flex-direction:column;gap:4px;padding:2px 10px 0 0;border-right:1px solid var(--ms-line);min-width:0}.ms-ribbon-buttons{display:flex;align-items:stretch;flex-wrap:wrap;gap:4px}.ms-ribbon-group-caption{font-size:10px;color:var(--ms-quiet);text-align:center;margin-top:auto;padding-top:3px}.ms-ribbon-action.ms-ribbon-compact{min-width:44px;max-width:88px;padding:7px 5px;font-size:15px}.ms-ribbon-compact span{font-size:9px;white-space:normal;line-height:1.2;overflow-wrap:anywhere}.ms-ribbon-action:focus-visible,.ms-inline-toolbar :focus-visible{outline:2px solid #73b5ff;outline-offset:2px}
.ms-inline-toolbar{position:sticky;top:0;z-index:4;gap:8px;box-shadow:0 3px 12px #16284419}.ms-inline-toolbar label{display:flex;align-items:center;gap:5px;margin:0!important;font-size:11px;font-weight:600}.ms-inline-toolbar label select{width:130px;margin:0;padding:5px;font-size:12px;background:white;color:#1b2c44}.ms-inline-toolbar label select[data-editor-size]{width:93px}.ms-inline-toolbar input[type=color]{width:34px;height:29px;padding:1px;margin:0;border:1px solid #8199af;border-radius:4px;cursor:pointer}.ms-inline-toolbar button{min-height:30px}
.studio-edit-area img,.studio-readonly img,.studio-preview-content img{max-width:100%;height:auto}.studio-edit-area figure,.studio-readonly figure,.studio-preview-content figure{margin:12px auto;text-align:center}.studio-edit-area figcaption,.studio-readonly figcaption{font-size:12px;color:#596779;margin-top:7px}.studio-edit-area details{margin:12px 0;padding:11px;border:1px solid #aabecf;border-radius:5px}.studio-edit-area details summary{font-weight:700;cursor:pointer}.studio-edit-area table{width:100%;border-collapse:collapse;margin:16px 0;background:white;color:#172b44;table-layout:auto}.studio-edit-area td,.studio-edit-area th{border:1px solid #8a9cb2;padding:7px 10px;min-width:55px;min-height:27px}.studio-edit-area th{background:#e3edfa;color:#193957}.studio-edit-area pre{font-family:Consolas,monospace;white-space:pre-wrap;background:#eef3fa;padding:14px;border-radius:5px;color:#152a40}.studio-edit-area blockquote{border-left:4px solid #6298d2;padding:10px 15px;margin:13px 0;background:#eaf3fc;color:#1d3857}.studio-edit-area a{color:#1764ae;text-decoration:underline}.studio-edit-area mark{background:#fff3a2}.studio-edit-area hr{border:0;border-top:1px solid #afbecd;margin:18px 0}
.ms-insert-dialog{position:fixed;max-width:min(660px,calc(100vw - 30px));width:620px;max-height:min(82vh,750px);overflow:auto;border:1px solid #839bb5;border-radius:13px;padding:0;color:#19304d;background:#f8fbff;box-shadow:0 25px 65px #0009}.ms-insert-dialog::backdrop{background:#07172ab8;backdrop-filter:blur(2px)}.ms-dialog-header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #cad8e7;background:#eaf1fa}.ms-dialog-header h2{margin:0;font-size:18px;color:#15385b}.ms-dialog-close{min-width:34px;padding:5px 8px}.ms-dialog-body{padding:18px;display:grid;gap:10px}.ms-dialog-body label{display:block;color:#263a51;font-size:13px;font-weight:650;margin-bottom:10px}.ms-dialog-body select,.ms-dialog-body input,.ms-dialog-body textarea{display:block;width:100%;margin:7px 0 0;background:white!important;color:#162e49!important;border:1px solid #a6bacc!important;padding:10px;border-radius:5px}.ms-dialog-body label:has(input[type=checkbox]){display:flex;align-items:center;gap:8px}.ms-dialog-body input[type=checkbox]{width:auto}.ms-dialog-body section{display:block}.ms-dialog-body .hint,.ms-dialog-body p{color:#435f7b;font-size:13px}.ms-dialog-feedback{font-size:12px;color:#8d3030;min-height:18px}.ms-dialog-footer{display:flex;justify-content:flex-end;gap:9px;padding:14px 18px;border-top:1px solid #cad8e7;background:#eaf1fa}.ms-dialog-footer button{padding:9px 14px}
.ms-db-warning{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.ms-db-warning [data-db-warning-dismiss]{margin-left:auto;padding:5px 12px;font-size:12px;white-space:nowrap}.ms-global-db-restore{font-size:12px!important}.ms-global-db-restore[hidden]{display:none!important}
@media(max-width:850px){.ms-ribbon-group{border-right:none;border-bottom:1px solid var(--ms-line);padding-bottom:6px}.ms-ribbon-buttons{gap:5px}.ms-ribbon-action.ms-ribbon-compact{min-width:54px}.ms-inline-toolbar{position:static}.ms-dialog-body{padding:14px}.ms-dialog-header,.ms-dialog-footer{padding:12px}}

.ms-db-warning[hidden]{display:none!important}

.studio-edit-area a[id]:empty::after{content:"⚑";color:#658bad;font-size:12px;vertical-align:super}

/* ManualStudio 0.3.3 – separate Vorschau und Bildwerkzeuge */
.ms-heading-actions{display:flex;align-items:center;gap:14px}.ms-preview-launch{display:flex;gap:13px;align-items:center;flex-wrap:wrap;margin-top:18px;padding:11px 0;border-top:1px solid #9fb4c6}.ms-preview-launch small{color:#47617c}.studio-edit-area img.ms-image-selected{outline:2px solid #198ad5;outline-offset:3px}.ms-image-overlay{position:fixed;z-index:200;pointer-events:none;border:2px solid #248fcf;box-sizing:border-box}.ms-image-overlay[hidden],.ms-image-menu[hidden]{display:none!important}.ms-image-overlay>.ms-image-label{position:absolute;left:0;top:-28px;background:#234e73;color:white;border-radius:3px;padding:3px 7px;font-size:11px}.ms-image-overlay>[data-ms-image-edit]{position:absolute;left:3px;bottom:3px;pointer-events:auto;background:#ecf7ff;color:#113b66;border:1px solid #4c8bc1;padding:5px 9px;border-radius:5px;font-size:11px;cursor:pointer}.ms-image-grip{position:absolute;bottom:-8px;right:-8px;width:20px;height:20px;background:#fff;border:3px solid #237fbd;box-shadow:0 1px 7px #142c54aa;cursor:nwse-resize;pointer-events:auto;touch-action:none;border-radius:3px}.ms-image-menu{position:fixed;z-index:220;min-width:215px;padding:5px;border:1px solid #90acc9;background:#f7fbff;color:#1e3755;box-shadow:0 6px 30px #0006;border-radius:8px}.ms-image-menu button{display:block;width:100%;text-align:left;color:#1c3b5a;background:transparent;border:0;padding:9px 10px;font-size:12px}.ms-image-menu button:hover,.ms-image-menu button:focus-visible{background:#dbeafa}.ms-picture-dialog{position:fixed;z-index:300;max-width:min(1100px,calc(100vw - 20px));width:1050px;max-height:calc(100vh - 30px);padding:0;border-radius:12px;border:1px solid #94adc7;background:#f5f9ff;color:#19324e;overflow:auto;box-shadow:0 18px 58px #0009}.ms-picture-dialog::backdrop{background:#061426c9}.ms-picture-head{display:flex;justify-content:space-between;align-items:center;background:#e3edf8;padding:11px 18px;border-bottom:1px solid #b0c2d5}.ms-picture-head h2{margin:0;color:#173b61;font-size:20px}.ms-picture-head button,.ms-picture-actions button,.ms-picture-controls>button{background:#eaf2fb;color:#163b61;border:1px solid #a4bdd6;border-radius:6px;padding:9px 11px;font-size:12px;cursor:pointer}.ms-picture-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(275px,.85fr);gap:0}.ms-picture-stage{min-height:330px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px;background:#263850}.ms-picture-stage canvas{display:block;max-width:100%;max-height:65vh;width:auto;height:auto;cursor:crosshair;touch-action:none;background:#fff;box-shadow:0 4px 14px #0005}.ms-picture-hint{font-size:11px!important;line-height:1.5;color:#71849e;margin:0}.ms-picture-stage .ms-picture-hint{color:#d6e1ef;text-align:center}.ms-picture-controls{display:flex;flex-direction:column;gap:13px;overflow:auto;padding:16px 19px}.ms-picture-controls label{display:block;font-size:12px;font-weight:600;color:#2b4361}.ms-picture-controls label>input{width:100%;margin:7px 0 0;color:#193c60;background:#fff;border-color:#9cb7d2}.ms-picture-controls input[type=range]{accent-color:#1768ae}.ms-picture-controls output{float:right;color:#24629d}.ms-picture-actions{display:flex;flex-wrap:wrap;gap:6px}.ms-picture-actions button{flex:1;min-width:105px}.ms-picture-controls .ms-picture-save{font-weight:700;background:#1765ae;color:white;border-color:#1765ae;padding:11px}.ms-picture-error{font-size:12px;color:#8b2727;min-height:16px;margin:0}.ms-picture-controls button:disabled{opacity:.5;cursor:wait}
@media(max-width:850px){.ms-picture-layout{display:block}.ms-picture-stage{min-height:240px}.ms-picture-stage canvas{max-height:45vh}.ms-picture-dialog{max-height:95vh}}

/* ManualStudio 0.3.4: breite Desktop-Arbeitsfläche, feste Ribbon-Leisten, Unterseiten. */
main:has(> .ms-workbench){width:100%;max-width:none;margin:0;padding:0;min-width:0}
main:has(> .ms-workbench)>.ms-db-warning{margin:8px 10px}
.ms-workbench{width:100%;max-width:none;margin:0 0 20px;border-radius:0;overflow:visible;min-width:0}
.ms-ribbon-fixed{position:sticky;top:var(--ms-global-header-height,76px);z-index:28;background:var(--ms-surface);box-shadow:0 5px 12px #0003;min-width:0}
.ms-ribbon-body{overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.ms-ribbon-panel{flex-wrap:nowrap;width:max-content;min-width:100%;max-width:none}
.ms-ribbon-buttons{flex-wrap:nowrap}
.ms-ribbon-tabs{overflow-x:auto;scrollbar-width:thin}
.ms-workbench-stage{width:100%;min-width:0;align-items:stretch;grid-template-columns:var(--ms-explorer-width,280px) 7px minmax(0,1fr) 7px var(--ms-inspector-width,300px)}
.ms-workbench.ms-no-explorer .ms-workbench-stage{grid-template-columns:minmax(0,1fr) 7px var(--ms-inspector-width,300px)}
.ms-workbench.ms-no-explorer .ms-column-resizer[data-resize-column="explorer"]{display:none}
.ms-workbench.ms-no-inspector .ms-workbench-stage{grid-template-columns:var(--ms-explorer-width,280px) 7px minmax(0,1fr)}
.ms-workbench.ms-no-inspector .ms-column-resizer[data-resize-column="inspector"],.ms-workbench.ms-no-inspector .ms-inspector{display:none}
.ms-workbench.ms-no-explorer.ms-no-inspector .ms-workbench-stage{grid-template-columns:minmax(0,1fr)}
.ms-explorer,.ms-inspector{position:sticky;top:var(--ms-editor-toolbar-offset,246px);max-height:calc(100vh - var(--ms-editor-toolbar-offset,246px) - 8px);overflow-y:auto;overscroll-behavior:contain}
.ms-column-resizer{background:#213652;border-left:1px solid var(--ms-line);border-right:1px solid var(--ms-line);cursor:col-resize;touch-action:none;position:relative;align-self:stretch;min-width:7px}
.ms-column-resizer::after{content:"";position:sticky;display:block;top:calc(var(--ms-editor-toolbar-offset,246px) + 60px);height:60px;width:3px;margin:50px auto;border-radius:3px;background:#6f91b9}
.ms-column-resizer:hover,.ms-column-resizer.ms-dragging,.ms-column-resizer:focus-visible{background:#326baf;outline:2px solid #a6caff;outline-offset:-2px}
.ms-document-pane{min-width:0;width:100%;overflow:visible}
.ms-document-page{width:100%;max-width:none;margin:0;min-height:70vh;padding:clamp(18px,2.2vw,40px);box-shadow:none}
.ms-editor-surface{width:100%;max-width:none;padding:clamp(12px,1.6vw,25px)}
.ms-editor-surface .studio-edit-area{width:100%;max-width:none;min-height:64vh;padding:clamp(18px,2.4vw,42px)}
.ms-inline-toolbar{position:sticky;top:var(--ms-editor-toolbar-offset,246px);z-index:10;max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.ms-document-tabs{position:relative;z-index:2}
.ms-create-subtopic{scroll-margin-top:calc(var(--ms-editor-toolbar-offset,246px) + 22px);padding:14px 12px;background:#233650;border:1px solid #4a6585;border-radius:8px;margin:12px 0}
.ms-create-subtopic h3{margin:0 0 10px}
.ms-topic-children{margin-top:18px;padding:15px;border:1px solid #a8bed4;border-radius:8px;background:#f0f6fc;color:#234564}
.ms-topic-children-title{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}
.ms-topic-children-title h3{margin:0;font-size:16px;color:#244868}
.ms-topic-children-title a,.ms-topic-child{color:#1b598f}
.ms-topic-child{display:flex;justify-content:space-between;gap:10px;padding:9px 8px;border-top:1px solid #c8d9e8;text-decoration:none}
.ms-topic-child:hover{background:#e0effb}
.ms-child-trigger{border:0;background:transparent;color:#8bbbec;font-size:19px;line-height:1;padding:1px 3px;min-width:24px;opacity:.75}
.ms-tree-row:hover .ms-child-trigger,.ms-child-trigger:focus-visible{opacity:1}
.ms-child-trigger:hover{background:#2d5275;color:white;border-radius:4px}
.ms-heading-actions{flex-wrap:wrap;gap:8px}
.ms-heading-actions a{white-space:nowrap}
.ms-ref-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.ms-reference-broken{padding:9px 8px;color:#a44921;border-bottom:1px solid #d6b2a3}
html[data-ms-theme="light"] .ms-column-resizer{background:#cbd9e8}
html[data-ms-theme="light"] .ms-create-subtopic{background:#e8f1fa;border-color:#a9c6df}
html[data-ms-theme="light"] .ms-child-trigger{color:#356ca2}
@media(max-width:1260px) and (min-width:1101px){.ms-workbench-stage{grid-template-columns:230px 7px minmax(0,1fr) 7px 240px}.ms-workbench.ms-no-explorer .ms-workbench-stage{grid-template-columns:minmax(0,1fr) 7px 240px}.ms-workbench.ms-no-inspector .ms-workbench-stage{grid-template-columns:230px 7px minmax(0,1fr)}}
@media(max-width:1100px){
 .ms-column-resizer{display:none!important}
 .ms-workbench-stage,.ms-workbench.ms-no-explorer .ms-workbench-stage,.ms-workbench.ms-no-inspector .ms-workbench-stage{display:grid;grid-template-columns:minmax(200px,260px) minmax(0,1fr)}
 .ms-workbench.ms-no-explorer .ms-workbench-stage,.ms-workbench.ms-no-explorer.ms-no-inspector .ms-workbench-stage{grid-template-columns:minmax(0,1fr)}
 .ms-inspector{grid-column:1/-1;position:static;max-height:none;display:block}
 .ms-explorer{top:var(--ms-editor-toolbar-offset,246px);max-height:calc(100vh - var(--ms-editor-toolbar-offset,246px) - 8px)}
}
@media(max-width:760px){
 main:has(> .ms-workbench){padding:0}
 .ms-ribbon-fixed{top:0}
 .ms-workbench-stage,.ms-workbench.ms-no-explorer .ms-workbench-stage,.ms-workbench.ms-no-inspector .ms-workbench-stage{display:block}
 .ms-explorer,.ms-inspector{position:static;max-height:340px;overflow-y:auto}
 .ms-inspector{max-height:none}
 .ms-inline-toolbar{position:sticky;top:var(--ms-ribbon-height,180px)}
 .ms-ribbon-body{max-width:100vw}
 .ms-document-page{padding:15px}
 .ms-editor-surface .studio-edit-area{min-height:350px;padding:14px}
 .ms-ref-grid{display:block}
}

@media(min-width:761px) and (max-width:850px){.ms-ribbon-fixed{top:0}.ms-inline-toolbar{top:var(--ms-ribbon-height,180px)}.ms-explorer{top:var(--ms-ribbon-height,180px)}}

/* 0.3.5 – reversible deletion and recycle bin */
.ms-trash-item{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:15px 0;border-bottom:1px solid var(--line)}
.ms-trash-item>div:first-child{min-width:0;overflow-wrap:anywhere}
.ms-trash-item small{color:var(--muted);font-size:12px}
.ms-trash-item .toolbar{align-items:center}
.ms-trash-item form{margin:0}
.ms-delete-button{border-color:#ad5f66!important;color:#ffd9dc!important;background:#50292e!important}
.ms-delete-button:hover{background:#73313a!important}
html[data-ms-theme="light"] .ms-delete-button{border-color:#b85f66!important;color:#8b252f!important;background:#fff0f1!important}
.ms-project-entry{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.ms-project-entry .project-card{flex:1;min-width:0;margin:0}
.ms-project-entry form{margin:0}
@media(max-width:720px){.ms-trash-item,.ms-project-entry{align-items:stretch;flex-direction:column}}
/* 0.3.6: Icon and title colors per project/topic. Only validated hex and catalog glyphs. */
.ms-tree-title-wrap{display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:100%;border-radius:4px;padding:2px 5px;color:inherit}
.ms-tree-row>.ms-tree-title-wrap{flex:1;overflow:hidden}
.ms-tree-title-wrap .ms-tree-link{color:inherit!important;flex:1;min-width:0}
.ms-tree-title-wrap .ms-doc-icon{font-size:15px;line-height:1.2;flex:none;opacity:1}
.ms-project-name{display:flex;justify-content:space-between;align-items:center;gap:6px}
.ms-project-name>.ms-project-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ms-project-appearance-link{margin-left:auto;flex:none;color:inherit;text-decoration:none;font-size:14px}
.ms-project-appearance-link:hover{filter:brightness(1.2)}
.ms-decorated-title{display:inline-block;border-radius:5px;padding:3px 7px;max-width:100%;overflow-wrap:anywhere}
.ms-appearance-panel{max-width:900px;margin:15px auto}
.ms-appearance-preview{display:inline-flex;align-items:center;gap:10px;margin:10px 0 24px;font-size:17px;font-weight:700;border:1px dashed #738aaa;border-radius:8px;padding:16px;max-width:100%;overflow-wrap:anywhere}
.ms-appearance-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.ms-appearance-form>.toolbar{grid-column:1/-1}
.ms-color-setting{padding:14px;border:1px solid var(--line);border-radius:9px}
.ms-color-setting input[type="color"]{width:100%;height:50px;padding:5px;cursor:pointer}
.ms-check-label{display:flex;align-items:center;gap:9px}
.ms-check-label input{width:18px;height:18px;margin:0}
.ms-project-entry>.ms-appearance-entry-button{margin:0 7px;white-space:nowrap}
@media(max-width:680px){.ms-appearance-form{grid-template-columns:1fr}.ms-appearance-panel{padding:15px}.ms-project-entry>.ms-appearance-entry-button{margin:7px 0}}

.ms-project-name button.ms-project-title{background:transparent;color:inherit;border:0;box-shadow:none;font:inherit;text-align:left;cursor:pointer;font-size:13px;line-height:1.3;flex:1;min-width:0}.ms-project-name button.ms-project-title:hover{filter:brightness(1.1)}

/* 0.3.7: visible and accessible ordering feedback */
.ms-sortable-project{border-radius:9px;transition:box-shadow .12s,opacity .12s}
.ms-sortable-project .ms-drag-handle{cursor:grab;user-select:none;touch-action:none;font-size:21px;padding:5px 9px;color:var(--muted);border:1px dashed var(--line);border-radius:7px}
.ms-sortable-project.ms-is-dragging{opacity:.43}
.ms-sortable-project.ms-project-drop-target{outline:2px dashed #77b3f5;outline-offset:2px}
.ms-sortable-project .ms-sort-step{min-width:32px}
.ms-tree-row[draggable=true]{cursor:grab}
.ms-tree-dragging{opacity:.4}
.ms-tree-row.ms-drop-before{box-shadow:inset 0 3px #73beed!important}
.ms-tree-row.ms-drop-after{box-shadow:inset 0 -3px #73beed!important}
.ms-tree-row.ms-drop-inside{outline:2px dashed #73beed;outline-offset:-2px;background:#365778!important}
.ms-root-drop.ms-root-drop-active{border-color:#69cc9e;background:#22543d;color:white}
@media (max-width:850px){.ms-sortable-project{flex-wrap:wrap}.ms-sortable-project .ms-drag-handle{display:none}}
