:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17233b;background:#f4f6fa;font-size:16px;line-height:1.55;--blue:#315eea;--border:#e0e5ef;--muted:#65738b}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,textarea,select{font:inherit}button{border:1px solid var(--border);border-radius:8px;padding:.65rem .95rem;background:white;color:#243450;cursor:pointer;font-weight:550;transition:background .15s}button:hover{background:#edf1fb}button:disabled{opacity:.55;cursor:wait}button.primary{background:var(--blue);color:white;border-color:var(--blue)}button.primary:hover{background:#254cce}input,textarea,select{border:1px solid #d6deeb;border-radius:7px;padding:.65rem .75rem;background:white;color:#17233b;width:100%}input:focus,textarea:focus,select:focus,button:focus-visible{outline:2px solid #6b8bf5;outline-offset:2px}label{display:block;color:#4b5970;font-size:.875rem;font-weight:600;margin:.8rem 0 .35rem}textarea{resize:vertical;line-height:1.7}h1,h2,h3,p{margin-top:0}h1{font-size:1.8rem;letter-spacing:-.04em;margin-bottom:0}h2{font-size:1.2rem;line-height:1.4;letter-spacing:-.025em}p{margin-bottom:1rem}.eyebrow{font-size:.875rem;font-weight:650;letter-spacing:.1em;color:var(--muted);margin-bottom:.5rem}.muted{color:var(--muted)}.mono{font-family:ui-monospace,SFMono-Regular,monospace;font-size:.875rem}.shell{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:100vh}.sidebar{background:#142139;color:#e3eaf8;padding:2rem 1.15rem;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:.65rem;text-decoration:none;color:white;margin-bottom:2.4rem;font-size:.875rem;letter-spacing:.05em;font-weight:700}.brand-symbol{display:grid;place-items:center;width:45px;height:45px;background:#315eea;border-radius:12px;letter-spacing:-.1em;font-size:1rem}.brand small{display:block;font-size:.75rem;letter-spacing:.08em;font-weight:400;color:#9daecb;margin-top:.25rem}.sidebar-label{color:#8e9fbd;letter-spacing:.09em}.sidebar select{background:#22314c;color:#fff;border-color:#374761;font-size:.94rem}.sidebar-secondary{background:transparent;color:#c3cee2;border-color:#374761;font-size:.875rem;margin-top:.6rem}.sidebar-secondary:hover{background:#22314c}.sidebar nav{display:grid;gap:.2rem;margin-top:1.8rem}.nav-item{border:0;text-align:left;background:transparent;color:#b9c7de;display:flex;justify-content:space-between;font-size:.94rem;padding:.65rem .8rem}.nav-item:hover{background:#22314c}.nav-item.active{color:#fff;background:#2c4168}.nav-item span{color:#95a9cd;font-size:.875rem}.sidebar-bottom{margin-top:auto;padding-top:1.5rem;font-size:.875rem}.sidebar-bottom small{display:block;color:#91a2bf;margin-top:.5rem;line-height:1.5}.sidebar-bottom button{width:100%}main{min-width:0}.topbar{height:114px;padding:1.7rem 2.4rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;background:#fff;border-bottom:1px solid var(--border)}.top-actions{display:flex;gap:.6rem}.top-actions button{font-size:.875rem}.content{max-width:1600px;margin:auto;padding:2rem 2.4rem}.overview{background:linear-gradient(115deg,#edf2ff,#f9fbff);border:1px solid #dae3fa;border-radius:14px;padding:1.8rem 2rem;display:flex;align-items:center;justify-content:space-between;margin-bottom:1.8rem;gap:2rem}.overview h2{font-size:1.65rem;line-height:1.35;margin-bottom:.6rem}.overview p:last-child{margin-bottom:0}.stats{display:flex;gap:2rem}.stats strong{font-size:2rem;font-weight:650;display:block;letter-spacing:-.06em}.stats span{font-size:.875rem;color:var(--muted);white-space:nowrap}.toolbar{display:flex;gap:.7rem;align-items:center;margin-bottom:1.2rem}.toolbar .search{flex:1}.toolbar select{width:auto}.writing-layout{display:grid;grid-template-columns:minmax(230px,31%) minmax(0,1fr);gap:1.2rem;align-items:start}.record-panel,.editor-panel{background:white;border:1px solid var(--border);border-radius:12px;overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:1.2rem 1.25rem;border-bottom:1px solid var(--border)}.panel-heading h2{font-size:1rem;margin:0}.count{font-size:.875rem;background:#edf1f8;padding:.15rem .5rem;border-radius:5px;color:#66748b}#record-list{max-height:900px;overflow-y:auto}.record-card{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #edf0f5;border-radius:0;padding:1.2rem 1.25rem;font-weight:400}.record-card.selected{background:#edf2ff;box-shadow:inset 3px 0 #315eea}.record-card h3{font-size:1rem;line-height:1.5;margin:.5rem 0}.record-card p{font-size:.875rem;color:#69758a;line-height:1.5;margin-bottom:.6rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.record-card small{color:#65738b;font-size:.875rem}.badge{display:inline-block;font-size:.875rem;padding:.1rem .5rem;border-radius:5px;background:#eef1f7;color:#62718a;font-weight:500}.badge[data-status="in_entwicklung"]{background:#e8efff;color:#3e63b9}.badge[data-status="gesetzt"]{background:#e6f4ed;color:#267b53}.badge[data-status="verworfen"]{background:#f8eaea;color:#a15555}.badge[data-status="zurueckgestellt"]{background:#fff3de;color:#8c681c}.editor-panel form{padding:1.6rem 1.7rem}.editor-top{display:flex;justify-content:space-between;gap:1rem;font-size:.875rem;color:#61708a;margin-bottom:1rem;flex-wrap:wrap}.title-input{font-size:1.6rem;font-weight:650;letter-spacing:-.04em;border:0;border-bottom:1px solid var(--border);border-radius:0;padding:.3rem 0 1rem;margin-bottom:.3rem}.metadata{display:flex;gap:.8rem}.metadata>div{flex:1;min-width:0}.metadata select{font-size:.94rem}.body-input{min-height:300px;font-family:ui-monospace,SFMono-Regular,monospace;font-size:1rem}.checkbox{display:flex;align-items:center;gap:.6rem;font-weight:400}.checkbox input{width:auto}.editor-footer{display:flex;align-items:center;gap:.8rem;border-top:1px solid var(--border);padding-top:1.2rem;margin-top:1.3rem}.editor-footer button{font-size:.94rem}.spacer{flex:1}.empty-state{text-align:center;padding:6rem 2rem;color:#61708a;min-height:480px}.empty-state h2{color:#33435e}.empty-mark{display:grid;place-items:center;width:65px;height:65px;background:#eef2fb;border-radius:16px;margin:0 auto 1.5rem;font-weight:650;color:#4e669b}.record-panel .empty-state{min-height:250px;padding:3rem 1rem}.notice{padding:.8rem 1rem;background:#e6f4ed;border:1px solid #badcc9;border-radius:8px;margin-bottom:1rem}.notice.error{background:#fff2e5;border-color:#ecd0ac;color:#805224}.warning{background:#fff6e8;border:1px solid #efd6ab;border-radius:8px;padding:1rem;margin-top:1rem}.warning p{margin-bottom:.8rem}.warning pre{max-height:200px;overflow:auto;white-space:pre-wrap}.page-footer{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:1.7rem;color:#5d6e87;font-size:.875rem}.page-footer button{font-size:.875rem;background:transparent}.login-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at 75% 20%,#e0e9ff,transparent 60%),#f3f5fa;padding:1.5rem}.login-card{width:min(440px,100%);background:white;border:1px solid #e0e5ef;border-radius:18px;padding:3rem;box-shadow:0 20px 70px #24355b0b}.login-card h1{font-size:2rem;line-height:1.2;margin-bottom:1rem}.login-card p{color:#65738b}.wordmark{display:grid;place-items:center;width:56px;height:56px;border-radius:14px;background:#315eea;color:white;font-weight:650;margin-bottom:2rem}.login-card button{width:100%;margin-top:1.1rem}.login-card #login-error{color:#a24536;font-size:.875rem;margin-top:1rem}dialog{border:1px solid #d9e1ef;border-radius:14px;padding:1.8rem;max-width:540px;width:calc(100% - 2rem);max-height:90vh;color:#243450;box-shadow:0 30px 100px #12203a33}dialog::backdrop{background:#13213980;backdrop-filter:blur(3px)}.large-dialog{max-width:1000px}.dialog-head{display:flex;align-items:start;justify-content:space-between;gap:1rem;margin-bottom:1.2rem}.dialog-head h2{font-size:1.5rem;margin-bottom:0}.dialog-head>button{padding:.1rem .6rem;font-size:1.4rem;border:0}.dialog-actions{display:flex;justify-content:flex-end;gap:.7rem;margin-top:1.2rem}#context-output,#import-input{font: .94rem/1.6 ui-monospace,SFMono-Regular,monospace;min-height:230px}.inline-fields{display:flex;gap:1rem;align-items:center;margin-bottom:1rem}.inline-fields label{flex:1;font-size:.875rem}.inline-fields .checkbox{flex:2}.context-refs{display:flex;flex-wrap:wrap;gap:.4rem 1rem;max-height:140px;overflow:auto}.context-refs label{font-weight:400;font-size:.94rem}.change-card,.history-card{border:1px solid var(--border);border-radius:8px;padding:1rem;margin-top:1rem}.comparison{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.comparison pre,.history-card pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;font-size:.875rem;background:#f4f6fa;padding:1rem;border-radius:6px}.history-card h3{margin-bottom:.2rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:1600px){.content{padding-top:2.5rem}}@media(max-width:1150px){.shell{grid-template-columns:205px minmax(0,1fr)}.content{padding:1.3rem}.topbar{padding:1.3rem}.overview{padding:1.5rem}.stats{gap:1rem}.overview h2{font-size:1.4rem}.writing-layout{grid-template-columns:250px minmax(0,1fr)}.metadata{flex-wrap:wrap}.metadata>div{min-width:130px}.editor-panel form{padding:1.2rem}.top-actions button{padding:.6rem}}@media(max-width:850px){.shell{display:block}.sidebar{height:auto;position:static;padding:1rem}.brand{margin-bottom:1rem}.sidebar-label,.sidebar-secondary,.sidebar-bottom{display:none}.sidebar select{width:auto;max-width:100%}.sidebar nav{display:flex;overflow:auto;margin-top:1rem}.nav-item{white-space:nowrap;gap:.5rem}.topbar{height:auto;align-items:start;flex-wrap:wrap}.topbar h1{font-size:1.6rem}.top-actions{flex-wrap:wrap}.overview{display:block}.stats{margin-top:1.3rem;gap:2rem}.writing-layout{grid-template-columns:1fr}.record-panel #record-list{max-height:320px}.empty-state{min-height:300px;padding:3rem 1rem}.toolbar{flex-wrap:wrap}.toolbar .search{flex-basis:100%}.toolbar select{flex:1}.content{padding:1rem}.page-footer{flex-wrap:wrap}.inline-fields{display:block}.comparison{grid-template-columns:1fr}.editor-top{font-size:.875rem}.login-card{padding:2rem}}

select{appearance:none;padding-right:2rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='m2 3 5 5 5-5' fill='none' stroke='%2365738b' stroke-width='1.6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .7rem center;background-size:14px 10px}.sidebar select{background-color:#22314c}
.record-card p,.record-card small,.badge{color:#53627b}
