:root{--ink:#152f35;--muted:#617477;--line:#dce4df;--paper:#f5f6f3;--white:#fff;--green:#16644d;--mint:#e6f2ea;--lime:#c8e797;--amber:#93600d;--amber-bg:#fff4da;--red:#a33836;--red-bg:#fce9e6;--radius:15px;--shadow:0 8px 28px #102c3208}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);border-radius:9px;padding:10px 15px;min-height:43px;background:white;color:var(--ink);font-weight:600;transition:background .12s,transform .12s}button:hover:not(:disabled){background:#edf3ee}button:active:not(:disabled){transform:translateY(1px)}button:disabled{opacity:.48;cursor:not-allowed}.primary{background:var(--ink);border-color:var(--ink);color:white}.primary:hover:not(:disabled){background:#24494e}.accent{background:var(--lime);border-color:var(--lime)}.danger{color:var(--red);border-color:#e4bdb8}.quiet{border-color:transparent;background:transparent}.small{font-size:0.9286rem;min-height:34px;padding:6px 10px}.wide{width:100%}button svg{width:18px;height:18px;flex-shrink:0}input,select,textarea{border:1px solid #cbd8d0;border-radius:9px;padding:11px 12px;background:white;color:var(--ink);width:100%;min-height:44px}input[type=checkbox]{width:18px;height:18px;min-height:18px;accent-color:var(--green)}input:focus,select:focus,textarea:focus{outline:2px solid #74ae93;outline-offset:1px}button:focus-visible,a:focus-visible{outline:3px solid #74ae93;outline-offset:3px}textarea{min-height:86px;resize:vertical}label.field{display:block;font-size:0.9286rem;font-weight:650}.field input,.field select,.field textarea{margin-top:6px}.field small{display:block;color:var(--muted);font-weight:400;margin-top:5px}.check{display:flex;gap:10px;align-items:flex-start;font-weight:400;font-size:1.0rem}.check input{margin-top:3px;flex-shrink:0}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.stack{display:grid;gap:16px}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.between{display:flex;justify-content:space-between;align-items:center;gap:16px}.end{justify-content:flex-end}.muted{color:var(--muted)}.tiny{font-size:0.8571rem}.sub{font-size:0.9286rem;color:var(--muted);margin:5px 0 0}.eyebrow{font-size:0.7857rem;letter-spacing:1.7px;text-transform:uppercase;font-weight:700;color:var(--muted)}h1,h2,h3,p{margin-top:0}h1{font-size:2.0714rem;line-height:1.22;letter-spacing:-.9px;margin-bottom:8px;font-weight:650}h2{font-size:1.4286rem;letter-spacing:-.4px;margin-bottom:10px}h3{font-size:1.1429rem;margin-bottom:8px}p{margin-bottom:14px}a{color:var(--green)}hr{border:0;border-top:1px solid var(--line);margin:20px 0}.wordmark{font-size:1.9286rem;font-weight:800;letter-spacing:-1px;white-space:nowrap}.brand-dot{color:#74ab85}.version{font-size:0.7143rem;font-weight:700;letter-spacing:1.5px;border:1px solid #496168;border-radius:5px;padding:4px 6px;color:#d4e0d7;white-space:nowrap}.app-header{background:var(--ink);color:white}.header-inner{max-width:1200px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:16px 26px;gap:15px}.header-inner .muted{color:#adbfbb}.header-inner button{color:#dce9de}.header-inner button:hover{color:var(--ink)}.identity{display:flex;align-items:center;gap:13px}.avatar{width:34px;height:34px;border-radius:50%;background:#36555a;display:grid;place-items:center;font-size:0.8571rem;font-weight:700}.nav{border-bottom:1px solid var(--line);background:#fff}.nav-inner{max-width:1200px;padding:0 26px;display:flex;margin:auto;gap:21px;overflow:auto;scrollbar-width:none}.nav button{border:0;background:none;border-radius:0;white-space:nowrap;min-height:55px;color:var(--muted);padding:0 4px;font-size:0.9286rem;border-bottom:3px solid transparent}.nav button.active{color:var(--ink);border-bottom-color:var(--green)}main{max-width:1200px;margin:0 auto;padding:30px 26px 80px}main.scout{max-width:780px}.page-top{margin-bottom:24px}.page-top .eyebrow{margin-bottom:7px}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:23px}.card.tight{padding:17px 20px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:22px 0}.stat{padding:19px 21px;border:1px solid var(--line);border-radius:12px;background:white}.stat.highlight{background:var(--ink);border-color:var(--ink);color:white}.stat-label{font-size:0.8571rem;color:var(--muted);margin-bottom:8px}.stat.highlight .stat-label{color:#bdd1c7}.stat-value{font-size:2.0714rem;font-weight:650;letter-spacing:-1px;line-height:1.2;font-variant-numeric:tabular-nums}.stat-foot{font-size:0.7857rem;color:var(--muted);margin-top:6px}.stat.highlight .stat-foot{color:#b6cfc0}.toolbar{margin-bottom:15px;gap:12px}.toolbar select{width:auto;min-width:150px;font-size:0.9286rem}.table-head,.batch-row{display:grid;grid-template-columns:minmax(160px,2.2fr) minmax(90px,1fr) 92px minmax(110px,1fr) 110px 36px;gap:14px;align-items:center}.table-head{padding:11px 20px;font-size:0.7143rem;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}.batch-row{padding:19px 20px;border:1px solid var(--line);border-radius:11px;background:white;margin-bottom:9px;width:100%;text-align:left;font-weight:400;box-shadow:var(--shadow)}.batch-row:hover{background:#fafcf9!important;border-color:#9fbaa8}.batch-name{font-size:1.0rem;font-weight:650;overflow:hidden;text-overflow:ellipsis}.batch-code{font-family:ui-monospace,monospace;font-size:0.7857rem;color:var(--muted);margin-top:3px}.amount{font-weight:650;font-variant-numeric:tabular-nums}.badge{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;padding:4px 9px;border-radius:6px;background:#edf1ed;color:#607367;font-size:0.7143rem;letter-spacing:.45px;font-weight:750;width:fit-content}.badge.submitted,.badge.maybe{color:var(--amber);background:var(--amber-bg)}.badge.approved,.badge.buy{background:var(--mint);color:var(--green)}.badge.paid{background:#e7edf7;color:#3b6087}.badge.no-buy{background:var(--red-bg);color:var(--red)}.empty{text-align:center;padding:52px 20px;border:1px dashed #c1d1c7;border-radius:var(--radius);background:#ffffff80}.empty-icon{width:50px;height:50px;margin:0 auto 17px;border-radius:13px;background:var(--mint);display:grid;place-items:center}.empty-icon svg{width:25px;height:25px}.notice{border-radius:10px;border:1px solid #e9d9a8;background:var(--amber-bg);color:#725716;padding:13px 16px;font-size:0.9286rem;line-height:1.6}.notice.info{background:#edf4ef;border-color:#cfdfd1;color:#365c48}.notice.error{background:var(--red-bg);border-color:#edc4bd;color:var(--red)}.notice p:last-child{margin:0}.crumb{margin-bottom:15px;padding-left:0}.stepper{display:flex;align-items:center;margin:22px 0;gap:9px}.step{font-size:0.7143rem;text-transform:uppercase;letter-spacing:.9px;color:var(--muted);display:flex;align-items:center;gap:7px;white-space:nowrap}.step:before{content:'';height:7px;width:7px;border-radius:50%;background:#ced9ce}.step.done{color:var(--green)}.step.done:before{background:var(--green)}.step-line{height:1px;background:var(--line);flex:1}.detail-title{margin-bottom:0}.totals-row{display:grid;grid-template-columns:repeat(3,1fr);border-radius:14px;background:var(--ink);color:white;margin:18px 0 10px;padding:20px 24px;gap:16px}.totals-row .label{font-size:0.7857rem;color:#b9cec2;margin-bottom:7px}.totals-row .number{font-size:1.8571rem;letter-spacing:-.7px;line-height:1.2;font-variant-numeric:tabular-nums}.totals-row .grand .number{color:var(--lime);font-weight:650}.section-heading{margin:28px 0 12px}.filter-chip{min-height:33px;border-radius:30px;font-size:0.7857rem;padding:6px 11px;font-weight:700}.filter-chip.selected{background:var(--ink);border-color:var(--ink);color:white}.item-card{display:grid;grid-template-columns:66px minmax(120px,1fr) 130px;gap:15px;align-items:start;background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;margin:10px 0}.product-image{height:64px;width:64px;background:#f3f5f0;border-radius:9px;display:grid;place-items:center;overflow:hidden;border:1px solid #e9eee8;color:#9baa9a}.product-image img{width:100%;height:100%;object-fit:contain}.product-image svg{width:24px;height:24px}.item-title{font-size:1.0rem;font-weight:650;line-height:1.4;margin-bottom:5px;overflow-wrap:anywhere}.item-meta{font-size:0.8571rem;color:var(--muted);margin-bottom:6px}.item-money{text-align:right;font-size:0.8571rem}.item-money .amount{font-size:1.0714rem}.item-controls{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}.item-controls select{font-size:0.7857rem;padding:5px 8px;min-height:32px;width:120px}.item-card.filtered{display:none}.item-footer{grid-column:2/-1;border-top:1px solid #edf1eb;padding-top:8px;font-size:0.7857rem;color:var(--muted)}.composer{margin:18px 0;border:1px solid #b5cdbb;background:#fdfefb}.lookup-row{display:grid;grid-template-columns:minmax(100px,1fr) auto auto;gap:8px;margin-top:10px}.lookup-row input{font-family:ui-monospace,monospace}.product-options{display:grid;gap:9px;margin-top:15px}.product-option{text-align:left;justify-content:flex-start;font-weight:400}.product-option .product-image{flex-shrink:0}.product-form{border-top:1px solid var(--line);margin-top:18px;padding-top:18px}.commission-preview{border:1px solid var(--line);border-radius:9px;background:#f1f6ed;padding:11px 14px;color:var(--green);font-size:0.9286rem}.section-card{margin:20px 0}summary{cursor:pointer;font-size:1.0rem;font-weight:600;padding:3px 0}details[open] summary{margin-bottom:17px}.audit{list-style:none;padding:0;margin:0}.audit li{display:grid;grid-template-columns:9px 1fr auto;align-items:start;gap:11px;padding:11px 0;border-bottom:1px solid #edf1ea;font-size:0.8571rem}.audit li:before{content:'';width:6px;height:6px;background:#a1b7a5;border-radius:50%;margin-top:5px}.user-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid var(--line)}.user-row:last-child{border:0}.switch{width:45px;height:26px;min-height:26px;padding:0;border:0;border-radius:20px;background:#cbd7ce;position:relative}.switch:before{content:'';position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002}.switch[aria-checked=true]{background:var(--green)}.switch[aria-checked=true]:before{left:22px}.switch-label{display:flex;align-items:center;gap:10px;font-size:0.8571rem}.login-page{min-height:100svh;display:grid;grid-template-columns:1.1fr 1fr}.login-brand{background:var(--ink);color:white;padding:42px 10%;display:flex;flex-direction:column;justify-content:space-between;min-height:100svh;position:relative;overflow:hidden}.login-brand .wordmark{font-size:2.5rem}.login-brand .brand-dot{color:var(--lime)}.login-message{margin:80px 0}.login-message h1{font-size:clamp(38px,4.8vw,65px);line-height:1.08;max-width:560px;letter-spacing:-2px;font-weight:500}.login-message h1 em{font-style:normal;color:var(--lime)}.login-message p{color:#b9cdc2;max-width:350px;font-size:1.1429rem;line-height:1.7;margin-top:26px}.login-flow{display:flex;gap:13px;font-size:0.7857rem;color:#dce8da;align-items:center;margin-top:46px;flex-wrap:wrap}.login-flow span{padding:7px 11px;border:1px solid #4a6263;border-radius:5px}.login-bottom{font-size:0.7857rem;color:#8fab9d;letter-spacing:.6px}.login-right{display:grid;place-items:center;padding:50px 35px}.login-form{width:100%;max-width:360px}.login-form h2{font-size:2.0714rem;margin-top:13px}.login-form .stack{gap:21px;margin-top:29px}.password-field{position:relative}.password-field input{padding-right:67px}.password-field button{position:absolute;right:4px;top:8px;min-height:34px;font-size:0.7857rem;border:0;background:transparent}.login-hint{margin-top:26px;border-top:1px solid var(--line);padding-top:18px;font-size:0.8571rem;color:var(--muted);line-height:1.7}.login-meta{margin-top:35px;font-size:0.7143rem;letter-spacing:1px;color:var(--muted)}.boot{padding:90px 20px;text-align:center}.boot p{color:var(--muted)}dialog{border:1px solid var(--line);border-radius:18px;padding:26px;color:var(--ink);width:min(540px,calc(100vw - 26px));max-height:90svh;background:white;box-shadow:0 20px 90px #0b26253d}dialog::backdrop{background:#102c3270;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.dialog-head h2{margin:0}.dialog-error{margin:12px 0}.dialog-footer{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}video{width:100%;background:#102c32;max-height:350px;border-radius:12px;object-fit:cover}.intake-line{display:grid;grid-template-columns:1fr 78px;gap:14px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}.intake-line label{font-size:0.8571rem}.intake-line input{padding:8px;text-align:center}.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.form-error{color:var(--red);font-size:0.9286rem}.spinner{width:15px;height:15px;border:2px solid #9eafa5;border-right-color:transparent;border-radius:50%;display:inline-block;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,10px);padding:12px 20px;max-width:calc(100vw - 28px);border-radius:11px;box-shadow:0 8px 32px #0a25152b;background:var(--ink);color:#fff;font-size:0.9286rem;opacity:0;pointer-events:none;transition:.15s;z-index:9999}#toast.show{opacity:1;transform:translate(-50%,0)}#offline{position:sticky;top:0;z-index:100;background:#fff0cf;border-bottom:1px solid #e0cc96;color:#715215;text-align:center;padding:9px 14px;font-size:0.8571rem}.pagination{margin-top:22px;display:flex;align-items:center;justify-content:space-between;gap:10px}.print-only{display:none}.hidden{display:none!important}.health-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line);font-size:0.9286rem}.money-line{display:flex;justify-content:space-between;gap:20px;padding:7px 0;font-size:1.0rem}.separator{height:1px;background:var(--line);margin:12px 0}.profile-limit{max-width:570px}.auth-name{font-size:0.8571rem}.payment-detail{font-size:0.8571rem;line-height:1.7}.overflow{overflow-wrap:anywhere}
@media(min-width:850px){main.scout .table-head,main.scout .batch-row{grid-template-columns:minmax(150px,2fr) 75px 50px 110px 76px 20px;gap:9px}main.scout .batch-row{padding:17px 14px}main.scout .batch-row .scout-col{font-size:0.7857rem}}
@media(max-width:780px){.header-inner{padding:14px 18px}.header-inner .wordmark{font-size:1.7143rem}.nav-inner{padding:0 18px;gap:19px}main{padding:23px 17px 65px}.table-head{display:none}.batch-row,main.scout .batch-row{grid-template-columns:minmax(100px,1fr) auto 20px;gap:10px;padding:15px}.batch-row .scout-col,.batch-row .date-col{display:none}.batch-row .units-col{grid-row:2;grid-column:1}.batch-row .amount-col{grid-row:2;grid-column:2;text-align:right}.batch-row .status-col{grid-row:1;grid-column:2}.batch-row .arrow-col{grid-row:1/3;grid-column:3}.stats{gap:8px}.stat{padding:15px 12px}.stat-value{font-size:1.7143rem}.stat-label{font-size:0.7143rem}.stat-foot{font-size:0.7143rem}.card{padding:18px}h1{font-size:1.8571rem}.totals-row{padding:18px;gap:10px}.totals-row .number{font-size:1.6429rem}.login-page{display:block}.login-brand{min-height:0;padding:24px}.login-message{margin:34px 0 12px}.login-message h1{font-size:2.5714rem;max-width:400px;letter-spacing:-1.2px}.login-message p{display:none}.login-flow,.login-bottom{display:none}.login-brand .wordmark{font-size:1.9286rem}.login-right{padding:34px 24px 50px}.login-form h2{font-size:1.8571rem}.login-form .stack{margin-top:25px;gap:18px}.user-row{align-items:flex-start;flex-wrap:wrap;gap:12px}.user-row .row{width:100%}.page-top.between{align-items:flex-start}.item-card{grid-template-columns:51px minmax(90px,1fr) 86px;gap:11px;padding:13px}.product-image{height:50px;width:50px}.item-title{font-size:0.9286rem}.item-meta{font-size:0.7857rem}.item-money .amount{font-size:1.0rem}.item-money{font-size:0.7143rem}.item-controls{grid-column:1/-1}.lookup-row{grid-template-columns:minmax(100px,1fr) auto}.lookup-row .scan-btn{grid-row:2;grid-column:1/-1}.auth-name{display:none}.totals-row .label{font-size:0.7143rem}.audit li{grid-template-columns:7px 1fr}.audit li>time{grid-column:2;font-size:0.7143rem;margin-top:-7px}.step{font-size:0.6429rem;letter-spacing:.3px;gap:4px}.stepper{gap:5px}}
@media(max-width:380px){.grid2{grid-template-columns:1fr}.stats{grid-template-columns:1fr}.totals-row .number{font-size:1.3571rem}.item-card{grid-template-columns:40px 1fr}.item-money{grid-column:2;text-align:left}.item-footer{grid-column:1/-1}.product-image{height:40px;width:40px}.version{font-size:0.5714rem}.identity{gap:5px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{@page{margin:15mm}body{background:white;color:#111;font-size:10pt}.no-print,.app-header,.nav,#toast,#offline,dialog,.composer,button,select{display:none!important}main,main.scout{max-width:none;padding:0}.print-only{display:block}.item-card.filtered{display:grid}.item-card{break-inside:avoid;padding:9px;margin:7px 0;box-shadow:none}.card{box-shadow:none;border:0;padding:0}.totals-row{background:white;color:#111;border:1px solid #bbb;padding:12px}.totals-row .label,.totals-row .grand .number{color:#111}.totals-row .number{font-size:1.2857rem}.stepper{display:none}.item-title{font-size:10pt}.item-meta,.item-money{font-size:8pt}.section-heading{margin-top:15px}details:not([open])>*:not(summary){display:none}.audit{display:none}.product-image{height:45px;width:45px}.page-top{margin-bottom:10px}}

/* 1.1 accessibility, source comparisons, delivery and settings */
:root{font-size:16px}html[data-text-size=large]{font-size:18px}html[data-text-size=extra]{font-size:21px}
body{font-size:1rem;line-height:1.55}input,select,textarea,button{font-size:1rem;max-width:100%}button,input,select{min-height:44px}button{white-space:normal}input,select,textarea{min-width:0}textarea{line-height:1.6}.header-inner{gap:1rem;flex-wrap:wrap}.identity{margin-left:auto}.preferences{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap;margin-left:auto}.segmented{display:flex;border:1px solid #b6c9bd;border-radius:.65rem;padding:.18rem;background:#fff;gap:.15rem}.segmented button{border:0;background:transparent;box-shadow:none;padding:.35rem .65rem;min-width:42px;color:#264737}.segmented button.active{background:#174a3a;color:#fff}.login-right{position:relative;padding-top:6rem}.login-preferences{position:absolute;top:1.5rem;right:1.5rem}.settings-tabs{display:flex;gap:.45rem;flex-wrap:wrap;margin-bottom:1.5rem}.settings-tabs button.active{background:#153e34;color:#fff}.profile-wide{max-width:900px}.promo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:1rem}.promo-rates{display:flex;justify-content:space-between;gap:1rem;margin:1.5rem 0}.promo-rates strong{display:block;font-size:1.4rem;color:#126343}.person-extra{width:100%;display:flex;justify-content:space-between;gap:1rem;border-top:1px solid #e1e9e2;padding-top:.8rem}.user-row{flex-wrap:wrap}.promo-tag{font-size:.78rem;color:#306844;margin-top:.25rem;overflow-wrap:anywhere}.batch-row,.table-head{grid-template-columns:1.3fr 1fr 1.4fr .8fr .8fr 22px}.batch-summary-line{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin:-.3rem 0 1.2rem;padding:1rem 1.3rem;background:#eef3ed;border-radius:.7rem}.units-col{line-height:1.6}.bsr{font-size:1.28rem;margin:.6rem 0}.bsr-buy{font-weight:800;color:#126434}.bsr small{font-size:.72rem;color:#627668;font-weight:400}.assessment-grid{display:flex;flex-wrap:wrap;gap:1rem;margin:.6rem 0}.assessment-grid>div{background:#f2f5f0;padding:.55rem .75rem;border-radius:.5rem;font-size:.85rem;min-width:160px}.assessment-reasons{margin:.8rem 0;font-size:.9rem}.assessment-reasons p{line-height:1.6}.commission-split{margin-top:.7rem;padding-top:.6rem;border-top:1px solid #dae4d9;font-size:.88rem}.needs-review{border:2px solid #d08a43}.metrics-panel{grid-column:1/-1;background:#f0f5ef;padding:.9rem 1rem;border-radius:.5rem}.metric-values{display:flex;flex-wrap:wrap;gap:2rem;margin-top:.7rem}.metric-values strong{display:block;font-size:1.5rem;color:#214a39}.metrics-panel .between{align-items:flex-start}.metrics-panel button{max-width:13rem;flex-shrink:0}.item-money{max-width:15rem}.item-title{overflow-wrap:anywhere}.terms-index{display:grid;gap:.7rem}.terms-document{max-width:960px;margin-inline:auto;padding:clamp(1rem,4vw,3rem)}.terms-body{font-size:1.05rem;line-height:1.8;overflow-wrap:anywhere;color:#213e35}.terms-body h2{font-size:1.35rem;line-height:1.4;margin:2rem 0 .8rem}.terms-body p{margin:1rem 0}.terms-body strong{font-weight:750}.terms-body li{margin:.5rem 0}.terms-editor{min-height:360px;font:1rem/1.7 ui-monospace,monospace;resize:vertical}.acceptance-panel{margin-top:2rem;padding-top:1.5rem;border-top:2px solid #c4d5c5}.acceptance-panel code,.tiny.mono{overflow-wrap:anywhere}.address-block{white-space:pre-wrap;padding:1rem;border-radius:.7rem;background:#eef3ed;line-height:1.75}.box-editor{padding:1rem;border:1px solid #d4dfd4;border-radius:.7rem;margin:1rem 0}.box-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin-top:.8rem}.box-row{display:flex;flex-wrap:wrap;gap:1rem;padding:.8rem 0;border-bottom:1px solid #dde6dc}code{overflow-wrap:anywhere}.field:has(textarea){width:100%}.check{align-items:flex-start;line-height:1.6}.check input{min-height:22px;flex-shrink:0;margin-top:.2rem}.form-error{white-space:pre-line}.detail-title{gap:1rem;flex-wrap:wrap}.batch-name,.user-content{overflow-wrap:anywhere}dialog{max-height:90dvh;overflow:auto;width:min(92vw,780px)}.notice p:last-child{margin-bottom:0}.profile-limit{max-width:900px}.row{flex-wrap:wrap}
@media(max-width:1000px){.identity .auth-name{display:none}.table-head{display:none}.batch-row{grid-template-columns:1.2fr 1fr 1.3fr;gap:.8rem}.batch-row .scout-col{display:block}.amount-col{grid-column:2}.arrow-col{display:none}.item-card{grid-template-columns:72px minmax(0,1fr)}.item-money{grid-column:2;max-width:none;text-align:left}.metrics-panel{grid-column:1/-1}}
@media(max-width:650px){.header-inner{padding:.8rem 1rem;gap:.6rem}.header-inner>.row{flex:1}.preferences{order:2;margin-left:0;width:100%;justify-content:flex-end}.identity{margin:0}.identity .avatar{display:none}.version{font-size:.68rem}.nav-inner{flex-wrap:wrap;gap:.2rem}.nav-inner button{padding:.5rem .7rem}main{padding:1.2rem .85rem}.stats{grid-template-columns:1fr}.grid2{grid-template-columns:1fr}.batch-row{grid-template-columns:1fr 1fr;padding:1rem}.batch-row>:first-child{grid-column:1/-1}.batch-row .scout-col{display:block;grid-column:1}.batch-row .units-col{grid-column:2}.amount-col{grid-column:1}.status-col{grid-column:2}.box-fields{grid-template-columns:1fr 1fr}.metrics-panel .between{display:block}.metrics-panel button{margin-top:.8rem}.metric-values{gap:1.4rem}.login-preferences{top:1rem;right:1rem}.settings-tabs button{flex:1 1 auto}.item-card{padding:.85rem;gap:.75rem}.item-card .product-image{width:68px;height:68px}.terms-document{padding:1rem}.bsr{font-size:1.2rem}.box-editor{padding:.7rem}.promo-rates{flex-wrap:wrap}.page-top h1{font-size:1.9rem}.totals-row{flex-wrap:wrap}.totals-row>div{min-width:9rem}.stepper{font-size:.75rem}.step{white-space:normal}.batch-summary-line{display:block}.provider-form{min-width:0}}
@media print{.preferences,.settings-tabs,.terms-index,.acceptance-panel form,.provider-form button{display:none!important}.terms-document{border:0;max-width:none;padding:0}.terms-body{font-size:11pt}.metrics-panel{break-inside:avoid}.item-card{break-inside:avoid}}

/* Preserve readability over compact 1.0 layout rules. */
.terms-body h1{font-size:1.55rem;line-height:1.35}.terms-body h3{font-size:1.15rem;margin:1.6rem 0 .7rem}.person-extra>div{min-width:0}
@media(min-width:850px){main.scout .table-head,main.scout .batch-row{grid-template-columns:1.4fr 1fr 1.5fr .8fr .8fr 20px}main.scout .batch-row .scout-col{font-size:.85rem}}
@media(max-width:780px){.batch-row,main.scout .batch-row{grid-template-columns:1fr 1fr;gap:.8rem}.batch-row>:first-child{grid-column:1/-1;grid-row:1}.batch-row .scout-col{grid-column:1;grid-row:2;display:block}.batch-row .units-col{grid-column:2;grid-row:2}.batch-row .amount-col{grid-column:1;grid-row:3;text-align:left}.batch-row .status-col{grid-column:2;grid-row:3}.batch-row .arrow-col{display:none}.login-right{padding-top:6rem}}
@media(max-width:480px){.totals-row{grid-template-columns:1fr}.totals-row>div{min-width:0}.totals-row .number{font-size:1.55rem}.box-fields{grid-template-columns:1fr 1fr}.assessment-grid>div{min-width:0}.stepper{flex-wrap:wrap}.page-top.between{flex-wrap:wrap}.item-controls select{width:auto;max-width:100%}.lookup-row{grid-template-columns:minmax(0,1fr) auto}.batch-row,main.scout .batch-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.person-extra{flex-wrap:wrap}}

@media(min-width:651px){.identity{margin-left:0}}

/* PORTAL 1.1.1 — desktop width and compact header utilities only.
 * Page text still scales via the existing 16 / 18 / 21px root sizes.
 * Utility controls intentionally do not enlarge when page text size changes.
 */
@media screen and (min-width:1001px){
  .header-inner,.nav-inner,main,main.scout{
    max-width:1440px;
    padding-inline:clamp(32px,2.78vw,40px);
  }
  /* Let longer batch names wrap within their columns, not widen the page. */
  .batch-row>*,.table-head>*{min-width:0}
}
.preferences{
  flex:0 0 auto;
  gap:8px;
  flex-wrap:nowrap;
  font-size:12px;
  line-height:1;
}
.preferences .segmented{
  align-items:center;
  gap:2px;
  padding:2px;
  border:1px solid #cbd8d0;
  border-radius:6px;
  background:#f6f8f5;
}
.preferences .segmented button{
  flex:0 0 auto;
  min-width:28px;
  width:30px;
  min-height:28px;
  height:28px;
  padding:0 4px;
  gap:0;
  border:0;
  border-radius:4px;
  font-size:12px;
  line-height:1;
  font-weight:650;
  white-space:nowrap;
  color:#294c3b;
  background:transparent;
}
.preferences .segmented button:hover:not(:disabled){background:#e7eee7;color:#173b2d}
.preferences .segmented button.active{background:#dbe9df;color:#174832}
.preferences [data-textsize] span{display:block;line-height:1;font-weight:600}
.preferences [data-textsize=standard] span{font-size:12px}
.preferences [data-textsize=large] span{font-size:16px}
.preferences [data-textsize=extra] span{font-size:20px}
.header-inner{gap:12px}
.header-inner .identity{gap:9px}
.header-inner .preferences .segmented{background:#ffffff08;border-color:#ffffff32}
.header-inner .preferences .segmented button{color:#c8d8d2}
.header-inner .preferences .segmented button:hover:not(:disabled){background:#ffffff15;color:#fff}
.header-inner .preferences .segmented button.active{background:#ffffff24;color:#fff}
.preferences .segmented button:focus-visible{outline:2px solid #86bfa2;outline-offset:2px}
@media screen and (max-width:650px){
  /* Brand/account first row, compact utilities tucked right on the second. */
  .header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;padding:12px 16px}
  .header-inner>.row{grid-row:1;grid-column:1;min-width:0;gap:8px}
  .header-inner .identity{grid-row:1;grid-column:2;justify-self:end;gap:6px;margin:0}
  .header-inner .wordmark{font-size:26px}
  .header-inner .version{font-size:9px;letter-spacing:1px;padding:3px 5px}
  .header-inner .preferences{grid-row:2;grid-column:1/-1;justify-self:end;width:auto;margin:0;gap:6px}
  .login-preferences{top:16px;right:16px}
}
@media (pointer:coarse){
  /* Keep a useful touch target while avoiding the old oversized white pills. */
  .preferences .segmented button{min-height:34px;height:34px;min-width:32px;width:32px}
}

/* PORTAL 1.2.2 — lifecycle only; baseline layout remains untouched. */
.badge.archived{color:#47585d;background:#e9eef0}.badge.denied{color:#913a2d;background:#f8e8e3}
.lifecycle-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.lifecycle-notice{overflow-wrap:anywhere}
.lifecycle-notice p{margin:8px 0 0}.lifecycle-reason{white-space:pre-wrap}.lifecycle-underlying{margin-top:4px}
@media print{.lifecycle-actions{display:none!important}}
