html.ad-open {overflow:hidden}
dialog.arko-demo {
  color-scheme:dark; width:min(915px,calc(100% - 32px)); max-width:none; max-height:calc(100dvh - 26px);
  margin:auto; padding:0; border:1px solid #494b4c; border-radius:20px; box-sizing:border-box;
  background:#191b1d; color:#f6f5f2; box-shadow:0 40px 90px #0006; overscroll-behavior:contain;
  font-family:inherit; text-align:left;
}
.arko-demo::backdrop {background:#08090bc9;backdrop-filter:blur(5px)}
.arko-demo p,.arko-demo h2 {margin:0}
.arko-demo .ad-head,.arko-demo .ad-foot {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 24px}
.arko-demo .ad-head p {font-weight:500;line-height:1.35;color:#c5c6c5;font-size:.88rem;margin-bottom:3px}
.arko-demo .ad-head h2 {color:#f8f6f2;font:inherit;font-weight:650;font-size:clamp(1.5rem,3vw,2rem);line-height:1.1;letter-spacing:-.055em}
.arko-demo .ad-stage {position:relative;isolation:isolate;overflow:hidden;height:clamp(215px,51dvh,490px);background:radial-gradient(ellipse at 52% 56%,#3b3d3f 0%,#272a2c 46%,#212325 85%);border-block:1px solid #454749}
.arko-demo .ad-poster,.arko-demo .ad-canvas {position:absolute;inset:0;width:100%;height:100%;margin:0}
.arko-demo .ad-poster {object-fit:contain;z-index:1}
.arko-demo .ad-poster[hidden]{display:none}
.arko-demo canvas{width:100%;height:100%;display:block;touch-action:none;cursor:grab}
.arko-demo canvas:active{cursor:grabbing}
.arko-demo button {font:inherit;position:static;transform:none;display:inline-flex;align-items:center;justify-content:center;line-height:1;letter-spacing:normal;color:#f8f6f2;background:#323436;border:1px solid #555759;border-radius:8px;cursor:pointer;min-height:44px;padding:0 13px}
.arko-demo button:hover {background:#424446;border-color:#aaa}
.arko-demo button:disabled{opacity:.45;cursor:default}
.arko-demo button:focus-visible,.arko-demo canvas:focus-visible {outline:2px solid #ff895c;outline-offset:-3px}
.arko-demo button.ad-close {border-radius:50%;width:44px;height:44px;min-width:44px;padding:0;font:400 28px/1 system-ui}
.arko-demo .ad-caption,.arko-demo button.ad-wire {position:absolute;z-index:2;top:15px;color:#eeefea;background:#1a1b1ce8;border:1px solid #676866;font:500 .8rem/1.2 ui-monospace,monospace}
.arko-demo .ad-caption {left:16px;border-radius:5px;padding:7px 10px}
.arko-demo button.ad-wire {right:16px;min-height:35px;border-radius:6px;min-width:80px}
.arko-demo button.ad-wire[aria-pressed=true] {border-color:#f28d60;color:#ffad83}
.arko-demo .ad-foot {padding-block:14px}
.arko-demo .ad-status {font:inherit;font-size:.9rem;line-height:1.4;color:#d4d4d0;max-width:48ch}
.arko-demo .ad-tools {display:flex;align-items:center;gap:6px;flex-shrink:0}
.arko-demo .ad-zoom-in,.arko-demo .ad-zoom-out {font-size:23px;width:44px;padding:0}
.arko-demo .ad-reset {font-size:.875rem}
@media (max-width:550px){
  dialog.arko-demo {width:calc(100% - 20px);border-radius:15px}
  .arko-demo .ad-head,.arko-demo .ad-foot {padding-inline:15px}
  .arko-demo .ad-foot {flex-wrap:wrap}
  .arko-demo .ad-stage {height:clamp(215px,43dvh,340px)}
  .arko-demo .ad-status {min-height:2.6em}
  .arko-demo .ad-caption {left:10px}
  .arko-demo button.ad-wire {right:10px}
}
