/* Yuvio additions shared by web and mobile */
.ybars{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;align-items:end;height:170px;padding:6px 2px 0}
.ybar{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;height:100%;min-width:0}
.ybar i{display:block;width:100%;max-width:46px;border-radius:10px 10px 4px 4px;background:linear-gradient(180deg,var(--a-brand),color-mix(in srgb,var(--a-brand) 55%,#fff));min-height:6px}
.ybar:last-child i{background:linear-gradient(180deg,var(--a-glow),var(--a-brand))}
.bv{font-size:.66em;font-weight:700;color:var(--a-muted);white-space:nowrap}
.bl{font-size:.72em;font-weight:700;color:var(--a-muted)}
.ypow{display:flex;justify-content:center;align-items:center;gap:6px;font-size:.72em;color:var(--a-muted);padding:6px 0 2px}
.ypaused{border:1.5px solid var(--a-crit);background:var(--a-crit-soft);gap:6px}
.yswitch{display:inline-flex;background:var(--a-surface-2,#F2F4F7);border:1px solid var(--a-line,#E2E6EC);border-radius:12px;padding:3px;gap:2px}
.yswitch button{display:inline-flex;align-items:center;gap:6px;border:0;background:none;border-radius:9px;padding:6px 12px;font:inherit;font-size:.86em;font-weight:700;color:var(--a-muted,#5A6577);cursor:pointer}
.yswitch button svg{width:15px;height:15px}
.yswitch button.on{background:#fff;color:var(--a-ink,#132033);box-shadow:0 1px 3px rgba(16,24,40,.12)}
.yswitch button:disabled{opacity:.45;cursor:not-allowed}
.dside .yswitch{display:flex;margin:0 2px 8px}.dside .yswitch button{flex:1;justify-content:center}
.yswitch-wrap{display:none;position:fixed;top:14px;left:50%;transform:translateX(-50%);z-index:30;display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border:1px solid #E2E6EC;border-radius:16px;padding:6px 12px 6px 6px;box-shadow:0 10px 30px -14px rgba(16,24,40,.35);font-family:var(--y-font,inherit)}
.yswitch-wrap .yswitch{border:0;background:#F2F4F7;font-size:14px}
.yswitch-note{font-size:12.5px;color:#5A6577;font-weight:600}
.ymobile .stage{padding-top:72px}
@media (max-width:860px){.yswitch-wrap{display:none}.ymobile .stage{padding-top:0}}
@media (max-width:900px){.dside .yswitch button{padding:6px 4px;font-size:0}.dside .yswitch button svg{width:16px;height:16px}}
.ydock{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:95;display:flex;align-items:center;gap:10px;background:rgba(20,20,43,.94);color:#fff;backdrop-filter:blur(12px);border-radius:18px;padding:8px 8px 8px 12px;box-shadow:0 20px 50px -16px rgba(10,10,40,.55);font-family:var(--y-font,inherit);font-size:13.5px;max-width:calc(100vw - 24px)}
.ydock-tag{font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#FF9A80}
.ydock-acts{display:flex;gap:2px;background:rgba(255,255,255,.08);border-radius:12px;padding:3px}
.ydock-acts button{display:inline-flex;align-items:center;gap:6px;border:0;background:none;color:#C9CBE0;font:inherit;font-weight:700;border-radius:9px;padding:6px 10px;cursor:pointer;white-space:nowrap}
.ydock-acts button i{width:8px;height:8px;border-radius:50%;background:var(--c);box-shadow:0 0 0 2px rgba(255,255,255,.25)}
.ydock-acts button.on{background:#fff;color:#14142B}.ydock-acts button:not(.on):hover{background:rgba(255,255,255,.1);color:#fff}
.ydock .yswitch{background:rgba(255,255,255,.08);border:0}.ydock .yswitch button{color:#C9CBE0;font-size:13.5px}.ydock .yswitch button.on{background:#fff;color:#14142B}
.ydock-role select{font:inherit;font-weight:700;color:#fff;background:rgba(255,255,255,.08);border:0;border-radius:10px;padding:7px 10px;cursor:pointer}.ydock-role select option{color:#14142B}
.ydock-note{font-size:12px;color:#FFB59F;font-weight:700;white-space:nowrap}
.ydock-hub{color:#C9CBE0;font-weight:700;text-decoration:none;white-space:nowrap;padding:6px 8px;border-radius:9px}.ydock-hub:hover{color:#fff;background:rgba(255,255,255,.1)}
.ydock-min{border:0;background:rgba(255,255,255,.1);color:#fff;border-radius:9px;min-width:30px;height:30px;font:inherit;font-weight:800;cursor:pointer}
.ydock.min{padding:6px}.ydock.min > *:not(.ydock-min){display:none}.ydock.min .ydock-min{padding:0 12px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.ymobile .stage{padding-top:24px;padding-bottom:96px}
.desk .dcontent{padding-bottom:110px}
@media (max-width:1100px){.ydock-acts button{font-size:0;gap:0;padding:8px}.ydock-acts button i{width:12px;height:12px}.ydock-hub{display:none}}
@media (max-width:860px){.ydock{bottom:8px;gap:6px;padding:6px}.ydock-tag,.ydock-note{display:none}}
/* Demo: keep the phone frame on any screen wider than a real phone, so "Phone" always looks like a phone */
@media (min-width:501px) and (max-width:860px){
  .ymobile .stage{display:flex;justify-content:center;padding:20px 12px 96px}
  .ymobile .device{width:390px;height:min(844px, calc(100vh - 130px));min-height:560px;border:11px solid #0A0E13;border-radius:46px;box-shadow:0 30px 70px rgba(10,20,40,.28)}
  .ymobile .sbar{display:flex}
}
@media (min-width:501px){ .ymobile .device::after{content:"Phone app";position:absolute;top:-34px;left:50%;transform:translateX(-50%);font:700 12px var(--y-font,inherit);color:#5A6577;letter-spacing:.06em;text-transform:uppercase} }
@media (min-width:501px){ .ymobile .device{overflow:visible} .ymobile .device > *:not(.toasts){border-radius:35px} }
@media (max-width:860px){ .ymobile .demo:not(.open){display:none} .ymobile .demo.open{position:fixed;inset:0;z-index:200;max-height:none;width:auto;overflow-y:auto;border-radius:0} .ymobile .demofab{display:flex;bottom:80px} }
@media (max-width:1100px){ .ydock-acts button.on{font-size:13.5px;gap:6px;padding:6px 10px} }
@media (min-width:501px) and (max-width:860px){ .ydock .yswitch button{font-size:13.5px;padding:6px 10px} }
@media (max-width:500px){ .ydock .yswitch button{font-size:0;padding:6px 8px} .ydock-role select{max-width:110px} }
@media (max-width:500px){ .ydock{left:8px;right:8px;transform:none;max-width:none;overflow-x:auto;scrollbar-width:none} .ydock::-webkit-scrollbar{display:none} .ydock > *{flex:none} .ydock-acts button.on{font-size:0;padding:8px;gap:0} }
@media (max-width:500px){ .ymobile .ydock{bottom:78px} .ymobile .demofab{bottom:136px} }
/* On a real phone the app fills the screen exactly: no stage padding, so the tab bar is never pushed off the bottom */
@media (max-width:500px){ .ymobile .stage{padding:0!important} .ymobile .device{height:100vh;height:100dvh} }
/* Phone preview on a laptop or tablet: the phone always fits the window height, the demo bar sits under it, and the page never scrolls */
@media (min-width:501px){
  .ymobile .stage{padding:40px 0 78px!important;min-height:100vh;min-height:100dvh;box-sizing:border-box;align-items:flex-start}
  .ymobile .device{height:min(844px, calc(100vh - 118px))!important;height:min(844px, calc(100dvh - 118px))!important;max-height:none!important;min-height:0!important}
  html:has(body.ymobile),body.ymobile{overflow:hidden}
}
@media (min-width:861px){ .ymobile .demo{max-height:calc(100vh - 118px);max-height:calc(100dvh - 118px);overflow:auto;align-self:flex-start} }
/* ===== demo bar: a strip above the app (never overlapping it) ===== */
:root{--dock:46px}
html.ydock-min{--dock:26px}
.ydock{position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:auto!important;transform:none!important;max-width:none!important;height:var(--dock);border-radius:0!important;box-shadow:none!important;padding:0 10px!important;gap:8px!important;background:#14142B!important;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;z-index:300}
.ydock::-webkit-scrollbar{display:none}.ydock > *{flex:none}
.ydock.min{justify-content:flex-end;padding:0 6px!important}.ydock.min .ydock-min{height:20px;font-size:11px;border-radius:6px}
.ydock-ctl{border:0;background:#FFB020;color:#14142B;border-radius:9px;height:30px;padding:0 12px;font:inherit;font-weight:800;font-size:12.5px;cursor:pointer;white-space:nowrap}
.demofab{display:none!important}
html.has-ydock .wx{height:calc(100vh - var(--dock));height:calc(100dvh - var(--dock));margin-top:var(--dock)}
html.has-ydock .dparent{padding-top:var(--dock)}
/* phone preview on laptops and tablets */
@media (min-width:501px){
  html.has-ydock .ymobile .stage{padding:calc(var(--dock) + 34px) 12px 16px!important}
  html.has-ydock .ymobile .device{height:min(844px, calc(100vh - var(--dock) - 52px))!important;height:min(844px, calc(100dvh - var(--dock) - 52px))!important}
  html.has-ydock .ymobile .demo{max-height:min(844px, calc(100dvh - var(--dock) - 52px))}
}
/* real phones: the app fills the screen under the strip */
@media (max-width:500px){
  html.has-ydock .ymobile .stage{padding:var(--dock) 0 0!important}
  html.has-ydock .ymobile .device{height:calc(100vh - var(--dock))!important;height:calc(100dvh - var(--dock))!important}
  .ydock-tag,.ydock-note,.ydock-hub{display:none!important}
  .ydock-acts button{font-size:0!important;padding:8px!important;gap:0!important}.ydock-acts button i{width:12px;height:12px}
  .ydock .yswitch button{font-size:0!important;padding:6px 8px!important}
  .ydock-role select{max-width:104px;padding:6px 8px}
}
@media (min-width:861px){ .ydock-ctl{display:none} }
/* the demo panel opened from Controls on narrow screens sits under the strip */
@media (max-width:860px){ html.has-ydock .ymobile .demo.open{top:var(--dock)!important} }
