.builder-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:32px;padding:10px 0 20px}.builder-heading h1{font-size:clamp(32px,4vw,54px);line-height:1.08;max-width:800px;margin:12px 0 22px;overflow-wrap:break-word;text-wrap:balance}.builder-heading .lead{max-width:760px;font-size:17px}.builder-facts{display:flex;flex-direction:column;gap:9px;flex-shrink:0;padding-top:18px;font-size:12px;color:var(--teal,#00767d)}.builder-facts span:before{content:'✓';margin-right:8px}.builder-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:38px;margin:38px 0 80px;align-items:start}.builder-questions{min-width:0}.builder-questions>h2{font-size:30px;line-height:1.2}.builder-group{border:1px solid var(--line);background:#fff;border-radius:14px;padding:24px;margin:26px 0;min-width:0}.builder-group legend{font-weight:700;font-size:18px;line-height:1.4;padding:0 8px;max-width:100%}.builder-group legend>span{font-size:11px;letter-spacing:.07em;margin-right:8px;color:#00767d}.builder-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}.builder-fields label{font-size:13px;margin:8px 0 12px}.builder-fields input,.builder-document-name input{border-radius:7px;min-height:46px;font-size:15px}.builder-fields small,.builder-document-name small{display:block;font-weight:400;color:var(--muted);font-size:12px;line-height:1.65;margin-top:7px}.builder-optional{font-weight:400;color:var(--muted);font-size:11px}.builder-suitability{background:#eef6f5;border-color:#d7e9e6}.builder-suitability>p{font-size:13px;line-height:1.75;margin-top:8px}.builder-consent{display:flex;gap:12px;font-size:13px;line-height:1.75;font-weight:400;align-items:flex-start;margin-top:20px}.builder-consent input{width:19px;height:19px;min-width:19px;margin-top:3px;accent-color:#00767d}.builder-suitability .text-link{font-size:12px}.builder-document-name{margin:26px 0}.builder-submit{width:100%;justify-content:center}.builder-preview{position:sticky;top:calc(var(--portal-header-height,100px) + 20px);min-width:0;scroll-margin-top:calc(var(--portal-header-height,100px) + 20px)}.builder-preview-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.builder-preview-heading h2{font-size:30px;margin:10px 0}.builder-preview-heading .eyebrow{font-size:10px}.builder-format{border:1px solid var(--line);padding:8px 12px;border-radius:8px;font-size:12px}.builder-status{font-size:12px;line-height:1.7;min-height:2em;color:var(--muted)}.builder-paper{background:white;border:1px solid var(--line);padding:30px;border-radius:10px;box-shadow:0 12px 30px #070c5307;min-width:0;overflow-wrap:anywhere}.builder-preview .builder-paper{max-height:62vh;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.builder-paper .reading-paper-top{margin-bottom:22px;padding-bottom:18px}.builder-paper h3,.builder-paper>h2{font-size:17px;line-height:1.5;letter-spacing:0;margin:0 0 20px;overflow-wrap:break-word}.builder-paper .document-text{font-size:13px;line-height:1.8}.builder-paper .document-text p{margin-bottom:8px}.builder-placeholder{padding:25px 0 70px;color:var(--muted)}.builder-placeholder p:first-child{font-weight:700;color:var(--navy)}.builder-result-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.builder-result-actions .button{font-size:12px;min-height:44px}.builder-result-actions .document-tools{margin:0;flex-basis:100%}.builder-result-actions[hidden],.builder-errors[hidden]{display:none}.builder-privacy{margin-top:18px;line-height:1.8}.builder-errors{margin:20px 0}.builder-errors h3{font-size:19px}.builder-errors ul{padding-left:20px;font-size:13px}.builder-errors a{text-decoration:underline}.builder-fields input[aria-invalid=true]{border-color:#a74335}.builder-field-error{display:block;font-size:12px;color:#a74335;font-weight:400;margin-top:6px}.builder-saved-layout{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(220px,1fr);gap:35px;margin:30px 0 80px;align-items:start}.builder-saved-heading h1{font-size:clamp(34px,4vw,56px);overflow-wrap:break-word}.builder-version-panel{border-radius:14px;background:#eef6f5;padding:26px}.builder-version-panel h2{font-size:28px;margin:15px 0}.builder-version-panel p{font-size:13px;line-height:1.8}.builder-version-panel a{display:flex;flex-direction:column;gap:3px;border-top:1px solid var(--line);padding:13px 0;font-size:13px}.builder-version-panel a span{font-size:11px;color:var(--muted)}.builder-version-panel a[aria-current]{color:#00767d}.builder-live-status{font-size:12px}.builder-saved-card{background:#eef6f5}.builder-saved-card .actions{flex-wrap:wrap}
@media(max-width:950px){.builder-layout{gap:24px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.builder-heading{display:block}.builder-facts{flex-direction:row;flex-wrap:wrap;padding-top:0}.builder-paper{padding:23px}.builder-group{padding:20px}.builder-preview .builder-paper{max-height:55vh}}
@media(max-width:700px){.builder-layout,.builder-saved-layout{grid-template-columns:minmax(0,1fr);gap:24px}.builder-heading h1{font-size:34px}.builder-heading .lead{font-size:15px}.builder-layout{margin-top:30px}.builder-preview{position:static}.builder-preview .builder-paper{max-height:none;overflow:visible;scrollbar-gutter:auto}.builder-paper{padding:22px 18px}.builder-paper .document-text{font-size:13px}.builder-questions>h2{font-size:27px}.builder-group legend{font-size:17px}.builder-fields input,.builder-document-name input{font-size:16px}.builder-result-actions>form,.builder-result-actions>a{width:100%}.builder-result-actions .button{width:100%;justify-content:center}.builder-result-actions .document-tools .button{width:auto}.builder-saved-heading h1{font-size:36px}.builder-facts{gap:8px 14px;font-size:11px}}

.builder-fields label[hidden]{display:none}.builder-fields select{width:100%;border:1px solid var(--line);border-radius:7px;min-height:46px;font:inherit;background:#fff;color:var(--navy);padding:10px 12px}.builder-paper .document-text table{width:100%;table-layout:fixed;overflow-wrap:anywhere}.builder-paper .document-text th,.builder-paper .document-text td{font-size:12px;padding:7px}.builder-paper .document-text th p,.builder-paper .document-text td p{margin:0}@media(max-width:700px){.builder-fields select{font-size:16px}}

/* Supporting information stays beside the task without competing with it. */
.builder-info { margin: 8px 0; font-size: 13px; color: #536773; }
.builder-info > summary { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; cursor: pointer; list-style: none; font-size: 12px; font-weight: 400; }
.builder-info > summary::-webkit-details-marker { display: none; }
.builder-info > summary > span { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1px solid #9eb7bf; border-radius: 50%; font-weight: 700; font-size: 12px; }
.builder-info > div { padding: 12px 14px; margin-top: 6px; border: 1px solid #c7d4da; border-radius: 10px; background: #fff; color: #536773; font-size: 13px; line-height: 1.65; }
.builder-info p { font-size: inherit; margin: 0 0 8px; }
.builder-info p:last-child { margin-bottom: 0; }
.builder-info summary:focus-visible { outline: 2px solid #16777c; outline-offset: 3px; border-radius: 5px; }
.builder-options { margin: 12px 0 18px; color: #536773; font-size: 12px; }
.builder-options > summary { cursor: pointer; min-height: 28px; }
.builder-options p, .builder-options label { font-size: 12px; line-height: 1.65; }
.builder-field { position: relative; min-width: 0; }
.builder-field[hidden] { display: none; }
.builder-field > label { display: block; }
.builder-field:has(.builder-field-info) > label { padding-right: 30px; }
.builder-field-info { margin: 0; position: absolute; top: 4px; right: 0; }
.builder-field-info > div { position: absolute; top: 28px; right: 0; z-index: 20; width: min(280px, calc(100vw - 100px)); box-shadow: 0 8px 20px #29344818; }
body[data-interface="magilex"] .builder-layout .builder-suitability { background: #fff; border-color: #c7d4da; }
body[data-interface="magilex"] .builder-layout .builder-status:empty { min-height: 0; margin: 0 0 16px; }
body[data-interface="magilex"] .builder-layout .builder-placeholder p { font-weight: 400; color: #536773; }

/* Compact document actions, with a readable choice of download format. */
body[data-interface="magilex"] .builder-layout [hidden] { display: none !important; }
body[data-interface="magilex"] .builder-result-actions { align-items: center; gap: 10px; }
body[data-interface="magilex"] .builder-result-actions > form,
body[data-interface="magilex"] .builder-result-actions > a { width: auto; margin: 0; }
body[data-interface="magilex"] .builder-result-actions .document-tools { flex-basis: auto; display: flex; align-items: center; gap: 12px; }
body[data-interface="magilex"] .builder-result-actions .builder-icon-action { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; padding: 0; border-radius: 12px; cursor: pointer; list-style: none; }
.builder-icon-action::after, .builder-icon-action > .link-indicator { display: none !important; }
.builder-download-menu { position: relative; margin: 0; }
.builder-download-menu > summary::-webkit-details-marker { display: none; }
.builder-download-options { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 30; min-width: 170px; padding: 6px; border: 1px solid #c7d4da; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px #172c4020; }
.builder-download-options form { margin: 0; }
body[data-interface="magilex"] .builder-download-options button { display: block; width: 100%; min-height: 44px; text-align: left; padding: 10px 12px; border: 0; border-radius: 7px; box-shadow: none; background: #fff; color: #06064e; font: inherit; font-size: 13px; cursor: pointer; }
body[data-interface="magilex"] .builder-download-options button:hover,
body[data-interface="magilex"] .builder-download-options button:focus-visible { background: #e6f2f2; }
@media(min-width:901px) { .builder-step-controls .builder-preview-jump { display: none; } }

.builder-questions > .workspace-mobile-preview { display: none !important; }

body[data-interface="magilex"].workspace .builder-paper .builder-result-actions { display: flex; flex-wrap: wrap; margin-top: 24px; padding: 0; background: transparent; }
body[data-interface="magilex"] .builder-paper .builder-result-actions .document-tools { margin: 0; padding: 0; }
body[data-interface="magilex"] .saved-document-actions [hidden] { display: none !important; }
body[data-interface="magilex"] .builder-download-options a { display: block; min-height: 44px; padding: 10px 12px; border-radius: 7px; color: #06064e; font-size: 13px; }
body[data-interface="magilex"] .builder-download-options a:hover,
body[data-interface="magilex"] .builder-download-options a:focus-visible { background: #e6f2f2; }
.saved-document-actions .builder-icon-action { position: relative; }
.saved-document-actions [data-action-label]:hover::before,
.saved-document-actions [data-action-label]:focus-visible::before { content: attr(data-action-label); position: absolute; bottom: calc(100% + 8px); left: 0; padding: 6px 9px; border-radius: 6px; background: #06064e; color: #fff; font-size: 12px; font-weight: 400; line-height: 1.4; white-space: nowrap; pointer-events: none; z-index: 31; }
.saved-document-actions details[open] > summary::before { display: none; }
.builder-mobile-progress,.builder-mobile-return{display:none!important}
@media(max-width:700px){
 body[data-screen="document-builder"] .development{font-size:9px;line-height:1.35;padding:4px 8px}
 body[data-screen="document-builder"] .header{min-height:54px;height:54px;padding-block:6px}
 body[data-screen="document-builder"] .workspace-create-menu{display:none}
 body[data-screen="document-builder"] #main-content{padding-top:10px;padding-bottom:16px;background-image:none}
 body[data-screen="document-builder"] #main-content::before,body[data-screen="document-builder"] .builder-heading::before{display:none}
 body[data-screen="document-builder"] .builder-heading{padding:0 0 10px;margin:0;gap:0;background:none}
 body[data-screen="document-builder"] .builder-heading h1{font-size:18px;line-height:1.3;letter-spacing:-.02em;margin:0;max-width:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-wrap:initial}
 body[data-screen="document-builder"] .builder-heading .eyebrow,body[data-screen="document-builder"] .builder-facts{display:none}
 body[data-screen="document-builder"] .builder-intro-info{margin:2px 0 0}
 body[data-screen="document-builder"] .builder-intro-info>summary{font-size:11px;min-height:24px}
 body[data-screen="document-builder"] .builder-layout{margin:0;gap:0}
 body[data-screen="document-builder"] .builder-questions{padding:12px 14px 14px}
 body[data-screen="document-builder"] .builder-questions>h2{display:none}
 body[data-screen="document-builder"] .builder-options{margin:0 0 6px;font-size:11px}
 body[data-screen="document-builder"] .builder-options>summary{min-height:24px}
 [data-mobile-wizard] .builder-mobile-progress{display:flex!important;align-items:center;justify-content:space-between;gap:10px;min-height:38px;margin:0 0 8px;font-size:12px;color:#4f626b}
 [data-mobile-wizard] .builder-mobile-progress>span{min-width:0;line-height:1.5}
 [data-mobile-wizard] .builder-mobile-progress>button{flex:none;border:1px solid #c7d4da;border-radius:5px;background:#fff;min-height:34px;padding:5px 9px;font:inherit;color:#00005c}
 [data-mobile-wizard] .builder-step-nav{display:none;margin:0 0 10px;max-height:180px;overflow-y:auto}
 [data-mobile-wizard] .builder-step-nav.builder-nav-open{display:flex}
 [data-mobile-wizard] .builder-step-nav button{font-size:12px;min-height:36px;padding:6px 9px}
 [data-mobile-wizard] [data-mobile-field-hidden]{display:none!important}
 body[data-screen="document-builder"] [data-mobile-wizard] .builder-group{margin:0;padding:14px 12px}
 [data-mobile-wizard] .builder-group legend{font-size:14px;line-height:1.4;padding-inline:5px}
 [data-mobile-wizard] .builder-fields{display:block}
 [data-mobile-wizard] .builder-field>label{font-size:15px;line-height:1.45}
 [data-mobile-wizard] .builder-fields input,[data-mobile-wizard] .builder-fields select{min-height:46px;margin-top:8px;font-size:16px}
 [data-mobile-wizard] .builder-step-controls{position:sticky;bottom:0;z-index:8;display:flex;align-items:center;gap:8px;margin:10px -2px 0;padding:8px 0;background:var(--paper,#f3f8f8)}
 [data-mobile-wizard] .builder-step-controls .button{min-height:44px;min-width:0;padding:10px 12px;font-size:13px;flex:1;gap:6px}
 [data-mobile-wizard] .builder-step-controls .builder-preview-jump{font-size:11px;line-height:1.4;max-width:76px;padding:6px 0}
 [data-mobile-wizard]:not([data-mobile-preview])>.builder-preview{display:none!important}
 [data-mobile-wizard][data-mobile-preview]>.builder-questions{display:none!important}
 [data-mobile-wizard][data-mobile-preview]>.builder-preview{display:block!important}
 [data-mobile-wizard] .builder-mobile-return{display:inline-flex!important;min-height:40px;font-size:12px;margin-bottom:10px}
 [data-mobile-wizard]:not([data-mobile-last]) .builder-submit:not([data-preview-submit]){display:none!important}
 body[data-screen="document-builder"] .builder-preview-heading h2{font-size:22px;margin:4px 0}
 body[data-screen="document-builder"] .builder-status{font-size:11px;line-height:1.5}
}
@media(max-width:700px){
 body[data-interface="magilex"][data-screen="document-builder"].workspace{background-image:none!important}
 body[data-interface="magilex"][data-screen="document-builder"] .builder-heading h1{font-size:18px!important;line-height:1.3!important;margin:0!important}
}
@media print{[data-mobile-wizard]>.builder-preview{display:block!important}[data-mobile-wizard]>.builder-questions,[data-mobile-wizard] .builder-mobile-return{display:none!important}}
@media(max-width:700px){
 body[data-interface="magilex"][data-screen="document-builder"] .development{font-size:9px!important;line-height:1.35!important;padding:4px 8px!important}

}

/* Explicit text mode keeps manual edits separate from form-driven previews. */
.text-editor-heading{max-width:780px;margin:0 auto 20px}.text-editor-heading h1{font-size:clamp(22px,3vw,32px);margin:8px 0 12px}.text-editor-heading p{color:#42474b}
[data-text-editor]{max-width:850px;margin:auto}.text-editor-bar{position:sticky;top:76px;z-index:3;display:flex;align-items:center;gap:16px;padding:12px 0;background:#edf4f5}.text-editor-bar [role=status]{font-size:13px;color:#596568}
.text-editor-paper{padding:30px}.text-editor-row{margin:0 0 12px}.text-editor-row textarea{display:block;width:100%;min-height:44px;resize:vertical;box-sizing:border-box;background:#fff;color:#30363b;border:1px solid #d4dfe1;border-radius:5px;padding:10px;font:inherit;line-height:1.6;overflow:hidden}.text-editor-row textarea:focus{outline:2px solid #99bcc3;outline-offset:1px}.text-editor-row-actions{display:flex;gap:18px;font-size:12px;align-items:center;padding:3px 0}.text-editor-row-actions label{display:flex;gap:5px;align-items:center}.text-editor-row-actions input{width:auto;min-height:0}.text-editor-row:has(input[type=checkbox]:checked) textarea{opacity:.45;text-decoration:line-through}.text-editor-downloads{max-width:850px;margin:20px auto;display:flex;gap:12px;flex-wrap:wrap;align-items:center}.text-editor-downloads>p,.text-editor-downloads>details{flex-basis:100%}.text-editor-downloads[data-unsaved] button,.text-editor-downloads[data-unsaved] a{opacity:.4}.text-editor-row[data-table-cell]{border-left:3px solid #d4dfe1;padding-left:10px}
@media(max-width:700px){.text-editor-heading{margin:12px 0}.text-editor-heading p{font-size:13px;margin:8px 0}.text-editor-bar{top:54px;gap:10px}.text-editor-bar [role=status]{font-size:11px}.text-editor-paper{padding:16px}.text-editor-paper h2{font-size:20px}.text-editor-row textarea{font-size:16px}}
.text-editor-heading details{font-size:13px;color:#596568}.text-editor-heading summary{cursor:pointer}.text-editor-bar>.button{flex-shrink:0;white-space:nowrap}.text-editor-row-actions label{font-weight:400}.text-editor-row-actions{visibility:hidden}.text-editor-row:focus-within .text-editor-row-actions,.text-editor-row:has(input:checked) .text-editor-row-actions{visibility:visible}
@media(max-width:700px){.text-editor-bar{align-items:center}.text-editor-bar>.button{font-size:13px;padding:10px 12px}.text-editor-paper{margin-top:0}.text-editor-heading h1{margin:6px 0 10px}}
.text-editor-number{display:block;font-size:12px;font-weight:700;color:#647276;margin-bottom:4px}
.text-editor-bar{top:calc(var(--workspace-top,26px) + var(--portal-header-height,64px))}.text-editor-row-actions{min-height:24px;padding:0;margin:2px 0 6px}.text-editor-row-actions>label{margin:0;font-size:12px;min-height:24px}.text-editor-row-actions .text-button{min-height:24px;padding:0;font-size:12px;line-height:24px}.text-editor-row-actions input{margin:0}

/* A compact work surface; wide panes can be resized without changing the document. */
@media screen {
 body[data-interface="magilex"][data-screen="document-builder"] .builder-heading{padding:0 0 12px;align-items:center;background:none}
 body[data-interface="magilex"][data-screen="document-builder"] .builder-heading .eyebrow{display:none}
 body[data-interface="magilex"][data-screen="document-builder"] .builder-heading h1{font-size:24px;line-height:1.25;margin:0 0 6px;max-width:none;text-wrap:initial}
 body[data-interface="magilex"][data-screen="document-builder"] .builder-intro-info{margin:0}
 .builder-splitter{display:none}
 .builder-view-switch{display:none}
 body[data-interface="magilex"][data-screen="document-builder"] .builder-step-nav{display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;padding-bottom:6px;margin:12px 0 16px;scrollbar-width:thin}
 body[data-interface="magilex"][data-screen="document-builder"] .builder-step-nav button{flex:0 0 auto;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;min-height:36px;padding:6px 8px;font-size:12px;box-shadow:none;white-space:nowrap}
 body[data-interface="magilex"][data-screen="document-builder"] .builder-step-nav button[aria-current=step]{border-color:#00777d;color:#00646b;font-weight:700;background:#e1efea}
 body[data-interface="magilex"][data-screen="document-builder"] .builder-group{margin:12px 0;padding:18px;border-radius:8px}
 body[data-interface="magilex"][data-screen="document-builder"] .builder-final-confirmation{padding:12px 0 0;border-top:1px solid var(--line);background:transparent;font-size:12px}
 .builder-resizing{user-select:none;cursor:col-resize}
}
@media screen and (min-width:1101px){
 body[data-interface="magilex"][data-screen="document-builder"] .builder-layout{grid-template-columns:minmax(300px,var(--builder-form-share,45%)) 12px minmax(320px,1fr);gap:0;margin-top:0}
 body[data-interface="magilex"][data-screen="document-builder"] .builder-layout>.builder-splitter{display:flex;align-items:center;justify-content:center;cursor:col-resize;touch-action:none;background:#e4edf0;min-height:100%;outline-offset:-2px}
 .builder-splitter>span{display:block;width:3px;height:38px;border-radius:4px;background:#9eb8bf}
 .builder-splitter:is(:hover,:focus-visible)>span{background:#00777d}
 body[data-interface="magilex"][data-screen="document-builder"] .builder-layout>:is(.builder-questions,.builder-preview){height:var(--builder-pane-height,calc(100dvh - 200px));min-height:280px;padding:18px 22px;box-sizing:border-box}
 body[data-interface="magilex"][data-screen="document-builder"] .builder-questions>h2{font-size:18px;margin:0 0 8px}
 body[data-interface="magilex"][data-screen="document-builder"] .builder-preview-heading h2{font-size:18px;margin:0}
}
@media screen and (max-width:1100px){
 body[data-interface="magilex"][data-screen="document-builder"] .builder-view-switch{display:flex;gap:4px;margin:0 0 12px;padding:3px;border:1px solid var(--line);border-radius:7px;width:max-content;background:#fff}
 .builder-view-switch>button{border:0;background:transparent;color:#00005c;padding:8px 18px;min-height:38px;border-radius:4px;font:inherit;font-size:13px;cursor:pointer}
 .builder-view-switch>button[aria-pressed=true]{background:#d2e9e9;font-weight:700;color:#125b63}
 body[data-interface="magilex"][data-screen="document-builder"] .builder-layout{display:block;grid-template-columns:1fr;margin-top:0}
 body[data-interface="magilex"][data-screen="document-builder"] .builder-layout>.builder-splitter{display:none}
 body[data-interface="magilex"][data-screen="document-builder"] .builder-layout>:is(.builder-questions,.builder-preview){height:auto;min-height:0;overflow:visible}
 body[data-interface="magilex"][data-screen="document-builder"] .builder-layout:not([data-mobile-preview])>.builder-preview{display:none!important}
 body[data-interface="magilex"][data-screen="document-builder"] .builder-layout[data-mobile-preview]>.builder-questions{display:none!important}
 body[data-interface="magilex"][data-screen="document-builder"] .builder-layout[data-mobile-preview]>.builder-preview{display:block!important}
}
@media screen and (max-width:700px){
 body[data-interface="magilex"][data-screen="document-builder"] .builder-step-nav:not(.builder-nav-open){display:none}
 body[data-interface="magilex"][data-screen="document-builder"] .builder-step-nav.builder-nav-open{flex-wrap:wrap}
 [data-mobile-wizard] .builder-final-confirmation[data-mobile-field-hidden]{display:none!important}
}

.builder-date-control{display:inline-block;position:relative;width:min(220px,100%);max-width:100%}
.builder-date-control input[type=text]{width:100%!important;padding-right:38px!important}
.builder-date-open{position:absolute;right:2px;top:2px;bottom:2px;display:flex;align-items:center;justify-content:center;min-height:0!important;width:34px;padding:6px!important;border:0!important;box-shadow:none!important;background:transparent!important;color:#087b81;cursor:pointer}
.builder-date-popover{position:fixed;inset:auto;box-sizing:border-box;width:300px;max-width:calc(100vw - 16px);padding:14px;margin:0;border:1px solid #bfced1;border-radius:10px;background:#fff;color:#080750;box-shadow:0 10px 36px #122b3825;font:400 14px/1.5 'Avenir Next',sans-serif}
.builder-date-header{display:flex;align-items:center;gap:5px;margin-bottom:12px}
.builder-date-header button,.builder-date-footer button,.builder-date-week button{font:inherit;border:0;border-radius:5px;background:transparent;color:inherit;box-shadow:none;cursor:pointer;min-height:34px;padding:4px}
.builder-date-header button{width:28px;flex:0 0 28px;font-size:24px}
.builder-date-header select{min-width:0;flex:1;font:inherit;background:#fff;border:1px solid #d6e0e2;border-radius:5px;padding:5px}
.builder-date-header input{width:69px;min-width:0;box-sizing:border-box;font:inherit;background:#fff;border:1px solid #d6e0e2;border-radius:5px;padding:5px}
.builder-date-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
.builder-date-week span{text-align:center;font-size:12px;color:#687781;padding:4px 0}
.builder-date-week button{width:100%;min-width:0;min-height:34px;font-size:13px}
.builder-date-week button:hover,.builder-date-week button:focus-visible{background:#eaf4f4;outline:2px solid #087b81;outline-offset:-2px}
.builder-date-week button[aria-selected=true]{background:#087b81;color:#fff;font-weight:700}
.builder-date-week button[aria-current=date]{box-shadow:inset 0 0 0 1px #087b81}
.builder-date-week .other-month{color:#87989c}
.builder-date-popover button:disabled{opacity:.3;cursor:default}
.builder-date-footer{display:flex;justify-content:space-between;gap:8px;padding-top:10px;margin-top:10px;border-top:1px solid #d6e0e2}
.builder-date-footer button{font-size:12px;color:#087b81;padding:5px}
.builder-final-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.builder-final-actions[hidden]{display:none!important}
@media(max-width:700px){.builder-date-control{width:min(220px,100%)}.builder-date-control input[type=text]{font-size:16px!important}.builder-date-week button{min-height:38px}.builder-date-popover{max-height:calc(100dvh - 16px);overflow:auto}}
@media print{.builder-date-popover,[data-document-builder] .builder-preview-heading,[data-document-builder] .builder-status,[data-document-builder] .builder-splitter,[data-document-builder] .builder-result-actions{display:none!important}[data-document-builder]{display:block!important;height:auto!important;overflow:visible!important}[data-document-builder] .builder-preview{height:auto!important;overflow:visible!important}.builder-paper{box-shadow:none!important;border:0!important}}
.builder-date-control{display:block;margin-top:6px}
body[data-interface="magilex"] .builder-result-actions{align-items:flex-start}
@media print{.builder-heading,.builder-view-switch,.workspace-context-back{display:none!important}}

/* Builder v2: suitability first, parts on the left, one question block, live document on the right. */
.bx-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.bx-hidden-actions{display:none!important}
body[data-screen="document-builder"] .bx-top{display:flex;align-items:center;gap:14px 20px;flex-wrap:wrap;padding:0 0 18px;margin:0}
.bx-back{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;border:1px solid #d5e2df;background:#fff;color:#00005c;flex:none}
.bx-back:hover{border-color:#006f73;color:#006f73}
.bx-title{display:flex;align-items:center;gap:10px;flex:1 1 240px;min-width:0}
body[data-interface="magilex"][data-screen="document-builder"] .bx-top h1{font-size:24px;line-height:1.2;margin:0;letter-spacing:-.01em;overflow-wrap:break-word}
.bx-title .builder-intro-info{position:relative;margin:0}
.bx-title .builder-intro-info>div{position:absolute;top:30px;left:0;z-index:30;width:min(420px,calc(100vw - 40px));box-shadow:0 8px 24px #172c4020}
.bx-progress{display:flex;align-items:center;gap:10px;flex:0 1 260px}
.bx-progress[hidden]{display:none}
.bx-progress-bar{flex:1;height:6px;border-radius:99px;background:#e3ece9;overflow:hidden}
.bx-progress-bar>span{display:block;height:100%;width:0;background:#006f73;border-radius:99px;transition:width .3s}
.bx-progress-text{font-size:13px;font-weight:700;color:#00005c;white-space:nowrap}
.bx-saved{font-size:13px;color:#595b70;min-width:70px}
.bx-saved[data-state=saved]::before{content:'✓ ';color:#2e7d4f;font-weight:700}
.bx-saved[data-state=error]{color:#a74335;font-weight:700}
.bx-menu{position:relative}
.bx-menu>summary{list-style:none;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;border:1px solid #d5e2df;background:#fff;color:#00005c;cursor:pointer}
.bx-menu>summary::-webkit-details-marker{display:none}
.bx-menu-panel{position:absolute;right:0;top:46px;z-index:40;width:300px;padding:14px;border:1px solid #c7d4da;border-radius:12px;background:#fff;box-shadow:0 10px 28px #172c4022;display:flex;flex-direction:column;gap:10px;font-size:13px;line-height:1.55;color:#3b3d55}
.bx-menu-panel p{margin:0;font-size:12px;color:#595b70}
.bx-menu-panel .builder-consent{margin:0;font-size:13px}
.bx-menu-panel .text-button{align-self:flex-start;padding:0;color:#a74335}

/* Layout */
body[data-interface="magilex"][data-screen="document-builder"] .builder-layout.bx-layout{margin:0 0 40px}
.bx-rail{display:flex;flex-direction:column;gap:2px}
.bx-rail[hidden]{display:none!important}
.bx-step{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:8px 10px;border:1px solid transparent;border-radius:10px;background:transparent;font:inherit;font-size:14px;font-weight:600;color:#00005c;text-align:left;cursor:pointer;box-shadow:none}
.bx-step:hover{background:#ffffff99}
.bx-step[data-state=active]{background:#fff;border-color:#d5e2df;font-weight:800}
.bx-step-mark{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex:none;border-radius:99px;border:1px solid #b9cbc6;background:#fff;font-size:12px;font-weight:800;color:#595b70}
.bx-step[data-state=active] .bx-step-mark{background:#00005c;border-color:#00005c;color:#fff}
.bx-step[data-state=done] .bx-step-mark,.bx-review-ok .bx-step-mark{background:#2e7d4f;border-color:#2e7d4f;color:#fff}
.bx-step[data-state=skip] .bx-step-mark,.bx-review-gap .bx-step-mark{background:#c27a12;border-color:#c27a12;color:#fff}
.bx-step-name{min-width:0;overflow-wrap:anywhere}

/* Question card */
body[data-interface="magilex"][data-screen="document-builder"] .bx-layout .builder-group,.bx-gate,.bx-review{background:#fff;border:1px solid #d5e2df;border-radius:16px;padding:26px;margin:0 0 14px;min-width:0}
body[data-interface="magilex"][data-screen="document-builder"] .bx-layout .builder-group legend{float:left;width:100%;padding:0;margin:0 0 18px;font-size:22px;font-weight:800;line-height:1.25;color:#00005c}
.bx-layout .builder-group legend+*{clear:both}
.bx-layout .builder-fields{display:flex;flex-direction:column;gap:18px}
.bx-layout .builder-field>label{display:flex;flex-direction:column;gap:8px;margin:0}
.bx-label{display:block;font-size:15px;font-weight:700;color:#00005c;line-height:1.4}
.bx-layout .builder-field:has(.builder-field-info) .bx-label{padding-right:34px}
.bx-layout .builder-fields input:not([type=radio]):not([type=checkbox]),.bx-layout .builder-fields select{min-height:48px;border:1px solid #b9cbc6;border-radius:10px;font-size:16px;padding:10px 14px;color:#00005c;background:#fff;width:100%;box-sizing:border-box}
.bx-layout .builder-fields input:focus,.bx-layout .builder-fields select:focus{outline:none;border-color:#006f73;box-shadow:0 0 0 3px #8fd0cf66}
.bx-layout .builder-fields [aria-invalid=true]:not([type=radio]){border-color:#a74335}
.bx-layout .builder-field-info{top:0}
.bx-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin-top:8px}
.bx-choice{position:relative;display:flex;align-items:center;gap:10px;min-height:52px;padding:12px 14px;border:1px solid #b9cbc6;border-radius:12px;background:#fff;font-size:15px;font-weight:700;color:#00005c;cursor:pointer;margin:0}
.bx-choice:hover{border-color:#006f73}
.bx-choice input{appearance:none;-webkit-appearance:none;width:18px;height:18px;min-height:0;flex:none;margin:0;border-radius:99px;border:2px solid #9aa9b0;background:#fff}
.bx-choice input:checked{border:6px solid #006f73}
.bx-choice:has(input:checked){border:2px solid #006f73;background:#f0f7f5;padding:11px 13px}
.bx-choice:has(input:focus-visible){box-shadow:0 0 0 3px #8fd0cf}
.bx-choice:has(input[aria-invalid=true]){border-color:#a74335}

/* Suitability */
.bx-gate h2,.bx-review h2{font-size:24px;line-height:1.25;margin:0 0 12px;color:#00005c}
.bx-gate p{font-size:15px;line-height:1.6;color:#3b3d55;margin:0 0 18px}
.bx-eligible{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
.bx-gate-actions{display:flex;gap:10px;flex-wrap:wrap}
.bx-gate-actions .button{min-height:46px;min-width:110px;justify-content:center}
.bx-gate .bx-gate-alt{margin:16px 0 0;padding:12px 14px;border-radius:10px;background:#fff7e6;font-size:14px}
.bx-gate .bx-gate-alt[hidden]{display:none}
[data-gate]>.bx-rail{display:none!important}

/* Controls */
.bx-controls{display:flex;align-items:center;gap:10px}
.bx-controls[hidden]{display:none!important}
.bx-controls [data-step-next]{margin-left:auto}
.bx-controls .button{min-height:46px}
.bx-skip{font-size:14px;color:#595b70;text-decoration:underline;padding:8px 4px}
[data-on-review] .bx-skip{display:none}

/* Review */
.bx-review-list{list-style:none;margin:0 0 20px;padding:0;border:1px solid #e3ece9;border-radius:12px;overflow:hidden}
.bx-review-list li{padding:12px 16px;border-top:1px solid #eef3f1}
.bx-review-list li:first-child{border-top:0}
.bx-review-head{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:700;color:#00005c}
.bx-review-head>span:nth-child(2){flex:1}
.bx-review-head .text-button{font-size:13px;font-weight:700;padding:4px}
.bx-review-missing{display:block;margin:4px 0 0 34px;font-size:13px;color:#8a5a12}
.bx-review-actions{display:flex;flex-direction:column;gap:10px}
.bx-review-row{display:flex;gap:10px}
.bx-review-row .button:first-child{flex:1}
.bx-review-actions .button{min-height:48px;justify-content:center}
.bx-soon{display:flex!important;justify-content:space-between!important;opacity:1!important;background:#f4f6f7!important;color:#6b7088!important;border-color:#d5dbe0!important;cursor:not-allowed}
.bx-soon-tag{font-size:11px;font-weight:800;letter-spacing:.06em;padding:3px 8px;border-radius:99px;background:#e4e7ea;color:#595b70}
.bx-review-links{display:flex;gap:18px;flex-wrap:wrap;padding-top:6px}
.bx-review-links .text-button{font-size:13px;padding:4px 0}

/* Document marks */
.document-text .doc-field{background:#e1efea;border-radius:3px;padding:0 2px;transition:background .2s,box-shadow .2s}
.document-text .doc-field-empty{background:transparent;color:#7a7d93;border-bottom:2px dashed #c4ccd8;border-radius:0;padding:0}
.document-text .doc-field.is-active{background:#fff3c4;color:#00005c;box-shadow:0 0 0 2px #e3c65a;border-radius:3px}
@media print{.document-text .doc-field,.document-text .doc-field.is-active{background:none!important;box-shadow:none!important;border:0!important;color:inherit!important}}

@media screen and (min-width:1101px){
 body[data-interface="magilex"][data-screen="document-builder"] .builder-layout.bx-layout{display:grid;grid-template-columns:200px minmax(380px,520px) minmax(380px,1fr);gap:24px;align-items:start}
 body[data-interface="magilex"][data-screen="document-builder"] .bx-layout[data-gate]{grid-template-columns:minmax(380px,560px) minmax(380px,1fr)}
 body[data-interface="magilex"][data-screen="document-builder"] .bx-layout>:is(.builder-questions,.builder-preview){height:auto;min-height:0;padding:0;overflow:visible}
 body[data-interface="magilex"][data-screen="document-builder"] .bx-layout>.bx-rail{position:sticky;top:calc(var(--portal-header-height,64px) + 40px)}
 body[data-interface="magilex"][data-screen="document-builder"] .bx-layout>.builder-preview{position:sticky;top:calc(var(--portal-header-height,64px) + 40px)}
 body[data-interface="magilex"][data-screen="document-builder"] .bx-layout .builder-preview .builder-paper{max-height:calc(var(--builder-pane-height,80vh) - 10px);overflow:auto;padding:40px 48px}
}
@media screen and (max-width:1100px){
 body[data-interface="magilex"][data-screen="document-builder"] .bx-layout>.bx-rail{flex-direction:row;overflow-x:auto;gap:6px;margin:0 0 14px;padding-bottom:4px;scrollbar-width:thin}
 .bx-layout .bx-step{width:auto;flex:none;white-space:nowrap;min-height:40px;font-size:13px}
}
@media screen and (max-width:700px){
 body[data-screen="document-builder"] .bx-top{gap:10px;padding-bottom:10px}
 body[data-interface="magilex"][data-screen="document-builder"] .bx-top h1{font-size:18px!important}
 .bx-progress{order:5;flex:1 1 100%}
 .bx-saved{display:none}
 body[data-interface="magilex"][data-screen="document-builder"] .bx-layout .builder-group,.bx-gate,.bx-review{padding:18px 16px}
 body[data-interface="magilex"][data-screen="document-builder"] .bx-layout .builder-group legend{font-size:19px}
 .bx-layout .bx-step .bx-step-name{display:none}
 .bx-layout .bx-step[data-state=active] .bx-step-name{display:inline}
 .bx-hide-narrow{display:none}
 [data-mobile-wizard] .bx-controls{position:sticky;bottom:0;z-index:8;background:var(--paper,#eef5f3);padding:10px 0}
 .bx-choices{grid-template-columns:1fr}
}
[data-gate] .builder-group,[data-gate] .bx-controls{display:none!important}
.bx-choice input[type=radio]{width:18px!important;height:18px!important;min-height:0!important;max-height:18px;padding:0!important;box-sizing:border-box;box-shadow:none!important}
.bx-choice span::first-letter{text-transform:uppercase}
.bx-review-actions .button:disabled,.bx-review-links .text-button:disabled{opacity:.45;cursor:not-allowed}

/* Document paper mirrors the Word/PDF file: no logo, Aptos (Source Sans as fallback), title only slightly larger than the text */
.builder-paper .reading-paper-top--plain{justify-content:flex-end}
.builder-paper,.builder-paper .document-text{font-family:Aptos,"Source Sans 3","Segoe UI",system-ui,sans-serif}
.builder-paper>h2{font-family:inherit;font-size:1.2em;line-height:1.3;font-weight:700;margin:0 0 1em}

/* Review actions: one download button (Word / PDF), save beside it, signing as a quiet "soon" line */
body[data-interface="magilex"] .bx-review-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:start}
body[data-interface="magilex"] .bx-review-row>.button,body[data-interface="magilex"] .bx-download>summary{width:100%;height:46px;min-height:46px;border-radius:99px;justify-content:center;gap:8px;font-size:15px}
body[data-interface="magilex"] .bx-download{position:relative}
body[data-interface="magilex"] .bx-download>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center}
body[data-interface="magilex"] .bx-download>summary::-webkit-details-marker{display:none}
body[data-interface="magilex"] .bx-download-menu{position:absolute;left:0;right:0;top:52px;z-index:20;display:grid;padding:6px;background:#fff;border:1px solid #d5e2df;border-radius:14px;box-shadow:0 12px 32px #00005c1f}
body[data-interface="magilex"] .bx-download-menu button{all:unset;cursor:pointer;padding:11px 14px;border-radius:9px;font-size:15px;color:#00005c}
body[data-interface="magilex"] .bx-download-menu button:hover,body[data-interface="magilex"] .bx-download-menu button:focus-visible{background:#eef5f3}
body[data-interface="magilex"] .bx-download-menu button:disabled{opacity:.45;cursor:default}
body[data-interface="magilex"] .bx-review-actions>.bx-soon{all:unset;display:flex;align-items:center;justify-content:space-between;margin-top:12px;padding:12px 16px;border:1px dashed #c7d4da;border-radius:99px;color:#6b7088;font-size:14px;cursor:not-allowed}

/* Preview looks like a real A4 page: no column lines, wider page, A4 proportions and margins, text scaled to the page */
body[data-interface="magilex"].workspace[data-screen="document-builder"] .builder-layout{border-top:0!important}
body[data-interface="magilex"].workspace[data-screen="document-builder"] .builder-questions{border-right:0!important;background:transparent!important}
body[data-interface="magilex"][data-screen="document-builder"] .bx-layout>.builder-preview{container-type:inline-size;background:transparent!important}
body[data-interface="magilex"][data-screen="document-builder"] .bx-layout .builder-preview .builder-paper{max-height:none!important;overflow:visible!important;min-height:calc(100cqw * 1.414);box-sizing:border-box;padding:12cqw 11.7cqw!important;border:1px solid #d5e2df!important;border-radius:4px!important;box-shadow:0 10px 30px #00005c14!important;font-size:clamp(12px,1.95cqw,16px)}
body[data-interface="magilex"][data-screen="document-builder"] .bx-layout .builder-paper>h3{font-size:1.2em;line-height:1.3;margin:0 0 1.2em;font-weight:700}
body[data-interface="magilex"][data-screen="document-builder"] .bx-layout .builder-paper .document-text{font-size:1em;line-height:1.5}
@media screen and (min-width:1101px){
 body[data-interface="magilex"][data-screen="document-builder"] .builder-layout.bx-layout:not([data-gate]){grid-template-columns:170px minmax(340px,420px) minmax(440px,1fr)}
 body[data-interface="magilex"][data-screen="document-builder"] .bx-layout[data-gate]{grid-template-columns:minmax(340px,460px) minmax(440px,1fr)}
 body[data-interface="magilex"][data-screen="document-builder"] .bx-layout>.builder-preview{max-height:calc(100dvh - var(--portal-header-height,64px) - 60px);overflow:auto!important;padding:0 6px 24px!important}
}

/* Saved document: actions in one row above the page, page looks like the A4 file */
body[data-interface="magilex"] .saved-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 16px}
body[data-interface="magilex"] .saved-actions>.button,body[data-interface="magilex"] .saved-actions .bx-download>summary{height:40px;min-height:40px;border-radius:99px;padding:0 18px;font-size:14px;gap:8px}
body[data-interface="magilex"] .saved-actions .bx-download{position:relative}
body[data-interface="magilex"] .saved-actions .bx-download-menu{right:auto;min-width:180px}
body[data-interface="magilex"] .bx-download-menu a{display:block;padding:11px 14px;border-radius:9px;font-size:15px;color:#00005c;text-decoration:none}
body[data-interface="magilex"] .bx-download-menu a:hover,body[data-interface="magilex"] .bx-download-menu a:focus-visible{background:#eef5f3}
body[data-interface="magilex"] .saved-paper-pane{container-type:inline-size;min-width:0}
body[data-interface="magilex"] .saved-paper-pane .builder-paper{min-height:calc(100cqw * 1.414);box-sizing:border-box;padding:12cqw 11.7cqw!important;border:1px solid #d5e2df!important;border-radius:4px!important;box-shadow:0 10px 30px #00005c14!important;font-size:clamp(12px,1.95cqw,16px);font-family:Aptos,"Source Sans 3","Segoe UI",system-ui,sans-serif}
body[data-interface="magilex"] .saved-paper-pane .builder-paper>h2{font-size:1.2em;line-height:1.3;margin:0 0 1.2em;font-weight:700}
body[data-interface="magilex"] .saved-paper-pane .document-text{font-size:1em;line-height:1.5}
/* Review step shows the clean document, without the field highlights */
body[data-interface="magilex"] .bx-layout:has([data-builder-review]:not([hidden])) .document-text .doc-field{background:none;box-shadow:none;padding:0;border:0;color:inherit}
body[data-interface="magilex"] .text-editor-help{margin:0 0 16px;color:#4b5a73;font-size:14px}
body[data-interface="magilex"] .text-editor-help summary{cursor:pointer}

/* Eelvaade nagu Wordi fail: A4, Aptos 10 pt (1.68% lehe laiusest), must tekst, täitmata väljad [kollasena] */
body[data-interface="magilex"][data-screen="document-builder"] .bx-layout .builder-preview .builder-paper{font-size:max(12px,1.68cqw);padding:10.5cqw 11.7cqw 10.8cqw 12.1cqw!important;color:#000}
body[data-interface="magilex"][data-screen="document-builder"] .bx-layout .builder-paper :is(h2,h3,.document-text,.document-text p,.document-text li,.document-text strong,.document-text h3,.document-text h4){color:#000}
body[data-interface="magilex"][data-screen="document-builder"] .bx-layout .builder-paper .document-text{line-height:1.32}
body[data-interface="magilex"][data-screen="document-builder"] .bx-layout .builder-paper .document-text p{margin:0 0 .8em}
body[data-interface="magilex"][data-screen="document-builder"] .bx-layout .builder-paper>h3{font-size:1.2em}
body[data-interface="magilex"] .document-text .doc-field-empty{background:#fff59a;color:#000;border-bottom:0;border-radius:0;padding:0 1px}
body[data-interface="magilex"] .document-text .doc-field-empty::before{content:"["}
body[data-interface="magilex"] .document-text .doc-field-empty::after{content:"]"}
body[data-interface="magilex"] .document-text .doc-field:not(.doc-field-empty){color:#000}
body[data-interface="magilex"] .bx-gate--compact{display:grid;gap:14px}
body[data-interface="magilex"] .bx-gate-check{display:flex!important;align-items:flex-start;gap:10px;margin:0;font-size:15px;line-height:1.5;color:#1d2a44;font-weight:400;cursor:pointer}
body[data-interface="magilex"] .bx-gate-check input{flex:none;width:20px;height:20px;margin:2px 0 0;accent-color:#00005c}
body[data-interface="magilex"] .bx-gate-check a{color:#00005c;text-decoration:underline}
body[data-interface="magilex"] .bx-gate--compact .bx-gate-alt{margin:0;font-size:13px;color:#6b7891}
body[data-interface="magilex"] .bx-gate--compact [data-eligible-yes]:disabled{opacity:.45;cursor:not-allowed}
body[data-interface="magilex"] .bx-gate-check .bx-eligible{position:static;opacity:1;pointer-events:auto}
/* Eelvaade: kitsamad veerised, tekst laiemalt */
body[data-interface="magilex"][data-screen="document-builder"] .bx-layout .builder-preview .builder-paper{padding:8cqw 8.5cqw 8cqw 8.5cqw!important}

/* Ettevõtte otsing dokumendikoostajas */
.bx-company{position:relative;display:block}
.bx-company>input{width:100%}
.bx-company-list{position:absolute;z-index:40;top:calc(100% + 4px);left:0;right:0;max-height:300px;overflow:auto;margin:0;padding:6px;list-style:none;border:1px solid #e6ebf0;border-radius:12px;background:#fff;box-shadow:0 12px 32px rgba(0,0,92,.12)}
.bx-company-list li{display:grid;gap:2px;padding:9px 12px;border-radius:8px;cursor:pointer}
.bx-company-list li:hover,.bx-company-list li[aria-selected="true"]{background:#f1f3fb}
.bx-company-list strong{font-size:15px;color:#00005c}
.bx-company-list span{font-size:12px;color:#5b6880}
.bx-company-hint{display:block;margin-top:4px;font-size:12px;color:#5b6880}
.bx-board{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0 4px;padding:12px;border:1px dashed #cfd8e3;border-radius:12px;background:#fbfcfe}
.bx-board p{flex-basis:100%;margin:0 0 2px;font-size:13px;color:#2c3a55}
.bx-board small{flex-basis:100%;font-size:12px;color:#7a4a00}
.bx-board-chip{padding:7px 12px;border:1px solid #cfd8e3;border-radius:999px;background:#fff;color:#00005c;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.bx-board-chip[aria-pressed="true"]{border-color:#00005c;background:#00005c;color:#fff}
body[data-interface="magilex"][data-screen="document-builder"] .bx-top h1.work-crumbs{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;font-size:24px}
body[data-interface="magilex"][data-screen="document-builder"] .bx-top h1.work-crumbs .work-crumb{font-weight:500;color:#5b6880;text-decoration:none}
body[data-interface="magilex"][data-screen="document-builder"] .bx-top h1.work-crumbs .work-crumb:hover{color:#00005c;text-decoration:underline}
body[data-interface="magilex"][data-screen="document-builder"] .bx-top h1.work-crumbs .work-crumb-sep{color:#8691a6;font-weight:400}
/* Valikud: pikemad vastused üksteise all loendina, lühikesed (Jah/Ei) kõrvuti */
body[data-interface="magilex"] .bx-choices[data-layout="list"]{display:grid;grid-template-columns:1fr!important;gap:8px}
body[data-interface="magilex"] .bx-choices[data-layout="inline"]{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr))!important;gap:8px}
body[data-interface="magilex"] .bx-choices[data-layout="list"] .bx-choice{min-height:48px;padding:12px 16px;font-size:15px;font-weight:600;line-height:1.35}
body[data-interface="magilex"] .bx-choices[data-layout="list"] .bx-choice:has(input:checked){padding:11px 15px}
body[data-interface="magilex"] .bx-choices .bx-choice{align-items:center}
body[data-interface="magilex"] .bx-choices[data-layout="list"] .bx-choice span{flex:1}
/* Sobivuse vastus, mille korral dokument ei sobi */
.bx-unsuitable{display:none}
.bx-choice-field:has(input[data-unsuitable]:checked) .bx-unsuitable{display:grid;gap:4px;margin-top:10px;padding:12px 14px;border:1px solid #f3c2bd;border-left:4px solid #d64535;border-radius:10px;background:#fff6f5;font-size:14px;line-height:1.45;color:#5c1d16}
.bx-unsuitable strong{color:#9b2c22}
.bx-unsuitable a{font-weight:700;color:#9b2c22}
/* Eelvaade: praeguse sammu lõigud kergelt esile tõstetud */
body[data-interface="magilex"] .bx-layout .is-step{position:relative;border-radius:6px;background:rgba(0,111,115,.06);box-shadow:-10px 0 0 rgba(0,111,115,.06),10px 0 0 rgba(0,111,115,.06);transition:background .2s}
body[data-interface="magilex"] .bx-layout .is-step::before{content:"";position:absolute;left:-14px;top:2px;bottom:2px;width:3px;border-radius:3px;background:#006f73}
body[data-interface="magilex"] .bx-layout .doc-provisional{font-size:12px;color:#7a5600}
