:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#10211b;background:#f4f8f6;font-synthesis:none}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#f4f8f6}
body{padding-bottom:96px}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}
.topbar{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:66px;padding:10px 16px;background:rgba(255,255,255,.97);border-bottom:1px solid #e1e9e4;backdrop-filter:blur(14px)}
.brand{display:flex;align-items:center;gap:8px;text-decoration:none;color:#244234;font-weight:900}
.brand img{display:block;width:136px;max-height:38px;object-fit:contain}
.brand span{font-size:11px;padding:4px 7px;border-radius:999px;background:#edf6f0;color:#176944}
.top-actions{display:flex;align-items:center;gap:8px;min-width:0}
.mode-button,.ghost,.secondary,.primary,.text-button,.icon-button{border-radius:11px;font-weight:800}
.mode-button{max-width:190px;min-height:40px;padding:0 11px;border:1px solid #cde0d4;background:#f6faf7;color:#176944;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ghost{min-height:40px;padding:0 13px;border:1px solid #dce5e0;background:#fff;color:#243b31}
main{width:min(100%,1080px);margin:0 auto;padding:18px 16px 40px}
.hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:end;padding:24px;border:1px solid #d7e6dd;border-radius:22px;background:linear-gradient(135deg,#f8fcf9,#e8f5ed);box-shadow:0 16px 38px rgba(23,105,68,.08)}
.hero h1{margin:5px 0 8px;font-size:clamp(28px,5vw,44px);line-height:1.04;letter-spacing:-.035em}
.hero p{max-width:700px;margin:0;color:#52655c;line-height:1.55}
.hero-actions{display:grid;gap:8px;min-width:210px}
.eyebrow{margin:0;color:#176944;font-size:11px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
.primary,.secondary{min-height:44px;padding:0 15px;border:1px solid transparent}
.primary{background:#176944;color:#fff;border-color:#176944}
.primary:disabled{opacity:.45;cursor:not-allowed}
.secondary{background:#fff;color:#245238;border-color:#cadbd1}
.secondary.small{min-height:38px;padding:0 11px;font-size:12px}
.text-button{border:0;background:transparent;color:#176944;padding:9px}
.access-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:14px 0;padding:13px 15px;border:1px solid #e2e8e4;border-radius:15px;background:#fff}
.access-banner div{display:grid;gap:2px}
.access-banner strong{font-size:13px}
.access-banner span{color:#68776f;font-size:12px;line-height:1.45}
.lock-pill,.status-pill,.pill{display:inline-flex;align-items:center;width:max-content;min-height:28px;padding:0 9px;border-radius:999px;background:#eef5f1;color:#176944;font-size:11px;font-weight:800}
.tabs{display:flex;gap:7px;margin:16px 0 12px;padding:5px;overflow-x:auto;border:1px solid #dce5e0;border-radius:15px;background:#fff;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs button{flex:0 0 auto;min-height:39px;padding:0 13px;border:0;border-radius:10px;background:transparent;color:#63736b;font-weight:800}
.tabs button.active{background:#176944;color:#fff}
.tabs button.locked::after{content:" · Sign in";font-size:9px;opacity:.75}
.panel{padding:18px;border:1px solid #dde7e1;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(25,50,39,.04)}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.section-head h2{margin:3px 0 0;font-size:20px;letter-spacing:-.02em}
.pharmacy-head{margin-top:24px;padding-top:18px;border-top:1px solid #edf1ee}
.search{display:grid;grid-template-columns:1fr auto;gap:9px;margin-bottom:15px}
input,select,textarea{width:100%;border:1px solid #cedbd3;border-radius:11px;background:#fff;color:#10211b;outline:none}
input,select{min-height:45px;padding:0 12px}
textarea{padding:11px 12px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:#68a487;box-shadow:0 0 0 3px rgba(23,105,68,.09)}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.product-card,.provider-card,.empty-card,.list-card,.profile-card,.locked-card,.engine-card{border:1px solid #e0e8e3;border-radius:15px;background:#fff;padding:15px}
.product-card{display:grid;gap:8px}
.product-card h3,.provider-card h3,.list-card h3{margin:0;font-size:16px}
.product-card p,.provider-card p,.list-card p,.empty-card p{margin:0;color:#66766e;font-size:12px;line-height:1.5}
.product-meta,.actions,.price-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.price-row{justify-content:space-between;margin-top:2px}
.price{font-size:17px;font-weight:900;color:#10211b}
.pill.warn{background:#fff6df;color:#8a6200}
.pill.danger{background:#fff0ef;color:#a12c25}
.product-card.public-card{background:#fbfdfc}
.public-lock{padding:10px 11px;border-radius:11px;background:#f3f7f5;color:#586960;font-size:11px;line-height:1.45}
.engine-card{grid-column:1/-1;background:linear-gradient(135deg,#f7faf8,#eef4f0);text-align:center;padding:26px}
.engine-card h3{margin:6px 0}
.engine-card p{max-width:620px;margin:0 auto;color:#64736c;font-size:13px;line-height:1.55}
.list{display:grid;gap:10px}
.list-card header{display:flex;justify-content:space-between;gap:10px}
.status{font-size:11px;font-weight:800;color:#176944}
.empty-card{grid-column:1/-1;text-align:center;padding:25px}
.muted,.fineprint{color:#6b7972;font-size:12px;line-height:1.5}
.reminder-compose{display:grid;grid-template-columns:1.3fr .7fr 1fr auto;gap:8px;margin-bottom:10px}
.profile-card{display:grid;gap:12px}
.profile-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #eef2ef}
.profile-row:last-child{border-bottom:0}
.profile-row span{color:#66766e;font-size:12px}
.profile-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.cart-bar{position:fixed;z-index:70;left:50%;bottom:14px;transform:translateX(-50%);width:min(calc(100% - 28px),620px);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 11px 10px 16px;border:1px solid #cfe0d5;border-radius:16px;background:rgba(255,255,255,.97);box-shadow:0 18px 42px rgba(16,33,27,.18);backdrop-filter:blur(16px)}
.cart-bar div{display:grid}
.cart-bar span{font-size:12px;color:#66766e}
.modal{position:fixed;z-index:100;inset:0;display:grid;place-items:center;padding:18px;background:rgba(13,26,20,.46);overflow-y:auto}
.modal-card{width:min(100%,560px);max-height:calc(100dvh - 36px);overflow-y:auto;padding:20px;border-radius:20px;background:#fff;box-shadow:0 28px 80px rgba(0,0,0,.22)}
.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:14px}
.modal-head h2{margin:3px 0 0}
.icon-button{width:40px;height:40px;border:1px solid #dce5df;background:#fff;color:#31473b;font-size:22px}
.experience-card{width:min(100%,760px)}
.experience-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:16px}
.experience-option{display:grid;grid-template-rows:auto auto 1fr auto;gap:7px;min-height:190px;padding:16px;text-align:left;border:1px solid #dbe5df;border-radius:16px;background:#fbfdfc;color:#10211b}
.experience-option:hover,.experience-option.active{border-color:#65a283;background:#f0f8f3}
.experience-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#176944;color:#fff;font-weight:900}
.experience-option strong{font-size:15px}
.experience-option small{color:#67776f;line-height:1.45}
.experience-option em{font-style:normal;color:#176944;font-size:11px;font-weight:900}
.stack{display:grid;gap:11px}
.stack label{display:grid;gap:5px;color:#344b3f;font-size:12px;font-weight:800}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.consent{display:flex!important;grid-template-columns:none!important;align-items:flex-start;gap:8px!important;font-weight:500!important}
.consent input{width:18px;height:18px;min-height:0;margin:1px 0 0}
.wide{width:100%}
.checkout-note{margin:12px 0;padding:12px;border-radius:12px;background:#f5f8f6}
.checkout-note p{margin:4px 0 0;color:#607168;font-size:12px;line-height:1.5}
.loader{position:fixed;z-index:120;inset:0;display:grid;place-items:center;background:rgba(244,248,246,.72);backdrop-filter:blur(2px)}
.loader-card{display:flex;align-items:center;gap:10px;max-width:330px;padding:11px 14px;border:1px solid #d7e3dc;border-radius:999px;background:#fff;box-shadow:0 16px 38px rgba(16,33,27,.14)}
.loader-card div{display:grid}
.loader-card strong{font-size:12px}
.loader-card small{font-size:10px;color:#738179}
.pulse-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#176944;color:#fff;font-size:18px;font-weight:900;animation:pulse 1.1s ease-in-out infinite}
@keyframes pulse{50%{transform:scale(.88);opacity:.7}}
.toast{position:fixed;z-index:130;left:50%;bottom:86px;transform:translateX(-50%);width:min(calc(100% - 32px),460px);padding:12px 14px;border-radius:12px;background:#173c2a;color:#fff;box-shadow:0 14px 34px rgba(0,0,0,.2);font-size:12px}
.toast.error{background:#922f2b}
.message{padding:10px 12px;border-radius:10px;background:#edf7f1;color:#176944;font-size:12px}
.message.error{background:#fff0ef;color:#9a2c27}

@media(max-width:760px){
 body{padding-bottom:90px}
 .topbar{padding:9px 11px}
 .brand img{width:118px}
 .brand span{display:none}
 .mode-button{max-width:132px;font-size:10px;padding:0 8px}
 .ghost{font-size:11px;padding:0 9px}
 main{padding:12px 10px 34px}
 .hero{grid-template-columns:1fr;padding:18px;border-radius:17px}
 .hero h1{font-size:30px}
 .hero-actions{grid-template-columns:1fr 1fr;min-width:0}
 .access-banner{align-items:flex-start;flex-direction:column}
 .tabs{margin-top:12px}
 .panel{padding:14px;border-radius:15px}
 .grid{grid-template-columns:1fr}
 .search{grid-template-columns:1fr auto}
 .experience-grid{grid-template-columns:1fr}
 .experience-option{min-height:0}
 .reminder-compose{grid-template-columns:1fr 1fr}
 .reminder-compose #reminder-title,.reminder-compose #reminder-schedule{grid-column:1/-1}
 .two-col{grid-template-columns:1fr}
}
@media(max-width:420px){
 .hero-actions{grid-template-columns:1fr}
 .search{grid-template-columns:1fr}
 .search button{width:100%}
 .reminder-compose{grid-template-columns:1fr}
 .reminder-compose>*{grid-column:auto!important}
}

@media print{
 body>*:not(#receipt-print-area){display:none!important}
 #receipt-print-area{display:block!important;background:#fff;color:#000;padding:24px}
 .receipt-sheet{max-width:720px;margin:0 auto;font-family:Arial,sans-serif}
 .receipt-sheet table{width:100%;border-collapse:collapse;margin:18px 0}
 .receipt-sheet th,.receipt-sheet td{padding:8px;border-bottom:1px solid #ddd;text-align:left}
}

.public-search{grid-template-columns:minmax(0,1fr) minmax(150px,190px) auto}
@media(max-width:620px){
 .public-search{grid-template-columns:1fr 1fr}
 .public-search #search-input{grid-column:1/-1}
}
@media(max-width:420px){
 .public-search{grid-template-columns:1fr}
 .public-search #search-input{grid-column:auto}
}

.alert-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-bottom:8px}
@media(max-width:520px){.alert-compose{grid-template-columns:1fr}.alert-compose button{width:100%}}

/* M6 customer catalogue tier-1 visual layer r6 */
:root{
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Segoe UI",Roboto,Inter,ui-sans-serif,system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body{letter-spacing:-.006em}
.topbar{box-shadow:0 8px 28px rgba(16,33,27,.045)}
.hero{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(23,105,68,.12);
  background:
    radial-gradient(circle at 85% 12%,rgba(255,255,255,.92),rgba(255,255,255,0) 34%),
    linear-gradient(145deg,#f9fcfa 0%,#edf8f1 55%,#e3f2e9 100%);
}
.hero::after{
  content:"+";
  position:absolute;
  right:-20px;
  bottom:-58px;
  font-size:220px;
  line-height:1;
  font-weight:900;
  color:rgba(23,105,68,.045);
  pointer-events:none;
}
.hero>*,.access-banner>*{position:relative;z-index:1}
.hero h1{font-weight:850}
.panel{border-radius:22px}
.public-search{margin-bottom:18px}

.catalog-discovery,.recommendation-zone{
  margin:0 0 20px;
  padding:16px 0 2px;
  border-top:1px solid #edf2ef;
}
.discovery-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.discovery-head h3{margin:3px 0 0;font-size:17px;letter-spacing:-.025em}
.recommendation-note{font-size:10px;color:#7a8881;text-align:right}
.category-rail{
  display:flex;
  gap:9px;
  overflow-x:auto;
  padding:2px 1px 8px;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
}
.category-rail::-webkit-scrollbar{display:none}
.category-chip{
  flex:0 0 auto;
  display:grid;
  gap:3px;
  min-width:142px;
  padding:12px 13px;
  text-align:left;
  scroll-snap-align:start;
  border:1px solid #dce7e0;
  border-radius:15px;
  background:#fbfdfc;
  color:#1f382c;
  box-shadow:0 5px 16px rgba(28,61,45,.035);
}
.category-chip strong{font-size:12px;line-height:1.2}
.category-chip small{font-size:9px;color:#839088;text-transform:capitalize}
.category-chip.active{
  border-color:#176944;
  background:#176944;
  color:#fff;
  box-shadow:0 10px 24px rgba(23,105,68,.18);
}
.category-chip.active small{color:rgba(255,255,255,.72)}

.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.product-card{
  gap:0;
  padding:0;
  overflow:hidden;
  border-radius:20px;
  border-color:#e4ebe7;
  box-shadow:0 10px 28px rgba(19,43,31,.055);
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.product-card:hover{transform:translateY(-2px);box-shadow:0 16px 36px rgba(19,43,31,.085);border-color:#cfe0d6}
.product-visual{
  position:relative;
  display:grid;
  place-items:center;
  width:100%;
  aspect-ratio:16/10;
  overflow:hidden;
  background:linear-gradient(145deg,#f8fbf9,#eef4f0);
  border-bottom:1px solid #edf2ef;
}
.product-visual img{width:100%;height:100%;object-fit:contain;padding:14px;background:#fff}
.product-visual-placeholder{
  background:
    radial-gradient(circle at 70% 25%,rgba(255,255,255,.95),rgba(255,255,255,0) 30%),
    linear-gradient(145deg,#f6fbf8,#e9f3ed);
}
.product-visual-placeholder span{
  display:grid;
  place-items:center;
  width:66px;
  height:66px;
  border-radius:21px;
  background:#fff;
  border:1px solid #dbe8e0;
  color:#176944;
  font-size:22px;
  font-weight:900;
  letter-spacing:-.04em;
  box-shadow:0 10px 24px rgba(23,105,68,.08);
}
.product-visual-placeholder small{
  position:absolute;
  left:12px;
  bottom:9px;
  font-size:8px;
  font-weight:800;
  color:#849189;
  letter-spacing:.035em;
  text-transform:uppercase;
}
.product-card-body{display:grid;gap:8px;padding:14px}
.product-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.category-badge{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:0 8px;
  border-radius:999px;
  background:#edf6f0;
  color:#176944;
  font-size:9px;
  font-weight:850;
  line-height:1.1;
}
.classification-note{
  max-width:105px;
  color:#89958f;
  font-size:7px;
  line-height:1.25;
  text-align:right;
  text-transform:uppercase;
  letter-spacing:.045em;
}
.brand-line{
  margin-top:1px;
  color:#537064;
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.product-card h3{font-size:15px;line-height:1.25;letter-spacing:-.022em}
.generic-line{min-height:34px}
.product-card .actions{margin-top:2px}
.product-card .actions button{flex:1}
.public-lock{padding:9px 10px;background:#f7f9f8}
.pill{min-height:25px;font-size:9px}

.recommendation-zone{
  margin:0 0 22px;
  padding:16px;
  border:1px solid #e0e9e4;
  border-radius:18px;
  background:linear-gradient(145deg,#fbfdfc,#f4f9f6);
}
.recommendation-grid{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(215px,260px);
  gap:11px;
  overflow-x:auto;
  padding:1px 1px 6px;
  scrollbar-width:none;
  scroll-snap-type:x proximity;
}
.recommendation-grid::-webkit-scrollbar{display:none}
.recommendation-grid .compact-card{scroll-snap-align:start}
.recommendation-grid .compact-card .product-visual{aspect-ratio:16/8.5}
.recommendation-grid .compact-card .public-lock{display:none}

@media(max-width:760px){
  .panel{border-radius:18px}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .product-card{border-radius:16px}
  .product-card-body{padding:11px;gap:7px}
  .product-card h3{font-size:13px}
  .generic-line{min-height:31px;font-size:10px!important}
  .product-visual-placeholder span{width:54px;height:54px;border-radius:17px;font-size:18px}
  .category-chip{min-width:128px;padding:11px}
  .classification-note{display:none}
  .product-card .public-lock{font-size:9px;padding:8px}
  .product-card .primary,.product-card .secondary{min-height:39px;padding:0 10px;font-size:10px}
  .recommendation-zone{padding:13px}
  .recommendation-grid{grid-auto-columns:minmax(185px,72vw)}
}
@media(max-width:355px){
  .product-grid{grid-template-columns:1fr}
}


/* Stage 6 commercial native customer layer r10 */
:root{
  --ubz-green:#176944;
  --ubz-green-strong:#105536;
  --ubz-ink:#14231c;
  --ubz-muted:#68776f;
  --ubz-line:#e5ebe7;
  --ubz-soft:#f4f8f5;
  --ubz-surface:#ffffff;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
html,body{background:#f7faf8;color:var(--ubz-ink)}
body{font-size:13px;line-height:1.42;letter-spacing:-.004em}
button,input,select,textarea{font-family:inherit}
.topbar{
  min-height:58px;
  padding:8px 14px;
  border-bottom:1px solid rgba(20,35,28,.07);
  box-shadow:none;
}
.brand img{width:112px;max-height:32px}
.brand span{font-size:9px;padding:3px 6px}
.top-actions{gap:7px}
.ghost,.mode-button,.notification-button{
  min-height:38px;
  border-radius:12px;
}
.ghost{
  padding:0 11px;
  border:1px solid var(--ubz-line);
  background:#fff;
  color:#263a31;
  font-size:11px;
  font-weight:750;
}
.mode-button{
  max-width:150px;
  padding:0 10px;
  border:1px solid #d9e6de;
  background:#f8fbf9;
  color:var(--ubz-green);
  font-size:10px;
}
.notification-button{
  position:relative;
  display:grid;
  place-items:center;
  width:38px;
  padding:0;
  border:1px solid var(--ubz-line);
  background:#fff;
  color:#294137;
}
.notification-button svg{width:18px;height:18px;fill:currentColor}
.notification-badge{
  position:absolute;
  top:-5px;
  right:-5px;
  display:grid;
  place-items:center;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border:2px solid #fff;
  border-radius:999px;
  background:#b52e28;
  color:#fff;
  font-size:8px;
  font-weight:850;
}
main{width:min(100%,940px);padding:14px 14px 42px}
.hero{
  min-height:0;
  padding:18px;
  border-radius:18px;
  box-shadow:none;
}
.hero::after{font-size:150px;right:-14px;bottom:-45px}
.hero h1{
  max-width:610px;
  margin:4px 0 6px;
  font-size:clamp(23px,3.5vw,32px);
  line-height:1.08;
  letter-spacing:-.035em;
}
.hero p{font-size:12px;line-height:1.48}
.hero-actions{min-width:180px;gap:7px}
.eyebrow{font-size:8px;letter-spacing:.1em;font-weight:850}
.primary,.secondary{
  min-height:40px;
  padding:0 13px;
  border-radius:11px;
  font-size:11px;
  font-weight:780;
}
.access-banner{
  margin:10px 0 12px;
  padding:11px 13px;
  border-radius:13px;
}
.access-banner strong{font-size:11px}
.access-banner span{font-size:10px;line-height:1.4}
.lock-pill,.status-pill,.pill{
  min-height:24px;
  padding:0 8px;
  font-size:8px;
  font-weight:800;
}
.tabs{margin:12px 0 10px;padding:4px;border-radius:14px;box-shadow:none}
.tabs button{
  min-height:36px;
  padding:0 11px;
  border-radius:10px;
  font-size:10px;
  font-weight:780;
}
.tabs button.locked::after{content:"";display:none}
.panel{
  padding:15px;
  border-radius:17px;
  box-shadow:none;
}
.section-head{margin-bottom:11px}
.section-head h2{font-size:17px;letter-spacing:-.025em}
.discovery-head h3{font-size:14px}
.search{gap:7px;margin-bottom:12px}
input,select{min-height:41px;padding:0 11px;font-size:11px;border-radius:11px}
textarea{font-size:11px}
.public-search{grid-template-columns:minmax(0,1fr) minmax(135px,170px) auto}
.catalog-discovery,.recommendation-zone{margin-bottom:14px;padding-top:12px}
.category-rail{gap:7px}
.category-chip{
  min-width:116px;
  padding:9px 10px;
  border-radius:13px;
  box-shadow:none;
}
.category-chip strong{font-size:10px}
.category-chip small{font-size:8px}
.recommendation-note{max-width:180px;font-size:8px;line-height:1.35}
.product-grid{align-items:stretch;gap:10px}
.product-card{
  height:100%;
  border-radius:16px;
  box-shadow:none;
}
.product-card:hover{transform:none;box-shadow:none}
.product-visual{aspect-ratio:1/1}
.product-visual img{padding:11px}
.product-visual-placeholder span{
  width:50px;height:50px;border-radius:15px;
  font-size:16px;box-shadow:none;
}
.product-visual-placeholder small{
  left:9px;bottom:7px;font-size:7px;text-transform:none;letter-spacing:0
}
.product-card-body{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-height:168px;
  padding:10px;
}
.product-card-top{min-height:24px}
.category-badge{min-height:22px;padding:0 7px;font-size:8px}
.classification-note{display:none!important}
.brand-line{
  min-height:12px;
  margin:0;
  font-size:8px;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.product-card h3{
  margin:0;
  font-size:12px;
  line-height:1.28;
  letter-spacing:-.015em;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.product-card p,.provider-card p,.list-card p,.empty-card p{font-size:10px;line-height:1.42}
.generic-line{
  min-height:28px!important;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.product-meta{gap:5px}
.product-card .pill{min-height:21px;font-size:7px;padding:0 6px}
.public-lock{
  margin-top:auto;
  padding:7px 8px!important;
  border-radius:9px;
  background:#f7f9f8;
  font-size:8px!important;
  line-height:1.35;
}
.product-card .actions{margin-top:0}
.product-card .actions button{min-height:36px!important;font-size:9px!important}
.price{font-size:14px}
.provider-card,.empty-card,.list-card,.profile-card,.locked-card,.engine-card{
  padding:12px;
  border-radius:14px;
}
.list{gap:8px}
.list-card h3{font-size:12px}
.status{font-size:9px}
.fineprint,.muted{font-size:10px}
.reminder-compose{gap:7px}
.profile-card{gap:6px}
.profile-row{padding:8px 0}
.profile-row span{font-size:10px}
.profile-row strong{font-size:11px}
.profile-shortcuts{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:7px 0 3px;
}
.shortcut-card{
  display:grid;
  gap:3px;
  min-height:70px;
  padding:11px;
  text-align:left;
  border:1px solid var(--ubz-line);
  border-radius:13px;
  background:#fafcfb;
  color:var(--ubz-ink);
}
.shortcut-card strong{font-size:11px}
.shortcut-card span{font-size:9px;color:var(--ubz-muted);line-height:1.35}
.notification-permission-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
  padding:12px;
  border:1px solid #dfe9e3;
  border-radius:14px;
  background:linear-gradient(145deg,#fbfdfc,#f3f8f5);
}
.notification-permission-card div{display:grid;gap:3px}
.notification-permission-card strong{font-size:11px}
.notification-permission-card p{margin:0;color:var(--ubz-muted);font-size:9px;line-height:1.4}
.notification-item{
  width:100%;
  display:grid;
  grid-template-columns:8px minmax(0,1fr) 14px;
  align-items:center;
  gap:9px;
  padding:11px;
  text-align:left;
  border:1px solid var(--ubz-line);
  border-radius:13px;
  background:#fff;
  color:var(--ubz-ink);
}
.notification-item.unread{border-color:#cfe2d6;background:#f8fcf9}
.notification-dot{width:6px;height:6px;border-radius:50%;background:#c8d3cd}
.notification-item.unread .notification-dot{background:var(--ubz-green)}
.notification-copy{display:grid;gap:3px;min-width:0}
.notification-copy strong{font-size:11px}
.notification-copy small{font-size:9px;color:var(--ubz-muted);line-height:1.4}
.notification-arrow{font-size:17px;color:#91a098}
.modal-card{padding:16px;border-radius:18px}
.modal-head h2{font-size:18px}
.stack{gap:9px}
.stack label{font-size:10px}
.checkout-note p{font-size:10px}
.loader{background:rgba(247,250,248,.72)}
.loader-card{padding:9px 12px;box-shadow:0 12px 30px rgba(16,33,27,.12)}
.loader-card strong{font-size:11px}
.loader-card small{font-size:9px}
.toast{font-size:10px}

@media(max-width:760px){
  body{padding-bottom:78px}
  .topbar{
    min-height:54px;
    padding:7px 10px;
    padding-top:max(7px,env(safe-area-inset-top));
  }
  .brand img{width:104px}
  .top-actions{gap:6px}
  .ghost{min-height:36px;font-size:10px}
  .notification-button{width:36px;min-height:36px}
  main{padding:10px 10px 24px}
  .hero{
    grid-template-columns:1fr;
    gap:12px;
    padding:15px;
    border-radius:16px;
  }
  .hero h1{font-size:21px;line-height:1.1}
  .hero p{font-size:10.5px}
  .hero-actions{
    grid-template-columns:1fr 1fr;
    min-width:0;
    width:100%;
  }
  .access-banner{
    flex-direction:row;
    align-items:center;
    padding:9px 10px;
  }
  .access-banner div{gap:1px}
  .access-banner strong{font-size:10px}
  .access-banner span{font-size:8.5px}
  .access-banner .lock-pill{display:none}
  .tabs{
    position:fixed;
    z-index:75;
    left:8px;
    right:8px;
    bottom:max(8px,env(safe-area-inset-bottom));
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:3px;
    margin:0;
    padding:5px;
    border:1px solid rgba(27,58,43,.09);
    border-radius:17px;
    background:rgba(255,255,255,.96);
    box-shadow:0 14px 34px rgba(16,33,27,.14);
    backdrop-filter:blur(18px);
    overflow:visible;
  }
  .tabs button{
    min-width:0;
    min-height:42px;
    padding:0 4px;
    font-size:8.5px;
    border-radius:12px;
  }
  .tabs button.active{background:#edf6f0;color:var(--ubz-green)}
  .panel{
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
  }
  .section-head{padding:5px 2px 0}
  .section-head h2{font-size:16px}
  .public-search{
    grid-template-columns:minmax(0,1fr) 122px;
    gap:6px;
  }
  .public-search #search-input{grid-column:1/-1}
  .public-search button{min-height:39px}
  .catalog-discovery{padding-top:10px}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .product-card{border-radius:14px}
  .product-card-body{min-height:160px;padding:9px;gap:5px}
  .product-visual-placeholder span{width:44px;height:44px;font-size:14px}
  .product-card h3{font-size:11px}
  .generic-line{font-size:9px!important;min-height:25px!important}
  .public-lock{font-size:7.5px!important}
  .recommendation-zone{padding:10px;border-radius:14px}
  .recommendation-grid{grid-auto-columns:minmax(170px,62vw)}
  .notification-permission-card{align-items:flex-start;flex-direction:column}
  .notification-permission-card button{width:100%}
  .modal{align-items:end;padding:0}
  .modal-card{
    width:100%;
    max-height:90dvh;
    border-radius:20px 20px 0 0;
    padding:16px 14px max(16px,env(safe-area-inset-bottom));
  }
  .experience-grid{grid-template-columns:1fr}
  .reminder-compose{grid-template-columns:1fr}
  .reminder-compose>*{grid-column:auto!important}
  .cart-bar{
    bottom:72px;
    width:calc(100% - 20px);
    border-radius:14px;
  }
}
@media(max-width:360px){
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .product-card-body{padding:8px}
  .hero-actions{grid-template-columns:1fr}
}

/* Stage 6 native typography + authenticated navigation gate r11 */
:root{
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
body{
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:14px;
  line-height:1.45;
  letter-spacing:0;
}
button,input,select,textarea{font-family:inherit}
button,.primary,.secondary,.ghost,.mode-button,.text-button{font-size:13px}
.hero h1{font-size:clamp(24px,4vw,34px);line-height:1.12}
.hero p{font-size:13px;line-height:1.5}
.eyebrow{font-size:10px;letter-spacing:.085em}
.access-banner strong{font-size:13px}
.access-banner span{font-size:12px;line-height:1.45}
.lock-pill,.status-pill,.pill{font-size:10px}
.tabs button{font-size:12px}
.section-head h2{font-size:19px;line-height:1.25}
.discovery-head h3{font-size:16px}
.category-chip strong{font-size:12px}
.category-chip small{font-size:10px}
.recommendation-note{font-size:10px;line-height:1.4}
input,select,textarea{
  font-size:15px;
  line-height:1.35;
}
input,select{min-height:44px}
textarea{min-height:88px}
.product-card h3{font-size:14px;line-height:1.32}
.product-card p,.provider-card p,.list-card p,.empty-card p{font-size:12px;line-height:1.48}
.generic-line{font-size:12px!important;line-height:1.4}
.brand-line{font-size:10px;line-height:1.3}
.category-badge{font-size:10px}
.product-card .pill{font-size:9px}
.public-lock{font-size:10px!important;line-height:1.4}
.product-card .actions button{font-size:12px!important}
.price{font-size:16px}
.status{font-size:11px}
.fineprint,.muted{font-size:12px;line-height:1.5}
.profile-row span{font-size:12px}
.profile-row strong{font-size:13px}
.shortcut-card strong{font-size:13px}
.shortcut-card span{font-size:11px;line-height:1.4}
.notification-permission-card strong{font-size:13px}
.notification-permission-card p{font-size:11px;line-height:1.45}
.notification-copy strong{font-size:13px}
.notification-copy small{font-size:11px;line-height:1.45}
.modal-card{
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:14px;
}
.modal-head h2{font-size:20px;line-height:1.25}
.stack label{font-size:13px}
.experience-option strong{font-size:14px}
.experience-option small{font-size:12px;line-height:1.45}
.experience-option em{font-size:11px}
.checkout-note p{font-size:12px}
.message{font-size:12px;line-height:1.45}
.loader-card strong{font-size:12px}
.loader-card small{font-size:10px}
.toast{font-size:12px;line-height:1.45}

@media(max-width:760px){
  body:not(.customer-authenticated){padding-bottom:24px}
  body.customer-authenticated{padding-bottom:78px}
  .hero h1{font-size:23px}
  .hero p{font-size:13px}
  .access-banner strong{font-size:12px}
  .access-banner span{font-size:11px}
  .tabs button{font-size:11px}
  .section-head h2{font-size:18px}
  .product-card h3{font-size:13px}
  .generic-line{font-size:11px!important}
  .public-lock{font-size:10px!important}
  .product-card .actions button{font-size:11px!important}
  .modal-card{font-size:14px}
  .stack label{font-size:13px}
  input,select,textarea{font-size:16px}
}


/* Stage 6 system Light/Dark appearance r12 */
:root{color-scheme:light dark}
@media(prefers-color-scheme:dark){
  :root{
    --ubz-green:#62c68f;
    --ubz-green-strong:#7bd7a4;
    --ubz-ink:#f1f6f3;
    --ubz-muted:#a8b6ae;
    --ubz-line:#2b3a32;
    --ubz-soft:#17221c;
    --ubz-surface:#121b17;
  }
  html,body{background:#0f1714;color:var(--ubz-ink)}
  .topbar{
    background:rgba(18,27,23,.96);
    border-bottom-color:#26352d;
  }
  .brand{color:var(--ubz-ink)}
  .brand span,
  .mode-button,
  .lock-pill,
  .status-pill,
  .pill{
    background:#1a2a21;
    color:#7bd7a4;
    border-color:#2d4337;
  }
  .ghost,
  .notification-button,
  .secondary,
  .text-button,
  .icon-button{
    background:#151f1a;
    color:#e7efe9;
    border-color:#2c3c33;
  }
  .primary{
    background:#2a9d61;
    border-color:#2a9d61;
    color:#fff;
  }
  .hero{
    background:linear-gradient(145deg,#17261e,#112019);
    border-color:#294034;
  }
  .hero p,
  .access-banner span,
  .product-card p,
  .provider-card p,
  .list-card p,
  .empty-card p,
  .muted,
  .fineprint,
  .profile-row span,
  .shortcut-card span,
  .notification-permission-card p,
  .notification-copy small,
  .cart-bar span{
    color:#a8b6ae;
  }
  .access-banner,
  .tabs,
  .panel,
  .product-card,
  .provider-card,
  .empty-card,
  .list-card,
  .profile-card,
  .locked-card,
  .engine-card,
  .category-chip,
  .shortcut-card,
  .notification-item,
  .modal-card,
  .loader-card,
  .cart-bar{
    background:#121b17;
    border-color:#29382f;
    color:var(--ubz-ink);
  }
  .tabs button{color:#9fb0a7}
  .tabs button.active{
    background:#1e3428;
    color:#79d5a2;
  }
  .product-card.public-card{background:#121b17}
  .product-visual{
    background:linear-gradient(145deg,#18251f,#111a16);
    border-color:#27372e;
  }
  .product-visual-placeholder{color:#b9c7c0}
  .category-badge{
    background:#1c2d24;
    color:#84dbaa;
  }
  .public-lock,
  .checkout-note{
    background:#17231d;
    color:#afbeb6;
  }
  .pill.warn{background:#3b321c;color:#f2cf77}
  .pill.danger{background:#3b201e;color:#f2a29a}
  input,select,textarea{
    background:#111a16;
    color:#eef4f0;
    border-color:#33443a;
  }
  input::placeholder,textarea::placeholder{color:#77887f}
  input:focus,select:focus,textarea:focus{
    border-color:#4ca875;
    box-shadow:0 0 0 3px rgba(75,168,117,.14);
  }
  .recommendation-zone,
  .notification-permission-card{
    background:linear-gradient(145deg,#15221b,#111a16);
    border-color:#293b31;
  }
  .notification-item.unread{
    background:#17251e;
    border-color:#356148;
  }
  .notification-dot{background:#64756c}
  .notification-item.unread .notification-dot{background:#69ce96}
  .notification-arrow{color:#7f9187}
  .price{color:#f1f6f3}
  .profile-row{border-bottom-color:#27352e}
  .cart-bar{
    background:rgba(18,27,23,.97);
    box-shadow:0 18px 42px rgba(0,0,0,.34);
  }
  .modal{background:rgba(0,0,0,.62)}
  .loader{background:rgba(15,23,20,.76)}
  .toast{background:#24583d;color:#fff}
  .toast.error{background:#8f3a34}
  .message{background:#193527;color:#8bd4ab}
  .message.error{background:#3b201e;color:#f3a29b}
  @media(max-width:760px){
    .tabs{
      background:rgba(18,27,23,.96);
      border-color:#2a3a31;
      box-shadow:0 14px 34px rgba(0,0,0,.32);
    }
    .tabs button.active{background:#1e3428;color:#7bd7a4}
  }
}


/* Stage 6 commercial filters, offer ranking and insurance r13 */
.brand img{
  background:transparent!important;
  mix-blend-mode:normal;
}
.public-search select,
.public-search input,
.market-search-form input{
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:15px;
  font-weight:400;
  letter-spacing:0;
}
.public-search select{
  appearance:auto;
  -webkit-appearance:menulist;
}
.insurance-options{
  display:grid;
  gap:8px;
  margin:14px 0 16px;
  max-height:46vh;
  overflow:auto;
}
.insurance-option{
  display:grid;
  grid-template-columns:20px minmax(0,1fr);
  align-items:center;
  gap:10px;
  min-height:54px;
  padding:10px 11px;
  border:1px solid var(--ubz-line);
  border-radius:13px;
  background:var(--ubz-surface);
  color:var(--ubz-ink);
}
.insurance-option input{
  width:18px;
  height:18px;
  min-height:0;
  margin:0;
  accent-color:var(--ubz-green);
}
.insurance-option span{display:grid;gap:2px}
.insurance-option strong{font-size:13px;line-height:1.3}
.insurance-option small{font-size:11px;line-height:1.35;color:var(--ubz-muted)}
.marketplace-offer .product-card-body{gap:7px}
.pharmacy-offer-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
  margin-top:2px;
  padding-top:7px;
  border-top:1px solid var(--ubz-line);
}
.pharmacy-offer-head strong{font-size:12px;line-height:1.3}
.pharmacy-offer-head span{font-size:10px;color:var(--ubz-muted);text-align:right}
.offer-address{
  min-height:0!important;
  font-size:10px!important;
  color:var(--ubz-muted)!important;
}
.relevance-reasons{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}
.relevance-chip{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:0 7px;
  border-radius:999px;
  background:#f2f7f4;
  color:#365d48;
  font-size:9px;
  font-weight:650;
}
.best-match{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:0 7px;
  border-radius:999px;
  background:#176944;
  color:#fff;
  font-size:9px;
  font-weight:780;
}
.insurance-match{
  background:#edf6ff!important;
  color:#235b8a!important;
}
@media(max-width:760px){
  .public-search{
    grid-template-columns:1fr 1fr;
  }
  .public-search #search-input{
    grid-column:1/-1;
  }
  .public-search button{
    grid-column:1/-1;
  }
  .public-search select,
  .public-search input,
  .market-search-form input{
    font-size:16px;
  }
  .insurance-option strong{font-size:13px}
  .insurance-option small{font-size:11px}
}
@media(prefers-color-scheme:dark){
  .brand img{background:transparent!important}
  .insurance-option{
    background:#121b17;
    border-color:#2b3a32;
  }
  .relevance-chip{
    background:#1a2a21;
    color:#a8d9bd;
  }
  .best-match{
    background:#2a9d61;
    color:#fff;
  }
  .insurance-match{
    background:#182a39!important;
    color:#9dccf5!important;
  }
}


/* Stage 6 controlled insurance dropdown r15 */
.insurance-picker{
  display:grid;
  gap:7px;
  margin:14px 0 10px;
}
.insurance-picker>label{
  font-size:13px;
  font-weight:700;
  color:var(--ubz-ink);
}
.insurance-picker-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
}
.insurance-picker-row select{
  width:100%;
  min-width:0;
  font-size:15px;
}
.insurance-picker-row button{
  min-width:72px;
}
.insurance-selected{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  min-height:4px;
  margin:4px 0 14px;
}
.insurance-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:34px;
  padding:5px 7px 5px 10px;
  border:1px solid #cfe1d6;
  border-radius:999px;
  background:#f2f8f4;
  color:#23543a;
  font-size:12px;
  font-weight:700;
}
.insurance-chip button{
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  min-height:0;
  padding:0;
  border:0;
  border-radius:50%;
  background:#dfece4;
  color:#244c37;
  font-size:16px;
  line-height:1;
}
@media(max-width:760px){
  .insurance-picker-row select{font-size:16px}
  .insurance-picker-row button{min-height:44px}
  .insurance-chip{font-size:12px}
}
@media(prefers-color-scheme:dark){
  .insurance-picker>label{color:var(--ubz-ink)}
  .insurance-chip{
    background:#17271f;
    border-color:#31513f;
    color:#b9e5ca;
  }
  .insurance-chip button{
    background:#254334;
    color:#d8f0e2;
  }
}


/* Stage 6 Google Maps directions r16 */
.provider-actions{display:flex;gap:8px;margin-top:10px}
.provider-actions .primary{min-width:112px}
.marketplace-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.marketplace-actions button{min-width:0}
@media(max-width:420px){
  .marketplace-actions{grid-template-columns:1fr 1fr}
  .marketplace-actions [data-add]{grid-column:1/-1}
}


/* Stage 6 Wellness module r18 */
.wellness-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-bottom:12px;
}
.wellness-metric-card{
  display:grid;
  gap:4px;
  min-height:92px;
  padding:12px;
  border:1px solid var(--ubz-line);
  border-radius:14px;
  background:var(--ubz-surface);
}
.wellness-metric-card span{
  font-size:10px;
  font-weight:750;
  color:var(--ubz-muted);
}
.wellness-metric-card strong{
  font-size:17px;
  line-height:1.2;
  color:var(--ubz-ink);
}
.wellness-metric-card small{
  margin-top:auto;
  font-size:9px;
  line-height:1.35;
  color:var(--ubz-muted);
}
.wellness-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-bottom:12px;
}
.wellness-goals-card{
  display:grid;
  gap:10px;
  margin-bottom:12px;
  padding:13px;
  border:1px solid var(--ubz-line);
  border-radius:15px;
  background:linear-gradient(145deg,#fbfdfc,#f3f8f5);
}
.wellness-goals-card h3{
  margin:2px 0 0;
  font-size:14px;
}
.wellness-goals-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.wellness-goals-grid label{
  display:grid;
  gap:5px;
  font-size:10px;
  font-weight:700;
  color:var(--ubz-muted);
}
.wellness-disclaimer{
  margin:10px 0 14px;
  padding:10px 11px;
  border-radius:12px;
  background:#f7f9f8;
  color:#68776f;
  font-size:10px;
  line-height:1.45;
}
.wellness-history-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.wellness-history-row strong{font-size:12px}
.wellness-history-row p{margin:3px 0 0}
.wellness-history-value{
  flex:0 0 auto;
  font-size:13px;
  font-weight:800;
  color:var(--ubz-ink);
}
@media(max-width:760px){
  .wellness-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .wellness-metric-card{
    min-height:86px;
    padding:11px;
  }
  .wellness-metric-card strong{font-size:16px}
  .wellness-actions{grid-template-columns:1fr 1fr}
  .wellness-goals-grid{grid-template-columns:1fr}
}
@media(prefers-color-scheme:dark){
  .wellness-metric-card,
  .wellness-goals-card{
    background:#121b17;
    border-color:#2b3a32;
  }
  .wellness-goals-card{
    background:linear-gradient(145deg,#15221b,#111a16);
  }
  .wellness-disclaimer{
    background:#17231d;
    color:#a8b6ae;
  }
  .wellness-history-value{color:#eef4f0}
}

/* Stage 6 private pharmacist chat r20 */
.chat-panel{padding-bottom:110px}
.chat-privacy-note{margin:0 0 14px;padding:11px 12px;border:1px solid #dfe8e2;border-radius:13px;background:#f7faf8;color:#5f7168;font-size:12px;line-height:1.45}
.chat-provider-list,.chat-conversations{display:grid;gap:8px}
.chat-provider-card,.chat-conversation-card{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;padding:12px;border:1px solid #dfe8e2;border-radius:15px;background:#fff;color:#173126;text-align:left;font:inherit}
.chat-provider-card span,.chat-conversation-card span{display:grid;gap:3px;min-width:0}
.chat-provider-card strong,.chat-conversation-card strong{font-size:13px}
.chat-provider-card small,.chat-conversation-card small{font-size:11px;color:#6c7a73;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-provider-card em,.chat-conversation-card em{font-style:normal;font-size:10px;font-weight:800;color:#176944;background:#edf6f0;border-radius:999px;padding:6px 8px}
.chat-thread{display:grid;gap:10px}
.chat-thread-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid #dfe8e2;border-radius:15px;background:#fff}
.chat-thread-head>div:first-child{display:grid;gap:2px}.chat-thread-head strong{font-size:14px}.chat-thread-head span{font-size:11px;color:#6c7a73}
.chat-call-actions{display:flex;gap:6px}.chat-call-button,.chat-icon-button{width:40px;height:40px;border:1px solid #d9e4dd;border-radius:12px;background:#fff;color:#176944;font-weight:800}
.chat-call-button:disabled{opacity:.35}.chat-call-note{padding:9px 11px;border-radius:11px;background:#f6f9f7;color:#69786f;font-size:11px}
.chat-messages{display:flex;flex-direction:column;gap:8px;min-height:260px;max-height:52vh;overflow:auto;padding:12px;border:1px solid #e1e9e4;border-radius:16px;background:#f6f9f7}
.chat-message{display:flex}.chat-message.mine{justify-content:flex-end}.chat-message.theirs{justify-content:flex-start}
.chat-message>div{max-width:82%;padding:9px 11px;border-radius:15px;background:#fff;border:1px solid #dfe8e2}
.chat-message.mine>div{background:#176944;color:#fff;border-color:#176944}.chat-message small{display:block;margin-bottom:3px;font-size:9px;opacity:.72}.chat-message p{margin:0;font-size:12px;line-height:1.4}
.chat-attachment{display:block;max-width:100%;margin-top:6px;border:0;border-radius:9px;padding:7px 9px;background:rgba(255,255,255,.16);color:inherit;text-align:left;font-size:10px}
.chat-composer{position:sticky;bottom:10px;display:grid;grid-template-columns:40px minmax(0,1fr) 40px 44px;align-items:end;gap:6px;padding:8px;border:1px solid #dfe8e2;border-radius:17px;background:#fff;box-shadow:0 8px 30px rgba(20,50,37,.1)}
.chat-composer textarea{min-height:40px;max-height:110px;resize:none;border:0;background:transparent;padding:9px 4px;font:inherit;font-size:16px;outline:0}
.chat-send-button{height:40px;border:0;border-radius:12px;background:#176944;color:#fff;font-weight:900}
.chat-icon-button.recording{background:#fcecec;color:#a21d1d;border-color:#f0caca}
.chat-attachment-menu{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:8px;border:1px solid #dfe8e2;border-radius:13px;background:#fff}
.chat-attachment-menu button{min-height:42px;border:1px solid #dce6df;border-radius:10px;background:#fff;color:#244236;font:inherit;font-size:12px;font-weight:750}


/* Stage 6 permission center r22 */
.device-permissions-list{display:grid;gap:8px;margin:12px 0}
.device-permission-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid var(--ubz-line);border-radius:14px;background:var(--ubz-surface)}
.device-permission-copy{display:grid;gap:3px;min-width:0}
.device-permission-copy strong{font-size:13px}
.device-permission-copy span{font-size:11px;line-height:1.42;color:var(--ubz-muted)}
.device-permission-action{display:grid;justify-items:end;gap:5px}
.device-permission-action small{font-size:10px;color:var(--ubz-muted);font-weight:750}
.device-permission-action button{min-width:82px}
.permission-intro{margin:8px 0 0}
.permission-safety-note{margin:12px 0 0;padding:10px;border-radius:11px;background:var(--ubz-soft)}
@media(max-width:560px){.device-permission-row{grid-template-columns:1fr}.device-permission-action{grid-template-columns:1fr auto;align-items:center;justify-items:start}.device-permission-action button{justify-self:end}}

/* Stage 6 medication + refill intelligence r23 */
.medication-reminder-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;grid-column:1/-1}
.medication-reminder-fields input{min-width:0}
.refill-insight{margin-top:5px;padding:7px 9px;border-radius:9px;background:var(--ubz-soft);color:var(--ubz-primary);font-weight:750}
@media(max-width:560px){.medication-reminder-fields{grid-template-columns:1fr}}

/* Stage 6 health command center r24 */
.health-command-tabs{display:flex;gap:6px;padding:5px;margin:0 0 12px;border:1px solid var(--ubz-line);border-radius:14px;background:var(--ubz-soft)}
.health-command-tabs button{flex:1;min-height:38px;border:0;border-radius:10px;background:transparent;color:var(--ubz-muted);font:inherit;font-size:12px;font-weight:800}
.health-command-tabs button.active{background:var(--ubz-surface);color:var(--ubz-primary);box-shadow:0 2px 8px rgba(20,50,37,.08)}
.health-command-center{margin-bottom:14px}
.health-command-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:9px}.health-command-heading h3{margin:2px 0 0;font-size:16px}
.health-action-grid,.health-record-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.health-action-card,.health-record-grid article,.health-insight-card{padding:12px;border:1px solid var(--ubz-line);border-radius:14px;background:var(--ubz-surface)}
.health-action-card{display:grid;gap:5px}.health-action-card span,.health-record-grid span{font-size:10px;font-weight:800;color:var(--ubz-muted);text-transform:uppercase;letter-spacing:.04em}
.health-action-card strong,.health-record-grid strong{font-size:15px}.health-action-card small,.health-record-grid small{font-size:10px;line-height:1.4;color:var(--ubz-muted)}
.health-action-card button,.health-insight-card button{justify-self:start;margin-top:4px;border:0;background:transparent;color:var(--ubz-primary);padding:0;font:inherit;font-size:11px;font-weight:850}
.health-insight-list{display:grid;gap:8px}.health-insight-card{display:grid;gap:5px}.health-insight-card p{margin:0;font-size:12px;line-height:1.45;color:var(--ubz-muted)}
.health-insight-card.attention{border-color:#ead9b6;background:#fffaf0}.health-safety-copy{margin:10px 0 0;font-size:10px;line-height:1.45;color:var(--ubz-muted)}
@media(max-width:700px){.health-action-grid,.health-record-grid{grid-template-columns:1fr}.health-command-tabs{position:sticky;top:0;z-index:2}}

/* Stage 6 family/caregiver r26 */
.family-profile-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.family-profile-card h3{margin:0 0 3px}.family-profile-card p{margin:3px 0;color:var(--ubz-muted);font-size:12px}
.check-row{display:flex!important;align-items:flex-start;gap:9px}.check-row input{width:auto!important;margin-top:3px}

/* Stage 6 connected-health truthfulness r27 */
.connected-health-status{display:grid;gap:3px;margin:9px 0 14px;padding:10px 12px;border:1px solid var(--ubz-line);border-radius:12px;background:var(--ubz-soft)}
.connected-health-status strong{font-size:12px}.connected-health-status span{font-size:10px;line-height:1.45;color:var(--ubz-muted)}

/* Stage 6 health profile isolation r28 */
.health-profile-context{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;padding:8px 11px;border-radius:11px;border:1px solid var(--ubz-line);background:var(--ubz-surface)}
.health-profile-context strong{font-size:12px}.health-profile-context span{font-size:10px;color:var(--ubz-muted)}

/* Stage 6 family-scoped health records r29 */
.health-profile-context>div{display:grid;gap:2px}
.health-profile-context button{flex:0 0 auto}
#reminders-profile-context{margin-bottom:10px}

/* Stage 6 medication adherence check-ins r30 */
.medication-checkins-panel,.health-medication-checkins{margin-top:14px}
.med-checkin-head{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-bottom:8px}
.med-checkin-head h3{margin:2px 0 0;font-size:15px}.med-checkin-head>span{font-size:10px;color:var(--ubz-muted)}
.med-checkin-list{display:grid;gap:7px}
.med-checkin-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 11px;border:1px solid var(--ubz-line);border-radius:12px;background:var(--ubz-surface)}
.med-checkin-row>div:first-child{display:grid;gap:2px}.med-checkin-row strong{font-size:12px}.med-checkin-row span{font-size:10px;color:var(--ubz-muted)}
.med-checkin-action{display:flex;align-items:center;gap:7px;flex:0 0 auto}.med-checkin-action .status.good{color:var(--ubz-primary);font-weight:850}
.empty-card.compact{padding:10px 12px}
@media(max-width:560px){.med-checkin-row{align-items:flex-start;flex-direction:column}.med-checkin-action{width:100%;justify-content:space-between}}

/* Stage 6 encrypted device mirror r35 */
.health-local-sync-status{margin:-2px 0 9px;padding:6px 10px;border-radius:9px;background:var(--ubz-soft);font-size:9px;font-weight:750;color:var(--ubz-muted)}
.health-local-sync-status.is-offline{background:#fff7e8;color:#82540c}
