:root{--bg:#f6f7fb;--card:#fff;--txt:#172033;--muted:#667085;--line:#dde2eb;--brand:#1e4fd7;--bad:#b42318;--ok:#027a48}*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--txt)}.topbar{display:flex;justify-content:space-between;align-items:center;padding:14px 24px;background:#111827;color:#fff}.brand{font-weight:700;color:#fff;text-decoration:none;font-size:20px}nav a{color:#dbe4ff;text-decoration:none;margin-left:18px}.container{max-width:1100px;margin:28px auto;padding:0 18px}.card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:20px;margin-bottom:18px;box-shadow:0 1px 2px rgba(16,24,40,.04)}h1,h2,h3{margin-top:0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.btn{display:inline-block;padding:9px 13px;border-radius:9px;background:var(--brand);color:#fff;text-decoration:none;border:0;cursor:pointer}.btn.secondary{background:#475467}.btn.danger{background:var(--bad)}input,textarea,select{width:100%;padding:10px;border:1px solid var(--line);border-radius:9px;margin:6px 0 14px;background:#fff}textarea{min-height:200px}label{font-weight:600}.muted{color:var(--muted)}table{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden}th,td{border-bottom:1px solid var(--line);padding:11px;text-align:left}tr:last-child td{border-bottom:0}.flash{padding:12px 14px;border-radius:10px;margin-bottom:16px;background:#ecfdf3;color:var(--ok)}.flash.err{background:#fef3f2;color:var(--bad)}.pill{display:inline-block;background:#eef4ff;border:1px solid #c7d7fe;border-radius:999px;padding:3px 9px;font-size:12px}footer{text-align:center;color:var(--muted);padding:30px}.actions a{margin-right:8px}.markdown{line-height:1.6}.danger-zone{border-color:#fecdca;background:#fffafa}

.wiki-editor{min-height:360px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.dropzone{border:2px dashed var(--line);border-radius:12px;padding:14px;margin:8px 0 14px;background:#fafbff;color:var(--muted);text-align:center}.dropzone.dragover{border-color:var(--brand);background:#eef4ff;color:var(--txt)}.wiki-image{max-width:100%;height:auto;border:1px solid var(--line);border-radius:10px;margin:10px 0;display:block}.editor-help{font-size:13px;color:var(--muted);margin-top:-6px}
.editor-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:8px 0 10px}.dropzone{cursor:pointer;user-select:none}.dropzone:focus{outline:2px solid var(--brand);outline-offset:2px}
.btn.mini{padding:6px 9px;font-size:13px;background:#344054}.inline-form{display:inline;margin:0}.link-danger{border:0;background:transparent;color:var(--bad);cursor:pointer;text-decoration:underline;padding:0;font:inherit}.upload-row{padding:8px 10px;border:1px solid var(--line);border-radius:8px;margin-top:8px;background:#fff}.upload-row.err{border-color:#fecdca;color:var(--bad);background:#fffafa}.markdown pre{background:#111827;color:#f9fafb;padding:14px;border-radius:10px;overflow:auto}.markdown pre code{background:transparent;color:inherit;padding:0}.markdown code{background:#eef2f7;padding:2px 5px;border-radius:5px}.markdown ul{padding-left:24px}.markdown a{color:var(--brand)}#file_input{display:block}
.wiki-list-row{display:flex;align-items:center;gap:10px;justify-content:space-between}.wiki-list-row .row-actions{white-space:nowrap;margin-left:auto}
.existing-files{border:1px solid #d9e2ef;border-radius:10px;padding:12px;margin:12px 0;background:#f8fafc}
.existing-files .btn{margin:4px 4px 4px 0}
.breadcrumb{font-size:14px;margin:0 0 14px;color:var(--muted);display:flex;align-items:center;gap:8px;flex-wrap:wrap}.breadcrumb a{color:var(--brand);text-decoration:none}.breadcrumb a:hover{text-decoration:underline}.breadcrumb .sep{color:#98a2b3}.breadcrumb span:last-child{font-weight:600;color:var(--txt)}

.breadcrumb a{color:#0b3a7e;font-weight:500}.breadcrumb a:hover{color:#062a5c;text-decoration:underline}.breadcrumb .sep{color:#475467}.project-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.project-actions .main-actions{display:inline-flex;gap:8px;flex-wrap:wrap}.project-actions .edit-project-btn{margin-left:34px}.project-description{margin:12px 0 18px}.project-description summary{cursor:pointer;font-weight:700;color:#344054;margin-bottom:10px}.project-description .markdown{margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}

.projects-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}.projects-heading h1{margin-bottom:4px}.projects-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:18px;align-items:start}.category-sidebar{padding:14px}.category-sidebar h2{font-size:18px;margin-bottom:10px}.category-filter{display:flex;justify-content:space-between;gap:12px;padding:9px 10px;border-radius:8px;color:#0b3a7e;text-decoration:none;margin-bottom:4px}.category-filter:hover{background:#eef4ff}.category-filter.active{background:#dbe7ff;color:#062a5c;font-weight:700}.category-filter small{color:var(--muted)}.pill-link{text-decoration:none;color:#0b3a7e}.inline-fields{display:flex;align-items:center;gap:10px}.inline-fields input{margin:0;min-width:180px}.category-create-form{max-width:620px}.category-edit-form{max-width:520px}.link-danger:disabled{opacity:.45;cursor:not-allowed;text-decoration:none}@media(max-width:760px){.projects-layout{grid-template-columns:1fr}.category-sidebar{display:flex;flex-wrap:wrap;gap:5px}.category-sidebar h2{width:100%}.category-filter{margin:0}.inline-fields{align-items:stretch;flex-direction:column}.inline-fields input{min-width:0}}

/* Project filters, v0.4.1 */
.projects-layout{grid-template-columns:250px minmax(0,1fr)}
.project-filter-sidebar{padding:12px;position:sticky;top:18px}
.filter-section+.filter-section{border-top:1px solid var(--line);margin-top:14px;padding-top:14px}
.filter-section h2{font-size:17px;margin:2px 8px 9px;color:#344054}
.category-filter{align-items:center;min-height:40px;margin:2px 0;padding:9px 10px;border:1px solid transparent}
.category-filter:hover{border-color:#c7d7fe;background:#eef4ff;text-decoration:none}
.category-filter.active{border-color:#b7ccff;background:#dbe7ff;box-shadow:inset 3px 0 0 var(--brand)}
.category-filter small{min-width:28px;padding:2px 7px;border-radius:999px;background:#eef2f7;text-align:center;font-size:12px}
.category-filter.active small{background:#fff;color:#0b3a7e}
.filter-label{display:flex;align-items:center;gap:8px;min-width:0}
.filter-icon{display:inline-flex;width:17px;justify-content:center;color:#475467;font-size:12px}
.status-dot{width:9px;height:9px;border-radius:50%;background:#98a2b3;display:inline-block;flex:0 0 auto}
.status-entwicklung{background:#d92d20}.status-test{background:#f79009}.status-produktiv{background:#12b76a}.status-archiv{background:#667085}.status-all{background:#2e5aac}
.clear-filters{display:block;margin:15px 8px 4px;padding-top:12px;border-top:1px solid var(--line);color:#0b3a7e;text-decoration:none;font-size:13px;font-weight:600}
.clear-filters:hover{text-decoration:underline}
@media(max-width:760px){.project-filter-sidebar{position:static;display:block}.filter-section{display:flex;flex-wrap:wrap;gap:5px}.filter-section+.filter-section{margin-top:12px;padding-top:12px}.filter-section h2{width:100%}.category-filter{margin:0}.clear-filters{margin-top:12px}}


/* Project overview filters, v1.0.0 */
.projects-heading{padding:24px 26px}
.projects-heading .muted{margin:7px 0 0}
.projects-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:20px;align-items:start}
.project-filter-sidebar{padding:0;overflow:hidden;position:sticky;top:18px}
.filter-section{padding:16px}
.filter-section+.filter-section{border-top:1px solid var(--line);margin:0;padding-top:16px}
.filter-section h2{font-size:15px;letter-spacing:.02em;text-transform:uppercase;margin:0 0 10px;color:#475467}
.category-filter{display:flex!important;align-items:center;justify-content:space-between;gap:12px;min-height:42px;margin:3px 0;padding:9px 10px;border:1px solid transparent;border-radius:9px;color:#0b3a7e;text-decoration:none;line-height:1.25}
.category-filter:hover{border-color:#c7d7fe;background:#eef4ff;text-decoration:none}
.category-filter.active{border-color:#b7ccff;background:#dbe7ff;color:#062a5c;font-weight:700;box-shadow:inset 3px 0 0 var(--brand)}
.filter-label{display:flex;align-items:center;gap:9px;min-width:0;overflow-wrap:anywhere}
.filter-icon{display:inline-flex;width:18px;height:18px;align-items:center;justify-content:center;color:#475467;font-size:12px;flex:0 0 auto}
.category-filter small{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:24px;padding:0 8px;border-radius:999px;background:#eef2f7;color:#475467;text-align:center;font-size:12px;font-weight:700;flex:0 0 auto}
.category-filter.active small{background:#fff;color:#0b3a7e}
.status-dot{width:10px;height:10px;border-radius:50%;background:#98a2b3;display:inline-block;flex:0 0 auto;box-shadow:0 0 0 3px rgba(152,162,179,.14)}
.status-entwicklung{background:#d92d20}.status-test{background:#f79009}.status-produktiv{background:#12b76a}.status-archiv{background:#667085}.status-all{background:#2e5aac}
.clear-filters{display:block;margin:0;padding:13px 16px;border-top:1px solid var(--line);background:#fafbfc;color:#0b3a7e;text-decoration:none;font-size:13px;font-weight:700}
.clear-filters:hover{background:#f2f4f7;text-decoration:none}
.projects-layout>section{min-width:0}
.projects-layout table{box-shadow:0 1px 2px rgba(16,24,40,.04);border:1px solid var(--line)}
.projects-layout th{background:#f8fafc;color:#344054;font-size:13px;text-transform:uppercase;letter-spacing:.02em}
.projects-layout tbody tr:hover td{background:#fafcff}
@media(max-width:900px){.projects-layout{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:760px){.projects-layout{grid-template-columns:1fr}.project-filter-sidebar{position:static}.filter-section{display:block}.filter-section+.filter-section{margin:0;padding-top:16px}.filter-section h2{width:auto}.category-filter{margin:3px 0}.clear-filters{margin:0}}
.category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin:20px 0}.category-tile{display:flex;flex-direction:column;gap:10px;text-decoration:none;border-left:4px solid #38bdf8;min-height:82px}.category-tile span{font-size:.9rem;opacity:.7}.password-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.password-row input{flex:1;min-width:220px;margin:0}.password-row button{white-space:nowrap}#element-password{font-family:monospace;font-size:1.1rem}.category-tile:hover{outline:1px solid #38bdf8}
