.control-demo { width:min(100%,680px); margin-top:40px; padding:24px 28px 20px; border:1px solid #2c3932; border-radius:24px; background:#0b120f; text-align:left; box-shadow:0 24px 80px #0003; scroll-margin-top:100px; }
.demo-heading,.demo-device-label,.demo-toolbar,.demo-bottom { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.demo-heading { margin-bottom:18px; }
.demo-eyebrow { display:block; color:#8ba599; font-size:10px; letter-spacing:.12em; margin-bottom:5px; }
.demo-heading h2 { font-size:28px; line-height:1.3; color:#edf4ef; }
.demo-caption { display:flex; align-items:center; gap:6px; color:#a6b7ad; font-size:11px; }
.demo-caption i,.demo-live i { width:5px; height:5px; border-radius:50%; background:#99edca; flex-shrink:0; }
.demo-devices { display:flex; flex-direction:column; align-items:center; width:min(100%,440px); margin-inline:auto; }
.demo-laptop { width:94%; margin:0; }
.demo-device-label { margin-bottom:10px; color:#a8b9af; }
.demo-device-label span { font-size:9px; letter-spacing:.07em; }
.demo-device-label span:last-child { color:#768e80; }
.demo-laptop-lid { position:relative; padding:18px 10px 10px; border:1px solid #45544b; border-radius:15px 15px 5px 5px; background:linear-gradient(130deg,#29332d,#121a15 45%,#1c261f); box-shadow:inset 0 1px #d9eee51a,0 12px 28px #0004; }
.demo-camera { position:absolute; top:7px; left:50%; width:4px; height:4px; border-radius:50%; background:#678477; box-shadow:0 0 0 2px #070d09; }
.demo-app-bar { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 12px; background:#1a2921; border:1px solid #2d4135; border-bottom:0; border-radius:5px 5px 0 0; color:#8ba496; font-size:9px; }
.demo-app-name { display:flex; align-items:center; gap:5px; color:#c9ded1; }
.demo-app-name img { width:15px; height:15px; object-fit:contain; }
.demo-live { display:flex; align-items:center; gap:5px; }
.demo-paper { position:relative; aspect-ratio:2/1; overflow:hidden; border:1px solid #2d4135; border-radius:0 0 3px 3px; background:radial-gradient(ellipse at 50% 35%,#152a20,#101d17 80%); }
.demo-paper::before { content:""; position:absolute; inset:0; background-image:linear-gradient(#82998b09 1px,transparent 1px),linear-gradient(90deg,#82998b09 1px,transparent 1px); background-size:32px 32px; pointer-events:none; }
.demo-empty { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:12px; color:#6c8c7a; }
.demo-empty svg { width:50%; max-width:250px; color:#70b795; opacity:.45; }
.demo-empty span { font-size:11px; }
.control-demo[data-has-drawing="true"] .demo-empty { visibility:hidden; }
.demo-output-canvas { position:absolute; inset:0; display:block; width:100%; height:100%; pointer-events:none; }
.demo-laptop-base { position:relative; width:108%; height:10px; margin-left:-4%; border:1px solid #4b5950; border-top:0; border-radius:1px 1px 50% 50% / 1px 1px 90% 90%; background:linear-gradient(#4a574e,#28342c); box-shadow:0 6px 15px #0003; }
.demo-laptop-base span { display:block; width:16%; height:4px; background:#1b251f; border-radius:0 0 5px 5px; margin:auto; }
.demo-connection { display:flex; flex-direction:column; align-items:center; height:28px; margin:4px 0; gap:3px; color:#86b89d; }
.demo-connection span { width:1px; flex:1; background:#3a5e49; }
.demo-connection svg { width:13px; height:13px; }
.demo-tablet { position:relative; width:70%; }
.demo-tablet-body { padding:10px 10px 14px; border:1px solid #4c5b50; border-radius:16px; background:linear-gradient(125deg,#2b362e,#131d17 50%,#26342b); box-shadow:inset 0 1px #d9eee51a,0 12px 24px #0003; }
.demo-pad { position:relative; aspect-ratio:2/1; overflow:hidden; border:1px solid #3d5547; border-radius:6px; background:radial-gradient(circle,#3b5a47 .8px,transparent 1px) 0 0 / 16px 16px,#14231a; touch-action:none; cursor:crosshair; user-select:none; -webkit-user-select:none; -webkit-tap-highlight-color:transparent; }
.demo-pad:focus-visible { outline:2px solid #99edca; outline-offset:4px; }
.demo-touch,.demo-output-cursor { position:absolute; left:var(--demo-x,50%); top:var(--demo-y,50%); width:14px; height:14px; border:1px solid #c6f5dc; border-radius:50%; transform:translate(-50%,-50%); pointer-events:none; opacity:0; }
.control-demo[data-hover="true"] .demo-touch,.control-demo[data-hover="true"] .demo-output-cursor { opacity:.8; }
.control-demo[data-drawing="true"] .demo-touch,.control-demo[data-drawing="true"] .demo-output-cursor { opacity:1; width:10px; height:10px; }
.demo-home-bar { width:20%; height:3px; border-radius:4px; margin:8px auto -8px; background:#6c8172; }
.demo-stylus { position:absolute; z-index:3; left:107%; top:90%; width:clamp(82px,10vw,128px); height:18px; transform-origin:0 50%; transform:translateY(-50%) rotate(-88deg); pointer-events:none; filter:drop-shadow(3px 5px 3px #0005); }
.demo-stylus svg { display:block; width:100%; height:100%; overflow:visible; }
.control-demo[data-intro="waiting"] .demo-stylus { opacity:0; }
.control-demo[data-intro="writing"] .demo-empty,.control-demo[data-intro="guiding"] .demo-empty { visibility:hidden; }
.demo-draw-hint { position:absolute; left:56%; top:65%; width:34px; height:34px; border:1px solid #99edca; border-radius:50%; opacity:0; transform:translate(-50%,-50%); pointer-events:none; background:#99edca0c; }
.control-demo[data-awaiting-input="true"][data-intro="guiding"] .demo-draw-hint,.control-demo[data-awaiting-input="true"][data-intro="ready"] .demo-draw-hint { opacity:calc(.5 + var(--demo-hint,0) * .35); transform:translate(-50%,-50%) scale(calc(1 + var(--demo-hint,0) * .55)); }
.control-demo[data-awaiting-input="true"][data-intro="guiding"] .demo-pad,.control-demo[data-awaiting-input="true"][data-intro="ready"] .demo-pad { border-color:#81c9a5; box-shadow:inset 0 0 20px #70dca510,0 0 0 3px #99edca0a; }
.demo-toolbar { justify-content:center; flex-wrap:wrap; gap:12px; margin-top:16px; }
.demo-tools,.demo-history,.demo-colors { display:flex; align-items:center; gap:4px; }
.demo-tools { border:1px solid #314337; border-radius:9px; padding:3px; background:#101b14; }
.demo-toolbar button { min-height:40px; padding:7px 12px; color:#b6c8bc; border-radius:6px; font:inherit; font-size:12px; cursor:pointer; background:transparent; border:1px solid transparent; }
.demo-tools button[aria-pressed="true"] { background:#284635; color:#d4f5e1; border-color:#41684e; }
.demo-colors { padding:0 6px; }
.demo-colors button { display:grid; place-items:center; width:40px; min-width:40px; padding:8px; border-radius:50%; }
.demo-colors button::after { content:""; width:15px; height:15px; border-radius:50%; background:var(--ink); }
.demo-colors button[aria-pressed="true"] { border-color:#708d7b; }
.demo-toolbar button:hover:not(:disabled) { color:#eef8f1; background-color:#23372a; }
.demo-toolbar button:disabled { opacity:.35; cursor:default; }
.demo-history { border-left:1px solid #314337; padding-left:10px; }
.demo-history .demo-reset { border-bottom:1px solid transparent; }
.demo-bottom { margin-top:12px; align-items:baseline; flex-wrap:wrap; gap:4px 12px; }
.demo-bottom p { color:#b4c5ba; max-width:none; }
.demo-local-note,.demo-keyboard-help { color:#8ea296; font-size:11px; }
.demo-keyboard-help { margin-top:6px; line-height:1.6; }
.demo-feedback { color:#9ae9c4; margin-top:10px; min-height:1.7em; font-size:12px; }
.demo-feedback-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:10px; min-height:32px; }
.demo-feedback-row .demo-feedback { margin-top:0; }
.demo-skip-intro { flex-shrink:0; min-height:32px; font-size:11px; color:#b2c8ba; text-decoration:underline; text-underline-offset:4px; }
.demo-skip-intro[hidden] { display:none; }
@media(max-width:600px) {
  .control-demo { padding:22px 16px 18px; margin-top:32px; border-radius:18px; }
  .demo-heading { align-items:flex-start; margin-bottom:18px; gap:12px; }
  .demo-heading h2 { font-size:25px; }
  .demo-caption { max-width:115px; font-size:10px; margin-top:6px; }
  .demo-laptop { width:94%; }
  .demo-tablet { width:80%; }
  .demo-tablet-body { padding:8px 8px 13px; border-radius:13px; }
  .demo-device-label { flex-direction:row; align-items:center; gap:6px; }
  .demo-device-label span { font-size:8px; letter-spacing:0; }
  .demo-laptop-lid { padding:15px 6px 6px; border-radius:11px 11px 4px 4px; }
  .demo-app-bar { padding:6px; font-size:8px; gap:5px; }
  .demo-app-bar > span:nth-child(2) { display:none; }
  .demo-app-name img { width:12px; height:12px; }
  .demo-empty { gap:6px; }
  .demo-empty span { font-size:9px; }
  .demo-stylus { width:88px; height:15px; }
  .demo-toolbar { gap:6px; margin-top:18px; }
  .demo-toolbar button { padding:7px 9px; font-size:11px; }
  .demo-colors { padding:0; gap:0; }
  .demo-colors button { width:34px; min-width:34px; }
  .demo-history { padding-left:5px; gap:0; }
  .demo-bottom p { font-size:12px; }
  .demo-keyboard-help { font-size:10px; }
}
@media(pointer:coarse) { .demo-keyboard-help { display:none; } }
