/* Forest and warm paper: focused catalog and private customer workspaces. */
:root{--care-paper:#eee9da;--care-ink:#203d30;--care-muted:#49604f;--care-line:#bfc9b7;--care-accent:#176347;--care-selected:#dce8d5;--care-ease:cubic-bezier(.16,1,.3,1)}
.care-explorer,.customer-surface{color:var(--care-ink);background:var(--care-paper);border-radius:14px;padding:24px;caret-color:var(--care-accent)}
.care-explorer ::selection,.customer-surface ::selection{background:#c5d8bd;color:#153f2a}
.care-explorer button:focus-visible,.customer-surface button:focus-visible,.customer-surface canvas:focus-visible{outline:3px solid #176347;outline-offset:3px}
.care-explorer input,.care-explorer select,.customer-surface input,.customer-surface select,.customer-surface textarea{background:#fffdf5;color:var(--care-ink);border:1px solid #899e88;border-radius:8px;min-height:44px;padding:10px 12px;font:inherit;max-width:100%;box-sizing:border-box}
.care-explorer input::placeholder,.customer-surface input::placeholder,.customer-surface textarea::placeholder{color:#526653}
.care-explorer label,.customer-surface label{color:var(--care-ink);font-size:14px}
.care-explorer .button-light,.customer-surface .button-light{background:#dde5d5;color:#234a32;border:1px solid #a4b69c}
.care-explorer .button-primary,.customer-surface .button-primary{background:#175c3e;color:#fff8e4;border:1px solid #175c3e}
.care-explorer button,.customer-surface button{transition:background-color 140ms ease,color 140ms ease,transform 120ms var(--care-ease)}
.care-explorer button:active,.customer-surface button:active{transform:scale(.98)}
.care-explorer button:disabled,.customer-surface button:disabled{opacity:.55;cursor:not-allowed}
.care-search{display:grid;grid-template-columns:minmax(180px,1fr) 130px auto;align-items:end;gap:12px}
.care-search label,.customer-search label,.customer-field{display:grid;gap:8px;min-width:0}
.care-scenes{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 8px}
.care-scenes button{border:1px solid #9aac93;background:transparent;color:#2b4b35;padding:10px 14px;border-radius:24px;min-height:44px;font:inherit;font-size:14px;cursor:pointer}
.care-scenes button[aria-pressed=true]{background:#214f35;color:#fff7df;border-color:#214f35}
.care-result-bar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:16px 0;font-size:14px;color:var(--care-muted)}
.care-workspace{display:grid;grid-template-columns:minmax(220px,29%) minmax(0,1fr);gap:24px;align-items:start}
.care-index{max-height:640px;overflow:auto;overscroll-behavior:contain;scrollbar-color:#809777 transparent;scrollbar-width:thin;border-top:1px solid var(--care-line)}
.care-index button{display:grid;grid-template-columns:minmax(0,1fr) auto;text-align:left;width:100%;gap:7px 12px;background:transparent;border:0;border-bottom:1px solid var(--care-line);padding:17px 12px;color:var(--care-ink);font:inherit;cursor:pointer;border-radius:0}
.care-index button strong{font-size:15px;grid-column:1/-1;line-height:1.5;font-weight:600}
.care-index button span,.care-index button small{font-size:12px;color:var(--care-muted)}
.care-index button small{font-variant-numeric:tabular-nums}
.care-index button[aria-pressed=true]{background:var(--care-selected);box-shadow:inset 0 -2px #447750}
.care-detail{min-width:0;scroll-margin-top:86px}
.care-detail-title{display:flex;justify-content:space-between;align-items:start;gap:14px}
.care-detail-title h2{font-size:24px;line-height:1.4;color:var(--care-ink);margin:8px 0;font-weight:600}
.care-detail-title p,.care-source{font-size:13px;line-height:1.65;color:var(--care-muted)}
.care-tier{font-size:13px;color:#365b3f}.care-detail-title .button{white-space:nowrap}
.care-path{list-style:none;padding:0;margin:22px 0;display:flex;flex-wrap:wrap;gap:10px 18px}
.care-path li{display:flex;align-items:center;gap:8px;font-size:14px;color:#294d35}
.care-path li span{display:grid;place-items:center;width:26px;height:26px;flex-shrink:0;border:1px solid #8fa688;border-radius:50%;font-size:12px}
.care-selection-note,.customer-notice{background:#dae5cf;padding:14px 16px;font-size:14px;line-height:1.7;border-radius:10px;color:#2d4e35}
.care-products{margin-top:20px;border-top:1px solid var(--care-line)}
.care-product{display:flex;gap:12px;align-items:center;padding:16px 0;border-bottom:1px solid var(--care-line)}
.care-product img{object-fit:contain;flex-shrink:0;width:64px;height:78px}
.care-product-name{flex:1;min-width:0}.care-product-name strong{display:block;font-size:15px;line-height:1.6;font-weight:600}.care-product-name small{display:block;color:var(--care-muted);margin-top:4px;font-size:13px}
.care-quantity{flex-shrink:0;display:grid;gap:6px;justify-items:end}
.care-quantity>label{display:flex;gap:6px;align-items:center;font-size:13px}.care-quantity input[type=checkbox],.customer-surface input[type=checkbox],.care-explorer input[type=checkbox]{min-height:auto;width:18px;height:18px;accent-color:#176347}
.care-quantity>div{display:flex;align-items:center}.care-quantity button{height:40px;width:34px;background:#e1e7d8;color:#294a32;border:1px solid #a9ba9e;font-size:20px;cursor:pointer}
.care-quantity input[type=number]{width:48px;min-height:40px;height:40px;padding:5px 2px;border-radius:0;text-align:center;border-left:0;border-right:0;font-size:14px;-moz-appearance:textfield}
.care-quantity input::-webkit-inner-spin-button{appearance:none}
.care-summary{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:20px 0}
.care-summary>div:first-child{display:grid;gap:5px;flex-shrink:0}.care-summary strong{font-size:27px;color:#175c3e;font-weight:650;font-variant-numeric:tabular-nums}.care-summary span,.care-summary small{font-size:12px;color:var(--care-muted)}
.care-summary .ops-actions{justify-content:flex-end}.care-summary .button{font-size:13px;min-height:44px;padding:10px 13px}
.care-empty,.customer-empty{padding:35px 16px;text-align:center;color:var(--care-muted)}
.care-loading{min-height:280px}.care-loading h1{font-size:28px}.ui-skeleton{height:70px;max-width:680px;margin:16px 0;background:#bccdaf25;border-radius:10px;animation:care-pulse 1.2s ease-in-out infinite alternate}
@keyframes care-pulse{to{opacity:.4}}
.customer-search{display:flex;gap:12px;align-items:end;margin-bottom:20px}.customer-search label{flex:1}
.customer-list{margin:20px 0}.customer-row{width:100%;border:0;border-bottom:1px solid var(--care-line);background:transparent;padding:18px 0;display:flex;gap:14px;align-items:center;text-align:left;color:var(--care-ink);cursor:pointer;font:inherit}
.customer-row:hover{background:#e4eadb}.customer-row strong{font-size:16px;font-weight:600}.customer-row small{display:block;color:var(--care-muted);font-size:12px;margin-top:6px}
.customer-initial{display:grid;place-items:center;border-radius:50%;background:#d1dfc7;color:#2f5739;width:48px;height:48px;font-size:22px;flex-shrink:0}
.customer-count{margin-left:auto;text-align:right;flex-shrink:0;font-size:13px}.customer-profile-head{display:flex;align-items:center;gap:16px;margin-bottom:20px}.customer-profile-head h2{margin:0;color:var(--care-ink);font-size:24px}.customer-profile-head p{margin:7px 0 0;font-size:13px;color:var(--care-muted)}.customer-profile-head .button{margin-left:auto}
.customer-surface dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 28px;margin:16px 0 24px}.customer-surface dt{font-size:12px;color:var(--care-muted);margin-bottom:6px}.customer-surface dd{margin:0;font-size:14px;line-height:1.7;overflow-wrap:anywhere;white-space:pre-wrap}
.customer-record-actions{display:flex;flex-wrap:wrap;gap:10px;padding:20px 0;border-top:1px solid var(--care-line);border-bottom:1px solid var(--care-line)}
.customer-history{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px;margin-top:30px}.customer-history h2,.customer-form h2{font-size:19px;color:var(--care-ink);font-weight:600;margin:0 0 18px}.customer-history h2 small{font-size:13px;color:var(--care-muted);font-weight:400}
.customer-record{border-bottom:1px solid var(--care-line)}.customer-record>summary{padding:16px 0;cursor:pointer;color:var(--care-ink);display:grid;gap:8px;list-style:none}.customer-record>summary strong{font-size:14px}.customer-record>summary span{font-size:13px;color:var(--care-muted);line-height:1.6;overflow-wrap:anywhere}.customer-record[open]>summary{color:#176347}.customer-record dl{grid-template-columns:1fr}.customer-record>small{display:block;padding-bottom:16px;font-size:12px;color:var(--care-muted)}
.customer-signature{font-size:13px;padding:0 0 18px}.customer-signature summary{cursor:pointer}.customer-signature img{display:block;max-width:100%;height:auto;background:#fffdf5;margin-top:10px}
.customer-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.customer-wide{grid-column:1/-1}.customer-form section+section{margin-top:30px;border-top:1px solid var(--care-line);padding-top:24px}.customer-field textarea{resize:vertical;min-height:90px}
.customer-checks{padding:0;border:0;margin:0;display:flex;flex-wrap:wrap;gap:10px}.customer-checks legend{font-size:14px;margin-bottom:12px}.customer-checks label{display:flex;align-items:center;gap:8px;padding:10px 12px;background:#e2e8d9;border-radius:8px;min-height:44px;box-sizing:border-box}.customer-checks label:has(input:checked){background:#cadcbd;color:#163e27}
.customer-sign canvas{display:block;max-width:100%;width:100%;height:160px;background:#fffdf7;border:1px solid #92a787;border-radius:8px;touch-action:none}.customer-sign p{font-size:12px;color:var(--care-muted);margin:6px 0 12px}.customer-sign .button{margin-top:10px}.customer-form-actions{display:flex;gap:10px;margin-top:24px;padding-top:20px;border-top:1px solid var(--care-line)}.customer-consent{margin-top:24px;line-height:1.7}.customer-person{font-size:14px;margin-bottom:24px;color:var(--care-muted)}.customer-error{color:#803323;background:#f1ddc7;padding:14px;border-radius:8px;line-height:1.6}
.customer-surface .hint,.customer-surface .ops-empty{color:var(--care-muted)}.customer-history .ops-empty{padding:20px 0}.customer-surface .ops-actions{margin-top:20px}
.store-tabs{grid-template-columns:repeat(6,minmax(0,1fr))!important}.store-tabs[data-staff=true]{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(max-width:900px){.care-workspace{grid-template-columns:220px minmax(0,1fr);gap:18px}.care-summary{align-items:start;flex-direction:column}.care-summary .ops-actions{justify-content:flex-start}.care-product img{width:48px;height:64px}.care-product{gap:8px}}
@media(max-width:700px){.care-explorer,.customer-surface{padding:18px 14px}.care-search{grid-template-columns:minmax(0,1fr) 96px;gap:10px}.care-search>label:first-child{grid-column:1/-1}.care-search>.button{height:44px}.care-workspace{grid-template-columns:1fr;gap:24px}.care-index{max-height:250px}.care-index button{padding:12px;grid-template-columns:minmax(0,1fr) auto;gap:5px 10px}.care-index button strong{grid-column:1;font-size:14px}.care-index button span{grid-column:1}.care-index button small{grid-row:1/3;grid-column:2;align-self:center;font-size:14px}.care-detail-title h2{font-size:22px}.care-detail-title .button{padding:8px 10px;font-size:12px;min-height:44px}.care-scenes{gap:7px}.care-scenes button{padding:8px 11px;font-size:13px}.care-result-bar{font-size:13px;align-items:flex-start}.care-path{margin:18px 0;gap:10px}.care-path li{font-size:12px}.care-product-name strong{font-size:13px}.care-product img{width:42px;height:58px}.care-quantity button{width:30px}.care-quantity input[type=number]{width:38px}.care-summary .ops-actions{gap:8px}.customer-search{display:grid;grid-template-columns:1fr auto}.customer-search label{grid-column:1/-1}.customer-search>.button-primary{grid-column:1;grid-row:2}.customer-search>.button-light{grid-column:2;grid-row:2}.customer-initial{width:40px;height:40px;font-size:19px}.customer-row{gap:10px}.customer-count{font-size:12px}.customer-count small{font-size:11px}.customer-history{grid-template-columns:1fr;gap:28px}.customer-fields{grid-template-columns:1fr;gap:18px}.customer-profile-head{gap:10px;flex-wrap:wrap}.customer-profile-head h2{font-size:21px}.customer-profile-head .button{margin-left:0}.customer-surface dl{gap:16px}.store-tabs button{font-size:11px;padding-inline:2px}.customer-sign canvas{height:130px}}
@media(prefers-reduced-motion:reduce){.care-explorer button,.customer-surface button{transition:background-color .1s,color .1s}.care-explorer button:active,.customer-surface button:active{transform:none}.ui-skeleton{animation:none}}

.demo-main:has(>.care-explorer),.demo-main:has(>.customer-surface){padding:24px max(16px,calc((100vw - 1240px)/2)) 110px}
.demo-main:has(>.care-explorer)>.page-heading,.demo-main:has(>.customer-surface)>.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.demo-main .care-search select,.demo-main .customer-field select{margin:0}
@media(max-width:700px){.demo-main:has(>.care-explorer)>.page-heading,.demo-main:has(>.customer-surface)>.page-heading{align-items:start;flex-wrap:wrap;gap:12px}.demo-main .page-heading h1{font-size:26px;line-height:1.4}.demo-main .page-heading p{font-size:13px;line-height:1.7}.care-detail-title{flex-wrap:wrap}}

.customer-product-picker>p{font-size:13px;line-height:1.7;color:var(--care-muted)}
.customer-product-search{display:grid;gap:8px;max-width:420px}
.customer-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;max-height:440px;overflow:auto;padding:4px;scrollbar-color:#809777 transparent}
.customer-product-option{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;padding:14px 10px;border:1px solid var(--care-line);border-radius:10px;cursor:pointer;text-align:center;line-height:1.5}
.customer-product-option[hidden]{display:none}.customer-product-option:has(:checked){background:var(--care-selected);border-color:var(--care-accent)}
.customer-product-option:focus-within{outline:2px solid var(--care-accent);outline-offset:2px}
.customer-product-option input{position:absolute;top:10px;right:10px}.customer-product-option img{width:90px;height:108px;object-fit:contain;max-width:100%}
.customer-product-placeholder{display:grid;place-items:center;height:108px;color:var(--care-muted)}
.customer-product-option>span:last-child{font-size:13px}.customer-product-history h3{font-size:14px;margin:16px 0 10px;color:var(--care-ink)}
.customer-product-history>div{display:flex;gap:16px;flex-wrap:wrap}.customer-product-history figure{margin:0;width:110px;text-align:center}.customer-product-history img{object-fit:contain}.customer-product-history figcaption{font-size:12px;line-height:1.6;color:var(--care-ink)}
@media(max-width:420px){.customer-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.customer-product-option{padding:12px 7px}}
