:root{font-family:Segoe UI,system-ui,sans-serif;color:var(--theme-text);background:var(--theme-page);font-size:14px;--blue:var(--theme-accent);--border:var(--theme-line);--muted:var(--theme-muted)}*{box-sizing:border-box}body{margin:0}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button{border:1px solid var(--blue);background:var(--blue);color:var(--theme-on-accent);border-radius:6px;padding:9px 15px;cursor:pointer;font-weight:600}button:hover{filter:brightness(.94)}button.secondary{background:var(--theme-surface);color:var(--theme-secondary);border-color:var(--theme-input-line)}.topbar{height:62px;background:var(--theme-header);color:var(--theme-on-accent);display:flex;align-items:center;gap:24px;padding:0 26px}.brand{display:flex;align-items:center;gap:16px;color:var(--theme-on-accent);font-weight:700;font-size:24px}.brand span{font-size:18px;letter-spacing:.1px}.brand small{font-weight:400;opacity:.7}.environment{font-size:10px;letter-spacing:1px;border:1px solid #7696b3;border-radius:4px;padding:4px 7px;color:#d6e6f6}.top-user{margin-left:auto;font-size:13px}.shell{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:calc(100vh - 62px)}.sidebar{background:var(--theme-surface);border-right:1px solid var(--border);padding:22px 14px;display:flex;flex-direction:column;gap:3px}.workspace-label{font-size:10px;font-weight:700;letter-spacing:1.4px;color:var(--theme-subtle);margin:10px 12px 12px}nav{margin-bottom:22px}nav a{display:flex;align-items:center;gap:12px;padding:11px 13px;margin:2px 0;color:var(--theme-secondary);border-radius:6px;font-weight:500}nav a.current{color:var(--theme-accent-strong);background:var(--theme-selected);font-weight:650;box-shadow:inset 3px 0 var(--theme-accent)}.nav-icon{width:20px;font-size:19px}.journal-nav{padding:10px 12px;color:var(--theme-secondary);display:flex;gap:9px;align-items:center;font-size:12px}.journal-nav small{margin-left:auto;color:var(--theme-subtle);font-size:10px}.dot{width:7px;height:7px;background:var(--theme-accent);border-radius:50%;flex-shrink:0}.identity{margin:38px 10px 10px;padding-top:18px;border-top:1px solid var(--border)}.identity label{font-size:11px}.identity button{margin-top:8px;width:100%;font-size:12px}.identity p{font-size:11px;line-height:1.6;color:var(--muted)}main{padding:32px clamp(18px,3vw,48px);max-width:1800px;width:100%;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px;gap:16px}.eyebrow{color:var(--theme-subtle);font-size:10px;font-weight:650;letter-spacing:1.2px;text-transform:uppercase}h1{font-size:29px;font-weight:650;margin:7px 0}h2{font-size:20px;font-weight:650}h3{font-size:14px;font-weight:650}p{line-height:1.65}.page-heading p{color:var(--muted);margin:4px 0 0;font-size:13px}.panel{border:1px solid var(--border);border-radius:10px;background:var(--theme-surface);box-shadow:0 2px 4px #20385503;margin-bottom:22px;overflow:hidden}summary{padding:18px 22px;cursor:pointer;font-weight:650;color:var(--theme-heading)}summary small{font-weight:400;color:var(--theme-subtle);font-size:11px;margin-left:12px}details[open]>summary{border-bottom:1px solid var(--border)}.filters summary{font-size:12px;padding:13px 20px}.filter-grid{display:flex;flex-wrap:wrap;gap:14px;padding:17px 20px;align-items:end}.filter-grid label{flex:1;min-width:140px}.filter-grid .search{flex:2;min-width:210px}label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--theme-muted);font-weight:600}input,select,textarea{width:100%;border:1px solid var(--theme-input-line);border-radius:5px;padding:9px 10px;background:var(--theme-surface);color:var(--theme-text);min-width:0;font-size:12px}textarea{resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid var(--theme-focus);outline-offset:1px}.filter-actions{display:flex;align-items:center;gap:12px;font-size:11px}.filter-actions button{font-size:12px}.dashboard-section{margin-bottom:24px}.dashboard-section>summary{padding:0 0 14px;border:0!important;font-size:13px}.tiles{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}.tile{background:var(--theme-surface);border:1px solid var(--border);border-top:3px solid var(--theme-decorative);border-radius:8px;padding:16px 18px;color:var(--theme-secondary);display:flex;flex-direction:column;gap:8px}.tile:hover{text-decoration:none;box-shadow:0 3px 10px #20385512}.tile strong{font-size:30px;line-height:1.3;color:var(--theme-heading);font-weight:600}.tile span{font-size:12px;font-weight:600}.tile small{font-size:10px;color:var(--theme-subtle)}.tile.active{border-top-color:var(--theme-accent)}.tile.waiting{border-top-color:#d9a342}.tile.done{border-top-color:#46a58c}.tile.open{border-top-color:#8198b1}.tile.chosen{outline:2px solid var(--theme-accent)}.split{display:grid;grid-template-columns:minmax(250px,1fr) minmax(280px,1.08fr);min-height:430px}.entry-list{border-right:1px solid var(--border)}.entry-row{display:block;padding:19px 22px;border-bottom:1px solid var(--border);color:inherit}.entry-row:hover,.entry-row.selected{background:var(--theme-selected);text-decoration:none}.entry-row.selected{box-shadow:inset 3px 0 var(--theme-accent)}.entry-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:var(--theme-muted)}.entry-row h3{margin:12px 0 5px;font-size:14px;color:var(--theme-heading)}.entry-row p{font-size:12px;color:var(--theme-subtle);margin:0 0 14px}.badge{font-size:10px;white-space:nowrap;padding:4px 8px;border-radius:4px;background:var(--theme-track);color:var(--theme-secondary);display:inline-block}.badge.active{background:var(--theme-info-bg);color:var(--theme-info-text)}.badge.waiting{background:var(--theme-warning-bg);color:var(--theme-warning-text)}.badge.done{background:var(--theme-success-bg);color:var(--theme-success-text)}.badge.cancelled{background:var(--theme-cancelled-bg);color:var(--theme-cancelled-text)}.entry-footer{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:var(--theme-subtle)}progress{width:100%;height:4px;border:0;border-radius:9px;background:var(--theme-track);accent-color:var(--theme-accent);margin-top:12px}progress::-webkit-progress-bar{background:var(--theme-track);border-radius:9px}progress::-webkit-progress-value{background:var(--theme-accent);border-radius:9px}.preview{padding:28px}.preview h2{line-height:1.5;margin-top:10px}.body-text{font-size:13px;color:var(--theme-muted);white-space:normal;overflow-wrap:anywhere}.context-box{border-left:3px solid var(--theme-focus);background:var(--theme-soft);padding:12px 16px;margin:20px 0;font-size:12px}.context-box p{margin-bottom:0;color:var(--theme-muted)}.task-card{padding:14px 0;border-bottom:1px solid var(--border);font-size:12px}.task-card p{font-size:11px;color:var(--theme-muted)}.inline-form{display:flex;gap:8px;max-width:300px}.inline-form button{font-size:11px;padding:6px 10px}.preview-actions{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}.empty-state{display:flex;min-height:320px;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:30px;color:var(--theme-subtle)}.empty-state h2,.empty-state h3{color:var(--theme-secondary)}.empty-state p{font-size:12px}.preview-icon{font-size:40px;font-weight:200;color:var(--theme-decorative)}.notice{padding:14px 18px;border-radius:6px;background:var(--theme-success-bg);color:var(--theme-success-text);margin-bottom:20px}.notice.error{background:var(--theme-error-bg);color:var(--theme-error-text)}.section-title{display:flex;justify-content:space-between;align-items:center;padding:8px 22px}.section-title span{color:var(--theme-subtle);font-size:12px}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}th{font-size:10px;text-transform:uppercase;letter-spacing:.6px;background:var(--theme-soft);color:var(--theme-subtle)}th,td{padding:16px 20px;border-bottom:1px solid var(--border)}td small{display:block;color:var(--theme-subtle);margin-top:6px}.overdue{color:var(--theme-error-text)}.report{padding:10px 26px 26px}.report p,.placeholder p{font-size:13px;color:var(--theme-muted)}.report-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:25px 0}.report-numbers>div{display:flex;flex-direction:column;gap:8px;font-size:12px;color:var(--theme-muted)}.report-numbers strong{font-size:32px;color:var(--theme-heading)}.catalogs{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.placeholder{text-align:center;padding:55px 30px}.placeholder p{max-width:590px;margin:18px auto}.muted{color:var(--theme-subtle);font-size:12px}footer{font-size:10px;color:var(--theme-subtle);margin:30px 0 0}dialog{border:0;border-radius:12px;box-shadow:0 20px 80px #142c4540;width:540px;max-width:calc(100vw - 30px);padding:0}dialog::backdrop{background:#162e4b75}.dialog-form{display:flex;flex-direction:column;gap:17px;padding:26px;max-height:90vh;overflow:auto}.dialog-heading{display:flex;justify-content:space-between;align-items:center}.dialog-heading h2{margin:0}.icon-button{background:transparent;color:var(--theme-subtle);border:0;font-size:25px;padding:0 5px}.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}fieldset{border:1px solid var(--border);border-radius:6px;padding:16px}fieldset label{margin-bottom:12px}fieldset small{font-size:11px;color:var(--theme-subtle)}legend{font-size:12px;color:var(--theme-muted)}[hidden]{display:none!important}:focus-visible{outline:2px solid var(--theme-focus);outline-offset:3px}summary:focus-visible,a:focus-visible{border-radius:4px}@media(min-width:1500px){.entry-row{padding:22px 26px}.preview{padding:34px}}@media(max-width:1100px){.shell{grid-template-columns:200px minmax(0,1fr)}.tiles{gap:8px}.tile{padding:13px 12px}.split{grid-template-columns:1fr}.entry-list{border-right:0;border-bottom:1px solid var(--border)}.preview .empty-state{min-height:200px}.catalogs{grid-template-columns:1fr 1fr}.journal-nav{font-size:11px}.topbar{padding:0 20px}}@media(max-width:700px){.shell{grid-template-columns:1fr}.sidebar{padding:8px 12px;border-right:0;border-bottom:1px solid var(--border)}.sidebar>.workspace-label,.journal-nav{display:none}nav{display:flex;overflow:auto;margin:0;gap:4px}nav a{white-space:nowrap;padding:9px;font-size:11px;gap:6px}.nav-icon{font-size:15px;width:15px}.identity{margin:7px 0 0;padding:8px 0 0;display:flex;align-items:center;gap:8px}.identity p,.identity label{display:none}.identity select{max-width:180px}.identity button{width:auto;margin:0;font-size:11px}.topbar{height:55px;gap:12px;padding:0 16px}.brand{font-size:20px;gap:10px}.brand span{font-size:14px}.environment{font-size:8px}.top-user{display:none}main{padding:24px 15px}.page-heading{align-items:flex-start}h1{font-size:25px}.page-heading p{font-size:12px}.page-heading button{font-size:11px;padding:9px;white-space:nowrap}.tiles{grid-template-columns:repeat(2,1fr)}.tile{gap:4px}.tile strong{font-size:25px}summary small{display:block;margin:5px 0 0}.filter-grid label{min-width:120px}.filter-grid .search{min-width:100%;}.report-numbers{grid-template-columns:1fr}.catalogs{grid-template-columns:1fr 1fr}.preview{padding:22px}.form-pair{grid-template-columns:1fr}.entry-meta{flex-wrap:wrap}}


.task-edit-button{margin-top:10px;font-size:11px;padding:6px 10px}
.task-toolbar,.task-list-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.task-toolbar .task-actions{max-width:100%;margin:0}.duplicate-form{margin:0}.task-toolbar .duplicate-form button,.task-list-actions button{font-size:11px;padding:4px 8px;min-height:29px}.task-list-actions{min-width:110px}.preview-actions .duplicate-form{display:flex}
/* Lange Namen und Notizen duerfen die Spaltenbreite nicht vergroessern. */
main{min-width:0;margin:0 auto;align-self:start}.split>*{min-width:0}.entry-row,.task-card,.context-box,.notice,.catalog-table td,.journal-nav,.user-display-name{overflow-wrap:anywhere}.journal-nav small{flex-shrink:0}.dialog-heading h2{overflow-wrap:anywhere;min-width:0}.dialog-heading .icon-button{flex-shrink:0}.top-user{min-width:0}.user-display-name{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.catalog-toolbar{flex-wrap:wrap}.report-numbers>div{min-width:0}

.admin-tabs{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 18px}.admin-tabs a{padding:10px 14px;margin:0;font-size:12px}.admin-panel{padding:20px 24px}.admin-record{border:1px solid var(--border);border-radius:7px;margin:14px 0;overflow:hidden}.admin-record>summary{padding:14px 16px}.admin-record>p,.admin-record>h3{margin-left:16px}.admin-form{display:flex;align-items:end;flex-wrap:wrap;gap:14px;padding:16px 0}.admin-record>.admin-form{padding:16px}.admin-form label{flex:1;min-width:155px;max-width:380px}.admin-form button{font-size:12px}.admin-create{background:var(--theme-soft);border-top:1px solid var(--border)}.admin-members{padding:0 16px;list-style:none}.admin-members li{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:9px 0;border-bottom:1px solid var(--border);font-size:12px}.admin-members button{font-size:11px}.appearance{padding:0 10px;margin-top:10px}.appearance summary{padding:12px 0;font-size:12px}.appearance label{margin-top:10px}.font-preview{font-size:13px;line-height:1.8;color:var(--theme-secondary)}.handwriting-sample{font-family:'Segoe Print','Bradley Hand','Comic Sans MS',cursive;font-size:15px;line-height:1.9;color:var(--theme-heading);border-top:1px solid var(--border);padding-top:12px}.task-card[data-edit-target]:not([data-edit-target='']),tr[data-edit-target]:not([data-edit-target='']){cursor:pointer}html[data-font='arial']{font-family:Arial,sans-serif}html[data-font='verdana']{font-family:Verdana,sans-serif}html[data-font='georgia']{font-family:Georgia,serif}html[data-font='consolas']{font-family:Consolas,'Courier New',monospace}html[data-font='handwriting']{font-family:'Segoe Print','Bradley Hand','Comic Sans MS',cursive}@media(max-width:700px){.appearance{margin:0;padding:0 2px}.appearance summary{padding:8px 0}.admin-panel{padding:15px}.admin-form label{max-width:none;min-width:140px}.admin-tabs a{padding:8px 9px;font-size:11px}}
[data-task-id]{cursor:pointer}[data-task-id].is-selected{background:var(--theme-selected);box-shadow:inset 3px 0 var(--theme-accent)}.task-card.is-selected{padding-left:12px;padding-right:12px;border-radius:5px}[data-task-id]:focus-visible{outline:2px solid var(--theme-focus);outline-offset:-2px}
.tile.all{border-top-color:var(--theme-accent)}@media(min-width:701px) and (max-width:1100px){.tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}

.task-actions{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;max-width:100%;margin-top:2px}.task-actions select{flex:0 1 132px;width:132px;max-width:100%;min-height:29px;padding:4px 7px;font-size:11px}.task-actions button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:29px;padding:4px 8px;font-size:11px;font-weight:500;white-space:nowrap}.task-actions .task-edit-button{margin-top:0}.task-actions .task-status-save{width:29px;padding:5px}.task-actions svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.task-actions .task-status-save:hover{color:var(--theme-success-text);background:var(--theme-success-bg)}
.task-card .task-description,.task-description{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.65;color:var(--theme-text);margin:8px 0}.task-description-short{max-width:520px;color:var(--theme-muted)}

.schedule-options{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:10px 20px}.schedule-options legend{padding:0 0 8px;font-size:11px;font-weight:600;color:var(--theme-muted)}.schedule-options label{display:inline-flex;flex-direction:row;align-items:center;gap:6px;margin:0;color:var(--theme-text);font-size:12px;font-weight:400;cursor:pointer}.schedule-options input[type='radio']{width:14px;height:14px;padding:0;margin:0;accent-color:var(--theme-accent);flex-shrink:0}.week-calendar summary{padding:4px 0 9px;font-size:11px;font-weight:400;color:var(--theme-secondary)}.week-calendar[open]>summary{border:0}.week-calendar label{margin-bottom:0}
.preview-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:10px}.preview-heading h2{margin:0 0 14px;min-width:0;overflow-wrap:anywhere}.preview-heading button{font-size:11px;padding:6px 10px;flex-shrink:0;margin-bottom:14px}
.preview-heading{display:block}.preview-heading h2{max-width:100%}.preview-entry-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 14px}.preview-entry-actions button{font-size:11px;padding:6px 10px;max-width:100%;white-space:normal}.preview-entry-actions form{max-width:100%}.preview-access{margin:0 0 14px}
.catalog-table .catalog-actions{width:1%;white-space:nowrap}.catalog-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.catalog-row-actions form{margin:0}.catalog-row-actions button{white-space:nowrap}

.preview-theme{padding:18px 20px;background:var(--theme-soft);border:1px solid var(--theme-line);border-left:4px solid var(--theme-accent);border-radius:8px}.preview-theme .eyebrow{color:var(--theme-secondary)}.preview-theme .preview-heading h2{font-size:20px;margin-bottom:10px}.preview-theme .context-box{background:var(--theme-surface);margin:16px 0;border-radius:0 5px 5px 0}.preview-theme .preview-entry-actions{padding:0 0 12px;border-top:0;border-bottom:1px solid var(--theme-line);margin:2px 0 14px}.preview-entry-actions form{margin:0}.preview-tasks{border-top:1px solid var(--theme-line);padding-top:22px;margin-top:24px}.preview-tasks-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:15px}.preview-tasks-heading h3{display:flex;align-items:center;gap:8px;font-size:16px;margin:0}.preview-tasks-heading p{font-size:11px;color:var(--theme-muted);margin:4px 0 0}.preview-tasks-heading button{font-size:12px;padding:7px 10px}.task-count{background:var(--theme-track);color:var(--theme-secondary);border-radius:12px;min-width:24px;padding:2px 7px;text-align:center;font-size:11px}.preview-task-list{display:grid;gap:12px}.preview-tasks .task-card{background:var(--theme-surface);border:1px solid var(--theme-line);border-left:3px solid var(--theme-decorative);border-radius:7px;padding:14px 16px}.preview-tasks .task-card.is-selected{background:var(--theme-selected);border-color:var(--theme-accent);box-shadow:none}.task-kind{font-size:10px;color:var(--theme-muted);font-weight:600}.task-card-heading h4{font-size:14px;line-height:1.5;color:var(--theme-heading);margin:4px 0 10px;overflow-wrap:anywhere}.task-meta{display:flex;flex-wrap:wrap;gap:10px 22px;margin:10px 0 14px}.task-meta>div{min-width:0;max-width:100%}.task-meta dt{font-size:10px;color:var(--theme-muted);margin-bottom:3px}.task-meta dd{font-size:11px;color:var(--theme-text);margin:0;overflow-wrap:anywhere}.tasks-empty{padding:18px;margin:0;border:1px dashed var(--theme-input-line);border-radius:7px;color:var(--theme-muted);font-size:12px}@media(max-width:700px){.preview-theme{padding:16px}.preview-tasks .task-card{padding:12px}.preview-theme .preview-heading h2{font-size:18px}.task-meta{gap:10px 18px}}

.preview{overflow-anchor:none;position:relative}.preview[aria-busy='true']{cursor:progress}.preview[aria-busy='true']::before{content:'';position:absolute;top:0;left:0;right:0;height:2px;background:var(--theme-accent);opacity:0;animation:preview-loading .15s ease .12s forwards;pointer-events:none}@keyframes preview-loading{to{opacity:1}}@media(prefers-reduced-motion:reduce){.preview[aria-busy='true']::before{animation:none;opacity:1}}.entry-list{overflow-anchor:none}

/* Nur die Vorschau haftet im Sichtbereich; die lange Themenliste scrollt mit der Seite. */
@media(min-width:1101px){
 .topics-panel{overflow:visible}
 .topics-panel>summary{border-radius:10px 10px 0 0}
 .topics-panel .preview{position:sticky;top:16px;align-self:start;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;background:var(--theme-surface);border-radius:0 0 10px 0}
 .topics-panel .entry-row:last-child{border-radius:0 0 0 10px}
}
.top-user{display:flex;align-items:center;gap:9px}.user-avatar{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#ffffff20;border:1px solid #ffffff55;color:var(--theme-header-text);font-family:Segoe UI,system-ui,sans-serif;font-size:11px;font-weight:700;letter-spacing:.4px;flex-shrink:0}[data-filter-results][aria-busy='true']{opacity:.65;transition:opacity .12s}[data-filter-results]{overflow-anchor:none}button:disabled{opacity:.55;cursor:wait}@media(max-width:700px){.top-user{display:flex}.user-display-name{display:none}}@media(max-width:420px){.environment{display:none}}
.catalog-panel{padding:0;overflow:hidden}.catalog-intro{padding:22px 24px 12px}.catalog-intro h2{margin:0 0 6px}.catalog-intro p{margin:0;font-size:12px;color:var(--theme-muted)}.catalog-nav{display:flex;flex-wrap:wrap;gap:4px;padding:0 16px 14px;margin:0;border-bottom:1px solid var(--theme-line)}.catalog-nav a{display:flex;align-items:center;gap:9px;font-size:12px;padding:9px 12px;margin:0}.catalog-nav span{font-size:10px;background:var(--theme-track);padding:1px 6px;border-radius:10px;color:var(--theme-secondary)}.catalog-toolbar{padding:18px 24px;display:flex;justify-content:space-between;align-items:center;gap:15px}.catalog-toolbar h3{margin:0;font-size:16px}.catalog-toolbar small{font-size:11px;color:var(--theme-muted);font-weight:400;margin-left:9px}.catalog-toolbar button{font-size:12px;padding:8px 12px}.catalog-table th{padding:11px 24px}.catalog-table td{padding:11px 24px}.catalog-table td strong{font-weight:500}.catalog-table .catalog-actions{width:120px;text-align:right}.catalog-table button{padding:5px 10px;font-size:11px}.catalog-table tr:last-child td{border-bottom:0}.catalog-note{padding:12px 24px;border-top:1px solid var(--theme-line);font-size:11px;color:var(--theme-muted);margin:0}@media(max-width:700px){.catalog-intro,.catalog-toolbar{padding:16px}.catalog-nav{padding:0 8px 12px}.catalog-nav a{padding:8px;font-size:11px}.catalog-table td,.catalog-table th{padding:10px 16px}.catalog-toolbar small{display:block;margin:5px 0 0}}

.entry-dialog{width:640px}.entry-dialog-form{gap:12px;padding:22px}.entry-dialog-form>.muted{margin:0;font-size:11px}.entry-dialog-form textarea[name='body']{min-height:165px}.entry-classification{align-items:start}.entry-classification fieldset{border:0;padding:0;margin:0;min-width:0}.entry-classification fieldset label{margin-bottom:0}.entry-classification small{display:block;margin-top:6px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:700px){.entry-dialog-form{padding:18px;gap:10px}}

/* Schmale App-Kopfzeile, mit den vier bestehenden Farbthemen. */
.topbar{height:50px;padding:0 22px;gap:18px;border-bottom:1px solid var(--theme-line)}.brand{gap:9px;font-size:14px;font-weight:600;white-space:nowrap}.brand .brand-mark{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid #ffffff35;border-radius:7px;background:#ffffff0b}.brand-mark svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.5;fill:none;stroke-linecap:round;stroke-linejoin:round}.brand .brand-name{font-size:14px;letter-spacing:.15px}.brand .brand-version{font-size:10px;opacity:.75;border:1px solid #ffffff30;border-radius:4px;padding:2px 5px;font-weight:500}.environment{display:inline-flex;align-items:center;gap:6px;font-size:10px;letter-spacing:.15px;border:0;padding:0;color:var(--theme-header-text);opacity:.8}.environment-dot{width:5px;height:5px;background:currentColor;border-radius:50%;opacity:.7}.header-date{margin-left:auto;display:flex;gap:10px;align-items:center;color:var(--theme-header-text);opacity:.75;font-size:11px}.header-date>span{padding-left:10px;border-left:1px solid #ffffff35}.top-user{margin-left:0;gap:8px;font-size:12px}.user-avatar{width:28px;height:28px;font-size:10px}.profile-button{display:flex;align-items:center;gap:8px;border:0;background:transparent;color:var(--theme-header-text);padding:3px;border-radius:6px;font-size:12px}.shell{min-height:calc(100vh - 50px)}main{padding-top:22px}.page-heading{margin-bottom:20px}.page-heading h1{font-size:26px;margin:0 0 5px}.page-heading p{font-size:12px}.page-heading>button{font-size:12px;padding:8px 13px}.account-actions{display:flex;gap:8px;flex-wrap:wrap;margin:20px 10px 10px;padding-top:15px;border-top:1px solid var(--theme-line)}.account-actions form{margin:0}.account-actions button{font-size:11px;padding:6px 10px}.task-dialog{width:840px}.task-dialog-form{gap:13px}.task-dialog-form textarea[name='body']{min-height:190px}.login-page{min-height:100vh;display:grid;place-items:center;background:var(--theme-page);padding:24px}.login-card{max-width:470px;padding:32px;border:1px solid var(--theme-line);border-radius:14px;background:var(--theme-surface);box-shadow:0 18px 60px #152d4710;margin:0}.login-card h1{font-size:26px}.login-card>p{font-size:13px;color:var(--theme-muted)}.login-form{display:grid;gap:15px;margin-top:24px}.login-form label{font-size:12px}.login-form input{font-size:14px;padding:11px}.login-form .muted{margin:0}.login-footer{padding-top:18px;margin-top:24px;border-top:1px solid var(--theme-line);font-size:11px!important}@media(max-width:700px){.topbar{height:48px;padding:0 14px;gap:10px}.environment,.header-date{display:none}.top-user{margin-left:auto}.brand .brand-name{font-size:13px}.brand .brand-version{font-size:9px}.page-heading h1{font-size:23px}.account-actions{margin:5px 0;padding:8px 0}.task-dialog-form{padding:18px}.login-card{padding:24px}}

.list-pane-heading{padding:13px 22px;border-bottom:1px solid var(--theme-line);background:var(--theme-soft);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:5px}.list-pane-heading strong,.preview-pane-label{font-size:10px;font-weight:650;letter-spacing:.8px;text-transform:uppercase;color:var(--theme-secondary)}.list-pane-heading span{font-size:10px;color:var(--theme-muted)}.preview-pane-label{margin-bottom:12px}.topics-panel .preview{background:var(--theme-page)}.preview-theme{background:var(--theme-selected);border-color:var(--theme-input-line);border-left-color:var(--theme-accent)}.preview-theme>.eyebrow{display:inline-block;background:var(--theme-info-bg);color:var(--theme-info-text);padding:3px 7px;border-radius:4px;font-size:9px;letter-spacing:.7px}.preview-tasks .task-card{background:var(--theme-task-surface);border-color:var(--theme-task-line);border-left-color:var(--theme-task-accent)}.preview-tasks .task-card.is-selected{background:var(--theme-task-selected);border-color:var(--theme-task-accent);box-shadow:inset 2px 0 var(--theme-task-accent)}.task-kind{display:inline-block;background:var(--theme-task-selected);color:var(--theme-task-accent);border-radius:4px;padding:2px 6px}.entry-row.selected{box-shadow:inset 4px 0 var(--theme-accent)}@media(max-width:1100px){.list-pane-heading span{display:none}.preview-pane-label{margin-top:2px}}

.resource-fields{display:grid;gap:12px;padding:14px;background:var(--theme-soft)}.resource-fields legend{font-weight:650}.resource-fields label{margin:0}.resource-fields small{line-height:1.6}.upload-field{padding:12px;border:1px dashed var(--theme-input-line);border-radius:6px;background:var(--theme-surface)}.upload-field input{padding:6px 0;border:0;font-size:12px}.resource-list{display:grid;gap:9px;margin:12px 0}.resource-link{font-size:12px;overflow-wrap:anywhere}.resource-image{margin:0;padding:8px;border:1px solid var(--theme-line);border-radius:7px;background:var(--theme-surface)}.resource-image img{display:block;max-width:100%;max-height:220px;margin:auto;object-fit:contain}.resource-image figcaption{font-size:10px;margin-top:6px;overflow-wrap:anywhere}.resource-file{display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px;padding:9px 11px;border:1px solid var(--theme-line);border-radius:6px;background:var(--theme-surface);font-size:12px}.resource-file>span{font-size:9px;font-weight:700;background:var(--theme-track);color:var(--theme-secondary);padding:3px 5px;border-radius:3px}.resource-file a{overflow-wrap:anywhere}.resource-file small{color:var(--theme-muted);font-size:10px}.print-link{display:inline-block;margin:0 0 12px;padding:4px 8px;border:1px solid var(--theme-input-line);border-radius:5px;font-size:11px;color:var(--theme-secondary)}.task-dialog{width:960px}button:disabled{cursor:not-allowed}

.entry-form-progress{padding:11px 13px;border:1px solid var(--theme-line);border-radius:6px;background:var(--theme-soft)}.entry-form-progress>div{display:flex;align-items:center;justify-content:space-between}.entry-form-progress strong{font-size:15px;color:var(--theme-heading)}.entry-form-progress progress{height:5px;margin:9px 0 5px}.entry-form-progress small{font-size:10px;color:var(--theme-muted)}

/* Detailkopf auf gleicher Hoehe wie die Themenauswahl; Inhalt bewusst dichter. */
.activity-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.activity-heading h2{margin-bottom:6px}.activity-heading form{display:flex;gap:8px;align-items:end}.activity-heading select{min-width:145px}.activity-heading button{font-size:11px}.activity-table th,.activity-table td{padding:12px 14px;vertical-align:top}.activity-table td:first-child{white-space:nowrap}.activity-table td:nth-child(4){min-width:240px;overflow-wrap:anywhere}
.mail-settings-form{display:grid;gap:14px;max-width:850px;margin-top:20px}.mail-connection-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-top:18px;margin-top:18px;border-top:1px solid var(--theme-line)}.mail-connection-actions form{margin:0}
.page-heading{flex-wrap:wrap}.page-heading>div:first-child{min-width:180px;flex:1}.page-heading>button{flex-shrink:0}
.nav-count{margin-left:auto;background:var(--theme-accent);color:var(--theme-on-accent);font-size:10px;padding:2px 7px;border-radius:12px;font-family:Segoe UI,system-ui,sans-serif}.entry-id{font-size:11px;color:var(--theme-muted);font-weight:500}
.inbox-intro{padding:0 24px}.inbox-message{border-top:1px solid var(--theme-line)}.inbox-message>summary{overflow-wrap:anywhere}.inbox-message>summary small{display:block;margin:6px 0 0}.inbox-message-content{padding:0 22px 20px}.inbox-body{max-height:360px;overflow:auto;overflow-wrap:anywhere;margin:12px 0}.mail-assignment-form{display:grid;gap:12px;max-width:700px;border-top:1px solid var(--theme-line);padding-top:16px;margin-top:16px}.mail-reject-form{margin-top:12px}.page-heading>.mail-compose-button{font-size:11px;max-width:170px;white-space:normal}
.journal-search-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
.page-heading>div:first-child{margin-right:auto}
[data-journal-task-results]>.list-pane-heading{background:var(--theme-task-surface)}
.search-results-pane{min-width:0}.search-results-pane .list-pane-heading h2{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;text-transform:none;letter-spacing:0}
.search-result{padding:16px 18px;border-bottom:1px solid var(--theme-line);border-left:3px solid var(--theme-accent);min-width:0}
.search-result:last-child{border-bottom:0}.search-task{background:var(--theme-task-surface);border-left-color:var(--theme-task-accent)}
.search-task.is-selected{background:var(--theme-task-selected)}.search-result h3{font-size:14px;line-height:1.5;margin:9px 0 6px;overflow-wrap:anywhere}
.search-excerpt{font-size:12px;color:var(--theme-muted);margin:6px 0 12px;white-space:pre-line;overflow-wrap:anywhere}.search-parent{font-size:11px;color:var(--theme-muted);margin:0 0 8px;overflow-wrap:anywhere}
.search-result .task-meta{margin:10px 0}.search-result-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:10px}
.search-result-actions button{font-size:11px;padding:5px 9px}.search-result-actions form{margin:0}.search-result-actions>a{font-size:11px;margin-left:auto}
.search-result-details{margin-top:10px}.search-result-details>summary{padding:5px 0;font-size:11px;font-weight:500;border-bottom:0!important}.search-result-details .body-text{font-size:12px}
.search-empty{font-size:12px;color:var(--theme-muted);margin:0;padding:22px 18px}.journal-filter-hint{font-size:11px;color:var(--theme-muted);margin:0;padding:0 20px 14px}
@media(max-width:1000px){.journal-search-grid{grid-template-columns:minmax(0,1fr)}}
.catalog-toolbar-actions,.network-import-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.catalog-row-actions .status-usage{flex-basis:100%;font-size:10px;color:var(--theme-muted);white-space:nowrap}
.network-import-preview{padding:16px 24px;border-block:1px solid var(--theme-line);background:var(--theme-soft)}
.network-import-preview h3{margin:0}.import-preview-table{max-height:320px;margin:12px 0}.import-preview-table td{overflow-wrap:anywhere}.import-preview-table .badge{white-space:normal}.network-import-actions form{margin:0}
.resource-list{min-width:0;grid-template-columns:minmax(0,1fr)}
.resource-link{display:block;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.preview{padding:0}
.preview-pane-heading{position:sticky;top:0;z-index:1}
.preview-content{padding:16px 18px 20px;min-width:0}
.preview-theme{padding:14px 16px}
.preview-theme-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 10px}
.preview-theme-meta>.eyebrow{font-size:9px;letter-spacing:.7px;color:var(--theme-secondary)}
.preview-theme .preview-heading{margin-top:6px}
.preview-theme .preview-heading h2{font-size:18px;line-height:1.4;margin:0 0 10px}
.preview-theme .preview-entry-actions{gap:6px;margin:0;padding:0;border:0}
.preview-entry-actions button,.preview-entry-actions .print-link{font-size:11px;padding:5px 8px;min-height:29px;line-height:1.5}
.preview-entry-actions .print-link{margin:0;white-space:nowrap}
.preview-theme #archive-hint,.preview-theme .preview-access{font-size:11px;line-height:1.5;margin:9px 0 0}
.preview-theme .body-text{margin:10px 0 0;line-height:1.6}
.preview-theme .context-box{margin:12px 0 0;padding:9px 12px}
.preview-theme .context-box p{margin-top:5px}
.preview-theme>.task-meta{margin:10px 0 0}
.preview-tasks{padding-top:14px;margin-top:16px}
.preview-tasks-heading{gap:8px;margin-bottom:10px}
.preview-tasks-heading h3{font-size:14px}
.preview-tasks-heading button{font-size:11px;padding:6px 9px}
.preview-task-list{gap:9px}
.preview-tasks .task-card{padding:10px 12px}
.task-card-heading{display:flex;align-items:baseline;gap:7px}
.task-card-heading .task-kind{flex-shrink:0;font-size:9px}
.task-card-heading h4{margin:0;font-size:13px;min-width:0}
.preview-tasks .task-meta{gap:8px 18px;margin:8px 0 10px}
@media(max-width:700px){.preview-content{padding:12px}.preview-pane-heading{padding:12px 16px}.preview-theme{padding:12px}.preview-theme .preview-heading h2{font-size:17px}}

/* Compact status navigation for tasks; all configured statuses share one desktop row. */
:is(.task-status-tiles,.topic-status-tiles) .tiles{display:flex;flex-wrap:nowrap;gap:10px}
:is(.task-status-tiles,.topic-status-tiles) .tile{flex:1 1 0;min-width:0;padding:11px 12px;gap:4px}
:is(.task-status-tiles,.topic-status-tiles) .tile strong{font-size:25px;line-height:1.2}
:is(.task-status-tiles,.topic-status-tiles) .tile span,:is(.task-status-tiles,.topic-status-tiles) .tile small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:is(.task-status-tiles,.topic-status-tiles) .tile span{font-size:11px}
:is(.task-status-tiles,.topic-status-tiles) .tile small{font-size:9px}
@media(max-width:900px){:is(.task-status-tiles,.topic-status-tiles) .tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr))}}

/* Keep desktop navigation reachable while long lists scroll independently. */
.task-dialog-heading{gap:12px}
.dialog-heading-actions{display:flex;align-items:center;gap:14px;flex-shrink:0}
@media(min-width:701px){
 .sidebar{position:sticky;top:0;align-self:start;height:100vh;height:100dvh;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin}
 .sidebar>*{flex-shrink:0}
}

/* Task facts and compact actions share a row, wrapping when space is limited. */
.task-card-footer{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:10px 14px;margin-top:8px}
.preview-tasks .task-card-footer .task-meta{flex:1 1 auto;margin:0;gap:8px 16px}
.task-card-footer .task-toolbar{flex:0 0 auto;gap:4px}
.task-card-footer .task-actions{flex-wrap:nowrap;gap:4px}
.task-card-footer .task-actions select{flex:0 1 112px;width:112px;min-width:85px;min-height:30px}
.task-card-footer .compact-task-action,.task-card-footer .task-status-save{display:inline-flex;align-items:center;justify-content:center;width:30px;min-height:30px;padding:5px}
.task-card-footer .compact-task-action svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.task-card-footer .task-toolbar{flex-wrap:nowrap}
.task-card-footer .compact-task-action svg{flex-shrink:0}
.task-card-footer .task-toolbar .compact-task-action{flex:0 0 30px;min-width:30px;padding:5px}
@media(min-width:701px){
 .task-card-footer{display:grid;grid-template-columns:minmax(0,1fr) auto}
 .task-card-footer .task-meta{min-width:0}
}

/* Separate topic cards while retaining the existing topic and selection colours. */
.topics-panel .entry-list .entry-row{margin:10px 12px;padding:14px 16px;border:1px solid var(--theme-line);border-left:3px solid var(--theme-input-line);border-radius:7px}
.topics-panel .entry-list .entry-row.selected{border-color:var(--theme-input-line);border-left-color:var(--theme-accent)}
.topics-panel .entry-list .entry-row:last-child{border-radius:7px;margin-bottom:12px}

/* Search uses the same separated topic/task cards and compact actions as the overview. */
.search-results-pane .search-result{margin:10px 12px;padding:14px 16px;border:1px solid var(--theme-line);border-left:3px solid var(--theme-accent);border-radius:7px}
.search-results-pane .search-result:last-child{border-bottom:1px solid var(--theme-line);margin-bottom:12px}
.search-results-pane .search-task{border-color:var(--theme-task-line);border-left-color:var(--theme-task-accent)}
.search-result .task-card-footer .task-meta{margin:0;gap:8px 16px}
.search-result-actions .compact-task-action{display:inline-flex;align-items:center;justify-content:center;width:30px;min-height:30px;padding:5px;flex-shrink:0}
.search-result-actions .compact-task-action svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;flex-shrink:0}

/* Denser task search cards with a single expandable-detail/navigation footer. */
.search-results-pane .search-task{padding:10px 14px;margin:8px 10px}
.search-task .entry-meta{font-size:10px}
.search-task h3{margin:4px 0 2px;font-size:13px;line-height:1.4}
.search-task .search-parent{margin:0;font-size:10px;line-height:1.4}
.search-task .search-excerpt{margin:4px 0 6px;font-size:11px;line-height:1.45;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.search-task .task-card-footer{margin-top:6px;gap:6px 12px}
.search-task .task-meta dt{font-size:9px;margin-bottom:2px}
.search-task .task-meta dd{font-size:10px}
.search-task-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;margin-top:6px}
.search-task-bottom .search-result-details{margin:0;min-width:0}
.search-task-bottom .search-result-details>summary{padding:3px 0;font-size:10px}
.search-task-bottom>a{font-size:10px;padding:3px 0;white-space:nowrap}

/* Task calendar: day cards, ISO-week planning and a responsive monthly grid. */
.task-calendar{overflow:hidden}
.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:16px 18px 10px}
.calendar-navigation{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.calendar-navigation h2{margin:0 0 0 8px;font-size:18px}
.calendar-control{display:inline-flex;align-items:center;justify-content:center;min-height:32px;min-width:32px;padding:5px 10px;border:1px solid var(--theme-input-line);border-radius:6px;color:var(--theme-text);font-size:12px}
.calendar-control:hover{text-decoration:none;background:var(--theme-soft)}
.calendar-modes{display:flex;gap:3px;margin:0;background:var(--theme-page);padding:3px;border:1px solid var(--theme-line);border-radius:7px}
.calendar-modes a{padding:6px 10px;margin:0;font-size:11px;color:var(--theme-secondary)}
.calendar-modes a[aria-current]{background:var(--theme-selected);color:var(--theme-accent-strong)}
.calendar-hint{margin:0;padding:0 18px 12px;color:var(--theme-muted);font-size:11px}
.calendar-scroll{overflow-x:auto}
.calendar-grid{display:grid;gap:1px;background:var(--theme-line);border-block:1px solid var(--theme-line)}
.calendar-five{grid-template-columns:repeat(5,minmax(0,1fr));min-width:650px}
.calendar-seven{grid-template-columns:repeat(7,minmax(0,1fr));min-width:840px}
.calendar-weekday{padding:9px 10px;background:var(--theme-soft);color:var(--theme-secondary);font-size:11px;font-weight:650;text-transform:uppercase}
.calendar-day{min-width:0;padding:8px;background:var(--theme-surface)}
.calendar-week .calendar-day{min-height:380px}
.calendar-month .calendar-day{min-height:155px}
.calendar-day.is-outside{background:var(--theme-page)}
.calendar-day.is-weekend{background:var(--theme-page)}
.calendar-day.is-today{box-shadow:inset 0 0 0 2px var(--theme-accent);background:var(--theme-soft)}
.calendar-day-heading{display:flex;align-items:center;justify-content:space-between;gap:4px;margin:0 1px 7px;font-size:12px;font-weight:650;color:var(--theme-heading)}
.calendar-day-heading small{font-size:9px;font-weight:400;color:var(--theme-muted)}
.calendar-event{padding:6px 7px;margin-top:6px;border:1px solid var(--theme-task-line);border-left:3px solid var(--theme-task-accent);border-radius:5px;background:var(--theme-task-surface);color:var(--theme-text);overflow-wrap:anywhere}
.calendar-event.active{background:var(--theme-info-bg);color:var(--theme-info-text);border-left-color:var(--theme-accent)}
.calendar-event.waiting{border-left-color:var(--theme-warning-text)}
.calendar-event.done{background:var(--theme-success-bg);color:var(--theme-success-text)}
.calendar-event.cancelled{background:var(--theme-error-bg);color:var(--theme-error-text)}
.calendar-event.is-week-plan{border-top-style:dashed}
.calendar-week-label{display:block;font-size:9px;margin-bottom:3px;color:inherit}
.calendar-event .calendar-event-title{display:block;text-align:left;background:none;border:0;border-radius:0;padding:0;min-height:0;color:inherit;font-size:11px;font-weight:650;line-height:1.45;width:100%;white-space:normal;overflow-wrap:anywhere}
.calendar-event .calendar-event-title:hover{text-decoration:underline;filter:none}
.calendar-event-status{display:block;font-size:9px;line-height:1.5;margin-top:3px;opacity:.9}
.calendar-parent{display:block;color:inherit;font-size:9px;line-height:1.5;margin-top:4px;text-decoration:none}
.calendar-empty{font-size:12px;padding:8px 18px;color:var(--theme-muted)}
.calendar-unplanned>summary{padding:12px 18px;font-size:12px}
.calendar-unplanned-list{display:flex;flex-wrap:wrap;gap:7px;padding:0 18px 16px}
.calendar-unplanned-list button,.calendar-unplanned-list a{font-size:11px;padding:5px 9px}
@media(max-width:700px){.calendar-toolbar{padding:12px}.calendar-navigation h2{font-size:15px;margin:4px 0}.calendar-hint{padding:0 12px 10px}.calendar-modes{width:100%}.calendar-modes a{flex:1;justify-content:center}.calendar-week .calendar-day{min-height:280px}}

button.calendar-parent{display:block;text-align:left;background:none;border:0;border-radius:0;padding:0;min-height:0;color:inherit;font-size:9px;font-weight:400;line-height:1.5;margin-top:4px;text-decoration:none;white-space:normal;overflow-wrap:anywhere;width:100%}
button.calendar-parent:hover{filter:none}

.calendar-date-form{display:inline-flex;align-items:center;gap:4px;margin:0 4px}
.calendar-date-form input{width:142px;min-height:32px;padding:5px 7px;font-size:12px}
.calendar-date-form button{min-height:32px;padding:5px 8px;font-size:12px}

/* ISO-week tasks occupy one continuous lane across the complete visible week. */
.calendar-week-row{display:grid;grid-column:1/-1;gap:1px;min-width:0;background:var(--theme-line)}
.calendar-five .calendar-week-row{grid-template-columns:repeat(5,minmax(0,1fr))}
.calendar-seven .calendar-week-row{grid-template-columns:repeat(7,minmax(0,1fr))}
.calendar-day-label{padding:7px 8px 2px;min-width:0;background:var(--theme-surface)}
.calendar-day-label .calendar-day-heading{margin-bottom:2px}
.calendar-day-label.is-outside,.calendar-day-label.is-weekend{background:var(--theme-page)}
.calendar-day-label.is-today{background:var(--theme-soft);box-shadow:inset 0 2px var(--theme-accent)}
.calendar-week-row .calendar-week-span{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(0,1fr) auto minmax(100px,.7fr);align-items:center;gap:8px 14px;margin:4px 7px;padding:7px 10px;border-top-style:solid}
.calendar-week-span .calendar-week-label,.calendar-week-span .calendar-event-status,.calendar-week-span .calendar-parent{margin:0}
.calendar-week-span .calendar-event-title{width:auto;min-width:0}
.calendar-week-span .calendar-parent{width:auto;min-width:0}
.calendar-week-span .calendar-week-label{font-size:10px}
.calendar-month .calendar-day{min-height:115px}

/* A calendar-week plan covers the five business days, including in month/full-week views. */
.calendar-week-lane{display:grid;grid-column:1/-1;gap:1px;min-width:0}
.calendar-five .calendar-week-lane{grid-template-columns:repeat(5,minmax(0,1fr))}
.calendar-seven .calendar-week-lane{grid-template-columns:repeat(7,minmax(0,1fr))}
.calendar-week-lane .calendar-week-span{grid-column:1/span 5}
.calendar-weekend-space{grid-column:6/span 2;background:var(--theme-page)}
.task-schedule-row{display:grid;grid-template-columns:max-content minmax(190px,1fr);align-items:start;gap:12px 24px;margin:0 0 18px}.task-schedule-row .schedule-options{gap:10px 16px}.task-schedule-row .schedule-options label{min-height:42px}.task-schedule-row>[data-date-field]{margin:0}.task-schedule-row>[data-week-field]{border:0;padding:0;margin:0;min-width:0}.task-schedule-row>[data-week-field]>label{margin:0}.task-schedule-row .week-calendar{margin-top:6px}@media(max-width:600px){.task-schedule-row{grid-template-columns:minmax(0,1fr);gap:10px}.task-schedule-row .schedule-options label{min-height:32px}}
.calendar-status-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:0 18px 12px}.calendar-status-buttons>span{font-size:11px;color:var(--theme-muted);margin-right:3px}.calendar-status-buttons>a{display:inline-flex;align-items:center;gap:7px;background:var(--theme-surface);border:1px solid var(--theme-input-line);border-radius:5px;padding:6px 10px;color:var(--theme-text);font-size:12px;text-decoration:none}.calendar-status-buttons>a[aria-pressed='true']{background:var(--theme-selected);border-color:var(--theme-accent)}.calendar-status-buttons>a:hover{border-color:var(--theme-accent)}.calendar-status-buttons small{font-size:11px;color:var(--theme-muted)}.calendar-status-check{display:inline-block;width:12px;color:var(--theme-accent)}
.inbox-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.inbox-toolbar-actions form{margin:0}
.account-dialog .account-settings-form{padding-bottom:22px;margin-bottom:22px;border-bottom:1px solid var(--theme-line)}.account-dialog h3{margin:0 0 14px}.account-dialog form>button{width:100%}
.task-schedule-row>[data-date-field]{max-width:240px}.task-schedule-row>[data-week-field]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:520px}.task-schedule-row .week-calendar{margin:0}.task-schedule-row .week-calendar input{min-width:0}@media(max-width:600px){.task-schedule-row>[data-week-field]{max-width:none}.task-schedule-row>[data-date-field]{max-width:none}}@media(max-width:400px){.task-schedule-row>[data-week-field]{grid-template-columns:minmax(0,1fr)}}
.sidebar nav a:hover,.sidebar nav a:focus-visible{background:var(--theme-soft);text-decoration:none}.sidebar nav a.current:hover,.sidebar nav a.current:focus-visible{background:var(--theme-selected)}
.inbox-attachment-selection{margin:0;padding:12px;min-width:0}.inbox-editable-attachment{border-top:1px solid var(--theme-line);padding:12px 0}.inbox-attachment-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.inbox-attachment-controls>label:not(.inbox-attachment-choice){flex:1;min-width:180px;margin:0}.inbox-attachment-choice{display:flex;align-items:center;flex-direction:row;gap:7px;margin:0}.inbox-attachment-choice input{width:16px;height:16px;margin:0;accent-color:var(--theme-accent)}.inbox-editable-attachment:has(input[type='checkbox']:not(:checked)) .resource-list{display:none}.inbox-editable-attachment:has(input[type='checkbox']:not(:checked)) input[name^='file_name_']{opacity:.6}.inbox-editable-attachment .resource-image img{max-height:180px}.mail-assignment-form textarea{min-height:130px}
:is(.task-status-tiles,.topic-status-tiles) .tile{padding:9px 11px;gap:3px}:is(.task-status-tiles,.topic-status-tiles) .tile strong{font-size:23px}.task-planning-shortcuts{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 20px}.task-planning-link{display:inline-flex;align-items:center;gap:12px;padding:8px 12px;border:1px solid var(--theme-input-line);border-radius:6px;background:var(--theme-surface);color:var(--theme-text);font-size:12px}.task-planning-link strong{font-size:16px}.task-planning-link.overdue strong{color:var(--theme-error-text)}.task-planning-link:hover,.task-planning-link.chosen{background:var(--theme-selected);border-color:var(--theme-accent);text-decoration:none}.task-planning-reset{font-size:11px;padding:6px}
.factor-secret{display:block;overflow-wrap:anywhere;user-select:all;font-size:16px;letter-spacing:.05em}.recovery-codes{padding-left:20px;line-height:1.8;overflow-wrap:anywhere;user-select:all}.user-factor-settings{border-top:1px solid var(--theme-line);margin-top:16px;padding-top:4px}
