/* wetBLOC reference design: common surfaces, controls and typography. */
:root{
 --ink:#103c47;--teal:#076c63;--muted:#7b898c;--line:#e1e6e4;--bg:#f8faf8;--pale:#eef5e8;
 --design-text:#39575b;--design-green-text:#496b32;--design-radius:16px;--design-shadow:0 2px 5px #153b3c03;
}
body{background:var(--bg);color:var(--ink);font-family:Inter,Arial,sans-serif;font-size:13px}
h1,h2,h3{color:var(--ink)}
.page-head h1{font-family:Montserrat,Inter,sans-serif;font-weight:600;font-size:28px;letter-spacing:-.8px;line-height:1.3}
.page-head .subtitle{color:var(--muted);font-size:12px;line-height:1.6}
.welcome-heading h1{font-size:27px;font-weight:500;color:var(--ink)}
.icon{stroke-width:1.7}
button,input,textarea,select{font-family:Inter,Arial,sans-serif}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #6aa79c;outline-offset:3px}

/* Actions and inputs. */
.button{border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-size:12px;font-weight:500;padding:10px 14px;min-height:38px;box-shadow:0 1px 2px #173f4903;gap:8px}
.button:hover{background:#f5f8f5;border-color:#cbd6ce;color:var(--ink)}
.button.primary,.button.teal{background:var(--teal);border-color:var(--teal);color:#fff;box-shadow:none}
.button.primary:hover,.button.teal:hover{background:#075b54;border-color:#075b54;color:#fff}
.button.small{font-size:11px;padding:8px 11px;min-height:33px;border-radius:9px}
.button.plain{background:#fff;color:var(--ink);border-color:var(--line)}
.button.danger{color:#b45e58;border-color:#ebd5d1;background:#fff}
.button.danger:hover{background:#fcf4f2}
.button:disabled{opacity:.45}
.button .icon{width:16px;height:16px}
.icon-button{color:#6f807b;border-radius:8px}
.icon-button:hover{background:#f0f5ed;color:var(--ink)}
.field{color:#728379;font-size:11px;font-weight:400}
.field input,.field select,.field textarea,.object-data-form .field input,.object-data-form .field textarea{border:1px solid var(--line);background:#fff;border-radius:9px;color:var(--design-text);font-size:12px;padding:10px 11px;line-height:1.5;box-shadow:none}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#82aea1;outline:2px solid #dbece4;outline-offset:0}
input::placeholder,textarea::placeholder{color:#98a3a5}
.form-grid{gap:16px}
.form-error{border-radius:8px;font-size:12px}
.pill{border-radius:7px;font-size:10px;padding:5px 9px;font-weight:500}
.pill.contact{background:#f2eafa;color:#8961bb}
.pill.won,.pill.released,.pill.accepted,.pill.paid{background:#eaf4e6;color:#4f7638}
.pill.pending{background:#fff5e6;color:#ad7b37}
.pill.cancelled,.pill.lost,.pill.rejected{background:#fbefed;color:#b76e66}
.pill.final{background:#edf4f8;color:#658596}
.text-link{color:#0b7369;font-size:12px;font-weight:500}
.text-link:hover{color:#07564f}
.notice{background:#f1f6eb;border-color:#dce6d2;border-radius:12px;color:#61784c;font-size:12px;line-height:1.65}
.notice .icon{color:#6b8c4f}

/* Navigation. */
.sidebar{background:#fff;border-right:1px solid var(--line)}
.sidebar .nav button{font-size:12px;border-radius:10px;color:#64766f;padding:12px 14px}
.sidebar .nav button .icon{width:17px;height:17px;stroke-width:1.65}
.sidebar .nav button.active{background:#edf5e8;color:#17695e;font-weight:500}
.sidebar .nav button:hover{background:#f4f7f1}
.sidebar .account{border-top-color:var(--line)}
.sidebar .avatar{background:#edf5e8;color:#537a3b}
.context-switch{background:#f6f8f4;border:1px solid var(--line);border-radius:10px}
.context-switch select{font-size:11px;color:var(--ink)}

/* Shared cards, headings and lists. */
.panel,.stat,.partner-card{background:#fff;border:1px solid var(--line);border-radius:var(--design-radius);box-shadow:var(--design-shadow)}
.panel-head{padding:21px 23px 16px;gap:16px}
.panel-head h2{display:flex;align-items:center;gap:10px;font-family:Inter,Arial,sans-serif;font-size:15px;font-weight:600;letter-spacing:-.3px;color:var(--ink)}
.panel-title-icon{width:20px;height:20px;flex-shrink:0;stroke-width:1.65;color:var(--ink)}
.panel-head small{font-size:11px;color:#87948b;line-height:1.6;padding-left:30px}
.panel-body{padding:0 23px 23px}
.panel-head .button{flex-shrink:0}
.stat-value{color:var(--ink);font-weight:600}
.stat-icon,.earning-symbol,.payout-icon{border-radius:10px;background:#eef5e8;color:#5b7d40;border-color:#e3ecd9}
.empty{color:#91a087;font-size:12px}
.empty>.icon{color:#8aa074}
.table-wrap{scrollbar-color:#dce5d6 transparent}
th{background:#f8faf7;color:#829078;font-size:11px;font-weight:500;border-bottom:1px solid var(--line)}
td{border-bottom-color:#edf1e9;color:var(--design-text);font-size:12px}
tr.clickable:hover{background:#f8fbf5}
.customer-name,.offer-customer{color:var(--ink);font-weight:500}
.customer-sub{color:#94a08e;font-size:10px}
.optional-fields{border-color:var(--line);border-radius:10px;background:#fafcf8}
.optional-fields>summary{color:#6c805c}

/* Overview and commissions. */
.dashboard-quickstart{width:calc(80% + 9px);gap:14px;margin-bottom:25px}
.quickstart-card{background:#eef5e8;border:1px solid #e3ecd9;border-radius:14px;color:var(--ink);box-shadow:none;min-height:100px;padding:18px;gap:12px}
.quickstart-card:hover{background:#e7f0de;border-color:#cddfc0}
.quickstart-icon{background:#e0edcf;color:#4d7731;border-radius:10px}
.quickstart-label{color:var(--ink);font-size:13px;font-weight:500}
.quickstart-arrow,.quickstart-card:hover .quickstart-arrow{color:#698d50}
.finance-surface,.dashboard-reports{padding:0;background:transparent;border:0;border-radius:0}
.finance-main{gap:18px}
.finance-surface .panel{border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--design-shadow)}
.finance-surface .panel-head{padding:22px 23px 14px;min-height:65px}
.finance-surface .panel-head h2{font-family:Inter,Arial,sans-serif;font-size:15px;font-weight:600;color:var(--ink)}
.earnings-total{color:var(--ink)}
.earnings-panel-actions{flex-wrap:wrap;gap:7px}
.earnings-panel-actions .period-select,.period-select{border-color:var(--line);border-radius:10px;background:#fff}
.period-select select{color:var(--ink)}
.todo-check,.task-check{border-radius:6px;border-color:#d6e2ce}
.todo-check.checked,.task-check.done{background:var(--teal);border-color:var(--teal);color:#fff}
.todo-empty>.icon{background:#f0f6e9;color:#6e9850}
.todo-completed{border-top-color:#e7eee2;color:#7a9270}
.commission-keyfigures{border:1px solid #e3eadb;background:#f1f6eb;border-radius:16px;padding:20px;margin-top:18px}
.commission-keyfigures>div{border-left-color:#dce7d1;padding:0 22px}
.commission-keyfigures>div:first-child{padding-left:0}
.commission-keyfigures h2{font-size:11px;color:#819174;margin-bottom:8px}
.commission-key-value>strong{color:var(--ink);font-size:24px}
.dashboard-update-notice{background:#f0f5eb;color:#74896a;border-radius:10px;font-size:11px}

/* Pipeline: preserve equal cards and seven desktop columns. */
.shell:has(.kanban){background:var(--bg)}
.kanban{gap:11px}
.kanban-col{background:#f0f4ee;border-radius:13px 13px 0 0;padding:11px 7px 12px}
.kanban-card{height:124px;border:1px solid #dfe6dd;border-radius:10px;padding:7px 8px;background:#fff;box-shadow:0 2px 3px #173f4905}
.kanban-card:hover{border-color:#b5ccb0;box-shadow:0 3px 8px #173f4908}
.kanban-card.has-visit{height:auto;min-height:145px;grid-template-rows:auto 12px 43px 13px 22px}
.pipeline-visit-time{display:flex;align-items:center;gap:4px;padding-bottom:3px;color:var(--teal);font-size:11px;font-weight:700;line-height:15px}
.pipeline-visit-time svg{width:13px;height:13px;flex-shrink:0}
.button.pipeline-visit-prompt{justify-self:start;min-height:26px;height:auto;padding:3px 7px;gap:4px;background:#ae3434;border:1px solid #ae3434;color:white;font-size:11px;line-height:16px}
.button.pipeline-visit-prompt:hover,.button.pipeline-visit-prompt:focus-visible{background:#882828;border-color:#882828}
.pipeline-visit-prompt svg{width:13px;height:13px}
.kanban-card h3{font-family:Inter,Arial,sans-serif;font-size:11px;line-height:15px;font-weight:600;color:var(--ink)}
.pipeline-offer-count{border:0;border-radius:4px;background:#e4f1ed;color:#075f56;padding:1px 6px;font:600 10px/14px Inter,Arial,sans-serif;margin-left:auto;margin-right:4px;cursor:pointer}
.pipeline-offer-count:hover,.pipeline-offer-count:focus-visible{background:#c9e5dc;text-decoration:underline}
.pipeline-card-city,.pipeline-card-date{color:#929e94}
.pipeline-menu-toggle{color:#799077}
.pipeline-owner-person>span{color:#778b70}
.pipeline-deal-value{color:#456b35}
.pipeline-deal-value.estimate{color:#8b9d80}
.pipeline-card-owner{border-top-color:#edf1e7}
.kanban-head .stage-label{border-radius:6px}
.shell:has(.kanban) .lead-filters>button.active{background:#eaf3e3;color:#537a3a;border-color:#dce8d3}
.shell:has(.kanban) .pipeline-search{border-radius:10px;background:#fff;border-color:var(--line)}
.pipeline-card-menu,.record-document-menu{border:1px solid var(--line);border-radius:12px;padding:6px;background:#fff;box-shadow:0 6px 22px #193d3420;color:var(--ink)}
.pipeline-card-menu .button,.record-document-menu .button{display:flex;width:100%;justify-content:flex-start;gap:9px;border:0;box-shadow:none;background:none;padding:9px 10px;border-radius:7px;font-size:11px;min-height:34px;color:var(--ink)}
.pipeline-card-menu .button:hover,.record-document-menu .button:hover{background:#eff5e8}
.record-document-menu{position:fixed;inset:auto;margin:0;width:190px}
.record-document-menu::backdrop{background:transparent}

/* Offers, calculation and administration. */
.offers-list{border-radius:17px}
.offers-toolbar{border-bottom:1px solid var(--line);padding:18px 21px}
.offer-status-tabs button{font-size:12px;color:#91a08a}
.offer-status-tabs button.active{color:var(--teal);border-bottom-color:var(--teal)}
.offers-tools .button{background:#fff}
.offers-filter-form{background:#f8fbf4;border-bottom-color:#e4ebdc}
.offers-table th{background:#fbfcf9;color:#819174}
.offers-table td{color:var(--design-text)}
.offer-customer{color:var(--ink)}
.offer-number{color:#426b43}
.offer-subject,.offer-version{color:#91a088}
.calc-section,.calc-summary{border-radius:16px}
.calc-summary .panel-head{background:#f1f6eb}
.module-choice{border-color:#e3e9de;border-radius:11px;margin-bottom:11px;background:#fff}
.module-choice.selected{border-color:#c0d4b4;background:#fafcf7}
.module-code{background:#e9f1e1;color:#6b8b50;border-radius:5px}
.module-choice input[type=checkbox],.attachment-options input[type=checkbox]{accent-color:var(--teal)}
.variant-picker{background:#f5f9f1;border-radius:12px;border-color:#e5eddd}
.partner-card{padding:22px}
.partner-card h3{font-size:17px;color:var(--ink)}
.partner-card .big-avatar{border-radius:13px;background:#edf4e5;color:#648246}
.partner-meta{border-color:#e5eddd}
.tabs{border-bottom-color:#e0e8da}
.tabs button.active{color:var(--teal);border-bottom-color:var(--teal)}
.assignment-choices{border-color:#e0e8da;border-radius:12px;background:#fafcf8}
.assignment-choices input{accent-color:var(--teal)}

/* Dialogs and other record drawers. */
.overlay{background:#173f4961;backdrop-filter:blur(4px)}
.drawer-wrap{background:#173f4955}
.drawer:not(.lead-record-drawer) .detail-block{border:1px solid var(--line);border-radius:14px;padding:18px;margin-bottom:16px;background:#fff}
.drawer:not(.lead-record-drawer) .detail-block h3{font-size:14px}
.drawer:not(.lead-record-drawer) .drawer-body{background:#fbfcfa}
.modal{border:1px solid var(--line);border-radius:18px;box-shadow:0 14px 48px #173f492b}
.modal-head{border-bottom-color:var(--line);padding:23px 25px}
.modal-head h2{font-family:Montserrat,Inter,sans-serif;font-size:20px;color:var(--ink)}
.modal-head p{font-size:12px;color:#87937f;line-height:1.65}
.modal-body{padding:23px 25px}
.modal-footer{border-top-color:var(--line);background:#fafcf8;padding:17px 25px}

/* Customer record – approved card-based reference. */
.lead-record-drawer{zoom:1;width:clamp(650px,42vw,780px);max-width:100%;height:100%;background:#fff;box-shadow:-12px 0 45px #183e3a12}
.lead-record-drawer .drawer-head{padding:16px 22px 14px;background:#fff;border-bottom:1px solid #edf0ed}
.lead-record-drawer .drawer-title{align-items:flex-start;gap:18px}
.lead-record-drawer .drawer-title h2{font-family:Montserrat,Inter,sans-serif;font-size:23px;line-height:1.25;font-weight:600;letter-spacing:-.6px;margin:0}
.lead-record-drawer .eyebrow{font-size:11px;letter-spacing:1.5px;color:#7b898a;margin-bottom:7px}
.record-name-line{display:flex;align-items:center;gap:4px 12px;flex-wrap:wrap}
.lead-record-drawer .record-name-line .pill{font-size:12px;padding:6px 10px;border-radius:8px}
.lead-record-drawer .lead-header-actions .icon-button{width:28px;height:28px;color:#778680}
.lead-record-drawer .lead-header-actions .icon{width:19px;height:19px}
.lead-record-drawer .drawer-body{padding:0 19px 22px;background:#fff}
.lead-value-banner{display:grid;grid-template-columns:35px minmax(0,1fr) auto;align-items:center;gap:16px;background:#f0f5e9;border-radius:17px;padding:12px 16px;margin:0 0 12px}
.lead-offer-summary{padding:12px 16px;margin:0 0 12px;border-radius:17px;background:#f0f5e9}
.lead-offer-summary h3{margin:0;font-size:18px}
.lead-offer-summary ul{list-style:none;padding:0;margin:10px 0}
.lead-offer-summary li+li{border-top:1px solid #d7e2cd}
.lead-offer-row{display:grid;grid-template-columns:minmax(0,1fr) auto 16px;align-items:center;gap:10px;width:100%;padding:10px 0;background:transparent;border:0;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.lead-offer-row span{overflow-wrap:anywhere}
.lead-offer-row small{display:block;font-size:12px;margin-top:3px}
.lead-offer-row:hover strong:first-child{text-decoration:underline}
.lead-offer-row>.icon{width:16px;height:16px}
.lead-value-icon{color:#4c7730;display:flex;align-items:center;justify-content:center}
.lead-value-icon>.icon{width:31px;height:31px;stroke-width:1.7}
.lead-value-data{display:flex;flex-direction:column;gap:5px;min-width:0}
.lead-value-data>span{font-size:12px;color:var(--ink);line-height:1.5}
.lead-value-data>strong{font-family:Montserrat,Inter,sans-serif;font-size:27px;font-weight:600;line-height:1.15;letter-spacing:-.6px;color:var(--ink)}
.lead-value-action{display:grid;gap:6px;border-left:1px solid #d7e2cd;padding-left:23px}
.lead-value-action .button{font-size:12px;min-height:33px;padding:6px 11px;border-radius:10px;font-weight:600}
.lead-record-body>.detail-block{padding:12px 16px;margin:0 0 10px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--design-shadow)}
.lead-record-body>.detail-block:last-child{border:1px solid var(--line)}
.lead-record-drawer .record-block-heading{margin-bottom:9px;min-height:27px;gap:12px;align-items:center}
.lead-record-drawer .record-block-heading h3{font-size:16px;font-weight:600;line-height:1.4;gap:12px;letter-spacing:-.4px;color:var(--ink)}
.lead-record-drawer .record-block-heading h3>.icon{width:25px;height:25px;flex:0 0 25px;stroke-width:1.6}
.lead-record-drawer .record-block-heading h3>span{font-size:11px;line-height:1.5;color:#5a7a3c;background:#e6efd9;padding:3px 7px;border-radius:9px;letter-spacing:0;font-weight:500}
.lead-record-drawer .record-block-heading>.button{font-size:12px;padding:5px 10px;min-height:29px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);gap:8px}
.lead-record-drawer .record-block-heading>.button>.icon{width:17px;height:17px;color:#546f51}
.lead-record-drawer .lead-contact-data{gap:6px;margin:0}
.lead-record-drawer .lead-contact-data>div{grid-template-columns:155px minmax(0,1fr);gap:15px;align-items:baseline}
.lead-record-drawer .lead-contact-data dt{font-size:12px;color:#8c9785;line-height:1.6}
.lead-record-drawer .lead-contact-data dd{font-size:13px;color:#456532;line-height:1.6;font-weight:400}
.lead-contact-data .record-assignment{border-top:1px solid var(--line);padding-top:6px}
.lead-contact-data .record-assignment dd{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 8px}
.record-assignment dd>span{min-width:0}
.record-assignment .button{margin-left:auto}
.lead-record-drawer .object-teaser-note{font-size:13px;color:#879194;margin:0;line-height:1.65}
.lead-record-drawer .object-teaser-grid{gap:10px;margin-bottom:8px}
.lead-record-drawer .object-teaser-grid dt{font-size:11px;color:#8c9785}
.lead-record-drawer .object-teaser-grid dd{font-size:13px;color:#456532}
.lead-record-drawer .object-details>summary{font-size:11px;color:#63814c}
.lead-record-drawer .object-answer-group h4{font-size:12px;color:#4a6e36}
.lead-record-drawer .object-answer-group dt{font-size:11px;color:#8b9782}
.lead-record-drawer .object-answer-group dd{font-size:12px;color:#456532}
.lead-record-drawer .object-data-form legend{font-size:13px;color:var(--ink)}
.lead-record-drawer .object-data-form .field{font-size:11px;color:#7b8b72}
.lead-record-drawer .object-data-form .field input,.lead-record-drawer .object-data-form .field textarea{font-size:12px;padding:9px 10px}
.lead-record-drawer .task{padding:8px 0;border-bottom:0;gap:12px}
.lead-record-drawer .task-check{width:20px;height:20px;flex-basis:20px;border-radius:6px;margin-top:0}
.lead-record-drawer .task-check>.icon{width:13px;height:13px}
.lead-record-drawer .task strong{font-size:12px;font-weight:400;line-height:1.7}
.lead-record-drawer .task.done strong{color:#9eac91}
.lead-record-drawer .task-date{font-size:10px;color:#829a6a}
.lead-record-drawer .record-empty{font-size:12px;color:#94a18a;padding:7px 0}
.lead-record-drawer .inline-task-form{background:#f8fbf4;border:1px solid #dfe9d5;border-radius:11px;padding:13px;margin-bottom:13px}
.lead-record-drawer .inline-task-form .field{font-size:11px}
.lead-record-drawer .inline-task-form input{font-size:12px;border-radius:8px;border-color:var(--line)}
.lead-record-drawer .file-row{padding:6px 0 9px;gap:10px;border-bottom:1px solid #edf1e8}
.lead-record-drawer .document-symbol{flex:0 0 25px;color:#547d35}
.lead-record-drawer .document-symbol>.icon{width:25px;height:28px;stroke-width:1.5;color:#547d35}
.lead-record-drawer .document-description{flex:1;min-width:0;overflow-wrap:anywhere;color:#0c7068;font-size:13px}
.lead-record-drawer .document-description .text-link{font-size:13px;font-weight:600;text-align:left;white-space:normal}
.lead-record-drawer .file-row small{font-size:11px;line-height:1.65;margin-top:5px;color:#6d7f84}
.document-row-actions{display:flex;align-items:center;gap:5px;flex-shrink:0}
.lead-record-drawer .document-row-actions .icon-button{width:27px;height:30px;padding:4px;color:var(--ink);margin:0}
.lead-record-drawer .document-row-actions .icon{width:20px;height:20px}
.lead-record-drawer .file-upload{padding:10px 13px;min-height:43px;margin-top:10px;border:1px dashed #c4d8b4;border-radius:11px;color:#638a44;font-size:12px;line-height:1.6;gap:10px;background:#fff}
.lead-record-drawer .file-upload>.icon{width:21px;height:21px;flex:0 0 21px;color:#678f43}
.lead-record-drawer #note-form textarea{width:100%;min-height:72px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px;font-size:12px;line-height:1.7;color:var(--design-text);resize:vertical}
.lead-record-drawer #note-form textarea::placeholder{color:#8c999d}
.lead-record-drawer #note-form>.button{margin-top:11px!important;font-size:12px;min-height:33px;padding:7px 12px;border-radius:9px;font-weight:600;color:var(--ink)}
.lead-record-drawer .record-changelog{margin:0;border:1px solid #e0e9d8;border-radius:14px;background:#fafcf7;padding:0 18px}
.lead-record-drawer .record-changelog>summary{padding:14px 0;font-size:12px;gap:12px;color:#628148}
.lead-record-drawer .record-changelog>summary>.icon:first-child{width:20px;height:20px;color:#78985e}
.lead-record-drawer .record-changelog>summary>b{font-size:11px;padding:2px 7px;border-radius:9px;background:#e8f0dd;color:#587d38}
.lead-record-drawer .record-changelog>summary>.icon:last-child{width:14px;height:14px;color:#637b55}
.lead-record-drawer .activity-row strong{font-size:12px;color:#587644}
.lead-record-drawer .activity-row small{font-size:11px;color:#90a080}
.lead-record-drawer .activity-time{font-size:10px;color:#96a28e}

/* Access and responsive surfaces. */
.login-story{background:#eff5e9;color:var(--ink)}
.login-story h1,.login-story h1 span{color:var(--ink)}
.login-story p,.login-benefits,.login-foot{color:#698055}
.login-form .button.primary{background:var(--teal);color:#fff}
.login-form input{border-radius:10px;border-color:var(--line)}
.login-benefits .icon{color:#65894b}

/* A single, centered sign-in area with a quiet footer. */
.login.login-centered{display:flex;flex-direction:column;align-items:center;min-height:100svh;padding:56px 24px 24px;gap:32px;background:#fff}
.login-centered .login-form{width:100%;max-width:420px;min-height:0;margin:auto;padding:0;flex:none}
.login-centered .login-logo{width:175px;margin-bottom:34px}
.login-centered .login-form h1{font-family:Montserrat,Inter,sans-serif;font-size:24px;font-weight:600;letter-spacing:-.6px;line-height:1.35}
.login-centered .login-form>p{font-size:12px;line-height:1.8;color:#7b8d80;margin:11px 0 27px}
.login-footer{display:flex;justify-content:center;align-items:center;gap:7px;color:#87998b;font-size:10px;line-height:1.6;text-align:center;flex:none}
.login-footer .icon{width:15px;height:15px;color:#7f9d88}
@media(max-width:600px){.login.login-centered{padding:36px 24px 22px;gap:30px}.login-centered .login-logo{width:160px;margin-bottom:28px}.login-centered .login-form h1{font-size:23px}.login-footer{font-size:9px}}
@media(max-width:1200px){.quickstart-card{padding:16px;min-height:95px}.quickstart-label{font-size:12px}.panel-head{padding:19px 19px 14px}.panel-body{padding:0 19px 19px}}
@media(max-width:950px){.dashboard-quickstart{width:100%}.finance-main{gap:15px}.lead-record-drawer{width:700px}.lead-record-drawer .lead-contact-data>div{grid-template-columns:175px minmax(0,1fr)}}
@media(max-width:700px){
 body{font-size:13px}.page-head h1,.welcome-heading h1{font-size:23px}.main{padding:25px 17px}
 .button{font-size:11px}.button.small{font-size:10px;min-height:32px}.panel-head{padding:18px 17px 13px}.panel-head h2,.finance-surface .panel-head h2{font-size:14px}.panel-title-icon{width:18px;height:18px}.panel-body{padding:0 17px 17px}
 .dashboard-quickstart{gap:10px;margin-bottom:20px}.quickstart-card{min-height:106px;padding:15px;grid-template-rows:auto auto}.quickstart-label{font-size:11px}.quickstart-icon{width:32px;height:32px}
 .finance-surface{padding:0;margin:0}.finance-surface .panel{border-radius:15px}.finance-surface .panel-head{padding:18px 17px 12px;min-height:59px}.finance-main{gap:14px}
 .commission-keyfigures{padding:18px;gap:14px}.commission-keyfigures>div,.commission-keyfigures>div:first-child{padding:0;border:0}.commission-key-value>strong{font-size:21px}
 .offers-toolbar{padding:14px 15px}.offer-status-tabs button{font-size:11px}.partner-card{padding:18px}
 .modal-head,.modal-body{padding:20px}.modal-footer{padding:15px 20px}.modal{border-radius:15px}
 .kanban{gap:8px}.kanban-col{padding:10px 6px 12px}.kanban-card{padding:7px 7px}.kanban-card h3{font-size:11px}
 .lead-record-drawer{width:100%;max-width:100%;zoom:1}.lead-record-drawer .drawer-head{padding:13px 16px 11px}.lead-record-drawer .drawer-title h2{font-size:23px;line-height:1.3}.lead-record-drawer .eyebrow{font-size:10px}.lead-record-drawer .record-name-line .pill{font-size:10px;padding:5px 8px}.lead-record-drawer .drawer-body{padding:0 14px 22px}
 .lead-value-banner{grid-template-columns:28px minmax(0,1fr);gap:8px;padding:11px;margin-bottom:9px;border-radius:15px}.lead-value-icon>.icon{width:27px;height:27px}.lead-value-data>span{font-size:11px}.lead-value-data>strong{font-size:25px}.lead-value-action{grid-column:1/-1;border-left:0;border-top:1px solid #dce7d1;padding:12px 0 0;margin-top:2px}.lead-value-action .button{width:100%;font-size:12px;min-height:38px}
 .lead-record-body>.detail-block{padding:10px 12px;margin-bottom:8px;border-radius:14px}.lead-record-drawer .record-block-heading{gap:7px;margin-bottom:8px;min-height:27px}.lead-record-drawer .record-block-heading h3{font-size:15px;gap:8px;letter-spacing:-.3px}.lead-record-drawer .record-block-heading h3>.icon{width:21px;height:21px;flex-basis:21px}.lead-record-drawer .record-block-heading h3>span{font-size:10px;padding:2px 6px}.lead-record-drawer .record-block-heading>.button{font-size:10px;padding:6px 9px;min-height:31px;gap:5px}.lead-record-drawer .record-block-heading>.button>.icon{width:14px;height:14px}
 .lead-record-drawer .lead-contact-data{gap:5px}.lead-record-drawer .lead-contact-data>div{grid-template-columns:105px minmax(0,1fr);gap:10px}.lead-record-drawer .lead-contact-data dt{font-size:10px}.lead-record-drawer .lead-contact-data dd{font-size:11px}.lead-record-drawer .object-teaser-note{font-size:11px}.lead-record-drawer .object-teaser-grid dt{font-size:10px}.lead-record-drawer .object-teaser-grid dd{font-size:11px}
 .lead-record-drawer .task strong{font-size:11px}.lead-record-drawer .task-check{width:19px;height:19px;flex-basis:19px}.lead-record-drawer .file-row{gap:9px;padding:5px 0 8px}.lead-record-drawer .document-symbol{flex-basis:20px}.lead-record-drawer .document-symbol>.icon{width:21px;height:24px}.lead-record-drawer .document-description .text-link{font-size:11px}.lead-record-drawer .file-row small{font-size:10px}.document-row-actions{gap:1px}.lead-record-drawer .document-row-actions .icon-button{width:24px;height:26px}.lead-record-drawer .document-row-actions .icon{width:18px;height:18px}
 .lead-record-drawer .file-upload{padding:12px;font-size:10px;gap:8px;min-height:50px;margin-top:13px}.lead-record-drawer .file-upload>.icon{width:18px;height:18px;flex-basis:18px}.lead-record-drawer #note-form textarea{font-size:11px;min-height:68px;padding:10px}.lead-record-drawer #note-form>.button{font-size:11px}.lead-record-drawer .record-changelog{padding:0 13px;border-radius:12px}.lead-record-drawer .record-changelog>summary{font-size:11px;padding:13px 0;gap:9px}
}
@media(max-width:390px){.lead-record-drawer .record-block-heading{flex-wrap:wrap}.lead-record-drawer .record-block-heading>.button{margin-left:auto}.lead-record-drawer .record-block-heading h3{font-size:14px}.lead-record-drawer .lead-contact-data>div{grid-template-columns:95px minmax(0,1fr);gap:9px}}

/* Offer workflow: fixed catalogue, visible customer address and review stages. */
.calculator-address{padding:18px;background:#f7faf7;border:1px solid #e2e9df;border-radius:12px}
.calculator-address-head{display:flex;flex-direction:column;gap:5px;margin-bottom:16px}
.calculator-address-head span{font-size:11px;color:#7d8c80}
.address-validation{display:flex;align-items:center;gap:8px;font-size:11px;color:#a56c2a;margin:12px 0 0}
.address-validation[hidden]{display:none}
.module-inputs input[readonly]{background:#f4f6f5;color:#526963;border-color:#e6ebe7;cursor:default}
.stage-approval{color:#a16815;background:#fff7e8;border:1px solid #f1dfbc}
.stage-ready{color:#2f7966;background:#edf7f1;border:1px solid #d6e9dd}
.mark-approval{background:#d7a959}.mark-ready{background:#73a48e}


@media(max-width:700px){.calculator-address{padding:12px}}


/* Persistent impersonation context, distinct from the partner interface. */
.workspace-preview-banner{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:14px;padding:14px 36px;background:#fff7e7;border-bottom:1px solid #ecd5a6;color:#7d581e;box-shadow:0 2px 8px #62441806}
.workspace-preview-banner>.icon{width:23px;height:23px;flex:none}
.workspace-preview-banner>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.workspace-preview-banner strong{font-size:12px;font-weight:650}
.workspace-preview-banner span{font-size:11px;line-height:1.5}
.workspace-preview-banner b{font-weight:600}
.workspace-preview-banner small{font-size:inherit;color:#927444}
.workspace-preview-banner .button{background:#fff;border-color:#dfc692;color:#755019;white-space:nowrap;flex:none;font-size:11px;box-shadow:none}
.workspace-preview-banner .button:hover{background:#fffaf0;border-color:#ba9757}
.workspace-preview-banner .button:focus-visible{outline:2px solid #9a6d22;outline-offset:3px}
@media(max-width:700px){.workspace-preview-banner{padding:12px 16px;gap:10px;flex-wrap:wrap}.workspace-preview-banner>div{flex-basis:calc(100% - 36px)}.workspace-preview-banner>.button{margin-left:33px}}

/* Keep every phase in one row. Smaller workspaces scroll inside the board. */
.kanban{display:grid;grid-template-columns:repeat(var(--stage-count,8),minmax(180px,1fr));grid-template-rows:minmax(0,1fr);grid-auto-flow:column;grid-auto-rows:auto;gap:10px;overflow-x:auto;overflow-y:auto;align-items:stretch;min-width:0;scrollbar-width:thin;scrollbar-color:#aab9af #f1f4f1;overscroll-behavior-x:contain;padding-bottom:10px}
.kanban-col{width:auto;min-width:0;max-width:none;min-height:100%;height:100%}

/* Explain the commission basis without adding another permanent text block. */
.commission-rate-heading{display:flex;align-items:center;gap:7px}
.commission-rate-heading h2{margin-bottom:0}
.commission-rate-info{position:relative;line-height:1;flex:none}
.commission-rate-info>summary{display:flex;align-items:center;justify-content:center;width:22px;height:22px;padding:2px;cursor:pointer;list-style:none;color:#7e907c;border-radius:50%}
.commission-rate-info>summary::-webkit-details-marker{display:none}
.commission-rate-info>summary .icon{width:15px;height:15px}
.commission-rate-info>summary:hover,.commission-rate-info[open]>summary{color:#286e62;background:#e2ecdc}
.commission-rate-info>summary:focus-visible{outline:2px solid #286e62;outline-offset:2px}
.commission-rate-tooltip{position:absolute;z-index:50;left:0;bottom:calc(100% + 9px);width:300px;max-width:calc(100vw - 55px);padding:16px 18px;border:1px solid #dfe7dd;border-radius:12px;background:#fff;box-shadow:0 8px 28px #163e391a;color:#52665d;font-size:12px;line-height:1.6;font-weight:400}
.commission-rate-tooltip>strong{display:block;font-size:12px;color:#173f49;margin-bottom:7px}
.commission-rate-tooltip p{margin:7px 0 0}
.commission-rate-example{padding:9px 0;border-top:1px solid #edf0ea;border-bottom:1px solid #edf0ea;color:#286e62}
.commission-rate-tooltip b{font-weight:600}
@media(max-width:700px){.commission-rate-tooltip{left:-100px;width:280px}}

/* Compact pipeline controls: search, ownership and one filter menu. */
.pipeline-toolbar{display:flex;align-items:flex-end;gap:12px;flex-wrap:nowrap;margin:0 0 20px;min-width:0;flex-shrink:0}
.pipeline-search-control{flex:0 1 220px;min-width:140px}
.pipeline-search-control>label,.pipeline-select-control{font-size:10px;line-height:1.4;color:#7c8e83}
.pipeline-search-control>label{display:block;margin-bottom:7px}
.pipeline-toolbar .pipeline-search{width:100%;min-height:40px;height:40px;border-radius:9px;padding:0 12px}
.pipeline-toolbar .pipeline-search input{width:100%;padding:9px 0;min-width:0;font-size:11px}
.pipeline-select-control{display:flex;flex:0 1 210px;flex-direction:column;gap:7px;min-width:150px;max-width:230px}
.pipeline-select-control select{appearance:none;width:100%;min-width:0;min-height:40px;height:40px;padding:9px 37px 9px 12px;border:1px solid var(--line);border-radius:9px;color:var(--ink);background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23768a80' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;font-size:11px;text-overflow:ellipsis}
.pipeline-filter-control{margin-left:auto;flex:0 0 40px}
.pipeline-toolbar .pipeline-filter-toggle,.pipeline-toolbar .pipeline-reset-control{position:relative;display:flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;min-height:40px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#6c8176}
.pipeline-filter-toggle>.icon{width:18px;height:18px}
.pipeline-toolbar .pipeline-filter-toggle:hover,.pipeline-toolbar .pipeline-filter-toggle.has-filter{border-color:#c5d7bc;color:#477457;background:#f1f7ec}
.filter-active-dot{position:absolute;top:6px;right:6px;width:5px;height:5px;border-radius:50%;background:#568559}
.pipeline-filter-menu{width:230px;max-width:calc(100vw - 24px);padding:7px;margin:0;border:1px solid #dfe7dd;border-radius:12px;background:#fff;color:var(--ink);box-shadow:0 10px 30px #163c301a}
.pipeline-filter-menu-heading{padding:8px 10px 10px;font-size:10px;color:#8b9a8a}
.pipeline-filter-menu>button{display:flex;align-items:center;gap:9px;min-height:37px;width:100%;border:0;border-radius:7px;background:transparent;text-align:left;padding:8px 10px;color:#647a6c;font-size:11px;cursor:pointer}
.pipeline-filter-menu>button:hover,.pipeline-filter-menu>button:focus-visible{background:#f2f6ee;color:#2c6656;outline:none}
.pipeline-filter-menu>button.active{background:#edf4e7;color:#48703d;font-weight:600}
.pipeline-filter-check{width:15px;flex:0 0 15px;display:flex}.pipeline-filter-check>.icon{width:14px;height:14px}
.pipeline-filter-count{margin-left:auto;background:#f0f3ed;border-radius:4px;padding:1px 6px;font-size:9px;font-weight:400;color:#82917e}
@media(max-width:900px){.pipeline-toolbar{flex-wrap:wrap;gap:10px}.pipeline-search-control{flex:1 1 calc(100% - 60px);min-width:0;order:0}.pipeline-filter-control{order:1}.pipeline-select-control{order:2;flex:1 1 calc(50% - 10px);min-width:0;max-width:none}.pipeline-toolbar .pipeline-reset-control{order:3}}
.offer-stage-hint{display:block;max-width:180px;color:#7b8e76;font-size:11px;line-height:1.5;text-align:right}
@media(max-width:700px){.offer-stage-hint{max-width:100%;text-align:left}}

/* Keep submission reachable when the sticky summary exceeds laptop height. */
@media(min-width:1051px){.calc-summary{top:16px;max-height:calc(100dvh - 32px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin}}

/* One phase palette governs both the column badge and every card marker. */
.kanban-col[data-stage="new"]{--phase-color:#5588ba;--phase-bg:#f0f7ff;--phase-border:#d7e8fb}
.kanban-col[data-stage="contact"]{--phase-color:#9b75bf;--phase-bg:#f7f1ff;--phase-border:#e9dcf8}
.kanban-col[data-stage="visit"]{--phase-color:#7d83bd;--phase-bg:#f2f2ff;--phase-border:#e0e1fa}
.kanban-col[data-stage="approval"]{--phase-color:#b87b22;--phase-bg:#fff7e8;--phase-border:#f1dfbc}
.kanban-col[data-stage="offered"]{--phase-color:#39867d;--phase-bg:#edf8f5;--phase-border:#d4ebe4}
.kanban-col[data-stage="won"]{--phase-color:#57937b;--phase-bg:#edf8f1;--phase-border:#d1eadb}
.kanban-col[data-stage="lost"]{--phase-color:#bd7d77;--phase-bg:#fff2ef;--phase-border:#f0d9d5}
.kanban-col .kanban-head .stage-label{color:var(--phase-color);background:var(--phase-bg);border-color:var(--phase-border)}
.kanban-col .pipeline-stage-mark{background:var(--phase-color)}
.offers-table .offer-row-actions{width:48px;padding:10px 12px;text-align:right}
.offers-table .offer-row-actions>.button{padding:6px;min-width:30px;min-height:30px;border:0;background:transparent}
.offers-trash-link{padding:12px 20px;border-top:1px solid var(--line);display:flex;justify-content:flex-end}
.offer-trash-list>div{display:flex;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}
.offer-trash-list>div>span{flex:1;min-width:0}.offer-trash-list small{display:block;margin-top:5px;line-height:1.6}
.offer-feedback-overlay{z-index:1100;background:#173f4938;backdrop-filter:blur(3px)}
.offer-feedback-message{white-space:pre-wrap;overflow-wrap:anywhere;padding:18px;background:#fff8ed;border:1px solid #efdfbf;border-radius:12px;line-height:1.7;color:var(--ink)}
.record-document-menu .button.danger{color:#b85950}
#toast .toast-undo{pointer-events:auto;margin-left:18px;border:0;background:transparent;color:inherit;text-decoration:underline;font-weight:600;padding:3px}

/* Meter-based product catalog */
.product-catalog{min-width:760px;table-layout:fixed;white-space:normal}
.product-catalog th,.product-catalog td{padding:9px 12px}
.product-catalog th:first-child{width:134px}
.product-sort{display:inline-flex;align-items:center;gap:6px;background:transparent;border:0;border-radius:5px;color:inherit;cursor:pointer;font:inherit;margin:-5px;padding:5px}
.product-sort:hover,.product-sort:focus-visible{color:var(--teal);background:var(--pale)}
.product-sort:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
.product-catalog .product-number,.product-catalog td:nth-child(2){overflow-wrap:anywhere}
.product-catalog .product-price{text-align:right;width:96px}
.product-catalog td.product-price{white-space:nowrap;font-variant-numeric:tabular-nums}
.product-catalog .product-price:nth-child(5){width:130px}
.product-catalog th:nth-child(3){width:92px}
.product-unit select{min-height:32px;padding:4px 5px;font-size:inherit}
.product-catalog .product-unit{overflow-wrap:anywhere}
.product-catalog th:last-child{width:158px}
.product-actions{display:flex;gap:5px;justify-content:flex-end}
.product-actions .danger{min-width:29px;padding-inline:6px}
.product-catalog td:last-child{text-align:right}
.product-price-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.product-price-fields input{width:100%;min-width:0}
@media(max-width:500px){.product-price-fields{grid-template-columns:1fr}}

.hourly-rate-panel{margin-bottom:18px}
.hourly-rate-table{min-width:500px}
.hourly-rate-table th,.hourly-rate-table td{padding:9px 12px}
.hourly-rate-table .product-price{text-align:right}
.hourly-rate-table td:last-child{text-align:right}
.product-hourly-name{display:block;color:var(--muted);margin-top:3px}
.product-price-fields[hidden]{display:none}

.live-login-access{border-top:1px solid var(--line);margin-top:28px;padding-top:20px}
.live-login-access h2{font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#677e71;margin:0 0 12px}
.live-login-roles{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.live-login-roles .button{width:100%;margin:0;min-height:34px}
.live-login-roles .button[aria-pressed=true]{background:#e7f1ea;border-color:#b8d0c3;color:#185d52}
.live-login-access>.text-link{margin-top:12px}
.login-form [hidden],.pdf-viewer [hidden]{display:none!important}

.offer-text-group + .offer-text-group{margin-top:1rem}
.offer-text-entry{padding:.75rem 0;border-bottom:1px solid #e1e8e2}
.offer-text-entry:last-child{border:0}
.offer-text-entry summary{cursor:pointer;font-weight:600}
.offer-text-entry summary b{margin-right:.5rem;color:#28695f}
.offer-text-entry p{white-space:pre-wrap;max-width:80ch;line-height:1.6;overflow-wrap:anywhere}


.system-wizard{list-style:none;padding:0;margin:18px 0 0;display:grid;gap:10px}
.system-stage{min-width:0;border:1px solid var(--line);border-radius:10px;background:#fff}
.system-stage:has(.system-step-heading[aria-current=step]){border-color:var(--teal);box-shadow:inset 3px 0 var(--teal)}
.system-stage h3{margin:0}
.system-step-heading{display:flex;align-items:center;gap:10px;width:100%;padding:12px 14px;text-align:left;background:transparent;border:0;border-radius:9px;color:var(--ink);font:inherit;font-size:15px;font-weight:600;cursor:pointer;scroll-margin:18px}
.system-step-heading[aria-current=step]{color:var(--teal);background:#eef5f1;border-radius:9px 9px 0 0}
.system-step-heading:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
.step-number{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:50%;background:#edf1ed;font-size:13px}
.system-step-heading[aria-current=step] .step-number{background:var(--teal);color:white}
.system-step-heading small{margin-left:auto;color:var(--muted);font-size:12px;text-align:right}
.system-step-heading svg{margin-left:auto;flex:none;width:15px;height:15px;transform:rotate(90deg)}
.system-step-heading small+svg{margin-left:0}
.system-step-heading[aria-expanded=true] svg{transform:rotate(-90deg)}
.system-stage-body{padding:16px 14px}
.system-stage-body[hidden]{display:none}
.system-choice span{padding:8px 13px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink);font:inherit;font-size:13px;cursor:pointer}
.system-choice input:checked+span{background:var(--teal);border-color:var(--teal);color:white}
.system-panel{padding-top:18px;scroll-margin:16px}
.system-choice{display:flex;flex-wrap:wrap;gap:8px;border:0;padding:0;margin:0 0 18px}
.system-stage-body .system-choice:first-child{padding:4px 0 0}
.system-stage-body .field:focus-within>input,.system-stage-body .field:focus-within>select{outline:2px solid var(--teal);outline-offset:2px}
.system-choice legend{margin:0 0 10px;font-weight:600}
.system-choice label{position:relative}.system-choice span{display:block}
.system-choice input{position:absolute;opacity:0;width:1px;height:1px}
.system-choice label:focus-within span{outline:2px solid var(--teal);outline-offset:2px}
.system-nav{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.system-nav button:first-child:not(:last-child){margin-right:auto}
.system-extras{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}
.system-extras h4{margin:0 0 10px;font-size:14px}
.system-included,.system-shared{color:var(--muted);font-size:12px}
.system-included{margin-top:12px}.system-included summary{cursor:pointer}
.system-shared{display:block;margin:-2px 0 12px}

#calc-summary{padding-top:20px}
.offer-settings{margin-top:22px;border-top:1px solid var(--line);padding-top:18px}
.offer-settings h3{margin:0;font-size:15px}
.payment-schedule{margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:10px}
.payment-schedule h3{margin-bottom:8px}
.payment-schedule>div{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-top:1px solid var(--line)}
.payment-schedule small{display:block;margin-top:3px}
.payment-schedule p{white-space:pre-line}

#contractor-form .field[hidden]{display:none}

.system-assignments .panel-body{max-width:790px}
.system-assignments h3{margin:22px 0 8px}
.system-assignments ul{list-style:none;padding:0;margin:0}
.system-assignments li{display:flex;gap:10px;align-items:center;padding:7px 0;border-bottom:1px solid var(--line)}
.system-assignments li .button{margin-left:auto}
.system-assignments form{margin-top:20px;display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.system-assignments form label{flex:1;min-width:210px}
.system-formula-head,.system-formula-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.system-formula-head{margin:18px 0 8px;justify-content:space-between}
.system-assignments .system-formula-head h3{margin:0}
.system-formula-actions{margin-left:auto;justify-content:flex-end}
.system-assignments .system-formula-actions .button{margin:0}
.formula-pricing{display:flex;align-items:center;gap:8px;margin:16px 0}
.formula-line{display:block;color:var(--teal);margin-top:3px}
.system-variable-inputs{margin-bottom:16px}

.system-assignments .assignment-picker{align-items:flex-start}
.assignment-picker .field{position:relative}
.assignment-picker .button{margin-top:22px}
.assignment-results{max-height:210px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:8px;background:#fff}
.assignment-results [role=option],.assignment-empty{padding:9px 12px;font-size:13px}
.assignment-results [role=option]{cursor:pointer}
.assignment-results [role=option]:hover,.assignment-results [aria-selected=true]{background:#eaf4ef;color:var(--teal)}

.formula-pricing input[type=checkbox],.variable-targets input[type=checkbox]{width:1rem;height:1rem;min-height:0;flex:0 0 1rem;padding:0}
.variable-targets label{display:flex;align-items:center;gap:8px;margin:8px 0}
[data-variable-initial][hidden]{display:none}
.system-select{max-width:42rem}
.assignment-section{padding:20px 0;border-top:1px solid var(--line)}
.system-select+.assignment-section{margin-top:20px}
.system-assignments .assignment-section>h3{margin:0 0 12px}
.assignment-section:last-child{padding-bottom:0}
.assignment-section .system-formula-head h4{margin:0}
.scope-management{margin-top:16px}
.scope-management>summary{cursor:pointer;color:var(--teal);font-weight:600}
.scope-management[open]>summary{margin-bottom:12px}

.system-equation{background:#edf5f1;border-left:3px solid var(--teal);padding:13px 16px;line-height:1.55;overflow-wrap:anywhere}
.formula-terms{width:100%;border-collapse:collapse;margin-top:12px}
.formula-terms th,.formula-terms td{text-align:left;padding:8px 5px;border-bottom:1px solid var(--line);white-space:normal}
.formula-terms th:last-child,.formula-terms td:last-child{text-align:right}
.formula-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.catalog-equation{line-height:1.65}

#position-price-form [data-equation]{min-height:3.7em;font-size:1rem;line-height:1.5;font-weight:600;color:var(--teal);background:#f4faf7}
#position-price-form fieldset{padding:0;border:0;margin:15px 0}
#position-price-form legend{font-weight:600;margin-bottom:6px}
.editor-tools,.editor-keys{display:flex;flex-wrap:wrap;gap:6px}
.editor-tools{margin-top:7px}.editor-tools .button{font-size:.77rem}
.editor-keys.operators .button{min-width:44px;font-size:1.18rem;line-height:1;background:#eef6f2}
.editor-inputs{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px}
.editor-inputs [data-add-number]{margin-top:6px}
.editor-result{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:12px 14px;background:#edf5f1;border-radius:8px;margin-top:15px}
.editor-result output{font-weight:700;text-align:right}
.editor-sample{margin-top:8px}.editor-sample summary{cursor:pointer}.editor-sample .form-grid{margin-top:8px}
@media(max-width:540px){.editor-inputs{grid-template-columns:1fr}.editor-result{flex-wrap:wrap}}

.seal-workbook{margin:12px 0}
.seal-workbook>summary{cursor:pointer;font-weight:650;color:var(--teal);padding:9px 0}
.seal-workbook>summary span{display:inline-block;margin-left:1em;font-size:.88em;font-weight:400}
.seal-workbook [hidden]{display:none}.seal-workbook p{margin:6px 0 12px}
.seal-scroll{overflow-x:auto}.seal-terms{margin:8px 0 16px}
.seal-terms th small{font-size:.72rem;font-weight:400;display:block;color:var(--muted)}
.seal-terms td,.seal-terms th{font-size:.84rem;vertical-align:middle}
.seal-terms input{display:inline-block;width:4.4rem;min-height:32px;padding:5px 6px}
.seal-terms tfoot{background:#edf5f1;font-weight:700}
.seal-measures,.seal-rates{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}
#position-price-form .seal-workbook{border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:16px}
@media(max-width:650px){.seal-terms{min-width:555px}}

.cost-overview{margin:10px 0 16px}
.cost-head,.cost-sums,.cost-position summary{display:flex;align-items:center;gap:12px}
.cost-head{background:#edf5f1;border-radius:8px;padding:16px;justify-content:space-between}
.cost-head small,.cost-sums span{display:block;font-size:.82rem;color:#546962}
.cost-head output,.cost-head>b{font-size:1.35rem;font-weight:700;color:var(--teal);text-align:right}
.cost-overview>p{margin:.65rem 0;font-size:.88rem}
.cost-sums{flex-wrap:wrap;gap:10px}.cost-sums>div{padding:6px 0}.cost-sums i{color:#597269}
.cost-position{display:flex;align-items:baseline;gap:8px;border-bottom:1px solid var(--line)}
.cost-position>details{min-width:0;flex:1}
.cost-position summary{cursor:pointer;list-style:none;padding:10px 0;flex-wrap:wrap}
.cost-position summary::-webkit-details-marker{display:none}
.cost-position summary>span:first-child{margin-right:auto}.cost-position summary small{color:var(--teal)}
.cost-edit{font-size:.8rem;color:var(--teal);text-decoration:underline}.cost-position.omitted summary>b{text-decoration:line-through;color:#75817b}
.include-row input{width:1.05rem;height:1.05rem;min-height:0;margin:0;accent-color:var(--teal)}
.cost-inputs{padding:0 0 12px}.cost-inputs>small{color:#62766b}
.sample-sizes>summary,.custom-price>summary{cursor:pointer;color:var(--teal);font-weight:600;padding:8px 0}
.custom-price{margin-top:14px}.seal-workbook h4{margin:14px 0 2px}
[data-catalog-example] .seal-measures{margin-bottom:14px}
[data-catalog-example] .seal-terms th label{display:inline-flex;align-items:baseline;gap:6px}
[data-catalog-example] .seal-terms input[type=checkbox]{width:1rem;min-height:0;accent-color:var(--teal)}
[data-catalog-example] .seal-terms td:last-child{white-space:nowrap;text-align:right}

.calc-section .wall-measures .form-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,135px),1fr));gap:8px}
.calc-section .wall-measures p,.calc-section .system-choice span{font-size:12px;line-height:1.45}
.calc-section .wall-measures p{margin:6px 0 12px}
.calc-section .system-choice span{padding:7px 10px}
.module-unit-price{display:block;padding:9px 0;font-size:13px;color:var(--ink)}

.offer-text-jump{max-width:44rem;margin-bottom:1rem}
.offer-text-row{display:flex;align-items:flex-start;gap:1rem;padding:.5rem 0;border-bottom:1px solid #e1e8e2;scroll-margin-top:1rem}
.offer-text-row:last-child{border:0}
.offer-text-row .offer-text-entry{flex:1;min-width:0;border:0;padding:.5rem 0}
.offer-text-entry summary{overflow-wrap:anywhere}
.offer-sample{margin-top:1rem}
.offer-sample summary{cursor:pointer;font-weight:600;color:#17675e}
.offer-sample-page{margin:.75rem 0 0;padding:1rem 1.25rem;border:1px solid #d6dfda;border-radius:.5rem;overflow-wrap:anywhere}
.offer-sample-page p{margin:.5rem 0 0;white-space:pre-wrap;line-height:1.5}

.offer-text-documents{margin-bottom:1.25rem}
.offer-text-documents .panel-body{display:flex;align-items:flex-end;flex-wrap:wrap;gap:.75rem}
.offer-text-documents .field{flex:1 1 20rem;min-width:0;max-width:44rem}

.offer-text-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.4rem}
.system-text-body{white-space:pre-line}
@media(max-width:600px){.offer-text-row{flex-wrap:wrap}.offer-text-row .offer-text-entry{flex-basis:100%}}

.text-workbench{margin-bottom:1rem}
.text-workbench .panel-body{display:flex;align-items:end;gap:1rem;flex-wrap:wrap}
.text-workbench .field:first-child{flex:1 1 17rem}
.text-workbench .field:last-child{flex:0 1 16rem}
.text-saved-documents{margin:1.25rem 0}
.text-saved-documents>summary{cursor:pointer;font-weight:600;padding:.75rem 0}
