/* ===================== IntraDocs ===================== */
.win-body.gdh-host, .win-body.gd-host { background: #f1f3f4; overflow: hidden; }
html.dark .win-body.gdh-host, html.dark .win-body.gd-host { background: #1b1c1f; }
.gdh { display: flex; flex-direction: column; height: 100%; font-family: Arial, "Segoe UI", Tahoma, sans-serif; font-size: calc(var(--fs) + 2px); color: #202124; }
html.dark .gdh, html.dark .gd { color: #e8eaed; }
.gdh-top { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: #fff; border-bottom: 1px solid #dadce0; flex-wrap: wrap; }
html.dark .gdh-top, html.dark .gdh-list { background: #202124; border-color: #3c4043; }
.gdh-top img { width: 32px; height: 32px; }
.gdh-top b { font-size: 20px; font-weight: normal; color: #5f6368; margin-right: 12px; }
.gdh-search { flex: 1; min-width: 160px; max-width: 620px; display: flex; align-items: center; gap: 8px; background: #f1f3f4; border-radius: 8px; padding: 0 12px; height: 40px; }
html.dark .gdh-search { background: #303134; }
.gdh-search input { flex: 1; border: 0 !important; background: transparent; outline: none; font-size: 15px; min-height: 0; color: inherit; }
.gdh-filter { height: 32px; }
.gdh-new { background: #f1f3f4; border-bottom: 1px solid #dadce0; flex: none; }
html.dark .gdh-new { background: #26272a; border-color: #3c4043; }
.gdh-new-in, .gdh-list-in { max-width: 920px; margin: 0 auto; padding: 14px 16px; }
.gdh-label { font-size: 15px; margin-bottom: 10px; }
.gdh-templates { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 4px; }
.gdh-tpl { flex: none; width: 128px; border: 0; background: none; padding: 0; text-align: left; color: inherit; font-size: 13px; }
.gdh-tpl span { display: block; margin-top: 6px; font-weight: 500; }
.gdt-paper { width: 128px; height: 166px; background: #fff; border: 1px solid #dadce0; border-radius: 2px; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.gdh-tpl:hover .gdt-paper, .gdh-tpl:focus-visible .gdt-paper { border-color: #1a73e8; }
.gdt-paper b { font-size: 9px; color: #202124; }
.gdt-paper i { height: 3px; background: #dadce0; border-radius: 2px; }
.gdt-paper i.s { width: 60%; }
.gdt-paper em { height: 5px; width: 50%; background: #9aa0a6; border-radius: 2px; margin-top: 4px; }
.gdt-plus { margin: auto; font-size: 64px; line-height: 1; color: #1a73e8; font-weight: 300; }
.gdh-list { flex: 1; overflow: auto; background: #fff; }
.gdh-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.gdh-table th { text-align: left; font-weight: 500; color: #5f6368; padding: 8px; border-bottom: 1px solid #dadce0; }
.gdh-table td { padding: 8px; border-bottom: 1px solid #f1f3f4; vertical-align: middle; }
html.dark .gdh-table td { border-color: #303134; }
.gdh-table tr[data-pid] { cursor: pointer; }
.gdh-table tr[data-pid]:hover td, .gdh-table tr[data-pid]:focus td { background: #e8f0fe; outline: none; }
html.dark .gdh-table tr[data-pid]:hover td { background: #2b3a55; }
.gdh-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gdh-name img { width: 16px; height: 16px; }
.gdh-name small { flex-basis: 100%; color: #5f6368; padding-left: 24px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gdh-star { color: #f4b400; }
.gdh-empty { text-align: center; color: #5f6368; padding: 40px 10px !important; }
.gdh-more { min-width: 30px !important; font-size: 16px; font-weight: bold; }

.gd { position: relative; display: flex; flex-direction: column; height: 100%; font-family: Arial, "Segoe UI", Tahoma, sans-serif; }
.gd-loading, .gd-denied { padding: 40px; text-align: center; color: #5f6368; font-family: Arial, sans-serif; }
.gd-denied { max-width: 460px; margin: 40px auto; background: #fff; border: 1px solid #dadce0; border-radius: 8px; }
.gd-denied h2 { font-weight: 400; color: #202124; }
.gd-denied textarea { width: 100%; margin-bottom: 10px; }
.gd-head { display: flex; align-items: center; gap: 8px; padding: 6px 12px 2px; background: #f9fbfd; flex: none; }
html.dark .gd-head { background: #202124; }
.gd-logo { width: 32px; height: 32px; }
.gd-titlebox { min-width: 0; flex: 0 1 auto; }
.gd-titlerow { display: flex; align-items: center; gap: 6px; }
.gd-title { font-size: 18px; border: 1px solid transparent !important; background: transparent !important; padding: 2px 6px; border-radius: 4px; min-width: 120px; max-width: 420px; color: inherit; }
.gd-title:hover:not([readonly]) { border-color: #dadce0 !important; }
.gd-title:focus { border-color: #1a73e8 !important; outline: none; }
.gd-star { border: 0; background: none; font-size: 16px; color: #5f6368; padding: 0 2px; }
.gd-save { font-size: 12px; color: #5f6368; white-space: nowrap; }
.gd-save.offline { color: #d93025; }
.gd-save.pending { font-style: italic; }
.gd-menus { display: flex; }
.gd-menus button { border: 0; background: none; padding: 2px 7px; border-radius: 4px; font-size: 14px; color: inherit; }
.gd-menus button:hover { background: #e8eaed; }
html.dark .gd-menus button:hover { background: #3c4043; }
.gd-sp { flex: 1; }
.gd-presence { display: flex; gap: 2px; }
.gd-av { width: 28px; height: 28px; border-radius: 50%; color: #fff; display: inline-grid; place-items: center; font-size: 11px; font-weight: bold; border: 2px solid #fff; flex: none; }
.gd-av.s { width: 24px; height: 24px; font-size: 10px; border: 0; }
.gd-iconbtn { position: relative; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; font-size: 18px; color: #444746; display: grid; place-items: center; }
html.dark .gd-iconbtn { color: #e8eaed; }
.gd-iconbtn:hover { background: #e8eaed; }
html.dark .gd-iconbtn:hover { background: #3c4043; }
.gd-cmt-n { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; border-radius: 8px; background: #d93025; color: #fff; font: bold 10px/16px Arial, sans-serif; }
.gd-share { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 18px; border: 0; border-radius: 18px; background: #c2e7ff; color: #001d35; font: 500 14px Arial, sans-serif; }
.gd-share:hover { box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.gd-toolbar.ql-toolbar.ql-snow { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 4px 12px 6px; padding: 3px 8px; border: 0; border-radius: 22px; background: #edf2fa; font-family: Arial, sans-serif; }
html.dark .gd-toolbar.ql-toolbar.ql-snow { background: #2d2f31; }
.gd-toolbar.ql-snow .ql-formats { margin-right: 6px; padding-right: 6px; border-right: 1px solid #c7c7c7; display: inline-flex; align-items: center; }
.gd-toolbar.ql-snow .ql-formats:last-child { border-right: 0; }
.gd-toolbar button.gd-undo, .gd-toolbar button.gd-redo, .gd-toolbar button.gd-print, .gd-toolbar button.gd-addcmt { width: 28px; height: 24px; font-size: 16px; color: #444; }
html.dark .gd-toolbar .ql-stroke { stroke: #e8eaed; }
html.dark .gd-toolbar .ql-fill { fill: #e8eaed; }
html.dark .gd-toolbar .ql-picker { color: #e8eaed; }
html.dark .gd-toolbar button.gd-undo, html.dark .gd-toolbar button.gd-redo, html.dark .gd-toolbar button.gd-print, html.dark .gd-toolbar button.gd-addcmt { color: #e8eaed; }
.gd-ro { margin: 0 12px 6px; padding: 6px 12px; border-radius: 8px; background: #fef7e0; color: #5f4b00; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.gd-main { flex: 1; min-height: 0; display: flex; }
.gd-canvas { flex: 1; overflow: auto; padding: 16px 12px 40px; background: #f9fbfd; }
html.dark .gd-canvas { background: #1b1c1f; }
.gd-page { max-width: 816px; min-height: 1056px; margin: 0 auto; background: #fff; box-shadow: 0 1px 3px rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15); }
.gd-page .ql-container.ql-snow { border: 0; font-family: Arial, sans-serif; font-size: 15px; color: #202124; }
.gd-page .ql-editor { min-height: 1056px; padding: 72px 84px; line-height: 1.5; }
.gd-page .ql-editor.ql-blank::before { left: 84px; right: 84px; font-style: normal; color: #9aa0a6; }
.gd-page .ql-editor h1 { font-size: 26px; font-weight: 400; margin: 0 0 8px; }
.gd-page .ql-editor h2 { font-size: 20px; font-weight: 400; margin: 18px 0 6px; }
.gd-page .ql-editor h3 { font-size: 16px; color: #434343; margin: 14px 0 4px; }
.gd-page .ql-editor img { max-width: 100%; }
.gd-side { width: 320px; flex: none; overflow: auto; background: #fff; border-left: 1px solid #dadce0; padding: 10px 12px; font-size: 13px; color: #202124; }
html.dark .gd-side { background: #202124; border-color: #3c4043; color: #e8eaed; }
.gd-side-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 15px; }
.gd-side-x { min-width: 26px !important; }
.gd-newcmt, .gd-namever { width: 100%; margin-bottom: 10px; }
.gd-thread { border: 1px solid #dadce0; border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
html.dark .gd-thread { background: #2d2f31; border-color: #3c4043; }
.gd-thread.resolved { opacity: .65; }
.gd-quote { border-left: 3px solid #f4b400; background: #fef7e0; padding: 3px 8px; margin-bottom: 6px; font-style: italic; color: #5f4b00; border-radius: 0 4px 4px 0; }
.gd-cmsg { display: flex; gap: 8px; margin: 6px 0; }
.gd-cbody { white-space: pre-wrap; word-break: break-word; margin-top: 2px; }
.gd-cact { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.gd-reply { flex: 1; border-radius: 14px; padding: 3px 10px; }
.gd-ver { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid transparent; background: none; padding: 6px 8px; color: inherit; }
.gd-ver:hover { background: #e8f0fe; border-left-color: #1a73e8; }
html.dark .gd-ver:hover { background: #2b3a55; }
.gd-ver small { display: block; color: #5f6368; }
.gd-verview { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; background: #f9fbfd; }
.gd-verbar { display: flex; gap: 8px; align-items: center; padding: 8px 14px; background: #fff; border-bottom: 1px solid #dadce0; font-family: Arial, sans-serif; }
html.dark .gd-verbar { background: #202124; border-color: #3c4043; }
.gd-status { display: flex; padding: 3px 12px; font-size: 12px; color: #5f6368; background: #f9fbfd; border-top: 1px solid #e3e3e3; flex: none; }
html.dark .gd-status { background: #202124; border-color: #3c4043; }

/* Quill-Auswahllisten und Link-Tooltip auf Deutsch */
.ql-snow .ql-picker.ql-header .ql-picker-label::before, .ql-snow .ql-picker.ql-header .ql-picker-item::before { content: "Normaler Text"; }
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before, .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before { content: "Überschrift 1"; }
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before, .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before { content: "Überschrift 2"; }
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before, .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before { content: "Überschrift 3"; }
.ql-snow .ql-picker.ql-header { width: 118px; }
.ql-snow .ql-picker.ql-font .ql-picker-label::before, .ql-snow .ql-picker.ql-font .ql-picker-item::before { content: "Arial"; }
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="serif"]::before, .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="serif"]::before { content: "Times New Roman"; }
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="monospace"]::before, .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="monospace"]::before { content: "Courier New"; }
.ql-snow .ql-picker.ql-font { width: 132px; }
.ql-snow .ql-picker.ql-size .ql-picker-label::before, .ql-snow .ql-picker.ql-size .ql-picker-item::before { content: "Normal"; }
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="small"]::before, .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="small"]::before { content: "Klein"; }
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="large"]::before, .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="large"]::before { content: "Groß"; }
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="huge"]::before, .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="huge"]::before { content: "Sehr groß"; }
.ql-snow .ql-tooltip[data-mode="link"]::before { content: "Link eingeben:"; }
.ql-snow .ql-tooltip::before { content: "Link öffnen:"; }
.ql-snow .ql-tooltip.ql-editing a.ql-action::after { content: "Speichern"; }
.ql-snow .ql-tooltip a.ql-action::after { content: "Bearbeiten"; }
.ql-snow .ql-tooltip a.ql-remove::before { content: "Entfernen"; }

/* Freigabe-Dialog */
.sh-body h4 { margin: 14px 0 6px; font-size: 1.05em; }
.sh-add { border: 1px solid var(--border-light); border-radius: 4px; padding: 8px; background: var(--panel); }
.sh-pick { max-height: 120px; overflow: auto; display: flex; flex-direction: column; margin: 6px 0; }
.sh-pick label { margin: 1px 0 !important; }
.sh-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.sh-add textarea { width: 100%; margin-bottom: 6px; }
.sh-people { display: flex; flex-direction: column; gap: 6px; }
.sh-person { display: flex; align-items: center; gap: 8px; }
.sh-person > span:nth-child(2) { flex: 1; }
.sh-av { width: 26px; height: 26px; border-radius: 50%; color: #fff; display: inline-grid; place-items: center; font-size: 10px; font-weight: bold; flex: none; }
.sh-general { display: flex; gap: 8px; flex-wrap: wrap; }
.sh-general select { flex: 1; min-width: 200px; }
.sh-body .copyrow { margin-top: 6px; }
.sh-sendlink { margin-top: 12px; }
.sh-flash { min-height: 22px; margin-top: 6px; }
.msg-body a { word-break: break-all; }

html.compact .gd-side { position: absolute; right: 0; top: 0; bottom: 0; z-index: 5; width: min(320px, 90%); }
html.compact .gd-page .ql-editor { padding: 24px 18px; min-height: 600px; }
html.compact .gd-page { min-height: 0; }
html.compact .gd-menus button { padding: 2px 4px; }
html.compact .gd-title { max-width: 160px; }

/* Öffentliche Ansicht /d/<token> */
.pub { min-height: 100vh; overflow: auto; background: #f9fbfd; font-family: Arial, sans-serif; color: #202124; }
.pub-head { display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: #fff; border-bottom: 1px solid #dadce0; position: sticky; top: 0; z-index: 2; }
.pub-head img { width: 32px; height: 32px; }
.pub-head h1 { font-size: 18px; font-weight: 400; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-head small { color: #5f6368; }
.pub .gd-canvas { padding: 20px 12px 60px; }
.pub-error { max-width: 460px; margin: 80px auto; text-align: center; color: #5f6368; }
