.rules-editor{max-width:1180px;margin:auto}.rules-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:14px}.rules-title h1{margin:0 0 4px;font-size:21px}.rules-title p{margin:0}.editor-layout{display:grid;grid-template-columns:196px minmax(0,1fr);align-items:start;gap:16px}.editor-rail{padding:12px;border:1px solid #e0e3e8;border-radius:5px;background:#fff}.editor-rail-heading{display:flex;justify-content:space-between;gap:5px;margin-bottom:12px;font-size:12px}.editor-rail-heading span{color:#78889f;font-size:11px}.editor-project{padding:4px;margin-bottom:6px;border:1px solid #e0e3e8;border-radius:4px}.editor-project.current{border-color:#2a6ecf;background:#e8f0fc}.editor-project-choice{display:block;width:100%;padding:5px;border:none;background:none;text-align:left}.editor-project-choice b{font-size:12px;overflow-wrap:anywhere}.editor-project-choice .tag{margin-left:4px;font-size:9px;background:#dee4ff;color:#16417f}.editor-project-choice small{display:block;margin-top:3px;color:#718198;font-size:10px;line-height:1.5}.editor-project-actions{display:flex;gap:2px}.editor-project-actions button{min-width:0;min-height:30px;flex:1;padding:3px;font-size:10px}.editor-add-project{width:100%;min-height:32px;margin:2px 0 8px;padding:4px;font-size:11px}.editor-rail>p{line-height:1.5;font-size:11px}.editor-main{min-width:0}.editor-main .panel{padding:16px}.editor-main .section-title{justify-content:flex-start;flex-wrap:wrap}.editor-main .section-title .tag{color:#fff;background:#2a6ecf}.editor-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.editor-field{display:grid;min-width:0;gap:4px;color:#647084;font-size:11px;font-weight:500}.editor-field input,.editor-field select,.editor-field textarea{min-width:0;padding:7px;color:#0e1013;font-size:12px}.editor-main h3{margin:18px 0 6px;color:#60636a;font-size:13px}.editor-main h4{margin:12px 0 8px;color:#647084;font-size:12px}.editor-chain-row{display:flex;align-items:center;gap:6px;margin:6px 0}.editor-chain-row .editor-field{flex:1}.editor-chain-row small{min-width:62px;color:#78889f}.editor-chain-row button{min-height:30px;padding:4px 8px;font-size:11px}.editor-tabs{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:15px;border-bottom:1px solid #dfe3e9}.editor-tabs button{min-height:36px;border:0;border-bottom:2px solid transparent;border-radius:0;color:#647084;font-size:12px}.editor-tabs button.active{border-bottom-color:#2a6ecf;color:#0e1013;font-weight:700}.editor-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:7px;margin-bottom:12px}.editor-toolbar>input{min-width:170px;flex:1;font-size:12px}.editor-toolbar>.editor-field{min-width:130px;flex:1}.editor-toolbar button{min-height:34px;padding:5px 8px;font-size:11px}.editor-group{margin:7px 0;border:1px solid #dfe3e9;border-radius:4px;background:#fff}.editor-group-header{display:flex;align-items:center;background:#f5f5f3}.editor-group-heading{display:flex;flex:1;min-width:0;min-height:42px;align-items:center;justify-content:flex-start;gap:8px;padding:7px 10px;border:0;border-left:3px solid #b5c6e4;background:transparent;text-align:left;font-size:12px}.editor-group-heading:hover{background:#eaeae7}.editor-group-heading code{flex:0 0 auto;padding:2px 4px;background:#fff;color:#596980;font-size:10px}.editor-group-heading b{flex:0 0 auto}.editor-group-heading small{flex:1;overflow:hidden;color:#78889f;text-overflow:ellipsis;white-space:nowrap}.editor-group-move{display:flex;flex:0 0 auto;gap:3px;padding:0 8px}.editor-group-move button{min-width:27px;min-height:28px;padding:2px 5px;font-size:12px}.editor-group-body{padding:12px}.editor-checkbox{display:flex;align-items:center;gap:5px;min-height:35px;color:#647084;font-size:12px}.editor-checkbox input,.editor-check-list input{width:auto}.editor-option-row{display:grid;grid-template-columns:minmax(50px,.7fr) minmax(100px,1.4fr) minmax(120px,2fr) minmax(120px,2fr) auto;align-items:end;gap:6px;padding:7px 0;border-top:1px solid #edf0f4}.editor-row-actions{display:flex;gap:3px}.editor-row-actions button,.editor-baseline-option button{min-height:32px;padding:5px;font-size:11px}.editor-group-body .button-row{margin-top:12px}.editor-group-body .button-row button{min-height:32px;padding:5px 8px;font-size:11px}button.editor-danger{color:#aa1027}.editor-card{padding:13px;margin:10px 0;border:1px solid #dfe3e9;border-radius:4px}.editor-card>.editor-field{margin:8px 0}.editor-check-list{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0;font-size:12px}.editor-check-list b{width:100%}.editor-check-list label{display:inline-flex;gap:4px;align-items:center}.editor-baseline-option{display:grid;grid-template-columns:1fr 2fr auto;align-items:end;gap:8px;margin:6px 0}.editor-sheet{min-height:210px;margin:12px 0;font:12px/1.5 ui-monospace,Menlo,monospace}.editor-bottom{display:flex;justify-content:flex-end;align-items:center;gap:12px}.editor-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;place-items:center;padding:20px;background:#041e4299}.editor-modal{width:min(440px,100%);padding:20px;border-radius:5px;background:#fff;box-shadow:0 15px 40px #0005}.editor-modal h2{margin:0 0 8px;font-size:19px}.editor-modal>.editor-field{margin:12px 0}.editor-modal .button-row{justify-content:flex-end;margin-top:16px}@media(max-width:800px){.editor-layout{grid-template-columns:1fr}.editor-rail{display:flex;gap:6px;align-items:flex-start;overflow-x:auto}.editor-rail-heading,.editor-rail>p{display:none}.editor-project{min-width:155px;flex:0 0 auto}.editor-add-project{min-width:145px;width:auto}.editor-option-row{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-row-actions{grid-column:1 / -1}}@media(max-width:600px){.editor-three{grid-template-columns:1fr}.editor-chain-row{flex-wrap:wrap}.editor-option-row,.editor-baseline-option{grid-template-columns:1fr}}@font-face{font-family:Scania Sans;src:url(/fonts/ScaniaSans-Regular.woff2) format("woff2");font-weight:400;font-display:swap}@font-face{font-family:Scania Sans;src:url(/fonts/ScaniaSans-Bold.woff2) format("woff2");font-weight:700;font-display:swap}:root{font-family:Scania Sans,Arial,sans-serif;color:#0e1013;background:#f6f7f9;font-synthesis:none;text-rendering:optimizeLegibility;--blue: #16417f;--line: #d7dbe2;--muted: #647084;--panel: #fff}*{box-sizing:border-box}body{margin:0;min-width:320px;background:#f6f7f9}button,input,select,textarea{font:inherit}button,.button{min-height:38px;padding:8px 14px;border:1px solid var(--line);border-radius:4px;color:#0e1013;background:#fff;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}button:hover,.button:hover{border-color:#7084a2}button:disabled{opacity:.55;cursor:not-allowed}button.primary,.button.primary{color:#fff;background:var(--blue);border-color:var(--blue)}button.primary:hover{background:#0f3263}input,select,textarea{width:100%;padding:9px 10px;border:1px solid #aeb8c7;border-radius:4px;background:#fff}input:focus,select:focus,textarea:focus,button:focus-visible{outline:2px solid #2a6ecf;outline-offset:1px}.app-header{position:sticky;top:0;z-index:3;min-height:60px;padding:8px 22px;display:flex;align-items:center;gap:20px;flex-wrap:wrap;color:#fff;background:#041e42}.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none}.brand img{width:92px;height:auto}.brand-divider{width:1px;height:24px;background:#8090a9}.brand strong{font-size:14px}.app-header nav{display:flex;gap:2px;margin-left:auto}.app-header nav button,.user-menu button{border-color:transparent;color:#f6f7f9;background:transparent;border-radius:0}.app-header nav button.active{border-bottom:2px solid #2a6ecf}.app-header nav button:hover,.user-menu button:hover{background:#0f3263}.user-menu{display:flex;gap:6px;align-items:center;font-size:13px}.user-identity{display:flex;flex-direction:column;min-width:0;max-width:220px}.user-identity strong,.user-identity small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-identity small{color:#b7c8df}.page-wrap{max-width:1240px;margin:0 auto;padding:24px 20px 70px}.panel{margin-bottom:16px;padding:20px;border:1px solid #e0e3e8;border-radius:6px;background:var(--panel);box-shadow:0 1px 3px #1025470a}.panel h1,.panel h2,.panel h3,p{margin-top:0}.panel h1{margin-bottom:5px;font-size:22px}.panel h2{margin:0;font-size:17px}.panel h3{font-size:14px}.muted{color:var(--muted);font-size:13px}.eyebrow{margin-bottom:5px;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.07em}.version-summary,.section-title{display:flex;align-items:center;justify-content:space-between;gap:14px}.version-summary p:last-child{margin-bottom:0}.project-select{display:block;min-width:260px;color:var(--muted);font-size:12px}.project-select select{margin-top:5px;color:#0e1013;font-size:13px}.tag{display:inline-flex;align-items:center;padding:3px 9px;border-radius:12px;background:#edf0f4;color:#43516a;font-size:11px}.good-tag{color:#00664f;background:#d3eee7}.bad-tag{color:#b20018;background:#ffeaed}.chain-step{padding:12px 0;border-top:1px solid #edf0f4}.chain-step:first-of-type{border-top:0}.chain-step h3{display:flex;align-items:center;gap:8px;margin:0 0 10px}.chain-step.done .chain-name{color:#00664f}.chain-step code,.group-heading code{margin-left:auto;color:var(--muted);font-size:11px;font-weight:400}.step-number{display:inline-grid;width:21px;height:21px;place-items:center;border-radius:50%;color:#fff;background:#2a6ecf;font-size:11px}.chain-options,.button-row{display:flex;flex-wrap:wrap;gap:8px}.chain-option.selected{color:#fff;border-color:var(--blue);background:var(--blue)}.chain-option:disabled{opacity:.42;cursor:not-allowed}.section-title{margin-bottom:14px}.section-title>.muted{margin:0}.category{padding:14px;margin:14px 0;border:1px solid #e0e3e8;border-radius:5px;background:#f6f7f9}.category:last-child{margin-bottom:0}.category h3{display:flex;align-items:center;gap:8px;margin:0 0 12px;color:#16417f;text-transform:uppercase;font-size:12px}.group-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:12px}.group-card{padding:12px;border:1px solid #e0e3e8;border-radius:5px;background:#fff}.group-card.active{border-color:#2a6ecf}.group-heading{display:flex;align-items:baseline;gap:8px;margin:0 2px 6px}.group-heading strong{font-size:14px}.group-heading .muted{font-size:11px}.rule-warning{padding:6px 9px;margin:0 0 10px;border-radius:4px;color:#9c0016;background:#ffeaed;font-size:12px}.option{display:flex;width:100%;min-height:auto;justify-content:flex-start;align-items:flex-start;gap:10px;padding:8px;border-color:transparent;text-align:left}.option:hover{background:#f0f3f7}.option.disabled:hover{background:transparent}.option.selected{border-color:#b8c6da;background:#edf0f4}.option.disabled{opacity:.45;cursor:not-allowed}.option.disabled .option-label{text-decoration:line-through}.check{display:inline-grid;flex:0 0 16px;width:16px;height:16px;place-items:center;margin-top:2px;border:1px solid #778398;border-radius:3px;color:#fff;font-size:11px}.option.selected .check{border-color:var(--blue);background:var(--blue)}.option-copy{display:flex;flex-direction:column;gap:3px}.option-copy small{color:var(--muted);font-size:11px}.option-copy .note{font-style:italic}.issue-list{display:grid;gap:8px;padding:0;margin:0;list-style:none}.issue-list li,.alert.error{padding:10px 12px;border-radius:4px;color:#9c0016;background:#ffeaed;font-size:13px}.success-message{margin:0;color:#00664f}.selection-bar{position:sticky;bottom:12px;display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 16px;border:1px solid #dfe3e9;border-radius:5px;background:#fffffff2;box-shadow:0 -2px 10px #14263d12}.selection-bar .primary{min-width:165px}.selection-summary{display:grid;gap:3px}.baseline-version-row{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin-top:14px}.baseline-version-row .project-select{flex:1}.baseline-fields-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px}.baseline-fields-heading h2{display:flex;align-items:center;gap:8px}.baseline-field{display:grid;gap:8px;padding:15px 0;border-top:1px solid #edf0f4}.baseline-field-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.baseline-field-heading strong{font-size:14px}.required-label,.optional-label{color:var(--muted);font-size:11px}.required-label{color:#b20018}.baseline-note{margin:0;color:var(--muted);font-size:12px}.baseline-choices{display:flex;gap:8px;flex-wrap:wrap}.baseline-choices button.selected{color:#fff;border-color:var(--blue);background:var(--blue)}.baseline-recorded{color:#00664f;font-size:12px}.baseline-missing{color:#b20018;font-size:12px}.baseline-summary{display:grid;gap:4px;padding:12px;margin:12px 0 16px;border-radius:4px;background:#f6f7f9;font-size:13px}.baseline-summary>strong{color:#00664f}.baseline-summary.incomplete>strong{color:#b20018}.empty-state{padding:24px 14px;color:var(--muted);text-align:center}.summary-chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.summary-chips span{padding:8px 12px;border:1px solid #e0e3e8;border-radius:4px;background:#f6f7f9;font-size:12px}.compare-pickers{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:12px}.compare-pickers label{display:grid;gap:5px;color:var(--muted);font-size:12px}.compare-pickers select{color:#0e1013;font-size:13px}.compare-pickers>span{padding-bottom:10px}.compare-filters{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0 12px}.compare-filters button.active{border-color:var(--blue);background:var(--blue);color:#fff}.compare-section{margin-top:20px}.compare-section h2{display:flex;align-items:center;gap:8px;margin-bottom:12px}.compare-change{padding:0 0 0 13px;margin-bottom:14px;border-left:2px solid #d7dbe2;overflow-wrap:anywhere}.compare-change.added{border-left-color:#00664f}.compare-change.removed{border-left-color:#b20018}.compare-change.changed{border-left-color:#975717}.compare-kind{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700;text-transform:uppercase}.compare-change.added .compare-kind{color:#00664f}.compare-change.removed .compare-kind{color:#b20018}.compare-change.changed .compare-kind{color:#975717}.compare-kind code{font-size:11px;font-weight:400;text-transform:none;color:var(--muted)}.compare-main{margin:3px 0;font-size:13px}.compare-main code{margin-left:7px;color:var(--muted);font-size:12px}.compare-values{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:12px}.compare-was,.compare-now{padding:3px 7px;border-radius:4px;white-space:pre-wrap}.compare-was{background:#ffeaed;color:#9c0016}.compare-now{background:#d3eee7;color:#00664f}.file-button{position:relative;overflow:hidden}.file-button input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.alert{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;margin:10px 0;background:#f9eec3;font-size:13px}.alert.error{margin-bottom:12px}.toast{position:fixed;z-index:5;bottom:22px;left:50%;transform:translate(-50%);padding:11px 17px;border-radius:4px;color:#fff;background:#0e1013;box-shadow:0 3px 16px #0003;font-size:13px}.loading{padding:12vh 20px;text-align:center;color:var(--muted)}.user-create-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;align-items:end;margin-top:16px}.user-create-form label,.user-reset-form label{display:grid;gap:6px;font-size:13px}.user-table-wrap{overflow-x:auto;margin-top:16px}.user-table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}.user-table th,.user-table td{padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:top}.user-table td:first-child .tag{margin-left:8px}.user-table td select{min-width:120px}.user-table .button-row{flex-wrap:nowrap}.user-reset-form{display:grid;gap:8px;min-width:210px;margin-top:10px}.login-page{display:grid;min-height:100vh;place-items:center;padding:24px;background:linear-gradient(140deg,#041e42,#16417f)}.login-card{width:min(100%,420px);padding:32px;border-radius:6px;background:#fff;box-shadow:0 16px 48px #00102b55}.login-card>img{width:100px;padding:8px;margin:-4px 0 20px;background:#041e42}.login-card h1{margin-bottom:6px;font-size:25px}.login-card>label{display:grid;gap:6px;margin:16px 0;font-size:13px;font-weight:700}.login-card .full{width:100%}.login-divider{display:flex;align-items:center;gap:12px;margin:16px 0;color:var(--muted);font-size:12px}.login-divider:before,.login-divider:after{height:1px;flex:1;background:#dfe3e9;content:""}@media(max-width:900px){.app-header{gap:8px}.app-header nav{order:3;width:100%;margin-left:0;overflow-x:auto}.user-menu{margin-left:auto}}@media(max-width:620px){.app-header{padding:8px 12px}.brand strong{white-space:normal;font-size:12px}.brand img{width:70px}.page-wrap{padding:14px 12px 55px}.panel{padding:15px}.version-summary,.section-title{align-items:flex-start;flex-direction:column}.project-select{width:100%}.selection-bar{bottom:0;border-radius:5px 5px 0 0}.compare-pickers{grid-template-columns:1fr}.compare-pickers>span{padding:0}}
