/* NEXT CAFE v2.0 — responsive app layouts. All A/B conditions use these same rules. */
:root{--cream:#f7f5f0;--brown:#75513e;--accent:#977051;--ink:#282723;--line:#e7e2d9;--muted:#7a7972;--nav:#25251f;--soft:#efe9df;--blue:#55786e;--radius:18px}
html{scrollbar-gutter:stable}body{font-feature-settings:'tnum';font-variant-numeric:tabular-nums}button:focus-visible,a:focus-visible{outline:3px solid #8e7153;outline-offset:3px}button{-webkit-tap-highlight-color:transparent;touch-action:manipulation}.kiosk-header{padding:16px 32px;min-height:78px}.brand{font-size:23px}.mode-label{font-size:11px}.header-tools{gap:10px}.welcome{gap:60px;margin-top:32px;min-height:calc(100dvh - 165px)}.welcome-visual>img{object-position:72% 50%}.welcome-visual:after{background:linear-gradient(180deg,#15120b00 30%,#211911d6)}.welcome-visual{background:#b9a488}.hero-word>span{color:#faf5eb}.hero-word p{color:#f5ece0}.connection.show{z-index:12;flex:none}.loading{min-height:60vh;display:grid;place-content:center;text-align:center;gap:10px}
body.in-shop{overflow:hidden}body[data-page=kiosk].in-shop #app{height:100dvh;display:flex;flex-direction:column;overflow:hidden}body.in-shop .kiosk-header{flex:none;min-height:72px;padding-block:12px}body.in-shop #kiosk-content{display:flex;flex-direction:column;flex:1;min-height:0}
body.in-shop .task-bar{width:auto;max-width:none;margin:10px 32px 0;padding:9px 20px;min-height:48px;font-size:14px;gap:24px;flex:none;border-radius:12px}
body.in-shop .shop-layout{padding:18px 32px 20px;max-width:none;width:100%;margin:0;display:grid;grid-template-columns:minmax(0,1fr) clamp(326px,26vw,426px);gap:24px;flex:1;min-height:0;overflow:visible;align-items:stretch}
body.in-shop .menu-pane{display:flex;flex-direction:column;min-height:0;min-width:0}.menu-heading{position:relative;isolation:isolate;min-height:104px;border-radius:16px;display:flex;justify-content:center;flex-direction:column;align-items:flex-start!important;padding:17px 24px;margin:0 0 14px!important;overflow:hidden;gap:5px;flex:none;background:#ede5d7}
.menu-heading:before{content:'';position:absolute;z-index:-2;inset:0;background:url('/static/assets/hero.webp') right 48%/70% auto no-repeat}.menu-heading:after{content:'';position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,#f0eade 32%,#f0eadefa 42%,#f0eade10 80%)}
body.in-shop .menu-heading h1{font-size:clamp(22px,2vw,34px);line-height:1.3;margin:0}.menu-heading .eyebrow{font-size:10px;margin:0 0 4px}.menu-heading>span{font-size:12px;line-height:1.6;display:block}.menu-heading>span br{display:none}
body.in-shop .menu-tabs{margin-bottom:14px;gap:10px;flex:none}.menu-tabs button{border-radius:11px;min-height:50px;padding:10px 23px;font-size:16px;transition:none}.menu-tabs button.active{box-shadow:0 4px 10px #75513e12}.menu-tabs button small{font-size:12px;border-radius:4px;background:#b39b861f;padding:0 5px}
body.in-shop .menu-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:16px;flex:1;min-height:0}
body.in-shop .menu-card{display:flex;flex-direction:column;min-height:0;border-radius:16px;box-shadow:0 3px 14px #41311c05}
body.in-shop .product-image{flex:1;height:auto;min-height:64px;background:#eee9e1}.product-image img{object-fit:contain!important;background:#efeae3;object-position:50% 50%}
body.in-shop .product-body{padding:12px 16px;flex:none}.product-body h2{font-size:clamp(17px,1.2vw,22px)!important;line-height:1.3;margin:3px 0 0}.product-body>small{font-size:10px}.product-body p{font-size:12px!important;line-height:1.5;min-height:18px!important;margin:6px 0 0}.product-buy{margin-top:8px!important}.product-buy strong{font-size:20px}.product-buy span{font-size:11px}.add-btn{width:44px;height:44px}.catalog-note{flex:none;font-size:10px;margin-top:10px!important;line-height:1.4}
body.in-shop .order-pane{position:static;display:flex;flex-direction:column;min-height:0;overflow:auto;gap:16px;scrollbar-width:thin}.guide-panel{padding:22px!important;margin:0!important;border:1px solid #e4d7c5;border-radius:18px;background:linear-gradient(140deg,#f4efe5,#ece5d8);flex:none}.guide-title{font-size:16px;gap:12px;letter-spacing:-.02em}.intelligence-label{font-weight:650;font-size:17px;letter-spacing:-.03em}.guide-title small{font-size:11px;color:#867c6d;margin-top:3px}.guide-title>span.ai-emblem{background:radial-gradient(circle at 35% 25%,#fdfbf6 0%,#e1c9a8 37%,#aa825e 72%,#7c5b41 100%);border-radius:50%;color:#fff;width:44px;height:44px;position:relative;box-shadow:inset 0 0 0 1px #fffa,0 3px 9px #7a593717;flex:none}.ai-emblem:after{content:'';position:absolute;inset:5px;border:1px solid #ffffff80;border-radius:50%;transform:rotate(-28deg) scaleX(.55)}.ai-emblem svg{width:19px;height:19px;z-index:1}.guide-copy{font-size:15px!important;line-height:1.85!important;height:142px!important;min-height:142px!important;overflow:auto;margin-top:17px;scrollbar-width:thin}
body.in-shop .basket-panel{padding:22px;display:flex;flex-direction:column;flex:1;min-height:360px;border-radius:18px}.basket-title{flex:none;margin-bottom:8px}.basket-title h2{font-size:21px}.basket-item{flex:none;min-height:94px}.basket-item img{object-fit:contain}.order-totals{margin-top:auto;padding-top:22px}.order-totals strong{font-size:25px}.basket-panel>.large{margin-top:10px;min-height:56px;font-size:15px;flex:none}.save-state{font-size:10px;justify-content:center}.no-purchase{min-height:40px;font-size:13px}.demo-bar{min-height:30px;padding:4px 15px;flex:none;font-size:11px;gap:12px}.demo-bar button{min-height:26px;padding:2px 12px}
@media (min-width:1000px) and (max-height:860px) and (orientation:landscape){
 body.in-shop .kiosk-header{min-height:62px;padding:8px 24px}.brand{font-size:20px}.brand-mark{width:36px;height:36px}body.in-shop .task-bar{margin:8px 24px 0;min-height:42px;padding:3px 14px;gap:18px;font-size:12px}body.in-shop .shop-layout{padding:12px 24px;gap:18px;grid-template-columns:minmax(0,1fr) 330px}.menu-heading{min-height:70px;padding:10px 18px;margin-bottom:10px!important}.menu-heading>span{display:none}body.in-shop .menu-tabs{margin-bottom:10px}.menu-tabs button{min-height:40px;padding:5px 18px;font-size:14px}body.in-shop .menu-grid{gap:12px}body.in-shop .product-body{padding:8px 12px}.product-body p{font-size:10px!important;line-height:1.4;min-height:14px!important;margin-top:4px}.product-body h2{font-size:17px!important}.product-body>small{font-size:9px}.product-buy{margin-top:4px!important}.product-buy strong{font-size:17px}.add-btn{width:38px;height:38px}.catalog-note{font-size:9px}.guide-panel{padding:15px!important}.guide-title .intelligence-label{font-size:15px}.guide-copy{height:122px!important;min-height:122px!important;font-size:13px!important;line-height:1.75!important;margin-top:10px}body.in-shop .order-pane{gap:12px}body.in-shop .basket-panel{padding:16px;min-height:0}.basket-title{margin-bottom:2px}.basket-title h2{font-size:18px}.basket-item{min-height:64px;padding:8px 0}.basket-item img{width:46px;height:46px}.basket-item b{font-size:13px}.basket-item small{font-size:10px}.order-totals{padding:14px 0 6px;margin-top:auto}.order-totals strong{font-size:21px}.order-totals>div{margin:4px 0}.basket-panel>.large{min-height:46px;padding:10px;font-size:13px}.no-purchase{min-height:32px;font-size:12px}.save-state{font-size:9px}.catalog-note{margin-top:7px!important}
}
/* Portrait tablet/kiosk: six products in two columns; guide and order never disappear. */
@media (orientation:portrait) and (min-width:600px){
 body.in-shop .kiosk-header{padding:12px 24px;min-height:68px}body.in-shop .task-bar{margin:10px 24px 0;padding:6px 14px;min-height:48px;gap:16px;font-size:12px}.task-caption{font-size:11px;margin-right:0}.task-bar svg{width:17px;height:17px}
 body.in-shop .shop-layout{padding:14px 24px 18px;display:grid;grid-template-columns:1fr;grid-template-areas:'guide' 'menu' 'basket';grid-template-rows:auto minmax(0,1fr) auto;gap:12px}
 body.in-shop .order-pane{display:contents}.guide-panel{grid-area:guide;display:grid;grid-template-columns:190px 1fr;align-items:center;padding:12px 16px!important;border-radius:14px;gap:14px;order:0}.guide-title{gap:10px}.intelligence-label{font-size:15px}.guide-title small{font-size:10px}.guide-title>span.ai-emblem{height:36px;width:36px}.guide-copy{margin:0;height:70px!important;min-height:70px!important;font-size:13px!important;line-height:1.7!important}
 body.in-shop .menu-pane{grid-area:menu;order:1}.menu-heading{min-height:72px;padding:12px 16px;margin-bottom:10px!important}.menu-heading>span{display:none}.menu-heading:before{background-size:65% auto}.menu-heading h1{font-size:27px!important}body.in-shop .menu-tabs{margin-bottom:10px;gap:10px}.menu-tabs button{flex:1;justify-content:center;min-height:46px;padding:8px;font-size:15px}
 body.in-shop .menu-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:12px}.product-body{padding:9px 13px!important}.product-body h2{font-size:18px!important}.product-body p{font-size:11px!important;min-height:16px!important}.product-body>small{font-size:9px}.product-buy{margin-top:4px!important}.product-buy strong{font-size:18px}.add-btn{width:40px;height:40px}.catalog-note{font-size:9px;margin-top:7px!important}
 body.in-shop .basket-panel{grid-area:basket;order:2;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:30px 58px 52px 24px;column-gap:20px;row-gap:4px;padding:12px 16px;min-height:0;flex:none;border-radius:15px}.basket-title{grid-column:1/3;margin:0;min-height:30px}.basket-title h2{font-size:17px}.basket-title>.icon-btn{height:30px;min-height:30px}.basket-item{min-height:0;height:58px;padding:5px 0;gap:9px;border:0}.basket-item img{width:43px;height:43px}.basket-item b{font-size:13px}.basket-item small{font-size:11px}.basket-item .text-btn{font-size:11px;min-height:20px}.basket-item .small-icon{min-width:34px;min-height:34px}.basket-empty{min-height:58px}.order-totals{margin:0;padding:0;display:flex;align-items:center;gap:18px;grid-column:1/2;border:0}.order-totals>div{display:block;margin:0}.order-totals span{font-size:10px;display:block}.order-totals strong{font-size:20px}.basket-panel>.large{grid-column:2/3;margin:0;padding:10px;min-height:46px;height:46px;font-size:13px;align-self:center}.save-state{grid-column:1/2;grid-row:4;font-size:9px;padding:0;margin:0;justify-content:flex-start}.no-purchase{grid-column:2/3;grid-row:4;min-height:24px;height:24px;padding:0;font-size:11px;margin:0}
}
@media (orientation:portrait) and (min-width:600px) and (max-height:1100px){
 body.in-shop .kiosk-header{min-height:58px;padding:8px 18px}.brand{font-size:19px}.brand small{font-size:7px}.brand-mark{width:34px;height:34px}body.in-shop .task-bar{margin:6px 18px 0;min-height:40px;gap:13px;font-size:11px;padding:2px 12px}.task-caption{display:none}body.in-shop .shop-layout{padding:8px 18px 10px;gap:8px}.guide-panel{grid-template-columns:164px 1fr;padding:8px 12px!important;gap:8px}.guide-copy{height:64px!important;min-height:64px!important;font-size:12px!important;line-height:1.65!important}.intelligence-label{font-size:14px}.guide-title small{font-size:9px}.menu-heading{min-height:52px;padding:8px 14px;margin-bottom:7px!important}.menu-heading h1{font-size:23px!important}.menu-heading .eyebrow{font-size:8px;margin:0}body.in-shop .menu-tabs{margin-bottom:7px}.menu-tabs button{min-height:38px;padding:5px;font-size:13px}body.in-shop .menu-grid{gap:8px}.product-body{padding:6px 10px!important}.product-body h2{font-size:16px!important}.product-body>small{font-size:8px}.product-body p{display:none}.product-buy strong{font-size:16px}.product-buy span{font-size:10px}.add-btn{height:36px;width:36px}.image-info{right:6px;bottom:5px}.selected-mark{top:6px;left:6px;font-size:9px}.catalog-note{font-size:8px;margin-top:5px!important}body.in-shop .basket-panel{padding:8px 12px;grid-template-rows:26px 50px 43px 22px;row-gap:2px;column-gap:12px}.basket-title h2{font-size:15px}.basket-item,.basket-empty{height:50px;min-height:50px}.basket-item img{width:36px;height:36px}.basket-item b{font-size:12px}.basket-item small{font-size:10px}.order-totals strong{font-size:18px}.basket-panel>.large{min-height:40px;height:40px;font-size:12px;padding:7px}
}
/* On phones six items remain on the category page; allow vertical reading, never shrink text to fit. */
@media(max-width:599px){
 body.in-shop{overflow:auto}body[data-page=kiosk].in-shop #app{height:auto;min-height:100dvh;overflow:visible}body.in-shop #kiosk-content{display:block}.brand{font-size:18px}.brand-mark{width:32px;height:32px}.brand small{font-size:6px}.kiosk-header,body.in-shop .kiosk-header{padding:10px 14px;min-height:64px}.header-tools{gap:4px}.header-tools .mode-label{display:none}.header-tools .text-btn{font-size:11px}.header-tools .icon-btn{min-width:36px}.demo-bar>span{display:none}.demo-bar{gap:10px;min-height:30px}body.in-shop .task-bar{margin:8px 12px 0;display:grid;grid-template-columns:1fr 1fr;gap:4px 8px;font-size:10px;padding:8px 11px;min-height:52px}.task-caption{display:none}.task-bar>div:nth-child(2){grid-column:1/3}.task-bar>.text-btn{position:absolute;right:22px;font-size:10px}.task-bar svg{width:16px;height:16px}
 body.in-shop .shop-layout{display:flex;flex-direction:column;padding:10px 12px 16px;gap:12px;min-height:0;overflow:visible}body.in-shop .order-pane{display:contents}.guide-panel{order:0;padding:13px!important}.guide-title{font-size:14px;gap:9px}.intelligence-label{font-size:15px}.guide-title>span.ai-emblem{width:32px;height:32px}.guide-copy{height:114px!important;min-height:114px!important;font-size:13px!important;line-height:1.7!important;margin-top:9px}
 body.in-shop .menu-pane{order:1;display:flex;min-height:auto}.menu-heading{min-height:65px;padding:10px 13px;margin:0 0 10px!important}.menu-heading h1{font-size:22px!important}.menu-heading .eyebrow{font-size:8px}.menu-heading>span{display:none}body.in-shop .menu-tabs{margin-bottom:10px;gap:8px}.menu-tabs button{padding:9px 10px;font-size:13px;min-height:45px;flex:1;justify-content:center}.menu-tabs svg{width:18px;height:18px}body.in-shop .menu-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;gap:10px;flex:none}.menu-card{border-radius:12px!important}body.in-shop .product-image{height:125px;flex:none}.product-body{padding:9px!important}.product-body h2{font-size:16px!important}.product-body>small{font-size:8px}.product-body p{display:none}.product-buy strong{font-size:16px}.product-buy span{font-size:10px}.add-btn{width:36px;height:36px}.catalog-note{font-size:9px;margin:8px 0!important}
 body.in-shop .basket-panel{order:2;display:flex;padding:16px;min-height:0}.basket-item{min-height:73px}.order-totals{margin-top:8px}.basket-panel>.large{min-height:52px}.welcome{display:flex;flex-direction:column;padding:0 16px;margin:16px auto;gap:20px;min-height:0}.welcome-visual{min-height:290px}.welcome-panel{padding:10px;max-width:none}.hero-word{left:24px;bottom:22px}.hero-word h1{font-size:36px;margin:10px 0 14px}.hero-word p{font-size:14px}.welcome-panel h2{font-size:30px}.welcome-panel .muted{font-size:14px}.center-shell{padding:0 18px;margin:26px auto 40px}.consent-grid{grid-template-columns:1fr}.panel{padding:20px}.goal-cards>div:first-child{font-size:20px}.modal{max-width:calc(100vw - 20px);padding:24px;max-height:92dvh;overflow:auto}.button-row{flex-wrap:wrap}.modal-close{right:6px;top:6px}.likert label{min-width:0}.likert span{width:33px!important;height:40px!important}.guide-avatar{width:50px;height:50px}
}
@media (orientation:landscape) and (max-width:999px){body.in-shop{overflow:auto}body[data-page=kiosk].in-shop #app{height:auto;min-height:100dvh;overflow:visible}body.in-shop .shop-layout{grid-template-columns:minmax(0,1fr) 290px}body.in-shop .menu-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none}.product-image{height:150px!important;flex:none!important}.menu-heading h1{font-size:24px!important}.task-caption{display:none}.menu-heading>span{display:none}.guide-copy{font-size:13px!important;height:165px!important;min-height:165px!important}}
/* Research Admin: compact visual hierarchy with real-data panels. */
body[data-page=admin]{background:#f7f6f2;overflow:auto!important}.admin-shell{grid-template-columns:236px minmax(0,1fr);min-height:100dvh}.admin-sidebar{background:#27261f;width:236px;padding:30px 20px;position:fixed;top:0;bottom:0;height:100dvh;display:flex;flex-direction:column;z-index:20}.admin-sidebar .brand{font-size:20px;gap:8px}.admin-sidebar .brand-mark{width:35px;height:35px}.admin-sidebar .brand small{font-size:6px;letter-spacing:.09em}.side-section{color:#a6a295;font-size:9px;letter-spacing:.17em;margin:45px 8px 16px}.admin-sidebar nav{display:flex;flex-direction:column;gap:6px}.admin-sidebar nav button{display:flex;align-items:center;gap:12px;padding:13px 15px;border-radius:9px;min-height:48px;font-size:13px;color:#c6c2b8;white-space:nowrap}.admin-sidebar nav button.active{color:white;background:#70533e}.admin-sidebar nav button small{margin-left:auto;border-radius:4px;background:#ffffff12;padding:0 5px}.admin-sidebar nav svg{width:19px;height:19px}.side-note{margin-top:46px;padding:0 12px;display:flex;flex-direction:column;gap:14px;color:#ddd0b9;line-height:1.5}.side-note>span{font-size:20px;font-weight:500;letter-spacing:-.03em}.side-note small{font-size:11px;color:#9f988a;line-height:1.9}.side-bottom{margin-top:auto;padding:20px 8px 0}.side-bottom small{color:#9e998c;font-size:10px}.side-link{font-size:12px;min-height:35px}.server-status{font-size:11px;color:#d4d2c8}.admin-main{grid-column:2;min-width:0}.admin-topbar{height:68px;padding:0 32px;border-bottom:1px solid #e9e6df;background:#ffffffbd}.admin-topbar>div{display:flex;align-items:center;gap:10px}.admin-topbar .breadcrumb{font-size:17px;font-weight:700;letter-spacing:.01em;color:#262721;gap:16px}.breadcrumb>span{color:#d3cec4;font-weight:400}.breadcrumb b{font-size:12px;font-weight:400;color:#837f74}.admin-avatar{width:32px;height:32px;background:#a18b78;font-size:13px;color:white}.profile-name{font-size:12px;color:#757265}.admin-topbar .text-btn{font-size:11px}.live-indicator{font-size:10px;color:#6e786d;display:flex;align-items:center;gap:6px;margin-right:8px}.live-indicator i,.live-toggle i{width:6px;height:6px;border-radius:50%;background:#709583;display:inline-block}.live-indicator.stale{color:#ae7852}.live-indicator.stale i{background:#b2754a}.admin-page{padding:27px 32px 35px;max-width:1900px;margin:auto}.admin-title-row{margin-bottom:22px;align-items:center}.admin-title-row h1{font-size:30px;line-height:1.2}.admin-title-row .eyebrow{font-size:9px;margin-bottom:8px}.admin-title-row p{font-size:12px;margin-top:9px}.header-actions{display:flex;gap:10px}.header-actions .btn{font-size:12px;min-height:42px;padding:8px 14px;gap:8px}.header-actions svg{width:17px;height:17px}.study-selector{padding:12px 15px;background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:18px;gap:12px;flex-wrap:wrap}.study-selector>label{margin:0;font-size:11px}.study-selector select{height:38px;min-height:38px;width:auto;max-width:290px;flex:1;padding:7px 10px;font-size:12px}.date-range{display:flex;align-items:center;gap:8px;margin-left:auto}.date-range label{margin:0;font-size:11px}.date-range input{width:137px;font-size:11px;padding:6px 8px;min-height:36px;height:36px}.date-range>.btn{font-size:11px;min-height:36px;padding:6px 10px}.date-range>.text-btn{font-size:11px;min-height:36px}.live-toggle{display:flex;align-items:center;gap:6px;border-radius:6px;background:#f2f2ed;padding:8px 10px;font-size:10px;color:#99958b;white-space:nowrap}.live-toggle i{background:#bab6ad}.live-toggle.on{color:#65806c;background:#eef3ec}.live-toggle.on i{background:#709583}.dashboard-banner{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 21px;border-radius:12px;background:linear-gradient(110deg,#ece3d6,#f4eee4);margin-bottom:17px;color:#6b4c32}.dashboard-banner>div{display:flex;align-items:center;gap:15px}.dashboard-banner svg{width:28px;height:28px}.dashboard-banner b{display:block;font-size:14px;font-weight:600}.dashboard-banner small{display:block;font-size:11px;line-height:1.6;margin-top:3px;color:#8b7964}.dashboard-banner>.pill{font-size:10px;background:#fffc}.admin-card{border-radius:13px;background:white;box-shadow:0 3px 14px #2c26120a;border:1px solid #eeebe4;padding:20px;margin-bottom:0;min-width:0}.admin-card h2{font-size:16px;letter-spacing:-.035em}.admin-card p.muted{font-size:12px}.metric-grid{gap:13px;margin-bottom:17px}.metric-grid.six{grid-template-columns:repeat(6,minmax(0,1fr))}.metric-card{padding:17px 18px;min-height:121px}.metric-card>div{font-size:11px;color:#817668;display:flex;align-items:center;justify-content:space-between;gap:8px}.metric-card>div>span{width:30px;height:30px;border-radius:9px;background:#f5f0e8;color:#9b7c5e;display:grid;place-items:center}.metric-card>div svg{width:17px;height:17px}.metric-card>strong{font-size:clamp(24px,1.8vw,32px);margin-top:6px;line-height:1.25;letter-spacing:-.04em;display:block}.metric-card>strong small{font-size:11px;margin-left:5px;font-weight:400;color:#8f8a7e}.metric-card>p{font-size:9px;margin-top:9px;color:#aaa395;line-height:1.5}.chart-grid{display:grid;grid-template-columns:1.05fr 1.05fr 1fr;gap:17px;margin-bottom:17px}.card-heading{margin-bottom:14px;gap:10px}.card-heading .text-btn{font-size:10px;min-height:26px}.chart-kicker{font-size:9px;color:#a49c8f;white-space:nowrap}.chart-card{padding:18px 20px;min-height:236px}.line-chart{width:100%;height:162px;display:block}.line-chart text{font-family:inherit;font-size:9px;fill:#a19a8d}.chart-legend{display:flex;gap:20px;justify-content:center;font-size:9px;color:#8e887c}.chart-legend span{display:flex;align-items:center;gap:5px}.chart-legend i{width:6px;height:6px;border-radius:50%}.chart-empty{height:172px;display:flex;flex-direction:column;justify-content:center;align-items:center;color:#b2ab9e;font-size:11px;text-align:center;gap:10px}.chart-empty svg{width:28px;height:28px}.group-chart{padding:4px 0}.group-label{font-size:11px;gap:10px}.group-label strong{font-size:12px}.group-label small{font-size:9px;color:#aaa291}.group-label b{font-size:17px}.group-row{margin:0 0 18px}.group-track{height:8px;background:#f3f0e9}.group-track .arm-A{background:#9b7457}.group-track .arm-B{background:#a5b8a9}.effect-diff{padding:11px 0 0;font-size:10px;margin:0;border-color:#f0ece5}.effect-diff strong{font-size:12px}.locked-state{font-size:11px;padding:20px 5px}.locked-state h3{font-size:14px}.locked-state p{font-size:11px}.status-donut{display:grid;grid-template-columns:1fr 1.1fr;align-items:center;gap:14px;min-height:165px}.status-donut svg{width:100%;height:auto;max-height:165px}.status-donut text{font-family:inherit;font-size:9px;fill:#9b9385}.status-donut .donut-total{font-size:25px;fill:#4d463c;font-weight:700}.donut-key{display:flex;align-items:center;gap:7px;font-size:11px;margin:10px 0;color:#8c8375}.donut-key i{width:7px;height:7px;border-radius:50%;flex:none}.donut-key b{margin-left:auto;color:#5b5144;font-size:12px}.dashboard-lower{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr);gap:17px;margin-bottom:17px}.table-wrap{overflow:auto}.data-table{width:100%;min-width:630px}.data-table th{font-size:10px;padding:9px 10px;background:#f6f5f1;color:#969082;white-space:nowrap;font-weight:500}.data-table td{font-size:11px;padding:10px;line-height:1.5;border-bottom:1px solid #f2efe8}.data-table td small{display:block;font-size:9px;color:#aaa294;margin-top:3px}.data-table td b{font-size:12px}.data-table td .icon-btn{min-height:32px;min-width:28px;width:28px}.data-table td .icon-btn svg{height:15px;width:15px}.status-tag{font-size:9px;padding:3px 7px;border-radius:5px;white-space:nowrap}.arm-chip{font-size:10px;display:inline-grid;place-items:center;width:20px;height:20px;border-radius:5px;background:#eee4d6;color:#8a6344;margin-right:5px}.arm-chip.B{background:#e5ede6;color:#668070}.live-dot{font-size:9px;color:#809778;letter-spacing:.05em}.live-events{display:flex;flex-direction:column}.live-event{display:flex;align-items:center;gap:10px;text-align:left;padding:11px 0;border-bottom:1px solid #f0ede6;color:#8b8172;font-size:11px;width:100%}.live-event:last-child{border:0}.live-event>b,.live-event b{font-size:11px;color:#63533f;font-weight:700}.live-event>svg{width:12px;height:12px;margin-left:auto;color:#c4baab}.event-symbol{width:29px;height:29px;border-radius:8px;background:#f5f0e8;display:grid;place-items:center;color:#a98c6c;flex:none}.event-symbol svg{width:14px;height:14px}.live-event small{display:block;font-size:9px;color:#aea594;margin-top:3px}.dashboard-bottom{display:grid;grid-template-columns:1fr 1.4fr;gap:17px;margin-bottom:10px}.mini-progress .card-heading{margin-bottom:12px}.mini-progress .card-heading strong{font-size:19px}.mini-progress .card-heading strong small{font-size:11px;font-weight:400;color:#a49988}.progress-track{height:8px}.progress-track i{background:#a18c70}.cell-chips{display:flex;gap:16px;margin-top:10px;justify-content:space-between}.cell-chips>span{font-size:10px;color:#b3a897}.cell-chips b{color:#806c52;margin-left:9px}.insight-values{display:flex;gap:30px;justify-content:space-between}.insight-values span{font-size:10px;display:block;color:#a69985}.insight-values b{display:block;font-size:20px;color:#75634b;margin-top:5px}.audit-note{font-size:10px;margin:15px 0;color:#a99d8b;gap:7px}.audit-note svg{width:14px;height:14px}.participants-filters{display:flex;align-items:center;gap:12px;margin-bottom:16px}.search-field{flex:1;display:flex;align-items:center;border:1px solid var(--line);border-radius:9px;padding-left:13px;gap:8px}.search-field svg{width:17px;height:17px;color:#ab9f8c}.search-field input{border:0;box-shadow:none;font-size:12px;min-height:42px}.participants-filters select{width:145px;font-size:12px;min-height:42px;padding:8px 10px}.table-pages{display:flex;justify-content:space-between;align-items:center;padding-top:13px;font-size:11px;color:#978a77}.table-pages>div{display:flex;align-items:center;gap:12px}.table-pages .icon-btn{min-height:32px}.table-pages svg{width:17px;height:17px}.section-action{margin-bottom:17px;gap:15px}.section-action p{font-size:12px}.section-action .btn{font-size:12px;min-height:42px}.dashboard-grid{gap:17px;margin-bottom:17px}.notice{font-size:12px;margin-top:18px;padding:16px 20px;line-height:1.8}.behavior-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:25px}.behavior-tiles span{font-size:11px;color:#93856f}.behavior-tiles strong{display:block;font-size:29px;color:#715a3d}.behavior-tiles small{font-size:11px;margin-left:4px;font-weight:400}.menu-ranks{margin-top:18px}.menu-ranks>div{display:flex;align-items:center;gap:14px;margin:12px 0;font-size:11px}.menu-ranks>div>span{width:95px;color:#8e7d64}.menu-ranks>div>div{height:7px;flex:1;background:#f6f1e8;border-radius:5px}.menu-ranks i{height:100%;display:block;border-radius:5px}.menu-ranks b{width:18px;text-align:right;font-weight:500}.survey-summary{margin:20px 0}.survey-summary>div{display:flex;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}.survey-summary small{display:block;color:#aaa08e;font-size:10px;margin-top:3px}.survey-summary b{font-size:23px;white-space:nowrap;line-height:1.1;color:#796245}.survey-summary b small{display:inline;font-weight:400;margin-left:4px}.reason-row{display:flex;gap:70px;padding:20px 0}.reason-row span{font-size:12px;color:#8c7d64;display:block}.reason-row strong{display:block;font-size:30px;color:#7c674a}.reason-row small{font-size:12px;margin-left:6px;font-weight:400}.audit-payload{overflow-wrap:anywhere;font-family:monospace}.export-card{max-width:1000px;margin:0 auto;padding:35px}.export-card h2{font-size:28px}.export-sheet-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:27px 0}.export-sheet-grid>div{display:flex;flex-direction:column;text-align:left;background:#f8f5ee;border:1px solid #ece4d7;padding:20px;border-radius:12px;gap:7px}.export-sheet-grid small{font-size:11px;color:#b4a084}.export-sheet-grid b{font-size:17px;color:#7b6141}.export-sheet-grid span{font-size:11px;color:#a39782}.export-card>.large{max-width:440px;margin:12px auto}.export-secondary{margin-top:28px;border-top:1px solid var(--line);padding-top:20px;display:flex;align-items:center;justify-content:center;gap:20px}.export-secondary span{font-size:11px;color:#ac9e88}.detail-cart{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.detail-cart>div{display:flex;align-items:center;gap:15px;border:1px solid var(--line);border-radius:12px;padding:12px;font-size:12px;color:#8d7a60;min-height:95px}.detail-cart img{width:75px;height:75px;object-fit:contain;border-radius:8px;background:#eee9e0}.detail-cart b{display:block;font-size:16px;margin:4px 0}.detail-cart small{display:block;font-size:10px}.detail-counts{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 20px}.detail-counts span{padding:7px 10px;background:#f3efe6;border-radius:6px;font-size:11px;color:#9a896f}.detail-counts b{color:#6e5330;margin-left:6px}.timeline-title{font-size:16px;margin:22px 0 12px}.timeline-title span{font-size:12px;color:#ab9c82}.timeline details{border-color:#ede5d9;border-radius:8px}.timeline summary{font-size:12px;padding:11px 13px}.timeline pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;max-height:240px;overflow:auto}.timeline blockquote{font-size:13px;padding:15px;background:#f3ecdf;color:#796348;border-left:3px solid #b59e77}.session-detail h2{display:flex;align-items:center;gap:12px}.session-detail .detail-summary{grid-template-columns:1fr 1.4fr 1fr}.detail-summary b{font-size:19px}.hash-box{overflow-wrap:anywhere;font-size:11px}.survey-record{font-size:13px;background:#f8f4eb;border-radius:10px;padding:12px 16px}.admin-menu-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.admin-menu{min-width:0}.admin-card .definition-list dd{overflow-wrap:anywhere}
body:has(.demo-bar) .admin-sidebar{top:34px;height:calc(100dvh - 34px)}
@media(max-width:1500px){.admin-shell{grid-template-columns:215px minmax(0,1fr)}.admin-sidebar{width:215px;padding:25px 16px}.admin-page{padding:22px}.admin-topbar{padding:0 22px}.metric-grid.six{grid-template-columns:repeat(3,minmax(0,1fr))}.metric-card{min-height:110px}.study-selector{gap:10px}.date-range{margin-left:0}.live-toggle{margin-left:auto}.dashboard-lower{grid-template-columns:1fr}.event-card .live-events{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}.chart-grid{grid-template-columns:1fr 1fr}.chart-grid .chart-card:last-child{grid-column:1/3;min-height:130px}.chart-grid .chart-card:last-child .status-donut{display:flex;justify-content:space-around;min-height:100px}.status-donut svg{max-width:130px;max-height:125px}.status-donut>div{display:flex;gap:20px}.dashboard-bottom{grid-template-columns:1fr 1fr}.admin-menu-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-name{display:none}.live-indicator{margin:0}.side-note{margin-top:28px}}
@media(max-width:1050px){.admin-shell{display:block}.admin-sidebar{position:static;width:100%;height:auto!important;padding:17px 20px;display:block}.admin-sidebar .brand{font-size:20px}.side-section,.side-note,.side-bottom{display:none}.admin-sidebar nav{display:flex;flex-direction:row;gap:7px;margin-top:18px;overflow:auto;scrollbar-width:thin}.admin-sidebar nav button{min-height:40px;padding:8px 12px;font-size:11px;flex:none}.admin-sidebar nav svg{width:17px;height:17px}.admin-topbar{height:58px;padding:0 20px}.admin-page{padding:22px 20px}.admin-title-row{gap:16px}.admin-title-row h1{font-size:27px}.header-actions .btn{font-size:11px;padding:8px 11px}.admin-menu-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.study-selector select{max-width:none}.date-range{width:100%;justify-content:flex-start}.live-toggle{position:static;margin-left:0}.live-indicator{font-size:9px}.admin-topbar .breadcrumb{font-size:15px}.admin-topbar .breadcrumb b{font-size:10px}}
@media(max-width:650px){.admin-sidebar{padding:15px 14px}.admin-sidebar nav{gap:5px;margin-top:12px}.admin-sidebar nav button{font-size:10px;padding:8px;gap:6px}.admin-sidebar nav button small{display:none}.admin-topbar{height:54px;padding:0 14px}.admin-topbar .breadcrumb b,.admin-topbar .breadcrumb>span{display:none}.admin-topbar .breadcrumb{font-size:13px}.admin-topbar .icon-btn{min-width:30px;min-height:34px}.admin-topbar>div{gap:5px}.admin-avatar{display:none}.live-indicator{font-size:8px;gap:4px}.admin-page{padding:19px 13px}.admin-title-row{flex-direction:column;align-items:flex-start;gap:16px;margin-bottom:15px}.admin-title-row h1{font-size:27px}.admin-title-row .muted{font-size:11px}.header-actions{width:100%}.header-actions .btn{flex:1;min-height:40px}.study-selector{padding:11px;gap:8px}.study-selector label{font-size:10px}.study-selector select{font-size:11px;min-width:130px}.date-range{gap:5px;flex-wrap:wrap}.date-range label{display:none}.date-range input{width:121px;font-size:10px}.date-range .btn{padding:5px 8px;font-size:10px}.date-range .text-btn{font-size:10px}.live-toggle{font-size:9px;padding:4px 8px}.dashboard-banner{padding:12px;margin-bottom:12px;gap:10px}.dashboard-banner b{font-size:12px}.dashboard-banner small{font-size:10px;max-width:240px}.dashboard-banner>.pill{display:none}.dashboard-banner svg{width:23px;height:23px}.metric-grid,.metric-grid.six{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:12px}.metric-card{padding:13px;min-height:109px}.metric-card>div{font-size:10px}.metric-card>strong{font-size:26px}.metric-card>p{font-size:8px;margin-top:8px}.metric-card>div>span{width:25px;height:25px}.chart-grid,.dashboard-grid,.dashboard-bottom,.dashboard-lower{grid-template-columns:1fr;gap:12px;margin-bottom:12px}.chart-grid .chart-card:last-child{grid-column:auto}.chart-grid .chart-card:last-child .status-donut{display:grid;grid-template-columns:1fr 1fr}.status-donut>div{display:block}.chart-card{min-height:225px;padding:18px}.line-chart{height:160px}.admin-card{padding:17px}.admin-card h2{font-size:15px}.event-card .live-events{display:flex}.card-heading{gap:8px}.chart-kicker{font-size:8px}.insight-values{gap:10px}.insight-values b{font-size:17px}.insight-values span{font-size:9px}.participants-filters{flex-wrap:wrap;gap:8px}.search-field{flex-basis:100%}.participants-filters select{width:calc(50% - 4px)}.section-action{align-items:flex-start;gap:8px}.section-action p{font-size:11px}.section-action .btn{font-size:11px;min-height:38px;padding:7px 10px;white-space:nowrap}.table-pages{font-size:10px}.table-pages>div{gap:5px}.data-table{min-width:740px}.notice{font-size:11px;padding:13px}.admin-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-menu{flex-direction:column;align-items:stretch}.admin-menu img{width:100%;height:115px;object-fit:contain}.export-card{padding:24px 16px}.export-card h2{font-size:25px}.export-sheet-grid{grid-template-columns:repeat(2,1fr);gap:10px}.export-sheet-grid>div{padding:14px}.export-sheet-grid b{font-size:15px}.export-sheet-grid span{font-size:10px}.export-card .large{font-size:13px}.export-secondary{flex-direction:column;gap:10px}.behavior-tiles{grid-template-columns:repeat(2,1fr)}.reason-row{gap:15px;justify-content:space-between}.reason-row span{font-size:10px}.reason-row strong{font-size:25px}.session-detail h2{font-size:24px;gap:6px}.session-detail .detail-summary{grid-template-columns:1fr}.detail-summary b{font-size:20px}.detail-cart{grid-template-columns:1fr;gap:10px}.detail-cart>div{min-height:80px}.detail-cart img{width:58px;height:58px}.detail-cart b{font-size:15px}.timeline summary{font-size:10px;padding:10px}.timeline time{font-size:9px}.survey-summary>div{font-size:11px}.survey-summary b{font-size:20px}.admin-card .button-row{flex-wrap:wrap}.definition-list{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Explicit line boxes prevent inherited inline baselines from consuming card height. */
.product-body>small{display:block;line-height:1.2}.product-buy>div{line-height:1.2}.product-buy strong{line-height:1.3}.product-buy span{display:block;line-height:1.3;margin-top:3px}
@media (orientation:portrait) and (min-width:600px){
 body.in-shop .task-bar{flex-wrap:nowrap}.task-bar .task-caption{display:none}.basket-title{min-height:26px;height:26px}.basket-title .icon-btn{min-height:26px;height:26px}.basket-title h2{line-height:1.3}
 .basket-item h3{font-size:13px;line-height:1.25}.basket-item p{font-size:11px;line-height:1.3;margin:2px 0}.basket-item .text-btn{min-height:18px;height:18px;font-size:10px;line-height:1.2;padding:0}.basket-item>div{line-height:1.2}.order-totals>div>span{line-height:1.2}.order-totals>div>strong{line-height:1.3}
}
@media (orientation:portrait) and (min-width:600px) and (max-height:1100px){
 .basket-item h3{font-size:12px}.basket-item p{font-size:10px}.product-body>small{font-size:8px}.product-body h2{line-height:1.3!important;margin-top:3px}.product-buy{margin-top:3px!important}.product-buy strong{font-size:16px}.product-buy span{font-size:9px;line-height:1.2;margin-top:2px}.product-image{min-height:52px!important}.task-bar>.text-btn{margin-left:auto}
}

/* Keep the research console in the shared espresso brand palette. */
body[data-page=admin] .btn.primary{background:#79543e;border-color:#79543e;color:white}body[data-page=admin] .eyebrow{color:#926849}
/* Mid-height portrait: keep price, sugar and touch action inside all six cards.
   Flavor descriptions remain available in each product's detail dialog. */
@media (orientation:portrait) and (min-width:600px) and (max-height:1350px){
 .product-body p{display:none}
}
