:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#343433;background:#f5f6f8;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}input,select{min-width:0;accent-color:#f18d2c}input:not([type=radio]):not([type=checkbox]),select{width:100%;border:1px solid #dce0e6;border-radius:9px;padding:10px 12px;background:#fff;color:#343433}input:focus-visible,button:focus-visible,select:focus-visible{outline:3px solid #f18d2c88;outline-offset:2px}h1,h2,h3,p{margin-top:0}h1,h2{letter-spacing:-.04em}h2{font-size:1.6rem;margin-bottom:8px}h3{font-size:1.08rem;margin-bottom:0}p{line-height:1.48}.muted{color:#7e8590}.fineprint{color:#7e8590;font-size:.8rem;margin:12px 0 0}.eyebrow{color:#df7623;font-size:.7rem;font-weight:800;letter-spacing:.12em;margin-bottom:8px}.brand-mark{font-size:1.72rem;font-weight:900;letter-spacing:-.1em;color:#fff}.brand-mark span{color:#f18d2c}.app-shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100vh}[hidden]{display:none!important}
.sidebar{background:#343433;color:#fff;display:flex;flex-direction:column;min-height:100vh}.brand{padding:28px 26px 30px;border-bottom:1px solid #ffffff17}.brand p{font-size:.7rem;letter-spacing:.13em;color:#aeb2b8;margin:4px 0 0}.nav-links{padding:24px 12px;display:flex;flex-direction:column;gap:6px}.nav-link{background:transparent;border:0;border-radius:10px;color:#c8cbd0;display:flex;align-items:center;gap:13px;text-align:left;padding:13px 15px;font-weight:650;width:100%}.nav-link:hover{background:#ffffff12;color:#fff}.nav-link.is-active{background:#f18d2c;color:#222}.nav-icon{font-size:1.25rem}.sidebar-footer{margin-top:auto;padding:20px 25px 26px;color:#c7cacb;font-size:.79rem}.sidebar-footer small{display:block;margin:7px 0 0 15px;color:#9da2a9}.live-dot{display:inline-block;width:8px;height:8px;background:#5bdb91;border-radius:100%;margin-right:7px}.app-column{min-width:0}.topbar{min-height:89px;background:#fff;border-bottom:1px solid #e7e9ed;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px clamp(22px,3vw,44px)}.page-title{display:flex;gap:13px;align-items:center}.page-title h1{font-size:1.17rem;margin:2px 0}.breadcrumb{font-size:.71rem;color:#9aa0a7}.orange-bar{height:34px;width:4px;border-radius:2px;background:#f18d2c}.top-actions{display:flex;align-items:center;gap:15px}.user-pill{font-size:.8rem;color:#7a8189;max-width:26ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.content{padding:34px clamp(22px,3vw,44px) 65px;max-width:1800px;margin:auto}.leadline{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:26px}.leadline .muted{margin:0;font-size:.9rem}.btn{border:1px solid transparent;border-radius:9px;padding:10px 15px;font-weight:700;min-height:40px;white-space:nowrap}.btn.primary{background:#f18d2c;color:#2d2824}.btn.primary:hover{background:#f6a048}.btn.outline{background:#fff;border-color:#e0e4e8;color:#3c4147}.btn.outline:hover,.btn.subtle:hover{border-color:#efb47b;background:#fff7ee}.btn.subtle{background:#f4f5f6;color:#555c64}.btn.block{width:100%;margin-top:12px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.metric{background:#fff;border:1px solid #e9eaf0;border-radius:14px;padding:22px;min-width:0;box-shadow:0 6px 24px #17223508}.metric span{display:block;color:#838a93;font-size:.83rem;margin-bottom:12px}.metric strong{font-size:1.95rem;display:block;letter-spacing:-.045em;line-height:1.15}.metric small{font-size:.74rem;color:#9297a1}.workspace{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(320px,.8fr);gap:18px;align-items:start}.left-stack,.right-stack{display:flex;flex-direction:column;gap:18px;min-width:0}.panel{background:#fff;border:1px solid #e9eaf0;box-shadow:0 6px 24px #17223508;border-radius:14px;padding:23px;min-width:0}.panel-heading{display:flex;align-items:center;gap:8px;margin-bottom:17px}.hint{color:#9ca3ac;cursor:help}.fields{display:grid;gap:14px}.fields.four{grid-template-columns:repeat(4,minmax(0,1fr))}.fields label{display:block;font-size:.82rem;color:#5e656c;font-weight:650}.fields label small{font-weight:400;color:#9ca1a7}.fields input,.fields select{display:block;margin-top:7px}.controls-row{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.radio-options{display:flex;gap:15px;padding:0 9px 12px 0}.radio-options label{white-space:nowrap;font-size:.84rem;font-weight:650}.compact{font-size:.76rem;color:#70767e;font-weight:650}.compact input{max-width:78px;margin-top:5px}.grid-scroller{max-width:100%;overflow:auto;border:1px solid #e8eaed;border-radius:11px;background:#fafbfc;padding:15px}.module-grid{display:inline-block;min-width:max-content}.grid-row{display:flex;align-items:center;gap:3px;margin:3px 0}.grid-label{width:40px;height:36px;display:flex;align-items:center;justify-content:center;border:0;background:transparent;color:#6f7680;font-size:.75rem;font-weight:800;border-radius:7px}.grid-label:hover{background:#ffe6ce;color:#a1510f}.grid-cell{width:49px;height:46px;border:1.5px solid #cfd7e0;background:#f2f5f8;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:.74rem;font-weight:750;color:#31353b;flex:none}.grid-cell:hover{border-color:#f18d2c}.grid-cell.selected{background:#ffdfc1;border-color:#f18d2c;color:#8f430a}.grid-cell.blocked{background:#ffebeb;border-color:#e1a0a0;color:#bb3333}.grid-cell.orient-v{background:#f7d5bd}.grid-cell.orient-h{background:#fff0dd}.grid-placeholder{width:40px;flex:none}.button-row{display:flex;gap:10px;flex-wrap:wrap}.bom-row{padding:12px 0;border-bottom:1px solid #eff0f2;display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.bom-row:last-child{border-bottom:0}.bom-row .code{font-size:.77rem;font-weight:800;color:#d97c2a}.bom-row .desc{font-size:.8rem;line-height:1.36;margin-top:4px}.bom-row .qty{font-weight:800;white-space:nowrap;font-size:.95rem}.bom-row small{font-weight:400;color:#898f98}.manual-summary{margin-top:13px;font-size:.82rem;color:#777}.manual-row{display:flex;justify-content:space-between;gap:8px;padding:9px 0;border-bottom:1px solid #ededed}.manual-row button{padding:1px 6px;border:0;color:#ad5622;background:none}.note-card{background:#fff8ef;color:#705c49;border:1px solid #ffe4c7;padding:20px;border-radius:12px;font-size:.83rem}.note-card p{margin:9px 0 0}.notice{border-radius:9px;padding:13px 15px;margin:0 0 16px;font-size:.83rem}.notice.warning{background:#fff2e4;border:1px solid #ffd7a6;color:#875019}.notice.neutral{background:#f7f8fa;border:1px solid #e4e7eb;color:#505963}.message{font-size:.86rem;color:#af3434;min-height:1.1em}.search-field{min-width:270px;display:flex;align-items:center;gap:8px}.search-field span{font-size:1.5rem;color:#999}.list-toolbar{display:flex;gap:17px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:18px}.checkbox-label{display:flex!important;align-items:center;gap:10px!important;font-size:.82rem!important}.checkbox-label input{width:auto!important}.table-scroller{overflow-x:auto}.articles-table{width:100%;border-collapse:collapse;min-width:720px;text-align:left}.articles-table th{background:#fafafa;color:#8b929a;font-size:.72rem;text-transform:uppercase;letter-spacing:.05em}.articles-table th,.articles-table td{padding:14px 12px;border-bottom:1px solid #edf0f1}.articles-table td{font-size:.82rem}.article-code{font-weight:800;color:#cf7228}.status{display:inline-flex;align-items:center;border-radius:99px;background:#e3f8ee;color:#268052;padding:5px 9px;font-size:.7rem;font-weight:800}.status.off{background:#f0f0f0;color:#999}.row-actions{display:flex;gap:6px}.row-actions button{padding:7px 10px;font-size:.74rem}.auth-cover{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:25px;background:radial-gradient(circle at top right,#fff0e1,#f5f6f8 60%)}.login-card{width:min(100%,440px);background:#fff;border-radius:20px;padding:40px;box-shadow:0 30px 90px #1111;border:1px solid #eceef1}.login-card .brand-mark{color:#343433;font-size:2.25rem;margin-bottom:7px}.login-card h1{font-size:1.8rem;margin:0 0 11px}.login-card .muted{font-size:.87rem}.form-stack{display:grid;gap:16px;margin:24px 0}.form-stack label{font-size:.83rem;color:#666;font-weight:700}.form-stack input{margin-top:6px}.footer-note{font-size:.72rem;color:#999;text-align:center;margin-bottom:0}.dialog-card,.grid-dialog{border:0;border-radius:16px;padding:25px;box-shadow:0 25px 90px #1116;max-width:min(95vw,560px);width:100%}.grid-dialog{max-width:min(95vw,1380px)}dialog::backdrop{background:#23262ad1}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.dialog-heading h2{font-size:1.25rem;margin:0}.icon-button{background:none;border:0;font-size:1.2rem;color:#848b93}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.grid-scroller.big{max-height:70vh;min-height:170px}
@media(max-width:1250px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace{grid-template-columns:minmax(0,1fr)}.right-stack{display:grid;grid-template-columns:1fr 1fr;align-items:start}.right-stack .note-card{grid-column:1/-1}}
@media(max-width:800px){.app-shell{display:block}.sidebar{min-height:0;flex-direction:row;align-items:center;gap:15px;justify-content:space-between;padding:0 14px}.brand{padding:12px 0;border:0}.brand .brand-mark{font-size:1.35rem}.brand p,.sidebar-footer{display:none}.nav-links{flex-direction:row;padding:8px 0;gap:3px}.nav-link{padding:10px;gap:5px;font-size:.75rem}.nav-icon{font-size:1rem}.topbar{padding:18px;min-height:68px}.content{padding:20px 15px}.workspace{grid-template-columns:minmax(0,1fr)}.right-stack{display:flex}.metrics{gap:10px}.metric{padding:17px}.metric strong{font-size:1.42rem}.fields.four{grid-template-columns:repeat(2,minmax(0,1fr))}.leadline{flex-wrap:wrap}.user-pill{max-width:14ch}}
@media(max-width:440px){.topbar{flex-wrap:wrap}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.panel{padding:17px}.login-card{padding:29px 20px}.fields.four{grid-template-columns:repeat(2,minmax(0,1fr))}.button-row .btn{flex:1}.nav-link{font-size:.69rem}}


/* V0.1.1: T.Werk-Logo und Modulraster im Original-Seitenverhaeltnis */
.brand{display:flex;align-items:center;gap:12px;padding:24px 19px 26px}
.brand-logo{display:block;width:54px;height:54px;flex:0 0 auto;object-fit:contain}
.brand-copy{min-width:0}
.brand-name{font-size:1.28rem;font-weight:820;letter-spacing:-.045em;color:#fff;line-height:1.14}
.brand p{font-size:.61rem;letter-spacing:.105em;margin:5px 0 0;color:#bfc0bf;white-space:nowrap}
.login-brand{display:flex;align-items:center;gap:15px;margin-bottom:15px}
.login-logo{display:block;width:64px;height:64px;flex:0 0 auto;object-fit:contain}
.login-brand-name{font-size:1.45rem;line-height:1.15;font-weight:850;letter-spacing:-.05em}
.login-brand-subtitle{color:#8a8f96;letter-spacing:.105em;font-weight:720;font-size:.62rem;margin-top:6px}

/* Gleiche Zellmasse wie im ursprünglichen URANOS-Raster: quer 69x44, hochkant 44x69 */
.module-grid{--module-width:69px;--module-height:44px;--row-index-width:44px}
.module-grid[data-orientation="vertical"]{--module-width:44px;--module-height:69px}
.grid-row{gap:3px;margin:3px 0;align-items:center}
.grid-row-header{margin-bottom:6px}
.grid-row-header .grid-label{width:var(--module-width);height:26px;flex:none}
.grid-row-data>.grid-label{width:var(--row-index-width);height:var(--module-height);flex:none}
.grid-row-header .grid-placeholder{width:var(--row-index-width);height:26px;flex:none}
.grid-cell{width:var(--module-width);height:var(--module-height);flex:none;border-radius:5px;font-weight:800;line-height:1}
.grid-cell.selected{background:#ffe3c9;border-color:#ec902f;color:#8c460e}
.grid-cell.selected.mixed{background:#f1f3f6;border-color:#cfd7e0;border-style:dashed}
.grid-cell.mixed .module-shape{display:flex;align-items:center;justify-content:center;flex:none;background:#ffe3c9;border:1.5px solid #ec902f;border-radius:3px;font-size:.7rem;font-weight:800;color:#8c460e;line-height:1}
.grid-cell.mixed.orient-v .module-shape{width:24px;height:36px}
.grid-cell.mixed.orient-h .module-shape{width:36px;height:24px}
.grid-scroller{overflow-x:auto;overscroll-behavior-x:contain}
@media(max-width:800px){
  .brand{padding:11px 0;gap:8px}
  .brand-logo{width:39px;height:39px}
  .brand-name{font-size:1rem}
  .brand p{display:none}
}
@media(max-width:440px){
  .brand-name{font-size:.88rem}
  .brand-logo{width:34px;height:34px}
  .login-logo{width:55px;height:55px}
  .login-brand-subtitle{font-size:.53rem}
}
