:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #1f2937; background: #f7f8fc; }
[hidden] { display: none !important; }
.copy-results { margin: 4px 0 0; padding-left: 22px; max-height: 180px; overflow: auto; font-size: .88rem; }
.copy-results li { margin: 4px 0; }
.settings-button { font-size: 20px; line-height: 1; padding: 8px 10px; }
.settings-logo-preview { display: block; width: 64px; height: 64px; object-fit: contain; margin: 6px 0 12px; border: 1px solid #cbd5e1; border-radius: 6px; background: #f8fafc; }
.settings-logo-preview[hidden] { display: none !important; }
.save-feedback { margin: 0 0 12px; padding: 9px 11px; border: 1px solid #86efac; border-radius: 7px; background: #f0fdf4; color: #166534; font-size: 13px; font-weight: 600; }
.save-feedback.error { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.settings-section { border-top: 1px solid #e2e8f0; margin-top: 24px; padding-top: 18px; }
.settings-section:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.settings-section h3 { margin: 0 0 4px; color: #0f172a; }
.settings-section > .hint:first-of-type { margin-top: 0; }
.settings-activity { position: sticky; bottom: 0; margin-top: 20px; padding: 10px 0 2px; background: linear-gradient(to bottom, transparent, #fff 18%); }
.settings-activity #status { margin: 0; padding: 9px 11px; border-radius: 7px; background: #eff6ff; color: #1e3a8a; font-weight: 600; }
.settings-activity #status.error { background: #fef2f2; color: #b91c1c; }
.appearance-action-row { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin-top: 8px; }
.appearance-action-row .personal-override-toggle { display: inline-flex; align-items: center; gap: 5px; width: auto; margin: 0; font-size: 12px; font-weight: 600; white-space: nowrap; }
.appearance-action-row .personal-override-toggle input { width: auto; margin: 0; }
.appearance-action-row .appearance-default-button { width: 100%; min-height: 32px; margin: 0; padding: 6px 5px; white-space: normal; line-height: 1.15; font-size: 11px; }
#configDialog .appearance-color-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
#configDialog .appearance-color-grid > label { min-width: 0; margin: 0; }
.appearance-color-grid input[type="color"] { height: 28px; padding: 2px; }
.color-value-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 5px; }
.color-value-controls input { min-width: 0; padding: 6px 4px; font-size: 11px; }
.color-value-controls input:first-child { grid-column: 1 / -1; }
#configDialog .apply-color-button { width: 100%; min-height: 30px; margin: 6px 0 0; padding: 5px 7px; font-size: 11px; }
.appearance-utility-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 210px)); gap: 12px; align-items: start; margin-top: 16px; }
.appearance-utility-grid > label { min-width: 0; margin: 0; }
.appearance-utility-grid input[type="range"] { padding: 0; }
.page-title-setting > input { width: auto; }
button.was-clicked { outline: 3px solid color-mix(in srgb, var(--wiki-accent, #2563eb) 45%, white); outline-offset: 2px; transform: translateY(1px); filter: brightness(.88); }
@media (max-width: 580px) { #configDialog .appearance-color-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .appearance-utility-grid { grid-template-columns: minmax(0, 1fr); } }
.file-item { font-size: var(--wiki-nav-font-size, 14px); }
.file-kind { font-size: .78em; }
.actions { display: flex; align-items: center; gap: 8px; }
.connection-status { max-width: 280px; color: var(--wiki-muted, #475569); font-size: 12px; line-height: 1.25; text-align: right; }
.connection-status.error { color: #b91c1c; font-weight: 600; }
.logo-source-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 12px 0; }
.logo-source-actions .secondary, #logoSearchAllDrive.secondary { width: auto; margin: 0; padding: 8px; }
.logo-source-actions .secondary.active { background: var(--wiki-accent, #2563eb); color: #fff; }
.picker-feedback { margin: 0 0 12px; padding: 9px 11px; border: 1px solid #fecaca; border-radius: 7px; background: #fef2f2; color: #b91c1c; font-size: 13px; font-weight: 600; line-height: 1.35; }
.wiki-users-list { margin-top: 10px; max-height: 240px; overflow: auto; border: 1px solid #e2e8f0; border-radius: 7px; }
.wiki-user-row { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-bottom: 1px solid #f1f5f9; color: #1f2937; font-size: 13px; }
.wiki-user-row:last-child { border-bottom: 0; }
.wiki-user-row small { color: var(--wiki-muted, #64748b); }
@media (max-width: 580px) { .logo-source-actions { grid-template-columns: 1fr; } }
.sidebar-add { display: block; margin: 8px 0 4px; }
.wiki-path { display: flex; align-items: center; gap: 7px; } .wiki-path #wikiBreadcrumb { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; font-weight: 700; line-height: 1.2; } .sidebar-add { flex: 0 0 auto; padding: 2px 8px; border-radius: 999px; font-size: 20px; line-height: 1; } .document-actions { display: flex; justify-content: flex-end; margin-bottom: 16px; } .drive-edit-link { display: inline-block; border-radius: 7px; padding: 9px 12px; background: #2563eb; color: white; font-weight: 600; text-decoration: none; } .drive-edit-link:hover { background: #1d4ed8; }
.media-frame { display: block; width: min(100%, 900px); aspect-ratio: 16 / 9; min-height: 280px; margin: 16px auto; border: 0; border-radius: 8px; background: #0f172a; }
.wiki-logo { width: 34px; height: 34px; flex: 0 0 auto; object-fit: contain; border-radius: 6px; }
#searchResults.search-results-active { margin: 12px 0; padding: 8px 0; border-top: 2px solid var(--wiki-accent, #2563eb); border-bottom: 2px solid var(--wiki-accent, #2563eb); }
/* Direct page headings follow the resolved page-title color. Generated folder
   index titles deliberately retain their independently configurable color. */
.document > .wiki-page-title { color: var(--wiki-text, #0f172a) !important; }
.document > .wiki-group-index-title { color: var(--wiki-group-title, #14532d) !important; }
* { box-sizing: border-box; } body { margin: 0; } header { height: 76px; padding: 12px 24px; display: flex; align-items: center; gap: 18px; background: white; border-bottom: 1px solid #e5e7eb; } h1 { font-size: 20px; margin: 0; } header p { margin: 3px 0 0; color: var(--wiki-muted, #64748b); font-size: 13px; } .header-search { width: min(360px, 30vw); margin-left: auto; } button { cursor: pointer; border: 0; border-radius: 7px; padding: 9px 12px; background: #2563eb; color: white; font-weight: 600; } button:hover { background: #1d4ed8; } button.secondary { background: #e5e7eb; color: #1f2937; width: 100%; margin: 10px 0; } main { display: grid; grid-template-columns: var(--sidebar-width, 320px) 7px minmax(0, 1fr); min-height: calc(100vh - 76px); } aside { padding: 18px; background: white; overflow-y: auto; } .sidebar-resizer { cursor: col-resize; background: #e5e7eb; transition: background .15s; } .sidebar-resizer:hover, .sidebar-resizer:focus { background: #2563eb; outline: 0; } label { display: block; margin: 10px 0 6px; font-size: 13px; font-weight: 700; } input { width: 100%; padding: 9px; border: 1px solid #cbd5e1; border-radius: 6px; } .row { display: flex; gap: 6px; } .row button { padding-inline: 10px; } .hint, #status { color: var(--wiki-muted, #64748b); font-size: 12px; line-height: 1.4; } #status.error { color: #b91c1c; } nav { margin-top: 12px; } .file-item { color: #243047; background: transparent; width: 100%; text-align: left; padding: 9px 7px; border-radius: 6px; display: flex; justify-content: space-between; gap: 8px; font-weight: 500; } .file-item:hover, .file-item.active { background: #e8f0fe; color: #174ea6; } .file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .file-kind { color: var(--wiki-muted, #64748b); flex: 0 0 auto; } .viewer { padding: clamp(20px, 4vw, 52px); overflow: auto; } .document { max-width: 920px; margin: auto; background: white; padding: clamp(24px, 5vw, 64px); border-radius: 10px; box-shadow: 0 2px 12px #1f293708; min-height: 70vh; } .document h1 { font-size: 30px; } .document pre { white-space: pre-wrap; background: #f1f5f9; padding: 16px; border-radius: 7px; } .document img { max-width: 100%; height: auto; } .document iframe, .document object { width: 100%; height: 75vh; border: 1px solid #e2e8f0; } .empty { max-width: 620px; margin: 15vh auto; text-align: center; color: #475569; } dialog { width: min(620px, calc(100vw - 32px)); border: 0; border-radius: 12px; padding: 0; box-shadow: 0 20px 60px #0f172a55; } dialog::backdrop { background: #0f172a66; } .picker { padding: 22px; } .picker-header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; } .picker h2 { margin: 0; font-size: 18px; } .picker p { margin: 4px 0 14px; color: var(--wiki-muted, #64748b); font-size: 13px; } .icon-button { background: transparent; color: #475569; font-size: 24px; padding: 0 5px; line-height: 1; } .icon-button:hover { background: #e2e8f0; } .picker-nav { display: flex; gap: 10px; align-items: center; } .picker-nav .secondary { width: auto; margin: 0; white-space: nowrap; } #folderBreadcrumb { margin: 0; overflow: auto; white-space: nowrap; font-size: 13px; } .crumb { color: #2563eb; background: transparent; padding: 3px; } .crumb:hover { background: #e8f0fe; } .crumb[disabled] { color: #475569; cursor: default; } .folder-results { margin-top: 12px; max-height: min(58vh, 480px); overflow: auto; border: 1px solid #e2e8f0; border-radius: 7px; } .folder-row { display: flex; gap: 8px; align-items: center; padding: 6px; border-bottom: 1px solid #f1f5f9; } .folder-row:last-child { border-bottom: 0; } .folder-choice { color: #1f2937; background: white; flex: 1; min-width: 0; text-align: left; border-radius: 5px; padding: 7px; } .folder-choice:hover { background: #e8f0fe; color: #174ea6; } .folder-choice small { display: block; margin-top: 2px; color: var(--wiki-muted, #64748b); font-weight: 400; } .use-folder { background: #e5e7eb; color: #1f2937; font-size: 12px; padding: 7px; white-space: nowrap; } .use-folder:hover { background: #cbd5e1; } .no-results { padding: 18px; color: var(--wiki-muted, #64748b); font-size: 14px; } @media (max-width: 720px) { header { height: auto; padding: 12px; flex-wrap: wrap; } .header-search { order: 3; width: 100%; } main { grid-template-columns: 1fr; } aside { border-bottom: 1px solid #e5e7eb; } .sidebar-resizer { display: none; } }
