#mobile-cockpit{display:none}
@media(max-width:700px) and (orientation:portrait){
 html,body{height:100%;height:100dvh;overscroll-behavior:none}
 #viewport{height:100%;height:100dvh;background:linear-gradient(#02090f,#071825 60%,#02070c)}
 #stage .navigation-pedestal,#stage .home-language{display:none}
 #mobile-cockpit{display:block;position:fixed;inset:0;z-index:20;pointer-events:none;color:#cce8f1}
 .phone-header{position:absolute;left:0;right:0;top:0;height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 15px;background:linear-gradient(#233d4d,#0c1b26);border-bottom:2px solid #71d9ee;box-shadow:0 3px 16px #0008;font-size:16px}
 .phone-header b{letter-spacing:2px;font-size:19px}
 .phone-header span{font-weight:650}
 .phone-header :is(b,span){
  color:#e2eef5;
  text-shadow:0 1px #203644,0 2px 2px #000c;
 }
 @supports ((background-clip:text) or (-webkit-background-clip:text)){
  .phone-header :is(b,span){
   background:linear-gradient(180deg,#faffff 14%,#c4d3dc 45%,#829bab 51%,#e3eff5 74%,#a4b7c3 94%);
   -webkit-background-clip:text;
   background-clip:text;
   color:transparent;
   text-shadow:none;
   filter:drop-shadow(0 -1px 0 #fff3) drop-shadow(0 1px 0 #112631) drop-shadow(0 2px 2px #000b);
  }
 }
 .phone-console{pointer-events:auto;position:absolute;top:calc(var(--phone-scene-bottom) + 8px);bottom:calc(66px + env(safe-area-inset-bottom));left:10px;right:10px;display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid #4c6e80;background:linear-gradient(125deg,#1a303f,#07131e 65%);box-shadow:inset 0 1px #a5c4d344,0 7px 18px #0008;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#4c6e80 transparent;clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px)}
 .phone-section-label{font-size:12px;letter-spacing:1px;color:#9acbd8;flex-shrink:0}
 .phone-screen-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:5px;
  flex-shrink:0;
 }
 .phone-screen-key{
  position:relative;
  aspect-ratio:7/10;
  min-width:0;
  min-height:96px;
  border:0;
  padding:0;
  background:none;
  color:#d8f4ff;
  touch-action:manipulation;
 }
 .phone-screen-key::after{
  content:"";
  position:absolute;
  inset:0;
  border:solid transparent;
  border-width:12px 10px 14px;
  border-image:url('assets/program-frame.png') 160 190 190 190 stretch;
  pointer-events:none;
 }
 .phone-screen-face{
  position:absolute;
  inset:10px 8px 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:4px;
  overflow:hidden;
  border-radius:4px;
  background:#04131e;
  box-shadow:inset 0 0 12px #0009;
 }
 .phone-screen-face img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.66}
 .phone-screen-caption{
  position:relative;
  align-self:stretch;
  padding:3px 1px;
  font-size:clamp(9px,2.6vw,13px);
  line-height:1.16;
  text-align:center;
  text-shadow:0 1px 2px #000,0 0 5px #000,0 0 9px #000;
  text-wrap:balance;
  overflow-wrap:anywhere;
 }
 .phone-screen-glyph{font-size:26px;color:#9de7ff}
 .phone-route-keys{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;flex-shrink:0}
 .phone-route-keys button,.phone-toolbar button{
  position:relative;
  isolation:isolate;
  min-width:0;
  min-height:44px;
  padding:4px clamp(6px,2.1vw,12px) 8px;
  border:0;
  background:none;
  color:#e4f6ff;
  font-size:clamp(10px,2.9vw,13px);
  line-height:1.15;
  text-shadow:0 1px 2px #000;
  text-wrap:balance;
  overflow-wrap:anywhere;
  touch-action:manipulation;
 }
 .phone-route-keys button::before,.phone-toolbar button::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:url('assets/key-v7.png') center/100% 100% no-repeat;
 }
 .phone-route-keys button:disabled{cursor:default}
 .phone-toolbar{pointer-events:auto;position:absolute;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:linear-gradient(#263c49,#09131c);border-top:1px solid #698697}
 .phone-screen-key:focus-visible,.phone-route-keys button:focus-visible,.phone-toolbar button:focus-visible{outline:2px solid #ffd077;outline-offset:-2px}
 .phone-screen-key:active::after,.phone-route-keys button:not(:disabled):active::before,.phone-toolbar button:active::before{filter:brightness(1.28)}
 /* Preserve the common frame via nine-slice borders, not a stretched bitmap. */
 .program-window{border:solid transparent;border-width:40px 32px 44px;border-image:url('assets/program-frame.png') 160 190 190 190 / 40px 32px 44px 32px / 0 stretch;background:#071827;box-shadow:0 10px 40px #000b}
 .program-frame{display:none}
 .program-bed{left:0;right:0;top:0;bottom:0;border-radius:0}
 .program-arrow{width:42px;height:42px;top:50%;z-index:8}
 .program-arrow.previous{left:-32px}.program-arrow.next{right:-32px}
 .program-live.application-live{width:100%!important;height:100%!important;zoom:1!important;min-width:0}
 .program-live .screen-app{padding:14px 12px;gap:0;justify-content:center}
 .program-live .screen-app h2{font-size:21px;line-height:1.3;letter-spacing:0;margin:5px 0 14px}
 .program-live .screen-app p,.program-live .question-detail p{font-size:15px;line-height:1.55;margin:0 0 12px;overflow-wrap:anywhere}
 .program-live .screen-app>small{font-size:11px;letter-spacing:0;line-height:1.4}
 .program-live .real-key,.program-live .menu-grid .real-key,.program-live .theme-keys .real-key,.program-live .settings-row .real-key,.program-live .question-tabs .real-key,.program-live .question-footer .real-key{height:44px;min-width:0;width:auto;padding:5px}
 .program-live .real-key span,.program-live .menu-grid .real-key span,.program-live .theme-keys .real-key span,.program-live .settings-row .real-key span,.program-live .question-tabs .real-key span,.program-live .question-footer .real-key span{font-size:13px;line-height:1.2;letter-spacing:0;white-space:normal;text-wrap:balance}
 .program-live .menu-app{justify-content:flex-start}
 .program-live .menu-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .program-live .appearance{margin-top:12px}.program-live .appearance>span{font-size:11px;letter-spacing:0}
 .program-live .theme-keys{gap:4px;margin-top:5px}.program-live .theme-keys .real-key span{font-size:10px}
 .program-live .settings-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:10px}
 .program-live .contact-lines{gap:12px;margin:0 0 16px}.program-live .contact-lines a{font-size:16px;overflow-wrap:anywhere}
 .program-live .contact-app>.real-key,.program-live .quote-app>.real-key{min-width:0;align-self:stretch}
 .program-live .question-app{justify-content:flex-start}.program-live .question-tabs{gap:7px;margin-bottom:10px;display:grid;grid-template-columns:1fr 1fr}
 .program-live .question-detail h3{font-size:15px;margin:0 0 8px}.program-live .question-footer{gap:6px;display:grid;grid-template-columns:1fr 1fr;margin-top:auto}
 .program-live .question-footer a{font-size:11px;margin:0;grid-column:1/-1}.program-live .question-app>small:last-child{font-size:10px;padding-top:8px}
 .program-live .form-app{justify-content:flex-start}.program-live .form-grid{grid-template-columns:1fr 1fr;gap:10px 8px}.program-live .form-grid label{font-size:12px}
 .program-live .form-grid input,.program-live .form-grid textarea{font-size:16px;padding:6px;height:40px}.program-live .form-grid textarea{height:80px}
 .program-live .form-footer{display:block;margin-top:12px}.program-live .form-footer .real-key{min-width:0;width:100%}.program-live .form-footer p,.program-live .form-app #form-status{font-size:11px;margin-top:7px}
 .program-live .quote-keys{display:grid;grid-template-columns:1fr;gap:7px;margin:5px 0 12px}.program-live .quote-keys .real-key{min-width:0;height:44px}
 .photo-program{padding:8px;gap:8px}.program-toolbar{gap:6px}.program-label{font-size:10px}.program-toolbar strong{font-size:13px}.photo-index{font-size:12px}
 .photo-status{flex-wrap:wrap;gap:6px}.photo-status span{font-size:10px}.digital-command{font-size:13px;min-height:44px}
}
@media(max-width:700px) and (orientation:portrait) and (max-height:680px){
 .phone-console{padding:8px;gap:6px}
 .phone-screen-glyph{display:none}
 .program-live .screen-app{padding:8px}.program-live .menu-grid{gap:4px}.program-live .menu-app h2{font-size:18px;margin-bottom:8px}
 .program-live .appearance{display:none}.program-live .question-app h2{font-size:18px}.program-live .question-detail p{font-size:14px}
}

@media(max-width:700px) and (orientation:portrait){#viewer{bottom:calc(66px + env(safe-area-inset-bottom))}}


@media(max-width:700px) and (orientation:portrait) and (max-height:560px){.phone-console{padding:6px;gap:4px}.phone-section-label{display:none}}

@media(max-width:700px) and (orientation:portrait){.program-live .screen-app{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}.program-live .menu-grid,.program-live .appearance,.program-live .settings-row,.program-live .question-tabs,.program-live .question-detail,.program-live .question-footer,.program-live .form-grid{flex-shrink:0}}

