/* One phone, with working demo navigation inside the screen. */
.demo-mobile-phone{display:none}
.is-mobile-demo.demo-shell{border:0;border-radius:0;overflow:visible;background:transparent;box-shadow:none;scroll-margin-top:8px}
.is-mobile-demo>.demo-bar,.is-mobile-demo>.demo-layout,.is-mobile-demo>.demo-footer{display:none}
.is-mobile-demo .demo-mobile-phone{position:relative;display:grid;grid-template-rows:48px minmax(0,1fr) 38px 62px 22px;width:min(100%,420px);height:calc(100vh - 16px);height:calc(100svh - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));max-height:840px;min-height:300px;margin:0 auto;border:6px solid #17383e;border-radius:28px;overflow:hidden;background:#f3f7f6;box-shadow:0 14px 30px #0b282e22;isolation:isolate}
.demo-phone-header{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:5px 9px;border-bottom:1px solid #dbe6e0;background:#fff}
.demo-phone-brand{font-size:12px;line-height:1.15;width:48px;color:#103239;letter-spacing:-.03em}
.demo-phone-modes{display:flex;padding:3px;border-radius:9px;background:#e7f2ed;gap:2px}
.demo-phone-modes button{border:0;border-radius:6px;background:transparent;color:#3c575b;min-height:34px;padding:5px 12px;font:700 13px Arial,sans-serif;cursor:pointer}
.demo-phone-modes button[aria-pressed=true]{background:#087f6b;color:#fff}
.demo-phone-window{position:relative;min-width:0;min-height:0;overflow:hidden;background:#f3f7f6}
.demo-phone-image{display:block;position:absolute;left:0;top:0;width:100%;height:auto;max-width:none;pointer-events:none;user-select:none}
.demo-phone-views{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:4px;padding:2px 7px;background:#f3f7f6;border-top:1px solid #dbe6e0}
.demo-phone-views button{font:700 11px Arial,sans-serif;min-height:32px;padding:5px;border:0;border-radius:6px;background:#dcefe8;color:#075e51;cursor:pointer;white-space:nowrap}
.demo-phone-views button:disabled{color:#849b94;background:transparent;cursor:default}
.demo-phone-view-count{font-size:10px;line-height:1.2;color:#536a70;white-space:nowrap}
.demo-phone-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:3px 4px;background:#f8fbfa;border-top:1px solid #d2e1dc}
.demo-phone-nav button{min-width:0;padding:3px 1px;border:0;border-radius:11px;background:transparent;color:#526d76;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font:600 10px/1.25 Arial,sans-serif;cursor:pointer}
.demo-phone-nav button[aria-current=page]{background:#dcefe8;color:#007e6a}
.demo-phone-nav-icon{font:24px/1 Arial,sans-serif}
.demo-phone-notice{display:flex;align-items:center;justify-content:center;background:#fff}
.demo-phone-notice button{border:0;padding:2px;background:transparent;color:#536a70;font:10px/1.4 Arial,sans-serif;cursor:pointer}
.demo-mobile-phone button:focus-visible{outline:2px solid #007e6a;outline-offset:-2px}
.demo-phone-menu[hidden]{display:none!important}
.demo-phone-menu{position:absolute;inset:48px 0 22px;z-index:2;background:#f3f7f6;padding:12px;display:flex;flex-direction:column;gap:12px}
.demo-phone-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#103239;font-size:16px}
.demo-phone-menu-heading button{border:1px solid #aac7bd;border-radius:7px;background:#fff;min-height:36px;padding:6px 10px;font:600 12px Arial,sans-serif;color:#103239;cursor:pointer}
.demo-phone-menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.demo-phone-menu-grid button{min-width:0;min-height:44px;padding:7px;border:1px solid #c7ddd5;border-radius:9px;background:white;color:#103239;font:600 13px/1.25 Arial,sans-serif;cursor:pointer}
.demo-phone-menu-grid button[aria-pressed=true]{background:#087f6b;border-color:#087f6b;color:white}
.demo-phone-help{font-size:14px;line-height:1.65;color:#3c575b;margin:0}
@media(max-width:650px){.demo-heading{margin-bottom:16px}.demo-heading>p{font-size:14px;line-height:1.6;margin-top:10px}.demo-section>.container{width:calc(100% - 20px)}}
@media(max-width:900px) and (max-height:500px) and (orientation:landscape){
 .is-mobile-demo .demo-mobile-phone{width:100%;max-width:760px;grid-template-columns:minmax(0,1fr) 190px;grid-template-rows:44px minmax(0,1fr) 38px 22px;border-radius:22px}
 .demo-phone-header{grid-column:1/-1}
 .demo-phone-window{grid-column:1;grid-row:2}
 .demo-phone-views{grid-column:1;grid-row:3}
 .demo-phone-nav{grid-column:2;grid-row:2/4;grid-template-columns:1fr 1fr;align-items:stretch;border-top:0;border-left:1px solid #d2e1dc;padding:6px}
 .demo-phone-nav button{font-size:12px;min-height:44px}
 .demo-phone-notice{grid-column:1/-1}
 .demo-phone-menu{inset:44px 0 22px;padding:8px;gap:8px}
 .demo-phone-menu-grid{grid-template-columns:repeat(3,1fr);gap:5px}
 .demo-phone-menu-grid button{min-height:40px}
 .demo-phone-help{font-size:13px;line-height:1.5}
}
