@scope (#product-dialog) {
:scope{--ink:#10252a;--muted:#65767a;--bg:#f3f6f5;--paper:#fff;--line:#dce5e3;--teal:#087f72;--teal-2:#d8f3ed;--blue:#2458a6;--amber:#c27112;--rose:#a53d58;--danger:#a34238;--shadow:0 18px 50px rgba(16,37,42,.08);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-size:16px}*{box-sizing:border-box}body{margin:0;min-height:100vh}.rail{position:fixed;inset:0 auto 0 0;width:224px;background:var(--ink);color:#dbe8e6;padding:28px 18px;display:flex;flex-direction:column;z-index:3}.brand{display:flex;align-items:center;gap:10px;color:white;text-decoration:none;font-size:1.28rem;font-weight:750;letter-spacing:-.02em;margin:0 10px 42px}.brand-mark{display:grid;place-items:center;width:31px;height:31px;border:1px solid #63cab8;border-radius:9px;color:#7be0cc;font-family:Georgia,serif;font-style:italic}.rail nav{display:grid;gap:6px}.nav-item{appearance:none;border:0;background:transparent;color:#9fb3b1;text-align:left;border-radius:10px;padding:13px 12px;font:inherit;font-size:.88rem;cursor:pointer;display:flex;gap:12px;align-items:center}.nav-item span{font-size:.66rem;letter-spacing:.08em;color:#6f8d8a}.nav-item:hover,.nav-item.active{background:#1b373b;color:#fff}.nav-item.active span{color:#7be0cc}.rail-foot{margin-top:auto;padding:14px 10px;font-size:.76rem;line-height:1.7;color:#b6c7c5;border-top:1px solid #294448}.rail-foot small{color:#76928f}.pulse{display:inline-block;width:7px;height:7px;border-radius:50%;background:#6bd2ad;margin-right:7px;box-shadow:0 0 0 4px rgba(107,210,173,.12)}main{margin-left:224px;min-height:100vh}.topbar{height:112px;padding:26px 40px 20px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);background:rgba(255,255,255,.75);backdrop-filter:blur(14px);position:sticky;top:0;z-index:2}.eyebrow,.kicker,.label{margin:0 0 5px;color:var(--teal);font-size:.68rem;letter-spacing:.14em;font-weight:750}.topbar h1{font-family:Georgia,serif;font-weight:500;font-size:2rem;margin:0;letter-spacing:-.03em}.header-actions{display:flex;gap:10px;align-items:center}.status-chip{font-size:.76rem;border:1px solid var(--line);background:#fff;border-radius:99px;padding:8px 12px;color:#41575a}.primary,.ghost,.text-btn,.trace-link,.segmented button{border:0;font:inherit;cursor:pointer}.primary{background:var(--ink);color:#fff;border-radius:8px;padding:11px 16px;font-weight:650}.primary:hover{background:#17363c}.ghost{background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:10px 14px}.view{display:none;padding:30px 40px 50px;max-width:1500px;margin:auto}.view.active{display:block}.patient-banner{background:linear-gradient(110deg,#e7f5f1,#f6f9f8 60%,#eef4f8);border:1px solid #d8e7e3;border-radius:14px;padding:21px 24px;display:flex;align-items:center;gap:16px}.avatar{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#183f45;color:#fff;font-family:Georgia,serif;font-size:1.1rem}.patient-banner h2{font-size:1.25rem;margin:0 0 3px}.patient-banner p{color:var(--muted);font-size:.85rem;margin:0}.patient-meta{margin-left:auto;display:flex;gap:42px}.patient-meta span{display:grid;gap:5px}.patient-meta b{font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;color:#7c8e91}.patient-meta em{font-style:normal;font-size:.88rem}.patient-meta .good{color:var(--teal);font-weight:650}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:16px 0}.metric,.panel,.form-card,.table-card,.timeline-chart{background:var(--paper);border:1px solid var(--line);border-radius:12px;box-shadow:0 2px 8px rgba(16,37,42,.025)}.metric{padding:18px 19px}.metric-top{display:flex;justify-content:space-between;color:#53676a;font-size:.76rem;font-weight:650}.metric i{width:26px;height:26px;border-radius:7px;display:grid;place-items:center;font-style:normal}.metric i.teal{background:#e1f4ef;color:var(--teal)}.metric i.blue{background:#e7eef8;color:var(--blue)}.metric i.amber{background:#faeddc;color:var(--amber)}.metric i.rose{background:#f6e5eb;color:var(--rose)}.metric strong{display:block;font-family:Georgia,serif;font-weight:500;font-size:2.25rem;margin:11px 0 2px}.metric sup{font-family:Inter,sans-serif;font-size:.85rem;color:#819194}.metric small{color:#879598}.score-card{border-top:3px solid var(--rose)}.dashboard-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:14px}.panel{padding:20px}.timeline-panel{grid-row:span 2}.panel-head{display:flex;justify-content:space-between;align-items:start;border-bottom:1px solid #edf1f0;padding-bottom:15px;margin-bottom:16px}.panel h3{font-family:Georgia,serif;font-size:1.15rem;margin:0;font-weight:500}.text-btn,.trace-link{background:none;color:var(--teal);font-size:.77rem;font-weight:700}.info{color:#7f8d90;font-size:.68rem}.verified{color:var(--teal);background:var(--teal-2);font-size:.68rem;padding:5px 8px;border-radius:99px}.mini-timeline{display:grid;gap:17px;padding:8px 0}.time-row{display:grid;grid-template-columns:116px 1fr;gap:12px;align-items:center}.time-label b{display:block;font-size:.78rem}.time-label small{font-size:.67rem;color:#829194}.track{height:26px;background:#f0f3f2;border-radius:5px;position:relative;overflow:hidden}.bar{position:absolute;height:100%;border-radius:5px;background:#5a8b86}.bar.flag{background:#d5904b}.bar.symptom{height:5px;top:11px;background:var(--rose)}.axis{margin-left:128px;display:flex;justify-content:space-between;color:#899597;font-size:.65rem}.match-row{display:grid;grid-template-columns:1fr auto;gap:6px;padding:12px 0;border-bottom:1px solid #edf1f0}.match-row:last-child{border:0}.match-row b{font-size:.85rem}.match-row p{grid-column:1;margin:0;color:var(--muted);font-size:.72rem}.score{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;font-family:Georgia,serif;font-size:1rem;border:4px solid #e8eeec}.score.high{border-color:#d17268}.score.medium{border-color:#e6b45a}.score.low{border-color:#91b6a9}.provenance-flow{display:flex;align-items:center;justify-content:space-between;margin:10px 0 17px}.provenance-flow>span{color:#b6c3c1}.provenance-flow div{display:grid;text-align:center;gap:4px}.flow-icon{margin:auto;display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#eef4f2;color:var(--teal)}.provenance-flow b{font-size:.69rem}.provenance-flow small{font-size:.61rem;color:#899799}.trace-link{width:100%;padding:10px;border-top:1px solid #edf1f0}.section-intro{display:flex;justify-content:space-between;align-items:end;margin:4px 0 22px}.section-intro h2{font-family:Georgia,serif;font-size:1.8rem;font-weight:500;margin:0}.section-intro p{margin:7px 0 0;color:var(--muted);font-size:.9rem}.saved{color:var(--teal);font-size:.8rem}.form-card{padding:25px}.form-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.form-grid .wide{grid-column:span 2}label{display:grid;gap:7px;font-size:.76rem;font-weight:700;color:#526568}input,select,textarea{width:100%;border:1px solid #ccd8d5;border-radius:7px;padding:11px 12px;background:#fbfcfc;font:inherit;color:var(--ink);font-size:.88rem;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(8,127,114,.1)}textarea{min-height:86px;resize:vertical}fieldset{border:0;padding:22px 0 0;margin:18px 0 0;border-top:1px solid var(--line)}legend{font-size:.76rem;font-weight:700;color:#526568;padding:0 0 11px}.check{display:inline-flex;align-items:center;gap:8px;margin-right:22px;font-weight:500}.check input{width:auto}.form-actions{display:flex;justify-content:flex-end;gap:10px;align-items:center;border-top:1px solid var(--line);padding-top:18px;margin-top:22px}.form-actions span{margin-right:auto;color:#819092;font-size:.72rem}.toolbar{display:flex;gap:10px;margin-bottom:14px}.toolbar input{max-width:420px}.toolbar select{width:180px}.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.product-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px;display:grid;gap:15px}.product-card header{display:flex;justify-content:space-between}.product-card h3{margin:0;font-size:.95rem}.product-card p{margin:4px 0 0;color:var(--muted);font-size:.72rem}.badge{font-size:.66rem;padding:5px 8px;border-radius:99px;height:max-content;background:#e5f4f0;color:var(--teal);font-weight:700}.badge.off{background:#edf0ef;color:#758381}.ingredients{display:flex;gap:5px;flex-wrap:wrap}.ingredients span{background:#f1f5f4;border-radius:5px;padding:5px 7px;font-size:.67rem}.ingredients .flagged{background:#f9e8e4;color:#9a3f35}.product-foot{display:flex;justify-content:space-between;color:#78888a;font-size:.69rem;border-top:1px solid #edf1f0;padding-top:12px}.table-card{overflow:hidden}.table-row{display:grid;grid-template-columns:1.1fr .8fr .8fr .55fr 1.25fr;gap:16px;align-items:center;padding:15px 18px;border-bottom:1px solid #edf1f0;font-size:.78rem}.table-row.header{background:#f7f9f8;color:#718083;text-transform:uppercase;font-size:.64rem;letter-spacing:.08em;font-weight:750}.table-row:last-child{border:0}.source-btn{border:0;background:none;color:var(--teal);cursor:pointer;text-align:left;font:inherit;font-size:.72rem}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin:0 5px 0 12px}.dot.high{background:#c95d55}.dot.medium{background:#dba33d}.dot.low{background:#6f9f8e}.legend{font-size:.72rem;color:#657477}.timeline-chart{padding:26px;overflow:auto}.timeline-header,.timeline-line{min-width:820px;display:grid;grid-template-columns:170px repeat(6,1fr);align-items:center}.timeline-header{color:#7b898c;font-size:.68rem;padding-bottom:12px}.timeline-line{min-height:64px;border-top:1px solid #edf1f0}.timeline-name b{display:block;font-size:.78rem}.timeline-name small{color:#829092;font-size:.67rem}.month-cell{height:34px;position:relative}.event-bar{position:absolute;inset:4px -1px;background:#6b9792;display:grid;place-items:center;color:#fff;font-size:.65rem}.event-bar.start{border-radius:6px 0 0 6px}.event-bar.end{border-radius:0 6px 6px 0}.event-bar.alert{background:#cf8942}.symptom-marker{width:2px;background:var(--rose);position:absolute;inset:-20px auto -20px 50%}.symptom-marker:before{content:"Onset";position:absolute;top:-18px;left:5px;background:#f5dfe6;color:var(--rose);padding:3px 5px;border-radius:4px;font-size:.6rem}.review-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:14px}.review-form label{margin-bottom:15px}.review-item{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #edf1f0}.review-item:last-child{border:0}.review-item .score{flex:0 0 42px}.review-item b{font-size:.83rem}.review-item p{font-size:.72rem;color:var(--muted);margin:4px 0 0}.disclaimer{margin-top:16px;background:#edf3f2;border-left:3px solid var(--teal);padding:13px 16px;color:#607174;font-size:.73rem}dialog{width:min(620px,calc(100% - 30px));border:0;border-radius:14px;padding:0;box-shadow:0 30px 90px rgba(4,24,28,.28)}dialog::backdrop{background:rgba(5,24,28,.5);backdrop-filter:blur(4px)}dialog form{padding:25px;display:grid;gap:17px}.modal-head{display:flex;justify-content:space-between}.modal-head h2{font-family:Georgia,serif;margin:0}.icon-btn{border:0;background:#eef3f2;border-radius:50%;width:34px;height:34px;font-size:1.2rem;cursor:pointer}.toast{display:none}#toast{position:fixed;right:28px;bottom:28px;background:var(--ink);color:white;padding:13px 17px;border-radius:8px;box-shadow:var(--shadow);font-size:.8rem;opacity:0;transform:translateY(10px);transition:.2s;z-index:10;pointer-events:none}#toast.show{opacity:1;transform:none}.segmented{display:flex;background:#e7eceb;padding:3px;border-radius:8px}.segmented button{padding:7px 10px;background:transparent;border-radius:6px;font-size:.72rem}.segmented button.active{background:#fff;box-shadow:0 1px 3px #ccd5d3}.mobile-only{display:none}@media(max-width:1050px){.patient-meta{gap:18px}.metric-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.timeline-panel{grid-row:auto}.form-grid{grid-template-columns:repeat(2,1fr)}.product-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.rail{position:fixed;inset:auto 0 0 0;width:auto;height:68px;padding:8px;flex-direction:row;overflow-x:auto}.brand,.rail-foot{display:none}.rail nav{display:flex;width:100%}.nav-item{min-width:64px;justify-content:center;padding:8px;font-size:0}.nav-item span{font-size:.72rem}.nav-item.active:after{content:"";position:absolute;bottom:4px;width:20px;height:2px;background:#7be0cc}.nav-item{position:relative}main{margin-left:0;padding-bottom:70px}.topbar{height:auto;padding:18px 20px;position:static}.topbar h1{font-size:1.55rem}.status-chip,#reset-btn{display:none}.view{padding:20px}.header-actions .primary{padding:10px}.patient-banner{align-items:flex-start;flex-wrap:wrap}.patient-meta{margin:5px 0 0;width:100%;display:grid;grid-template-columns:1fr 1fr}.patient-meta span:last-child{display:none}.metric-grid{grid-template-columns:1fr 1fr}.metric{padding:14px}.metric strong{font-size:1.8rem}.product-grid,.review-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.section-intro{align-items:flex-start;gap:15px}.table-card{overflow-x:auto}.table-row{min-width:760px}.provenance-flow>span{display:none}.header-actions{margin-left:10px}.topbar .eyebrow{display:none}}@media(max-width:430px){.metric-grid{grid-template-columns:1fr}.patient-meta{grid-template-columns:1fr}.header-actions #add-product-top{font-size:0}.header-actions #add-product-top:after{content:"+";font-size:1.1rem}.topbar{align-items:center}.section-intro{display:grid}.toolbar{display:grid}.toolbar input,.toolbar select{max-width:none;width:100%}}
dialog:scope{width:min(680px,calc(100% - 30px))}.lookup-row{display:grid;grid-template-columns:1fr auto;gap:8px}.ai-button{border:0;background:#e5f4f0;color:#096f65;border-radius:7px;padding:0 14px;font:inherit;font-size:.76rem;font-weight:750;cursor:pointer;white-space:nowrap}.ai-button span{font-size:1rem}.ai-button:disabled{opacity:.62;cursor:wait}.lookup-state{display:flex;gap:11px;align-items:flex-start;border:1px solid #d8e8e4;background:#f1f8f6;border-radius:9px;padding:12px 14px;color:#526a6c}.lookup-state .ai-orb{display:grid;place-items:center;flex:0 0 29px;height:29px;border-radius:50%;background:var(--ink);color:#7be0cc}.lookup-state b{font-size:.75rem;color:var(--ink)}.lookup-state p{font-size:.7rem;margin:3px 0 0;line-height:1.45}.lookup-state.loading .ai-orb{animation:pulse-ai .85s ease-in-out infinite alternate}.lookup-state.success{border-color:#acd9cf;background:#eef9f6}.lookup-state.error{border-color:#e2c5bf;background:#fff5f2}.field-note{float:right;color:#7d8c8e;font-size:.66rem;font-weight:500}.lookup-source{margin-top:-7px;padding:10px 12px;border-left:3px solid var(--teal);background:#f5f8f7;color:#627376;font-size:.68rem;line-height:1.55}.lookup-source a{color:var(--teal);font-weight:700}@keyframes pulse-ai{to{transform:scale(1.12);box-shadow:0 0 0 5px rgba(8,127,114,.12)}}@media(max-width:760px){.lookup-row{grid-template-columns:1fr}.ai-button{padding:11px}}
/* Clinical story: concern first, then potential aggravators. */
.clinical-story{display:grid;grid-template-columns:.8fr 1.2fr;gap:14px;margin:16px 0}.concern-card,.worse-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px;box-shadow:0 2px 8px rgba(16,37,42,.025)}.concern-card{border-left:4px solid var(--rose)}.concern-row{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.concern-card h2{font-family:Georgia,serif;font-size:1.55rem;font-weight:500;margin:0}.concern-card p{color:var(--muted);font-size:.78rem;line-height:1.5;margin:5px 0}.concern-card footer{border-top:1px solid #edf1f0;margin-top:16px;padding-top:12px;color:#69797c;font-size:.72rem;line-height:1.5}.concern-card footer b{color:var(--ink);margin-right:6px}.symptom-tags{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.symptom-tags span,.culprit-chips span{font-size:.66rem;padding:5px 7px;border-radius:5px;background:#f5e8ec;color:#8c3c53}.worse-card .panel-head{margin-bottom:12px}.worse-card h3{font-family:Georgia,serif;font-size:1.15rem;font-weight:500;margin:0}.burden{border-radius:99px;padding:5px 9px;font-size:.68rem;font-weight:750}.burden.high{background:#f5e4e8;color:var(--rose)}.worse-grid{display:grid;grid-template-columns:.78fr 1.22fr;gap:18px}.worse-grid>div+div{border-left:1px solid var(--line);padding-left:18px}.worse-grid b{font-size:.76rem}.worse-grid p{font-size:.68rem;color:var(--muted);margin:4px 0 10px}.culprit-chips{display:flex;flex-wrap:wrap;gap:5px}.environment-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.environment-strip span{background:#edf4f3;border-radius:7px;padding:8px 6px;color:#617477;font-size:.61rem;line-height:1.3;text-align:center}.environment-strip strong{display:block;color:var(--ink);font-family:Georgia,serif;font-size:1rem;font-weight:500}.worse-card>small{display:block;color:#859295;font-size:.62rem;margin-top:13px}.product-cause{display:grid;grid-template-columns:1fr auto;gap:5px;padding:12px 0;border-bottom:1px solid #edf1f0}.product-cause:last-child{border:0}.product-cause b{font-size:.84rem}.product-cause p{grid-column:1;margin:0;color:var(--muted);font-size:.7rem;line-height:1.4}.product-cause .rank{font-family:Georgia,serif;font-size:1.1rem;color:var(--rose)}@media(max-width:1050px){.clinical-story{grid-template-columns:1fr}.worse-grid{grid-template-columns:1fr}.worse-grid>div+div{border-left:0;border-top:1px solid var(--line);padding-left:0;padding-top:14px}}@media(max-width:600px){.concern-row{display:grid}.symptom-tags{justify-content:flex-start}.environment-strip{grid-template-columns:1fr 1fr}}
/* SCRIPTED editorial brand direction derived from the supplied company mockup. */
:scope{--ink:#111;--muted:#6f6f6f;--bg:#f7f7f5;--paper:#fff;--line:#dededb;--teal:#111;--teal-2:#efefed;--blue:#5f728f;--amber:#b6794a;--rose:#9d5c55;--shadow:0 14px 34px rgba(0,0,0,.08)}body{background:var(--bg)}.rail{width:232px;background:#fff;color:#111;border-right:1px solid #d9d9d6;padding:30px 20px}.brand{color:#111;font-family:Arial,Helvetica,sans-serif;font-size:1.28rem;font-weight:500;letter-spacing:.02em;margin:0 8px 46px}.brand-mark{display:none}.rail nav{gap:2px}.nav-item{color:#6d6d6d;border-radius:0;padding:14px 10px;border-bottom:1px solid #eee;font-size:.82rem;text-transform:uppercase;letter-spacing:.055em}.nav-item span{color:#aaa}.nav-item:hover{background:#f2f2f0;color:#111}.nav-item.active{background:#111;color:#fff}.nav-item.active span{color:#bbb}.rail-foot{color:#555;border-top:1px solid #ddd}.rail-foot small{color:#888}.pulse{background:#111;box-shadow:none}main{margin-left:232px}.topbar{background:#fff;border-bottom:8px solid #111;backdrop-filter:none}.topbar h1{font-family:Georgia,serif;color:#111}.eyebrow,.kicker,.label{color:#111;letter-spacing:.16em}.primary{background:#111;border-radius:2px;text-transform:uppercase;letter-spacing:.06em;font-size:.72rem}.primary:hover{background:#333}.ghost{border-color:#bbb;border-radius:2px;background:#fff}.status-chip{border-color:#bbb;border-radius:2px}.patient-banner{background:#fff;border-radius:2px;border-color:#d8d8d5}.avatar{background:#111}.metric,.panel,.form-card,.table-card,.timeline-chart,.concern-card,.worse-card,.product-card{border-radius:2px;box-shadow:0 10px 24px rgba(0,0,0,.055)}.metric i{border-radius:50%}.metric i.teal,.metric i.blue,.metric i.amber,.metric i.rose{background:#efefed;color:#111}.score-card{border-top:3px solid #111}.concern-card{border-left:4px solid #111}.symptom-tags span,.culprit-chips span{background:#eee;color:#333;border-radius:2px}.burden.high{background:#111;color:#fff}.environment-strip span{background:#f1f1ef;border-radius:2px}.score.high,.score.medium,.score.low{border-color:#111}.bar.flag,.event-bar.alert{background:#a98060}.verified{background:#eee;color:#111}.flow-icon{background:#eee;color:#111}.text-btn,.trace-link,.source-btn{color:#111;text-decoration:underline;text-underline-offset:3px}.badge{border-radius:2px;background:#eee;color:#111}.badge.off{background:#f5f5f3}.ingredients span{border-radius:2px}.ingredients .flagged{background:#eee0dc;color:#743e38}input,select,textarea{border-radius:2px;background:#fff}.ai-button{background:#111;color:#fff;border-radius:2px;text-transform:uppercase;letter-spacing:.05em}.lookup-state{border-radius:2px;background:#f3f3f1;border-color:#d5d5d2}.lookup-state .ai-orb{background:#111;color:#fff}.lookup-state.success{border-color:#bbb;background:#f5f5f3}.lookup-state.error{border-color:#b98b83;background:#f8f1ef}.candidate-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.candidate-list button{border:1px solid #111;background:#fff;color:#111;padding:8px 10px;font:inherit;font-size:.69rem;cursor:pointer}.candidate-list button:hover{background:#111;color:#fff}.lookup-source{border-left-color:#111}.lookup-source a{color:#111}.icon-btn{border-radius:50%}.product-cause .rank{color:#111}@media(max-width:760px){.rail{background:#111;border:0}.nav-item{border:0;color:#bbb}.nav-item:hover,.nav-item.active{background:#292929;color:#fff}main{margin-left:0}.topbar{border-bottom-width:5px}}
/* Keep product names compact in inventory cards. */
.product-card h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Compact shared controls and simplified empty states. */
.header-actions #photo-add-products{display:inline-block}
.header-actions #photo-add-products[hidden],.header-actions #add-product-top[hidden]{display:none}
.header-actions .primary{min-width:142px;text-align:center}
.header-actions .ghost{min-width:142px;text-align:center}
.overview-metrics{align-items:stretch}
.overview-metrics .metric{min-height:178px}
.track{background:transparent}
.bar{background:#8bc8bb}
.bar.symptom{height:100%;top:0;background:#8bc8bb}
.check input{accent-color:var(--teal)}
.product-card h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* EHR view: compact clinical record layout. */
.ehr-shell{background:#f8fbfb;border:1px solid #cbd9d7;border-radius:16px;overflow:hidden;box-shadow:0 12px 32px rgba(16,37,42,.08)}
.ehr-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;background:#123d4a;color:#fff}
.ehr-patient-identity{display:flex;align-items:center;gap:13px}.ehr-patient-identity b{display:block;font-size:1rem}.ehr-patient-identity small{display:block;margin-top:3px;color:#c5dcda;font-size:.75rem}.ehr-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#d9f1eb;color:#123d4a;font-weight:800}
.ehr-command-bar{display:flex;gap:5px;align-items:center}.ehr-command-bar span{padding:8px 10px;border-radius:6px;color:#c5dcda;font-size:.7rem}.ehr-command-bar .active{background:#2e6970;color:#fff}
.ehr-action-bar{display:flex;align-items:center;gap:10px;padding:12px 24px;background:#f3f7f6;border-bottom:1px solid #d8e4e1;color:#52696b;font-size:.75rem}.ehr-action-bar span{margin-right:auto}.ehr-action-bar button{padding:8px 12px;border:1px solid #b9cfcb;border-radius:6px;background:#fff;color:#245c65;font:inherit;cursor:pointer}
.ehr-layout{display:grid;grid-template-columns:190px 1fr;min-height:500px}.ehr-nav{padding:20px 14px;background:#edf5f3;border-right:1px solid #d8e4e1}.ehr-nav>b{display:block;margin:0 10px 10px;color:#789092;font-size:.65rem;text-transform:uppercase;letter-spacing:.1em}.ehr-nav section{display:grid;gap:3px;padding:11px 10px;margin:3px 0;border-radius:7px}.ehr-nav section.active{background:#d9eee9;color:#0d5e59}.ehr-nav strong{font-size:.72rem}.ehr-nav small{color:#7b8d8f;font-size:.62rem;line-height:1.3}.ehr-note{padding:24px 28px;background:#fff}.ehr-subtabs{display:flex;gap:20px;border-bottom:1px solid #dfe9e6;margin-bottom:22px}.ehr-subtabs span{padding:0 0 10px;color:#718486;font-size:.72rem}.ehr-subtabs .active{color:#0b7269;border-bottom:2px solid #0b9b8d;font-weight:750}.ehr-note>header{display:flex;align-items:start;justify-content:space-between;gap:20px}.ehr-label{display:block;color:#0a8a7d;font-size:.64rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.ehr-note h2{margin:5px 0 0;font-family:Georgia,serif;font-size:1.65rem;font-weight:500}.ehr-status{padding:6px 10px;border-radius:99px;background:#fff4d7;color:#8b5b0a;font-size:.66rem;white-space:nowrap}.ehr-meta-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:22px 0}.ehr-meta-grid>div{padding:12px;background:#f5f9f8;border:1px solid #e0ebe8;border-radius:8px}.ehr-meta-grid span{display:block;color:#7d8f90;font-size:.62rem;text-transform:uppercase;letter-spacing:.08em}.ehr-meta-grid b{display:block;margin-top:5px;font-size:.76rem}.ehr-section{border-top:1px solid #e1eae8;padding:14px 0}.ehr-section summary{cursor:pointer;color:#234e59;font-size:.78rem;font-weight:750}.ehr-section p,.ehr-section blockquote{margin:10px 0 0;color:#536a6c;font-size:.78rem;line-height:1.55}.ehr-section blockquote{padding-left:12px;border-left:3px solid #80bfb3;font-style:normal}.ehr-raw-entry{color:#8a9899!important;font-style:italic}
@media(max-width:760px){.ehr-toolbar{align-items:flex-start;padding:17px}.ehr-command-bar{display:none}.ehr-action-bar{padding:10px 17px}.ehr-layout{display:block}.ehr-nav{display:flex;gap:5px;overflow:auto;padding:10px;border-right:0;border-bottom:1px solid #d8e4e1}.ehr-nav>b{display:none}.ehr-nav section{min-width:125px;margin:0}.ehr-nav section small{display:none}.ehr-note{padding:20px 17px}.ehr-note>header{display:block}.ehr-status{display:inline-block;margin-top:12px}.ehr-meta-grid{grid-template-columns:1fr 1fr}.ehr-subtabs{gap:14px}}
 .ingredient-incomplete{background:#fff3df!important;color:#8b5a16!important;border:1px dashed #d7a85a}
 .ingredient-more{background:#e7eef8!important;color:#315b8e!important;font-weight:700}
.product-card-meta{display:grid;gap:6px;margin-top:14px;padding-top:12px;border-top:1px solid #d7dfde;color:#43585c;font-size:.76rem;line-height:1.45}.product-card-meta b{color:#10252a}

:scope {
  --ink: #142b3d;
  --navy: #163a59;
  --navy-2: #214e70;
  --muted: #526979;
  --bg: #edf3f8;
  --paper: #fff;
  --line: #d5e0e8;
  --teal: #087d83;
  --teal-2: #e2f3f3;
  --blue: #3373a8;
  --amber: #c47b16;
  --rose: #bd3f4b;
  --danger: #bd3f4b;
  --success: #2f855a;
  --shadow: 0 8px 24px rgba(24, 58, 83, .07);
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-width: 320px; overscroll-behavior-x: none; }
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
input, select, textarea { font-size: 16px; }

body {
  background: linear-gradient(145deg, #f5f8fb 0%, #eaf1f7 100%);
  color: var(--ink);
}

.rail {
  background: #fff;
  color: var(--ink);
  border-right: 1px solid #cedbe4;
  box-shadow: 4px 0 18px rgba(24, 58, 83, .035);
}

.brand { color: var(--navy); }
.rail-foot { color: #526978; border-top-color: #d9e3ea; }
.rail-foot small { color: #526979; }
.pulse { background: #66aeb4; box-shadow: 0 0 0 4px rgba(102, 174, 180, .13); }
.nav-item { color: #526978; border: 1px solid transparent; border-radius: 8px; text-transform: none; letter-spacing: 0; }
.nav-item span { color: #5e7483; }
.nav-item:hover { background: #f3f7fa; border-color: #dce6ed; color: var(--navy); }
.nav-item.active { background: #e8f3f7; border-color: #c8dfe8; color: #14596a; box-shadow: inset 3px 0 0 #3d91a0; }
.nav-item.active span { color: #3d7b89; }

.topbar {
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid #cad8e2;
  box-shadow: 0 3px 14px rgba(24, 58, 83, .05);
  backdrop-filter: blur(12px);
}

.topbar h1,
.section-intro h2,
.panel h3,
.worse-card h3,
.concern-card h2,
.modal-head h2 { color: var(--ink); }

.topbar-title { display: grid; gap: 5px; }
.topbar-title h1 { grid-row: 1; }
.topbar-title p { grid-row: 2; margin: 0; color: var(--muted); font-family: 'Poppins', Arial, sans-serif; font-size: .74rem; font-weight: 400; letter-spacing: 0; line-height: 1.35; }

.eyebrow,
.kicker,
.label { color: var(--blue); }

.status-chip { display: inline-flex; align-items: center; min-height: 40px; border-color: #c3d2dc; border-radius: 8px; background: #f7fafc; color: #355166; padding: 0 14px; }

.primary,
.ghost,
.ai-button,
.text-btn,
.trace-link,
.source-btn,
.segmented button,
.candidate-list button {
  border-radius: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: .82rem;
  font-weight: 400;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}

.primary,
.ai-button {
  background: #317f8c;
  color: #fff;
  border: 1px solid #317f8c;
}

.primary:hover,
.ai-button:hover { background: #286f7b; border-color: #286f7b; }
.ghost { background: #fff; color: #294f68; border: 1px solid #a9bfcd; }
.ghost:hover { background: #edf5fa; border-color: var(--navy); }

.text-btn,
.trace-link,
.source-btn {
  color: #086e76;
  background: #e8f5f5;
  border: 1px solid #c9e7e8;
  min-height: 36px;
  padding: 0 12px;
  font-size: .76rem;
  text-decoration: none;
  text-align: center;
}

.text-btn:hover,
.trace-link:hover,
.source-btn:hover { background: #d6eeee; border-color: #8ac6c9; }
.header-actions { gap: 10px; }
.topbar #add-product-top[hidden] { display: none !important; }
.header-actions .primary,
.header-actions .ghost { min-width: 116px; }
.form-actions .primary,
.form-actions .ghost { min-width: 130px; }
.segmented { background: #dfe9f0; border-radius: 10px; }
.segmented button { color: #496171; }
.segmented button.active { background: var(--navy); color: #fff; box-shadow: none; }

.workflow-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid #bfd6e4; border-radius: 999px; background: #edf6fb; color: #245d7c; font-family: 'Poppins', Arial, sans-serif; font-size: .72rem; }
.ehr-chip { border-color: #b8d8cd; background: #edf8f4; color: #216b4f; }
.today-intake-card { max-width: 1040px; margin: 0 auto; overflow: hidden; border: 1px solid #c5d5e0; border-radius: 12px; background: #fff; box-shadow: 0 18px 44px rgba(24, 58, 83, .1); }
.today-card-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 26px; border-bottom: 1px solid #dbe5ec; background: #fff; }
.today-card-header span { color: var(--blue); font-family: 'Poppins', Arial, sans-serif; font-size: .69rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; }
.today-card-header h2 { margin: 5px 0 0; color: var(--ink); font-family: Georgia, serif; font-size: 1.6rem; font-weight: 500; }
.today-card-header strong { padding: 7px 10px; border-radius: 999px; background: #edf5f9; color: #355f78; font-size: .72rem; font-weight: 500; }
.today-field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 26px; background: #f9fbfd; }
.static-field { display: grid; gap: 7px; min-height: 74px; padding: 14px 16px; border: 1px solid #cbd9e3; border-radius: 9px; background: #fff; }
.static-field.wide { grid-column: 1 / -1; }
.static-field > span { color: #536a79; font-family: 'Poppins', Arial, sans-serif; font-size: .7rem; font-weight: 500; }
.static-field b { color: var(--ink); font-size: .9rem; }
.static-field p { margin: 0; color: #203e52; font-size: .86rem; line-height: 1.55; }
.static-field small { color: #607888; font-size: .7rem; }
.today-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 26px; border-top: 1px solid #dbe5ec; background: #fff; }
.today-card-footer > span { color: #5b7281; font-size: .72rem; }
.static-submit { min-height: 40px; padding: 0 18px; border: 1px solid #317f8c; border-radius: 8px; background: #317f8c; color: #fff; font-family: 'Poppins', Arial, sans-serif; font-size: .8rem; opacity: 1; }
.today-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1040px; margin: 18px auto 0; }
.today-flow article { display: flex; gap: 12px; min-height: 108px; padding: 17px; border: 1px solid #d0dee7; border-radius: 10px; background: #fff; }
.today-flow article > span { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-family: Georgia, serif; }
.today-flow h3 { margin: 1px 0 6px; color: var(--ink); font-family: Georgia, serif; font-size: 1rem; font-weight: 500; }
.today-flow p { margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.5; }

.ehr-shell { max-width: 1120px; margin: 0 auto; overflow: hidden; border: 1px solid #bfcfda; border-radius: 12px; background: #fff; box-shadow: 0 18px 48px rgba(24, 58, 83, .12); }
.ehr-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 20px; border-bottom: 1px solid #cbd9e2; background: #173b59; color: #fff; }
.ehr-brand { display: flex; align-items: center; gap: 10px; }
.ehr-brand > span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #8fb7cc; border-radius: 7px; color: #d9edf6; font-family: Georgia, serif; }
.ehr-brand div, .ehr-patient { display: grid; gap: 2px; }
.ehr-brand b, .ehr-patient b { font-size: .82rem; }
.ehr-brand small, .ehr-patient span { color: #c7dbe7; font-size: .67rem; }
.ehr-patient { text-align: right; }
.ehr-layout { display: grid; grid-template-columns: 190px 1fr; min-height: 600px; }
.ehr-nav { display: grid; align-content: start; gap: 3px; padding: 20px 14px; border-right: 1px solid #d7e2e9; background: #f3f7fa; }
.ehr-nav b { margin: 0 8px 10px; color: #607584; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.ehr-nav span { padding: 9px 10px; border-radius: 6px; color: #526a79; font-size: .73rem; }
.ehr-nav span.active { background: #dbeaf3; color: #174f70; font-weight: 600; }
.ehr-note { padding: 26px; }
.ehr-note > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid #dbe4ea; }
.ehr-label { color: #497189; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ehr-note h2 { margin: 5px 0 0; color: var(--ink); font-family: Georgia, serif; font-size: 1.5rem; font-weight: 500; }
.ehr-status { padding: 7px 10px; border: 1px solid #e4cc8d; border-radius: 999px; background: #fff7df; color: #805710; font-size: .68rem; white-space: nowrap; }
.ehr-meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 18px 0; }
.ehr-meta-grid div { display: grid; gap: 4px; padding: 11px 12px; border: 1px solid #d9e3e9; border-radius: 7px; background: #f8fafc; }
.ehr-meta-grid span { color: #687c89; font-size: .64rem; }
.ehr-meta-grid b { color: #29485d; font-size: .74rem; }
.ehr-section { padding: 17px 0; border-top: 1px solid #e2e9ee; }
.ehr-section h3 { margin: 0 0 8px; color: #27485e; font-size: .78rem; }
.ehr-section p { margin: 0; color: #354f61; font-size: .82rem; line-height: 1.55; }
.ehr-section blockquote { margin: 0; padding: 14px 16px; border-left: 3px solid #4d8fb3; background: #f3f8fb; color: #24465d; font-family: Georgia, serif; font-size: 1rem; line-height: 1.55; }
.ehr-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ehr-section-title span { color: #718490; font-size: .65rem; }
.ehr-raw-entry { padding: 12px 14px; border: 1px solid #cedbe3; border-radius: 7px; background: #fff; }
.ehr-product-list { display: grid; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.ehr-product-list li { padding: 8px 10px 8px 30px; border-radius: 6px; background: #eef5f9; color: #31536a; font-size: .75rem; position: relative; }
.ehr-product-list li::before { content: '✓'; position: absolute; left: 11px; color: #287b70; font-weight: 700; }
.ehr-boundary { margin-top: 8px; padding: 14px 16px; border: 1px solid #c7dbe7; border-left: 4px solid #3e82a7; border-radius: 7px; background: #f1f7fa; }
.ehr-boundary b { color: #244e68; font-size: .76rem; }
.ehr-boundary p { margin: 5px 0 0; color: #4c6677; font-size: .73rem; line-height: 1.5; }

.patient-banner { background: #fff; border-color: #b8cbd8; border-radius: 10px; box-shadow: var(--shadow); }
.avatar { background: var(--navy); }
.patient-meta .good { color: var(--teal); }
.review-status { display: inline-flex; align-items: center; gap: 7px; width: max-content; margin-top: 5px; padding: 5px 9px 5px 6px; border: 1px solid #91c9c8; border-radius: 999px; background: #e7f6f4; color: #075f64 !important; font-family: 'Poppins', Arial, sans-serif; font-size: .72rem; font-style: normal; font-weight: 400; line-height: 1.2; }
.review-status > span:first-child { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #087d83; color: #fff; font-weight: 500; }

.metric,
.panel,
.form-card,
.table-card,
.timeline-chart,
.concern-card,
.worse-card,
.product-card { border-radius: 10px; border-color: var(--line); box-shadow: var(--shadow); }

.metric i.teal { background: #e1f3f2; color: var(--teal); }
.metric i.blue { background: #e6eef8; color: var(--blue); }
.metric i.amber { background: #fff0d8; color: var(--amber); }
.metric i.rose { background: #fbe7e9; color: var(--rose); }
.score-card { border-top-color: var(--rose); }
.overview-metrics { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); width: 100%; margin: 0; }

.clinical-story { grid-template-columns: 1fr 1.15fr; }
.concern-card { border-left: 4px solid var(--blue); background: #fff; }
.section-card-title { margin: 0 0 14px; color: var(--ink); font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; letter-spacing: 0; line-height: 1.2; }
.concern-compare { display: grid; grid-template-columns: 1.08fr .92fr; gap: 12px; margin-top: 0; }
.concern-compare section { border-radius: 8px; padding: 14px; }
.patient-voice { background: #eef5fb; border: 1px solid #d8e7f2; }
.patient-reported-details { background: #f8fafc; border: 1px solid #dde6ec; }
.concern-compare section > span { display: block; color: #577083; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.patient-voice blockquote { margin: 0; color: #1f3d53; font-family: Georgia, serif; font-size: 1.08rem; line-height: 1.45; }
.patient-reported-details dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 0; }
.patient-reported-details dl div { min-width: 0; }
.patient-reported-details dl div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.patient-reported-details dt { color: #577083; font-size: .58rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.patient-reported-details dd { margin: 2px 0 0; color: var(--ink); font-size: .69rem; font-weight: 500; line-height: 1.35; }
.symptom-tags { justify-content: flex-start; margin-top: 12px; }
.symptom-tags span { background: #e8f0f7; color: #34566d; border-radius: 7px; }
.concern-card footer b { color: var(--navy); }

.worse-card { background: #fff; }
.worse-card .panel-head { border-bottom-color: #dfe7ed; }
.panel-subtitle { margin: 4px 0 0; color: var(--muted); font-family: 'Poppins', Arial, sans-serif; font-size: .76rem; font-weight: 400; letter-spacing: 0; line-height: 1.4; }
.worse-grid { grid-template-columns: 1.35fr .65fr; gap: 14px; }
.burden-section { min-width: 0; padding: 15px; border: 1px solid #d6e3eb; border-radius: 8px; }
.burden-section h4 { margin: 0; color: var(--ink); font-family: Georgia, serif; font-size: 1rem; font-weight: 500; }
.burden-section > p { margin: 5px 0 12px; color: var(--muted); font-size: .69rem; line-height: 1.45; }
.aggravator-section,
.contributor-section,
.skin-fit-section { background: #fff; }
.contributor-section .culprit-chips { display: grid; gap: 7px; }
.contributor-section .culprit-chips span { width: 100%; background: #fff; }
.skin-fit-section { margin-top: 14px; }
.skin-fit-products { display: grid; gap: 8px; }
.skin-fit-empty,
.skin-fit-mismatch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 12px; border: 1px solid #d8e3eb; border-radius: 8px; background: #fff; color: #35566e; font-size: .69rem; line-height: 1.45; }
.skin-fit-empty b,
.skin-fit-mismatch b { display: block; color: var(--ink); font-size: .75rem; }
.skin-fit-empty span,
.skin-fit-mismatch span { display: block; margin-top: 2px; }
.skin-fit-mismatch-labels { display: grid; gap: 6px; flex: 0 0 190px; justify-items: end; }
.skin-fit-mismatch-labels strong { max-width: 190px; padding: 5px 7px; border: 1px solid #e8c67f; border-radius: 6px; background: #fff5dd; color: #875000; font-size: .62rem; line-height: 1.3; text-align: right; }
.skin-fit-ok strong,
.skin-fit-ok b { color: #216b45; }
.burden-rationale { margin-top: 16px; padding: 15px 16px; border: 1px solid #c6d9e5; border-left: 4px solid var(--blue); border-radius: 8px; background: #fff; }
.burden-rationale h4 { margin: 0 0 10px; color: var(--navy); font-family: Georgia, serif; font-size: 1.02rem; font-weight: 500; }
.burden-rationale ul { margin: 0; padding-left: 20px; color: #354f61; font-size: .72rem; line-height: 1.55; }
.burden-rationale li + li { margin-top: 5px; }
.burden-rationale p { margin: 11px 0 0; padding-top: 10px; border-top: 1px solid #cfdee7; color: #2e4b5f; font-size: .71rem; font-weight: 500; line-height: 1.5; }
.burden { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; font-weight: 800; }
.burden.high { background: #fbe3e6; color: #a82435; border: 1px solid #efb7be; }
.burden.medium { background: #fff0d0; color: #9b5e08; border: 1px solid #f0cf91; }
.burden.low { background: #e3f4e9; color: #216b45; border: 1px solid #b9dfc7; }
.culprit-chips span { background: #edf3f8; color: #35566e; border-radius: 7px; border: 1px solid #d8e3eb; }
.product-cause small { grid-column: 1 / -1; color: #758895; font-size: .62rem; line-height: 1.4; }
.review-explanation { grid-column: 1 / -1; display: grid; gap: 5px; color: #536a79; font-size: .7rem; line-height: 1.45; }
.review-fact b { color: var(--navy); }

.environment-strip { gap: 8px; }
.environment-strip span { position: relative; background: #f2f6f9; border: 1px solid #dce5ec; border-radius: 8px; padding: 10px 6px; }
.environment-strip i { display: block; font-style: normal; font-size: 1.1rem; margin-bottom: 3px; }
.environment-strip .env-high { background: #fdf0f1; border-color: #f2ccd1; }
.environment-strip .env-medium { background: #fff6e6; border-color: #f1dcae; }
.environment-strip .env-info { background: #edf5fb; border-color: #cfe1ee; }

.score { background: #fff; }
.score.high { border-color: #d94c59; color: #a52332; }
.score.medium { border-color: #e6a637; color: #995f0c; }
.score.low { border-color: #59a87b; color: #216b45; }
.dot.high { background: #d94c59; }
.dot.medium { background: #e6a637; }
.dot.low { background: #59a87b; }

.table-card { overflow-x: auto; }
.table-row { grid-template-columns: .48fr 1.05fr 1.05fr 1.55fr .62fr .82fr; min-width: 1050px; gap: 14px; }
.table-row.header { background: #fff; color: #314f63; text-transform: none; font-size: .66rem; border-bottom: 2px solid #c9d8e2; }
.why-cell { color: #536a79; font-size: .72rem; line-height: 1.45; }
.table-row .source-btn { justify-self: start; }
.source-btn { background: transparent; border-color: #78b7ba; }
.source-btn:hover { background: transparent; border-color: #086e76; color: #05565c; }
.table-empty { min-width: 760px; padding: 34px 20px; color: var(--muted); font-size: .8rem; text-align: center; }
.why-label { color: var(--navy); font-family: 'Poppins', Arial, sans-serif; font-weight: 500; }

.track { background: #e8eff5; }
.bar.flag { background: #4f93b7; }
.bar.product { background: #4f93b7; }
.timeline-review-row { margin: -6px -8px; padding: 8px; border: 1px solid #edcb8a; border-radius: 8px; background: #fff7e7; }
.timeline-review-row .time-label > span { display: inline-block; margin-top: 4px; padding: 2px 5px; border-radius: 99px; background: #f7dfae; color: #7b4d08; font-size: .56rem; font-weight: 800; line-height: 1.25; }
.bar.needs-review { background: #d28b24; box-shadow: inset 0 0 0 2px #a96b13; }
.bar.symptom { background: #2f9a72; box-shadow: 0 0 0 1px rgba(20, 111, 77, .18); }
.event-bar.alert { background: #4f93b7; }

.verified { background: #e2f3f3; color: #087078; }
.flow-icon { background: #e9f1f7; color: var(--blue); }
input,
select,
textarea { border-radius: 8px; background: #fff; border-color: #bdccd7; }
select { appearance: none; -webkit-appearance: none; padding-right: 42px; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M2 2l5 5 5-5' fill='none' stroke='%2338586d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 14px 9px; }
.mui-select::after { display: none; }
.product-actions-menu select { background-position: right 10px center; background-size: 10px 7px; }
input:focus,
select:focus,
textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(51, 115, 168, .12); }
.lookup-state { border-radius: 8px; background: #eff6fa; border-color: #d0e0ea; }
.lookup-state .ai-orb { background: var(--navy); color: #fff; }
.lookup-state.success { border-color: #b8d9d9; background: #eef8f7; }
.lookup-source { border-left-color: var(--teal); background: #f2f7f8; }
.lookup-source a { color: #087078; }
.icon-btn { background: #e8eef3; color: var(--navy); border-radius: 8px; }
.icon-btn:hover { background: #dbe6ee; }

dialog { border-radius: 12px; box-shadow: 0 28px 80px rgba(20, 43, 61, .25); }
dialog::backdrop { background: rgba(20, 43, 61, .5); }
#trail-dialog { width: min(560px, calc(100% - 30px)); }
.trail-modal { padding: 26px; display: grid; gap: 18px; }
.trail-summary { background: #f1f6fa; border: 1px solid #d6e2ea; border-radius: 8px; padding: 16px; }
.trail-summary h3 { margin: 12px 0 6px; font-size: 1.15rem; }
.trail-summary p { margin: 0; color: #526979; line-height: 1.55; font-size: .83rem; }
.trail-modal h4 { margin: 0 0 8px; }
.trail-modal ol { margin: 0; padding-left: 22px; color: #425b6d; line-height: 1.8; }
#toast { background: var(--navy); border-radius: 8px; }
.consumer-insights { background: #f3f7fa !important; border-color: #d5e1e9 !important; border-radius: 8px; }
.consumer-grid > div { border-radius: 8px; }

.patient-intake-form { max-width: 980px; margin: 0 auto; }
.patient-form-header { margin: -25px -25px 24px; padding: 24px 25px; border-bottom: 1px solid var(--line); background: #fff; }
.patient-form-header > span { color: var(--blue); font-family: 'Poppins', Arial, sans-serif; font-size: .72rem; font-weight: 500; }
.patient-form-header h2 { margin: 6px 0; color: var(--ink); font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; }
.patient-form-header p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.patient-fields { grid-template-columns: repeat(2, 1fr); }
.patient-fields textarea { min-height: 108px; }
.patient-products { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.innovation-workflow { position: relative; padding: 22px; border: 1px solid #8bcfc0; border-radius: 12px; background: linear-gradient(135deg, #eef9f5 0%, #f5f9fc 68%, #fff 100%); box-shadow: 0 12px 28px rgba(24, 93, 83, .09); }
.innovation-workflow::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; border-radius: 12px 0 0 12px; background: #238b72; }
.innovation-badge { display: inline-flex; margin-bottom: 8px; padding: 5px 9px; border-radius: 999px; background: #d8f2e8; color: #126f59; font-family: 'Poppins', Arial, sans-serif; font-size: .64rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.innovation-workflow .patient-product-entry { background: rgba(255, 255, 255, .82); border-color: #b9dcd3; }
.patient-products h3 { margin: 0 0 5px; color: var(--ink); font-family: Georgia, serif; font-size: 1.25rem; font-weight: 500; }
.patient-products p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.patient-products-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.patient-products-heading .primary { flex: 0 0 auto; }
.patient-product-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.patient-product-entry { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 10px; min-height: 70px; padding: 12px; border: 1px solid #cbdbe5; border-radius: 8px; background: #f7fafc; }
.patient-product-number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-family: 'Poppins', Arial, sans-serif; font-size: .75rem; }
.patient-product-entry b { display: block; color: var(--ink); font-size: .78rem; line-height: 1.35; }
.patient-product-entry small { display: block; margin-top: 4px; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.patient-product-empty { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; border: 1px dashed #aebfca; border-radius: 8px; color: var(--muted); }
.patient-product-empty > div { display: grid; gap: 4px; }
.patient-product-empty b { color: var(--ink); }
.patient-product-add { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.patient-add-product-inline { flex: 0 0 auto; }

.storage-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 18px; padding: 16px; border: 1px solid #c8d9e4; border-radius: 10px; background: #fff; color: var(--navy); font-family: 'Poppins', Arial, sans-serif; font-size: .82rem; text-align: center; }
.storage-flow span:nth-child(odd) { padding: 10px; border-radius: 8px; background: #edf5fa; font-weight: 500; }
.storage-flow span:nth-child(even) { color: #55788f; font-size: 1.15rem; }
.storage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.storage-card { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.storage-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 13px; border-bottom: 1px solid #dfe7ed; }
.storage-card h3 { margin: 0; color: var(--ink); font-family: Georgia, serif; font-size: 1.18rem; font-weight: 500; }
.storage-card header > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.storage-card code { display: inline-block; padding: 5px 7px; border: 1px solid #c7dce7; border-radius: 6px; background: #eef6fa; color: #175473; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .66rem; }
.storage-card dl { margin: 13px 0 0; }
.storage-card dl div { display: grid; grid-template-columns: minmax(130px, .8fr) 1.2fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid #e6edf1; }
.storage-card dl div:last-child { border-bottom: 0; }
.storage-card dt { color: #405d70; font-size: .72rem; font-weight: 700; }
.storage-card dd { margin: 0; color: var(--ink); font-size: .74rem; line-height: 1.4; }
.storage-card ul { margin: 13px 0 0; padding-left: 20px; color: #3f596b; font-size: .74rem; line-height: 1.65; }
.storage-helper { margin: 13px 0 0; color: var(--muted); font-size: .74rem; line-height: 1.55; }
.storage-card-wide { grid-column: 1 / -1; }
.stored-content { margin-top: 13px; }
.stored-content > dl { margin-top: 0; }
.stored-record { display: grid; gap: 4px; padding: 11px 0; border-bottom: 1px solid #e2e9ee; }
.stored-record:last-child { border-bottom: 0; }
.stored-record b,
.stored-record h4 { margin: 0; color: var(--ink); font-family: 'Poppins', Arial, sans-serif; font-size: .76rem; font-weight: 500; line-height: 1.4; }
.stored-record span { color: #486173; font-size: .72rem; line-height: 1.5; }
.stored-product-record { padding: 16px 0; }
.stored-product-record:first-child { padding-top: 0; }
.stored-product-record > dl { margin: 8px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.stored-product-record > dl div { grid-template-columns: minmax(135px, .72fr) 1.28fr; }
.stored-product-record a { color: #086e76; overflow-wrap: anywhere; }
.ingredient-record { grid-template-columns: minmax(180px, .65fr) 1.35fr; align-items: baseline; gap: 16px; }
.empty-value { color: #748690 !important; font-style: italic; }
.data-boundary { margin-top: 16px; padding: 18px 20px; border: 2px solid #245f82; border-radius: 10px; background: #eef6fa; color: #173f58; }
.data-boundary h2 { margin: 0 0 6px; font-family: Georgia, serif; font-size: 1.15rem; font-weight: 500; }
.data-boundary p { margin: 0; font-size: .78rem; line-height: 1.6; }

.clinical-notice { margin-top: 16px; padding: 18px 20px; border: 2px solid #0d2f49; border-radius: 10px; background: #163a59; color: #fff; }
.clinical-notice h2 { margin: 0 0 6px; color: #fff; font-family: Georgia, serif; font-size: 1.15rem; font-weight: 500; }
.clinical-notice p { margin: 0; color: #fff; font-size: .8rem; line-height: 1.6; }

.toolbar { align-items: stretch; }
.mui-select { position: relative; display: inline-flex; min-width: 210px; border: 1px solid #8fa9ba; border-radius: 8px; background: #fff; }
.mui-select > span { position: absolute; top: -8px; left: 11px; z-index: 1; padding: 0 5px; background: #fff; color: #38586d; font-family: 'Poppins', Arial, sans-serif; font-size: .66rem; line-height: 1.2; }
.mui-select select { width: 100%; min-height: 48px; padding: 11px 42px 9px 14px; border: 0; border-radius: 8px; background-color: transparent; color: var(--ink); font-family: 'Poppins', Arial, sans-serif; font-size: .8rem; font-weight: 400; appearance: none; cursor: pointer; }
.mui-select::after { content: ''; position: absolute; right: 17px; top: 50%; width: 8px; height: 8px; border-right: 2px solid #38586d; border-bottom: 2px solid #38586d; transform: translateY(-65%) rotate(45deg); pointer-events: none; }
.mui-select:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(51, 115, 168, .12); }
.mui-select select:focus { box-shadow: none; outline: 0; }
.product-card { position: relative; }
.product-card-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 8px; }
.product-card .badge { border-radius: 999px; }
.product-card .badge:not(.off) { background: #08745f; color: #fff; }
.product-actions-menu { position: relative; display: inline-flex; }
.product-actions-menu::after { display: none; }
.product-actions-menu select { width: auto; min-width: 88px; min-height: 34px; padding: 0 28px 0 10px; border: 1px solid #a9bfcd; border-radius: 8px; background-color: #fff; color: #294f68; font-family: 'Poppins', Arial, sans-serif; font-size: .7rem; font-weight: 400; appearance: none; cursor: pointer; }
.product-actions-menu select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(51, 115, 168, .12); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.empty-panel { padding: 24px; color: var(--muted); text-align: center; }

.info,
.field-note,
.time-label small,
.timeline-name small,
.axis,
.worse-card > small,
.product-card p,
.product-foot,
.metric small,
.provenance-flow small { color: #526979; }

:focus-visible { outline: 3px solid #1e6fa8; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 600px) {
  .patient-product-empty { align-items: stretch; flex-direction: column; }
  .patient-product-empty .patient-add-product-inline { width: 100%; }
}

@media (max-width: 1050px) {
  .today-flow { grid-template-columns: 1fr; }
  .ehr-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-metrics { grid-template-columns: 1fr; }
  .clinical-story { grid-template-columns: 1fr; }
  .concern-compare { grid-template-columns: 1fr 1fr; }
  .patient-product-list { grid-template-columns: 1fr; }
  .worse-grid { grid-template-columns: 1.2fr .8fr; }
}

@media (max-width: 760px) {
  .header-actions #reset-btn { display: inline-flex; }
  .today-field-grid { grid-template-columns: 1fr; }
  .static-field.wide { grid-column: auto; }
  .ehr-layout { grid-template-columns: 1fr; }
  .ehr-nav { display: none; }
  .ehr-toolbar, .ehr-note > header { align-items: flex-start; flex-direction: column; }
  .ehr-patient { text-align: left; }
  .rail { background: #fff; border-top: 1px solid #cedbe4; }
  .nav-item { color: #526978; }
  .nav-item:hover,
  .nav-item.active { background: #e8f3f7; color: #14596a; }
  .topbar { border-bottom: 1px solid #cad8e2; }
  .header-actions .primary { min-width: auto; }
  .concern-compare { grid-template-columns: 1fr; }
  .patient-reported-details dl { grid-template-columns: 1fr; }
  .skin-fit-mismatch { align-items: flex-start; flex-direction: column; }
  .skin-fit-mismatch-labels { width: 100%; flex-basis: auto; justify-items: start; }
  .skin-fit-mismatch-labels strong { text-align: left; }
  .worse-grid { grid-template-columns: 1fr; }
  .patient-fields,
  .storage-grid { grid-template-columns: 1fr; }
  .storage-card-wide { grid-column: auto; }
  .stored-product-record > dl { grid-template-columns: 1fr; }
  .ingredient-record { grid-template-columns: 1fr; gap: 3px; }
  .storage-flow { grid-template-columns: 1fr; }
  .storage-flow span:nth-child(even) { transform: rotate(90deg); }
  .table-row { min-width: 1050px; }
}

@media (max-width: 620px) {
  .ehr-meta-grid { grid-template-columns: 1fr; }
  .today-card-header, .today-card-footer { align-items: flex-start; flex-direction: column; }
  .patient-products-heading { align-items: stretch; flex-direction: column; }
  .patient-products-heading .primary { width: 100%; }
  .toolbar { display: grid; grid-template-columns: 1fr; }
  .mui-select { width: 100%; }
}

/* Comment Review Refinements */
.today-flow { margin: 0 auto 18px; }
.today-flow .flow-step { border-width: 1px; }
.today-flow .flow-step-one { background: #eef6fb; border-color: #bfd9ea; }
.today-flow .flow-step-one > span { background: #3373a8; }
.today-flow .flow-step-two { background: #eef8f7; border-color: #b8ddda; }
.today-flow .flow-step-two > span { background: #087d83; }
.today-flow .flow-step-three { background: #f4f0fa; border-color: #d7cae8; }
.today-flow .flow-step-three > span { background: #6f5c93; }
.curology-question-grid .static-field { min-height: 92px; }
.current-products-field { border-left: 4px solid var(--teal); background: #f2f9f8; }

.ehr-toolbar { padding: 0 16px; background: #263d70; }
.ehr-patient-identity { display: flex; align-items: center; gap: 10px; min-width: 190px; padding: 12px 0; }
.ehr-patient-identity > div { display: grid; gap: 2px; }
.ehr-patient-identity b { font-size: .78rem; }
.ehr-patient-identity small { color: #d9e4f5; font-size: .62rem; }
.ehr-avatar { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid #a9c4ec; border-radius: 50%; background: #fff; color: #263d70; font-size: .66rem; font-weight: 700; }
.ehr-command-bar { display: flex; align-self: stretch; }
.ehr-command-bar span { display: grid; place-items: center; padding: 0 14px; border-left: 1px solid rgba(255,255,255,.24); color: #edf3ff; font-size: .66rem; }
.ehr-command-bar span.active { background: #f1effb; color: #493f77; }
.ehr-action-bar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 9px 16px; border-bottom: 1px solid #d9e0ed; background: #fbf8d8; }
.ehr-action-bar > span { margin-right: auto; color: #6f6322; font-size: .72rem; }
.ehr-action-bar button { min-height: 32px; padding: 0 14px; border: 1px solid #8fbad2; border-radius: 4px; background: #edf9ff; color: #28749e; font: inherit; font-size: .7rem; }
.ehr-layout { grid-template-columns: 260px 1fr; }
.ehr-nav { gap: 0; padding: 14px 0; background: #f7f7fb; }
.ehr-nav > b { padding: 0 16px 10px; }
.ehr-nav section { display: grid; gap: 3px; padding: 13px 16px; border-top: 1px solid #e0e1ee; color: #435773; }
.ehr-nav section strong { font-family: Georgia, serif; font-size: .82rem; font-weight: 500; }
.ehr-nav section small { color: #687891; font-size: .64rem; line-height: 1.35; }
.ehr-nav section.active { border-left: 4px solid #6756a2; background: #ebe9f8; color: #40376c; }
.ehr-boundary { margin: 0 0 16px; border-color: #c9bce5; border-left-color: #6756a2; background: #f3f0fa; box-shadow: 0 8px 20px rgba(75,59,119,.08); }
.ehr-boundary b { color: #4d3f78; }
.ehr-boundary p { color: #584d72; }
.ehr-subtabs { display: flex; gap: 0; margin: 0 0 16px; border: 1px solid #d8deeb; background: #fafaff; }
.ehr-subtabs span { padding: 9px 12px; border-right: 1px solid #d8deeb; color: #667690; font-size: .68rem; }
.ehr-subtabs span.active { color: #24719b; font-weight: 600; }
.ehr-section { margin-top: 12px; padding: 0; border: 1px solid #dedbef; background: #fff; }
.ehr-section summary { padding: 12px 14px; background: #f1effa; color: #40376c; font-family: Georgia, serif; font-size: .9rem; cursor: pointer; }
.ehr-section > p, .ehr-section > blockquote, .ehr-section > ul { margin: 14px; }

/* Radix Add Product Surface */
:scope {
  --radix-accent: #12a594;
  --radix-accent-soft: #e0f8f3;
  --radix-surface: rgba(255, 255, 255, .9);
  --radix-border: rgba(0, 0, 47, .15);
  --radix-radius-card: 8px;
  --radix-radius-control: 4px;
}

#products .section-intro { margin-bottom: 18px; }
#products .section-intro h2 { font-size: 2rem; letter-spacing: -.02em; }
#products .section-intro p { max-width: 650px; }
#products .toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--radix-border);
  border-radius: var(--radix-radius-card);
  background: var(--radix-surface);
  box-shadow: 0 8px 24px rgba(24, 58, 83, .05);
}
#products .toolbar input {
  max-width: none;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--radix-radius-control);
  background: #fff;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: .82rem;
}
#products .mui-select { min-width: 0; border-radius: var(--radix-radius-control); }
#products .mui-select select { min-height: 48px; border-radius: var(--radix-radius-control); }
#products .product-grid { gap: 16px; }
#products .product-card {
  min-width: 0;
  min-height: 236px;
  padding: 16px;
  gap: 14px;
  border: 1px solid var(--radix-border);
  border-radius: var(--radix-radius-card);
  background: var(--radix-surface);
  box-shadow: 0 8px 24px rgba(24, 58, 83, .05);
}
#products .product-card header { min-width: 0; align-items: flex-start; }
#products .product-card header > div:first-child { min-width: 0; }
#products .product-card h3 {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: 0;
}
#products .product-card p { font-family: 'Poppins', Arial, sans-serif; }
#products .product-card-chips { flex: 0 0 auto; max-width: 42%; }
#products .product-card .badge { border-radius: 999px; font-family: 'Poppins', Arial, sans-serif; font-weight: 500; }
#products .ingredients { align-content: flex-start; }
#products .ingredients span {
  border: 1px solid #e0e7eb;
  border-radius: var(--radix-radius-control);
  background: #f7fafc;
  color: #35566e;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: .65rem;
}
#products .product-card-actions { margin-top: auto; padding-top: 12px; border-top: 1px solid #e5ebef; }
#products .product-actions-menu select {
  min-height: 36px;
  border-radius: var(--radix-radius-control);
  font-size: .72rem;
}
#products .empty-panel { grid-column: 1 / -1; border: 1px solid var(--radix-border); border-radius: var(--radix-radius-card); background: var(--radix-surface); }

:scope {
  width: min(720px, calc(100% - 32px));
  border: 1px solid var(--radix-border);
  border-radius: var(--radix-radius-card);
  background: #fff;
}
:scope form { gap: 18px; padding: 28px; }
:scope .modal-head { align-items: flex-start; padding-bottom: 4px; }
:scope .modal-head h2 { margin-top: 4px; font-family: 'Poppins', Arial, sans-serif; font-size: 1.45rem; font-weight: 500; letter-spacing: -.02em; }
:scope .modal-head .kicker { margin-bottom: 0; }
:scope .icon-btn { border-radius: var(--radix-radius-control); }
:scope form > label,
:scope .form-grid label { gap: 6px; font-family: 'Poppins', Arial, sans-serif; font-size: .7rem; font-weight: 500; }
:scope input,
:scope select,
:scope textarea {
  border-radius: var(--radix-radius-control);
  border-color: rgba(0, 9, 50, .18);
  background: var(--radix-surface);
  font-family: 'Poppins', Arial, sans-serif;
  font-size: .8rem;
}
:scope input,
:scope select { min-height: 42px; }
:scope textarea { min-height: 112px; padding-top: 10px; }
:scope input:focus,
:scope select:focus,
:scope textarea:focus { border-color: var(--radix-accent); box-shadow: 0 0 0 3px rgba(18, 165, 148, .18); }
:scope .lookup-row { gap: 8px; }
:scope .ai-button {
  min-height: 42px;
  border: 1px solid var(--radix-accent);
  border-radius: var(--radix-radius-control);
  background: var(--radix-accent);
  color: #fff;
  font-size: .78rem;
  font-weight: 500;
}
:scope .ai-button:hover { background: #0e8f80; border-color: #0e8f80; }
:scope .lookup-state { border-radius: var(--radix-radius-control); }
:scope .lookup-state .ai-orb { background: var(--radix-accent); color: #fff; }
:scope .consumer-insights { border-radius: var(--radix-radius-card); }
:scope .form-actions { margin-top: 2px; padding-top: 18px; }
:scope .form-actions .primary,
:scope .form-actions .ghost { min-height: 42px; border-radius: var(--radix-radius-control); font-weight: 500; }

@media (max-width: 760px) {
  #products .toolbar { grid-template-columns: 1fr; }
  #products .product-card-chips { max-width: 48%; }
  :scope form { padding: 22px 18px; }
}

/* Shared Header And Navigation Surface */
@media (min-width: 761px) {
  .topbar {
    min-height: 84px;
    height: 84px;
    padding: 20px 32px;
    justify-content: flex-end;
  }
}

.header-actions { gap: 8px; }
.header-actions .primary,
.header-actions .ghost {
  min-width: 112px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radix-radius-control);
  font-size: .76rem;
  font-weight: 500;
}
.header-actions .primary {
  border-color: var(--radix-accent);
  background: var(--radix-accent);
}
.header-actions .primary:hover { background: #0e8f80; border-color: #0e8f80; }
.header-actions .ghost { border-color: rgba(0, 9, 50, .18); background: #fff; }
.header-actions .ghost:hover { border-color: var(--radix-accent); background: var(--radix-accent-soft); }

.rail {
  width: 240px;
  padding: 24px 16px;
  border-right-color: rgba(0, 0, 47, .12);
  box-shadow: 4px 0 18px rgba(24, 58, 83, .025);
}
main { margin-left: 240px; }
.brand {
  margin: 0 8px 34px;
  color: var(--ink);
  font-family: 'Poppins', Arial, sans-serif;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .12em;
}
.rail nav { gap: 4px; }
.nav-item {
  min-height: 36px;
  padding: 8px 10px;
  gap: 10px;
  border-radius: var(--radix-radius-control);
  font-family: 'Poppins', Arial, sans-serif;
  font-size: .74rem;
}
.nav-item span { min-width: 18px; font-size: .58rem; }
.nav-item.active {
  border-color: #b9e9df;
  background: var(--radix-accent-soft);
  color: #075f58;
  box-shadow: inset 3px 0 0 var(--radix-accent);
}
.nav-item.active span { color: #087d72; }
.rail-foot { margin: auto 8px 0; padding: 13px 0 0; font-family: 'Poppins', Arial, sans-serif; font-size: .68rem; }

@media (max-width: 760px) {
  main { margin-left: 0; }
  .header-actions .primary,
  .header-actions .ghost { min-width: 0; min-height: 36px; }
  .rail { width: min(84vw, 320px); padding: calc(24px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom)); }
}

.patient-intake-form input,
.patient-intake-form select,
.patient-intake-form textarea { font-weight: 400; }
.patient-intake-form label { font-weight: 500; }

.product-card { min-height: 220px; }
.product-card header { gap: 10px; }
.product-card-chips { display: flex; align-items: flex-start; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.product-card .badge.duration-badge { border: 1px solid #b9d6e5; background: #edf6fb; color: #2e607e; }
.product-card-actions { justify-content: flex-end; align-self: end; margin-top: auto; padding-top: 12px; border-top: 1px solid #edf1f0; }
.product-foot { display: none; }

.storage-card { padding: 0; overflow: hidden; }
.storage-card > summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px 20px; cursor: pointer; list-style: none; }
.storage-card > summary::-webkit-details-marker { display: none; }
.storage-card > summary::after { content: '+'; color: var(--blue); font-size: 1.1rem; }
.storage-card[open] > summary { border-bottom: 1px solid #dfe7ed; }
.storage-card[open] > summary::after { content: '−'; }
.storage-card > summary > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.storage-card > .stored-content { max-height: 430px; margin: 0; padding: 0 20px 18px; overflow: auto; }

.overview-primary-concern { width: 100%; height: auto; margin: 16px 0; }
.overview-exposure-story { display: block; }
.overview-exposure-story .worse-card { width: 100%; }
.worse-grid { grid-template-columns: 1fr 1fr; }
.worse-grid > section + section { border-left: 0; }
.tracked-products-metric { grid-row: span 2; }
.tracked-products-list { display: grid; gap: 6px; max-height: 116px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #dfe7ed; overflow-y: auto; }
.tracked-products-list span { padding: 6px 8px; border: 1px solid #d9e5ec; border-radius: 6px; background: #f7fafc; color: #35566e; font-size: .67rem; line-height: 1.35; }

.timeline-name { padding-right: 10px; }
.event-bar { min-width: max-content; padding: 0 8px; overflow: visible; white-space: nowrap; z-index: 1; }
.event-bar.start { right: auto; width: max-content; min-width: 100%; justify-content: flex-start; z-index: 4; }

#new-product-name::placeholder { font-family: 'Poppins', Arial, sans-serif; font-style: italic; font-weight: 300; opacity: .72; }
#new-product-ingredients::placeholder { color: #6f7d86; }
.menu-toggle,
.rail-backdrop { display: none; }
:scope .form-grid label,
:scope .form-grid input,
:scope .form-grid select,
:scope .form-grid option { font-weight: 400; }
:scope input::placeholder,
:scope textarea::placeholder { font-weight: 300; opacity: .72; }
[data-go="matches"],
[data-go="timeline"],
#matches,
#timeline { display: none !important; }
.research-source-section { padding-top: 16px; border-top: 1px solid #d7e1e8; }
.research-source-section p { margin: 0 0 8px; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.research-source-section ul { margin: 0; padding-left: 20px; }
.research-source-section li + li { margin-top: 7px; }
.trail-modal a { color: #086e76; }

@media (max-width: 900px) {
  .ehr-command-bar span { padding: 0 8px; font-size: .6rem; }
}

@media (max-width: 760px) {
  body { padding-top: 0; padding-bottom: 0; overflow-x: hidden; }
  body.nav-open { overflow: hidden; }
  main { padding-bottom: 0; }
  .topbar { position: sticky; top: 0; z-index: 4; min-height: 74px; padding: 14px 16px; gap: 12px; }
  .topbar-title { min-width: 0; }
  .menu-toggle { display: inline-grid; place-content: center; gap: 4px; flex: 0 0 42px; width: 42px; height: 42px; padding: 0; border: 1px solid #b9ceda; border-radius: 8px; background: #fff; color: var(--navy); cursor: pointer; }
  .menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 99px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .rail { inset: 0 auto 0 0; z-index: 7; width: min(84vw, 320px); height: 100dvh; padding: calc(24px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; border: 0; border-right: 1px solid #cedbe4; background: #fff; box-shadow: 18px 0 48px rgba(24, 58, 83, .18); transform: translateX(-105%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility 0s linear .24s; }
  body.nav-open .rail { transform: translateX(0); visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .rail .brand { display: flex; margin: 0 8px 28px; }
  .rail nav { display: grid; width: 100%; min-width: 0; gap: 5px; }
  .nav-item { width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; flex-direction: row; justify-content: flex-start; gap: 12px; font-family: 'Poppins', Arial, sans-serif; font-size: .8rem; line-height: 1.25; text-align: left; white-space: normal; }
  .nav-item span { font-size: .58rem; line-height: 1; }
  .nav-item.active:after { content: none; }
  .rail-foot { display: block; margin-top: auto; }
  .rail-backdrop { position: fixed; inset: 0; z-index: 6; width: 100%; height: 100%; border: 0; background: rgba(15, 36, 50, .42); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  body.nav-open .rail-backdrop { display: block; opacity: 1; pointer-events: auto; }
  .topbar h1 { max-width: 62vw; font-size: 1.35rem; line-height: 1.08; }
  .topbar-title p { font-size: .66rem; }
  .header-actions { margin-left: auto; }
  .header-actions .primary { min-height: 44px; padding: 0 13px; }
  .view { padding: 16px 14px 24px; }
  .section-intro { margin-bottom: 16px; }
  .section-intro h2 { font-size: 1.5rem; line-height: 1.12; }
  .section-intro p { font-size: .78rem; }
  .patient-banner { padding: 16px; }
  .patient-banner p { font-size: .76rem; }
  .metric-grid { gap: 9px; }
  .metric { padding: 12px; }
  .metric-top { font-size: .68rem; }
  .metric strong { font-size: 1.65rem; }
  .today-card-header, .today-card-footer { padding: 17px 16px; }
  .today-field-grid { padding: 16px; gap: 10px; }
  .static-field { min-height: 0; padding: 12px; }
  .today-card-footer .static-submit { width: 100%; }
  .ehr-command-bar { display: none; }
  .ehr-action-bar { flex-wrap: wrap; padding: 8px 12px; }
  .ehr-action-bar button { min-height: 40px; }
  .ehr-note { padding: 16px; }
  .ehr-meta-grid { gap: 8px; }
  .worse-grid { grid-template-columns: 1fr; }
  .worse-grid > section + section { border-top: 1px solid #d6e3eb; padding-top: 15px; }
  .panel, .form-card, .concern-card, .worse-card { border-radius: 10px; }
  .panel-head { gap: 10px; }
  .panel-head .info { max-width: 110px; text-align: right; }
  .table-card { margin-inline: -2px; }
  dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); margin: auto; overflow: auto; }
  dialog form { padding: 18px 16px; }
  .modal-head { position: sticky; top: -18px; z-index: 1; padding-bottom: 4px; background: #fff; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions span { margin: 0; }
  .form-actions .primary, .form-actions .ghost { width: 100%; min-height: 44px; }
  .lookup-row { grid-template-columns: 1fr; }
  .ai-button { min-height: 44px; }
  .trail-modal { padding: 18px 16px; }
  .trail-modal .form-actions { flex-direction: row; }
  .trail-modal .form-actions .primary { width: auto; margin-left: auto; }
}

@media (max-width: 430px) {
  .topbar h1 { max-width: 58vw; font-size: 1.2rem; }
  .header-actions .primary { width: 44px; padding: 0; font-size: 0; }
  .header-actions .primary::after { content: '+'; font-size: 1.25rem; }
  .patient-meta { grid-template-columns: 1fr; }
  .patient-meta span:last-child { display: none; }
  .metric-grid { grid-template-columns: 1fr; }
  .environment-strip { grid-template-columns: 1fr 1fr; }
  .provenance-flow { gap: 5px; }
  .provenance-flow b { font-size: .62rem; }
  .skin-fit-mismatch-labels strong { max-width: 100%; }
}
:scope .photo-lookup{display:flex;align-items:center;gap:14px;margin:16px 0;padding:14px;border:1px solid #c8d8d8;background:#f2f8f7;border-radius:12px}.photo-lookup>div{display:grid;gap:3px;flex:1}.photo-lookup b{font-size:.86rem;color:#17364d}.photo-lookup p{margin:0;color:#587078;font-size:.72rem;line-height:1.35}.photo-upload-button{display:inline-flex!important;align-items:center;justify-content:center;padding:10px 14px;background:#1b7f8b;color:#fff;border-radius:8px;font-size:.74rem;font-weight:700;cursor:pointer;white-space:nowrap}.photo-upload-button:hover{background:#146570}@media(max-width:620px){:scope .photo-lookup{align-items:flex-start;flex-wrap:wrap}.photo-lookup .field-note{width:100%}}

/* Overview Surface */
#overview { color: var(--ink); }
#overview .patient-banner,
#overview .concern-card,
#overview .worse-card,
#overview .panel,
#overview .metric {
  border: 1px solid var(--radix-border);
  border-radius: var(--radix-radius-card);
  background: var(--radix-surface);
  box-shadow: 0 8px 24px rgba(15, 36, 50, .06);
}
#overview .patient-banner {
  min-height: 96px;
  padding: 18px 20px;
  align-items: center;
  gap: 16px;
}
#overview .patient-banner .avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  background: #173f60;
  border: 0;
  font-size: 1.1rem;
}
#overview .patient-banner h2,
#overview .section-card-title,
#overview .worse-card h2,
#overview .panel h2 {
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -.02em;
}
#overview .patient-banner h2 { font-size: 1.3rem; }
#overview .patient-banner p { color: #587078; }
#overview .patient-meta { margin-left: auto; }
#overview .patient-meta span { padding: 8px 12px; border: 1px solid #c6d9e5; border-radius: 4px; background: #f7fbfd; }
#overview .patient-meta b,
#overview .patient-meta em { font-family: 'Poppins', Arial, sans-serif; }
#overview .patient-meta b { color: #587078; font-size: .62rem; letter-spacing: .1em; }
#overview .patient-meta em { color: var(--ink); font-size: .76rem; }
#overview .overview-primary-concern { margin-top: 16px; padding: 20px; border-left: 4px solid var(--radix-accent); }
#overview .section-card-title { margin-bottom: 14px; font-size: 1.15rem; }
#overview .concern-compare { gap: 12px; }
#overview .patient-voice,
#overview .patient-reported-details {
  border-radius: var(--radix-radius-card);
  border: 1px solid var(--radix-border);
  padding: 16px;
}
#overview .patient-voice { background: var(--radix-accent-soft); border-color: #bfe8df; }
#overview .patient-reported-details { background: rgba(255,255,255,.72); }
#overview .patient-voice > span,
#overview .patient-reported-details > span,
#overview .burden-section h3,
#overview .panel-head .eyebrow {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #507084;
}
#overview .patient-voice blockquote { margin-top: 10px; font-family: 'Poppins', Arial, sans-serif; font-size: 1rem; line-height: 1.55; color: #17364d; }
#overview .patient-reported-details dl { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 18px; margin-top: 10px; }
#overview .patient-reported-details dt { font-family: 'Poppins', Arial, sans-serif; font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #587078; }
#overview .patient-reported-details dd { margin-top: 3px; color: #17364d; font-size: .78rem; line-height: 1.35; }
#overview .symptom-tags { gap: 6px; margin-top: 14px; }
#overview .symptom-tags span { border: 1px solid #bfe8df; border-radius: 4px; background: var(--radix-accent-soft); color: #087f73; font-family: 'Poppins', Arial, sans-serif; font-size: .68rem; font-weight: 600; }
#overview .overview-primary-concern footer { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(0,0,47,.1); color: #587078; font-family: 'Poppins', Arial, sans-serif; font-size: .72rem; }
#overview .overview-primary-concern footer b { color: #173f60; }
#overview .overview-primary-concern > footer { display: none; }
#overview .overview-exposure-story { margin-top: 16px; }
#overview .worse-card { padding: 20px; }
#overview .worse-grid { gap: 12px; }
#overview .burden-section,
#overview .burden-rationale { border-radius: var(--radix-radius-card); border-color: var(--radix-border); background: rgba(255,255,255,.72); }
#overview .burden-section { padding: 16px; }
#overview .burden-rationale { border-left: 4px solid var(--radix-accent); }
#overview .dashboard-grid { gap: 16px; margin-top: 16px; }
#overview .overview-metrics { gap: 12px; align-items: stretch; }
#overview .overview-metrics .metric { min-height: 148px; padding: 16px; }
#overview .overview-metrics .metric-top { font-family: 'Poppins', Arial, sans-serif; }

/* Header Button Sizing */
@media (min-width: 761px) {
  .header-actions .primary,
  .header-actions .ghost {
    flex: 0 0 176px;
    width: 176px;
    min-width: 176px;
    min-height: 40px;
    box-sizing: border-box;
  }
}

@media (max-width: 760px) {
  #overview .patient-banner { align-items: flex-start; }
  #overview .patient-meta { display: none; }
  #overview .overview-primary-concern, #overview .worse-card { padding: 16px; }
  #overview .patient-reported-details dl { grid-template-columns: 1fr; }
  .header-actions .primary,
  .header-actions .ghost {
    flex: 0 0 148px;
    width: 148px;
    min-width: 148px;
    min-height: 44px;
    box-sizing: border-box;
  }
}

@media (max-width: 430px) {
  .header-actions .primary,
  .header-actions .ghost {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    padding: 0;
    font-size: 0;
  }
  .header-actions .ghost::after { content: '↺'; font-size: 1.2rem; }
}

/* Complete Overview Sections */
#overview .panel-head { align-items: center; padding-bottom: 14px; border-bottom: 1px solid rgba(0,0,47,.1); }
#overview .panel-head h3,
#overview .worse-card .panel-head h3,
#overview .burden-section h4,
#overview .burden-rationale h4 {
  margin: 0;
  color: var(--ink);
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -.015em;
}
#overview .panel-head h3,
#overview .worse-card .panel-head h3 { font-size: 1.08rem; }
#overview .panel-subtitle { margin: 4px 0 0; color: #587078; font-family: 'Poppins', Arial, sans-serif; font-size: .7rem; }
#overview .burden { padding: 6px 10px; border-radius: 4px; font-family: 'Poppins', Arial, sans-serif; font-size: .66rem; font-weight: 600; }
#overview .contributor-section,
#overview .aggravator-section { min-height: 138px; }
#overview .burden-section h4 { font-size: .88rem; }
#overview .burden-section > p { margin: 6px 0 12px; font-family: 'Poppins', Arial, sans-serif; font-size: .68rem; }
#overview .culprit-chips { gap: 7px; }
#overview .culprit-chips span { border-radius: 4px; background: #f7fbfd; border-color: rgba(0,0,47,.12); color: #35566e; font-family: 'Poppins', Arial, sans-serif; font-size: .68rem; }
#overview .environment-strip { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
#overview .environment-strip span { min-height: 82px; justify-content: center; border-radius: 8px; padding: 10px 6px; }
#overview .environment-strip strong { color: var(--ink); font-family: 'Poppins', Arial, sans-serif; font-size: .9rem; }
#overview .environment-strip span:not(i) { color: #587078; font-family: 'Poppins', Arial, sans-serif; font-size: .62rem; }
#overview .environment-strip i { font-size: 1rem; }
#overview .skin-fit-section { margin-top: 12px; }
#overview .skin-fit-section > p { margin: 6px 0 12px; font-family: 'Poppins', Arial, sans-serif; font-size: .68rem; }
#overview .skin-fit-empty,
#overview .skin-fit-mismatch { border-radius: 4px; background: #f7fbfd; border-color: rgba(0,0,47,.12); font-family: 'Poppins', Arial, sans-serif; font-size: .68rem; }
#overview .skin-fit-empty b,
#overview .skin-fit-mismatch b { font-size: .72rem; }
#overview .burden-rationale { margin-top: 12px; padding: 16px; }
#overview .burden-rationale h4 { font-size: .96rem; }
#overview .burden-rationale ul { color: #35566e; font-family: 'Poppins', Arial, sans-serif; font-size: .68rem; }
#overview .burden-rationale p { color: #35566e; font-family: 'Poppins', Arial, sans-serif; font-size: .68rem; }
#overview .dashboard-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
#overview .dashboard-grid > .panel { min-width: 0; padding: 18px; }
#overview .dashboard-grid .text-btn { border-radius: 4px; color: #087f73; font-family: 'Poppins', Arial, sans-serif; font-size: .68rem; }
#overview .dashboard-grid .kicker { color: #087f73; font-family: 'Poppins', Arial, sans-serif; font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
#overview .dashboard-grid .info { color: #587078; font-family: 'Poppins', Arial, sans-serif; font-size: .62rem; }
#overview .mini-timeline { margin-top: 14px; border-radius: 4px; background: #f7fbfd; }
#overview .priority-panel #priority-list { padding-top: 14px; color: #35566e; font-family: 'Poppins', Arial, sans-serif; font-size: .7rem; line-height: 1.5; }
#overview .priority-panel #priority-list:empty::after { content: 'No Product Currently Needs A Closer Look'; display: block; padding: 12px; border: 1px solid rgba(0,0,47,.12); border-radius: 4px; background: #f7fbfd; color: #587078; }
#overview .overview-metrics { grid-column: 1 / -1; }
#overview .overview-metrics .metric { display: flex; flex-direction: column; gap: 8px; }
#overview .overview-metrics .metric-top { color: #35566e; font-size: .7rem; font-weight: 600; }
#overview .overview-metrics .metric strong { color: var(--ink); font-family: 'Poppins', Arial, sans-serif; font-size: 1.8rem; }
#overview .overview-metrics .metric small { color: #587078; font-family: 'Poppins', Arial, sans-serif; font-size: .66rem; }
#overview .tracked-products-list { margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(0,0,47,.1); color: #587078; font-family: 'Poppins', Arial, sans-serif; font-size: .65rem; line-height: 1.35; }
#overview .overview-priority-panel { margin-top: 16px; padding: 18px; }
#overview .overview-priority-panel .panel-head h3 { max-width: 760px; }
#overview .overview-priority-panel #priority-list { min-height: 42px; }
#overview .aggravator-section { overflow: visible; min-width: 0; }
#overview .aggravator-section .environment-strip { width: 100%; min-width: 0; }

@media (max-width: 900px) {
  #overview .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  #overview .environment-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  #overview .panel-head { align-items: flex-start; }
  #overview .panel-head .info { max-width: 130px; text-align: right; }
}

.consumer-insights{margin:18px 0;padding:18px;border:1px solid #c8d3d2;background:#f4f8f7}.consumer-insights[hidden]{display:none}.consumer-head h3{margin:3px 0 8px;font-size:1.25rem}.consumer-insights>p{margin:0 0 14px;color:#43585c;line-height:1.5}.consumer-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.consumer-grid>div{background:#fff;border:1px solid #d7dfde;padding:12px}.consumer-grid h4{margin:0 0 8px;font-size:.76rem;text-transform:uppercase;letter-spacing:.05em}.consumer-grid ul{margin:0;padding-left:18px;color:#43585c;font-size:.75rem;line-height:1.5}@media(max-width:620px){.consumer-grid{grid-template-columns:1fr}}
}
#product-dialog{font-family:Poppins,Arial,sans-serif;max-height:92dvh;overflow:auto}:scope [hidden]{display:none!important}#product-dialog .photo-lookup label{cursor:pointer}#product-dialog::backdrop{background:rgba(20,43,61,.5)}

#product-dialog{width:min(720px,calc(100% - 32px));padding:0;background:#fff;color:#142b3d}#product-dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#product-dialog input,#product-dialog select,#product-dialog textarea{width:100%;min-width:0;box-sizing:border-box}#product-dialog .modal-head h2{font-family:Poppins,Arial,sans-serif;font-size:1.45rem;line-height:1.25;margin:4px 0 0}#product-dialog .photo-lookup{padding:14px;border:1px solid #c8d8d8;border-radius:12px;background:#f2f8f7}#product-dialog .photo-lookup p{margin:4px 0 12px}#product-dialog .field-note{float:none}#product-dialog label{display:grid;gap:6px}#product-dialog .consumer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:560px){#product-dialog .form-grid,#product-dialog .consumer-grid{grid-template-columns:1fr}}
