/* NiceIA Brief — readable fields, large choices and a non-destructive editor. */
.bf-head{padding:58px 0 35px;border-bottom:1px solid var(--line)}
.bf-kicker{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:18px}.bf-kicker .eyebrow{margin:0}
.bf-head h1{font-size:clamp(45px,5.5vw,79px);line-height:1.05;letter-spacing:-.052em;margin:22px 0}.bf-head h1 em{font-style:normal;background:var(--lime);padding:0 .1em .08em;border-radius:10px;box-decoration-break:clone}.bf-head .lead{max-width:890px;margin-bottom:20px}.bf-head .helper{max-width:980px}
.bf-workspace{padding-top:32px}.bf-library{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:24px 28px;background:#ecece3;border:1px solid var(--line);border-radius:20px}.bf-library>div:first-child{flex:1;max-width:610px;min-width:0}.bf-library select{width:100%;background:var(--paper)}.bf-library-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.bf-savebar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:10px 0 30px}.bf-savebar p{font-size:17px;margin:0;color:var(--muted)}.bf-savebar .text-btn{font-size:16px;min-height:48px}.bf-savebar p.bf-unsaved{color:#863b20;font-weight:700}
.bf-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:38px;align-items:start}.bf-main,.bf-main>*{min-width:0}.bf-map{position:sticky;top:110px;background:var(--ink);color:var(--paper);padding:26px;border-radius:25px}.bf-map .eyebrow{font-size:16px;color:var(--lime);letter-spacing:.03em}.bf-map h2{font-size:30px;line-height:1.14;letter-spacing:-.03em;margin:0 0 14px}.bf-map>p{font-size:18px;line-height:1.5}.bf-map .helper{font-size:16px;color:#c7c9bf;margin-bottom:0}.bf-field-link{font:inherit;text-align:left;display:block;border:1px solid #6d7164;border-radius:13px;color:var(--paper);background:transparent;padding:16px;width:100%;margin-bottom:11px;cursor:pointer}.bf-field-link-top{display:flex;justify-content:space-between;gap:12px;font-size:19px}.bf-field-link-top>span{color:var(--lime)}.bf-field-link>span:last-child{display:block;font-size:16px;color:#cdd0c4;line-height:1.4;margin-top:7px;max-height:46px;overflow:hidden;overflow-wrap:anywhere}.bf-field-link:hover{border-color:var(--lime);background:#2a3024}.bf-field-link.is-complete{border-color:#89967b}.bf-field-link:focus-visible{outline:3px solid var(--lime);outline-offset:4px}
.bf-question-panel{background:#fff;border:1.5px solid var(--ink);border-radius:26px;padding:32px 38px}.bf-stage-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px}.bf-stage-header .eyebrow{font-size:16px;margin:0}.bf-stage-header .text-btn{font-size:17px}.bf-stepnav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:36px}.bf-stepnav button{font:inherit;font-size:16px;line-height:1.3;display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;background:var(--paper);padding:14px 10px;text-align:left;cursor:pointer;min-height:68px}.bf-stepnav button>span{display:flex;flex:none;align-items:center;justify-content:center;border-radius:50%;border:1px solid var(--ink);width:27px;height:27px;font-size:16px}.bf-stepnav button[aria-current]{background:var(--lime);border-color:var(--ink);font-weight:700}.bf-main h2{font-size:clamp(30px,3.2vw,45px);line-height:1.12;letter-spacing:-.04em;margin-top:0}.bf-main .step-intro{font-size:20px;line-height:1.55}.bf-field{margin-top:28px}.bf-field label{font-size:21px;line-height:1.45;display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.bf-field .helper{margin:7px 0 12px;font-size:17px;line-height:1.6;max-width:none}.bf-required,.bf-optional{font-size:16px;font-weight:500;padding:3px 10px;border-radius:6px}.bf-required{background:var(--lime)}.bf-optional{color:var(--muted);background:var(--paper)}.bf-field input,.bf-field textarea,.bf-field select{font:inherit;font-size:20px;line-height:1.55;min-width:0;width:100%;border:1.5px solid #7b8070;border-radius:12px;background:#fbfbf7;color:var(--ink);padding:15px 17px}.bf-field textarea{min-height:100px;resize:vertical}.bf-field textarea[rows="1"]{min-height:65px}.bf-field textarea[rows="4"]{min-height:154px}.bf-field select{min-height:60px}.bf-field textarea:focus,.bf-field input:focus,.bf-field select:focus{outline:3px solid var(--ink);outline-offset:3px;background:#fff}.bf-choices{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.bf-choice{display:inline-flex;align-items:center;gap:10px;text-align:left;font:inherit;font-size:18px;line-height:1.4;border:1.5px solid var(--ink);border-radius:12px;background:var(--paper);padding:14px 16px;min-height:55px;color:var(--ink);cursor:pointer;overflow-wrap:anywhere}.bf-choice-check{display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;border:1px solid currentColor;border-radius:5px;font-size:19px}.bf-choice[aria-pressed="true"]{background:var(--lime);box-shadow:2px 2px 0 var(--ink)}.bf-choice:hover{background:var(--lilac)}.bf-choice[aria-pressed="true"]:hover{background:var(--lime)}.bf-optional-details{margin-top:28px;background:var(--paper);border-radius:14px;padding:18px}.bf-optional-details summary{font-size:19px;line-height:1.45}.bf-question-actions{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:35px;padding-top:25px}.bf-question-actions .btn{font-size:19px;min-height:60px}.bf-review-note{margin-top:28px}.bf-review-note p{margin-bottom:0}
.bf-editor-head{padding:10px 0 22px}.bf-editor-head h2{font-size:clamp(39px,4.3vw,59px)}.bf-editor-head>p{font-size:20px;max-width:720px}.bf-pending{margin-top:25px;padding:22px;background:#f1e0ce;border:1px solid var(--ink);border-radius:16px}.bf-pending strong{font-size:21px}.bf-pending .bf-choice{background:var(--paper);font-size:17px}.bf-pending .helper{margin-bottom:0}.bf-block{background:#fff;border:1.5px solid var(--ink);border-radius:22px;padding:26px 30px;margin-bottom:23px;scroll-margin-top:130px}.bf-block-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:17px}.bf-block-top .eyebrow{font-size:16px;letter-spacing:.04em}.bf-block h3{font-size:28px;line-height:1.15;margin:7px 0 0;letter-spacing:-.025em}.bf-block h3 label{font:inherit}.bf-block .tag{font-size:16px;white-space:normal;text-align:center;flex:none}.bf-block textarea{width:100%;min-width:0;min-height:180px;resize:vertical;font:inherit;font-size:20px;line-height:1.65;color:var(--ink);background:#fbfbf7;border:1px solid #9ea28f;border-radius:12px;padding:20px;box-sizing:border-box}.bf-block textarea:focus{outline:3px solid var(--ink);outline-offset:3px;background:#fff}.bf-proposal{margin-top:20px;border:1.5px solid var(--ink);border-radius:14px;background:var(--lilac);padding:20px}.bf-proposal summary{font-size:20px;font-weight:750;line-height:1.5}.bf-proposal p{font-size:18px}.bf-proposal pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:18px;line-height:1.65;padding:20px;background:var(--paper);border-radius:12px;max-height:480px;overflow:auto}.bf-proposal .btn{font-size:18px;padding-inline:18px}.bf-export-panel{background:var(--lime);border:1.5px solid var(--ink);border-radius:22px;padding:30px}.bf-export-panel h3{font-size:31px;margin-top:0}.bf-export-panel p{font-size:19px}.bf-export-panel .btn{background:var(--paper);color:var(--ink)}.bf-export-panel .btn.lime{background:var(--ink);color:var(--lime)}.bf-export-panel textarea{width:100%;height:300px;margin-top:20px;font-size:18px}.bf-bottom-note{margin:38px 0 0;padding:28px 0 0;border-top:1px solid var(--line);max-width:950px}.bf-bottom-note p{font-size:18px}.bf-bottom-note>a{font-size:18px}.brief-entry{background:var(--lilac);border:1.5px solid var(--ink);border-radius:24px;padding:30px;margin-top:28px}.brief-entry h3{font-size:32px;line-height:1.13;margin-top:0}.brief-entry .brief-keywords{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.brief-keywords span{font-size:18px;background:var(--paper);border:1px solid var(--ink);border-radius:10px;padding:11px 15px}.brief-entry p{font-size:20px}.brief-entry .helper{font-size:17px}
/* Fix min-content overflow of contact inputs on narrow devices. */
.contact-layout>*{min-width:0}.contact-form-panel input,.contact-form-panel select,.contact-form-panel textarea{min-width:0;max-width:100%;box-sizing:border-box}.contact-form-panel .field-row{min-width:0}.contact-form-panel .field-row>*{min-width:0}.contact-form-panel .check-label>span{min-width:0;overflow-wrap:anywhere}.contact-form-panel fieldset{min-inline-size:0}
@media(max-width:1180px){.bf-layout{grid-template-columns:250px minmax(0,1fr);gap:24px}.bf-map{padding:23px}.bf-question-panel{padding:28px}.bf-stepnav{grid-template-columns:repeat(2,minmax(0,1fr))}.bf-library{align-items:center}.bf-library-actions{gap:12px}.bf-library-actions .text-btn{font-size:17px}.bf-block-top{flex-wrap:wrap;gap:13px}.header .nav{gap:16px}.header .nav a{font-size:17px}}
@media(max-width:1000px){.header .nav-cta{display:none}.bf-layout{grid-template-columns:1fr}.bf-map{position:static;padding:24px}.bf-map h2{font-size:28px}.bf-map h2 br{display:none}.bf-map>p:not(.eyebrow){margin-bottom:16px}#bf-fields-map{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.bf-field-link{margin:0;min-width:0}.bf-map .helper{margin-top:16px}.bf-library{flex-wrap:wrap}.bf-library>div:first-child{max-width:none;flex-basis:100%}.bf-library-actions{width:100%;justify-content:flex-start}.bf-question-panel{padding:30px}.bf-stepnav{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.bf-head{padding-top:32px}.bf-head h1{font-size:46px;line-height:1.1}.bf-head .lead{font-size:21px}.bf-kicker{align-items:flex-start;flex-direction:column;gap:14px}.bf-kicker .tag{font-size:16px}.bf-library{padding:20px}.bf-library .form-label{font-size:19px}.bf-library-actions{gap:12px}.bf-library-actions .btn{font-size:18px}.bf-savebar{align-items:flex-start;flex-direction:column;gap:0}.bf-savebar p{font-size:16px;line-height:1.6;margin-top:8px}.bf-layout{gap:23px}.bf-map{padding:22px}.bf-map h2{font-size:27px}.bf-map>p:not(.eyebrow){font-size:17px}#bf-fields-map{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.bf-field-link{padding:12px}.bf-field-link-top{font-size:17px}.bf-field-link>span:last-child{font-size:16px;max-height:44px}.bf-question-panel{padding:22px 19px;border-radius:20px}.bf-stage-header{align-items:flex-start;flex-direction:column;gap:12px}.bf-stage-header .eyebrow{font-size:16px;line-height:1.5}.bf-stepnav{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:28px}.bf-stepnav button{font-size:16px;padding:12px 10px;gap:8px}.bf-main h2{font-size:32px}.bf-main .step-intro{font-size:19px}.bf-field{margin-top:25px}.bf-field label{font-size:20px;gap:7px}.bf-field .helper{font-size:16px}.bf-field textarea,.bf-field select{font-size:18px;padding:14px}.bf-choices{gap:9px}.bf-choice{font-size:18px;width:100%;padding:15px 13px;min-height:58px}.bf-optional-details{padding:16px}.bf-question-actions{align-items:stretch;flex-direction:column-reverse}.bf-question-actions .btn{font-size:18px;white-space:normal;min-height:60px}.bf-question-actions .helper{margin:0}.bf-block{padding:22px 18px}.bf-block h3{font-size:26px}.bf-block-top{gap:13px}.bf-block textarea{font-size:18px;line-height:1.65;padding:15px}.bf-editor-head h2{font-size:42px}.bf-editor-head>p{font-size:19px}.bf-proposal{padding:17px}.bf-proposal summary{font-size:19px}.bf-proposal pre{font-size:17px;padding:15px}.bf-proposal .actions{flex-direction:column;align-items:stretch}.bf-proposal .btn{font-size:18px}.bf-export-panel{padding:24px 20px}.bf-export-panel .actions{flex-direction:column;align-items:stretch}.bf-export-panel h3{font-size:29px}.bf-export-panel p{font-size:18px}.brief-entry{padding:23px}.brief-entry h3{font-size:29px}.brief-entry p{font-size:19px}.brief-keywords span{font-size:18px}}
@media(prefers-reduced-motion:reduce){.bf-choice,.bf-field-link{transition:none}}
@media print{.bf-head,.bf-library,.bf-savebar,.bf-map,.bf-editor-head .actions,.bf-export-panel,.bf-bottom-note,.bf-proposal{display:none!important}.bf-layout{display:block}.bf-block{break-inside:avoid}.bf-block textarea{height:auto!important;overflow:visible}}

/* Compact mobile decision drawer: questions remain the first working surface. */
#bf-map-details{padding:0;border:0;margin:0;background:transparent}
#bf-map-details>summary{display:none}
#bf-map-details>.eyebrow{margin-top:0}
.bf-field-link-top{flex-wrap:wrap;gap:6px}
.bf-field-link-top strong{min-width:0;overflow-wrap:anywhere}
@media(max-width:1000px){
 #bf-map-details>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;list-style:none;font-size:21px;line-height:1.4;color:var(--paper);padding:0;min-height:38px}
 #bf-map-details>summary span{color:var(--lime);font-size:16px;flex-shrink:0}
 #bf-map-details>summary:after{display:none}
 #bf-map-details[open]>summary{margin-bottom:25px}
 #bf-map-details:not([open]){padding-bottom:0}
 #bf-map-details>p{font-size:18px}
}
@media(max-width:400px){
 #bf-map-details>summary{flex-direction:column;align-items:flex-start;font-size:22px;gap:6px}
 #bf-fields-map{grid-template-columns:1fr}
 .bf-field-link-top{font-size:19px}
 .bf-field-link>span:last-child{font-size:17px}
}

/* 0.4: single-line project name, no textarea/baseline gap or detached badge. */
.bf-field input[type="text"],.bf-field textarea,.bf-field select{display:block;box-sizing:border-box;width:100%;max-width:100%;margin-top:8px;vertical-align:top;}
.bf-name-field .form-label{display:block;line-height:1.4;margin:0;}
.bf-optional-inline{font-size:.85em;font-weight:400;white-space:nowrap;color:var(--muted);}
.bf-name-field input[type="text"]{height:60px;min-height:60px;max-height:60px;padding:14px 16px;font:inherit;line-height:1.4;}
.bf-optional-details>.bf-name-field{margin-top:22px;}
@media(max-width:700px){.bf-field label{align-items:flex-start;}.bf-name-field input[type="text"]{font-size:18px;height:58px;min-height:58px;max-height:58px;padding:13px 14px;}.bf-name-field .form-label{font-size:19px;}.bf-optional-details{padding:18px!important;}}
