/* Tactile controls; depth is reserved for interaction, never ordinary task frames. */
body.storefront {
  --yst-shadow-control: 0 2px 4px rgba(24,35,54,.06), 0 5px 12px rgba(24,35,54,.08);
  --yst-shadow-control-hover: 0 4px 7px rgba(24,35,54,.08), 0 9px 18px rgba(24,35,54,.12);
  --yst-shadow-inspect: 0 12px 28px rgba(24,35,54,.13);
}
body.storefront :is(.store-button,.shop-action-button,.home-configure,.home-play,.accent-button,.secondary-button,.platform-button,.preview-button,.product-image-zoom,.tutorial-button,.tutorial-close,.tutorial-retry,#storeSearchButton,.shop-cart-nav,.mobile-menu-toggle,.shipment-header-link):not(:disabled):not([aria-disabled=true]) {
  box-shadow: var(--yst-shadow-control);
  transition: box-shadow 180ms ease-out, background-color 150ms ease-out, color 150ms ease-out, transform 150ms cubic-bezier(.16,1,.3,1);
}
body.storefront :is(.store-button,.shop-action-button,.home-configure,.home-play,.accent-button,.secondary-button,.platform-button,.preview-button,.product-image-zoom,.tutorial-button,.tutorial-close,.tutorial-retry,#storeSearchButton,.shop-cart-nav,.mobile-menu-toggle,.shipment-header-link):active:not(:disabled):not([aria-disabled=true]) {
  transform: translateY(1px) scale(.98);
  box-shadow: 0 1px 3px rgba(24,35,54,.12);
}
body.storefront :is(button,[role=button]):disabled { box-shadow: none; }
body.storefront :is(.store-filters button,.support-topics button,.product-subtab)[aria-pressed=true],
body.storefront .product-subtab.is-active { box-shadow: 0 2px 5px rgba(24,35,54,.09); }
body.storefront :is(.store-product,.product-related-link) {
  transition: transform 200ms cubic-bezier(.16,1,.3,1), box-shadow 200ms ease-out, border-color 180ms ease-out, background-color 180ms ease-out;
}
body.storefront .home-canvas [data-region=hardware-kit] {
  transform-origin: 50% 55%;
  transition: transform 240ms cubic-bezier(.16,1,.3,1), filter 240ms ease-out;
}
body.storefront .home-art.is-inspecting [data-region=hardware-kit] {
  transform: perspective(900px) rotateX(var(--kit-pitch,0deg)) rotateY(var(--kit-yaw,0deg)) translateZ(12px);
  filter: drop-shadow(0 10px 10px rgba(24,35,54,.16));
}
@media (hover:hover) and (pointer:fine) {
  body.storefront :is(.store-button,.shop-action-button,.home-configure,.home-play,.accent-button,.secondary-button,.platform-button,.preview-button,.product-image-zoom,.tutorial-button,.tutorial-close,.tutorial-retry,#storeSearchButton,.shop-cart-nav,.mobile-menu-toggle,.shipment-header-link):hover:not(:disabled):not([aria-disabled=true]) {
    transform: translateY(-2px);
    box-shadow: var(--yst-shadow-control-hover);
  }
  body.storefront :is(.store-product,.product-related-link):hover {
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--yst-shadow-inspect);
  }
  body.storefront .home-tool .tool-icon { transition: transform 200ms cubic-bezier(.16,1,.3,1); }
  body.storefront .home-tool:hover .tool-icon { transform: perspective(240px) rotateY(-12deg) translateZ(6px); }
}

/* The owner's real videos join the existing white store before its footer. */
body.storefront .video-guides {
  width: min(1280px,calc(100% - 64px));
  margin: 56px auto 64px;
  padding-top: 32px;
  border-top: 1px solid var(--yst-line);
  scroll-margin-top: 100px;
  color: var(--yst-ink);
  font: 400 16px/1.65 YSTBody,sans-serif;
}
body.storefront[data-active-tab=cart] #video-guides { display:none; }
body.storefront .video-guides-heading { display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:24px; }
body.storefront .video-guides h2 { margin:0;font:600 28px/1.35 YSTBody,sans-serif;letter-spacing:-.025em; }
body.storefront .video-guides-heading p { max-width:65ch;margin:10px 0 0;color:var(--yst-muted);font-size:16px; }
body.storefront .video-channel { flex:none;display:flex;align-items:center;gap:10px;padding-top:8px;font-size:14px;font-weight:600; }
body.storefront .video-channel svg { width:24px;height:24px;color:var(--yst-blue); }
body.storefront .tutorial-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 24px; }
body.storefront .tutorial-card {
  display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0;padding:0;border:0;border-radius:0;background:transparent;
  color:var(--yst-ink);font:400 16px/1.65 YSTBody,sans-serif;text-align:left;cursor:pointer;
}
body.storefront .tutorial-media { display:block;position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:16px;background:var(--yst-soft); }
body.storefront .tutorial-media img { display:block;width:100%;height:100%;object-fit:cover;transition:transform 280ms cubic-bezier(.16,1,.3,1); }
body.storefront .tutorial-play { position:absolute;left:50%;top:50%;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#fff;color:var(--yst-blue);box-shadow:0 4px 16px rgba(24,35,54,.22);transform:translate(-50%,-50%);transition:transform 180ms ease-out,background-color 150ms ease-out,color 150ms ease-out; }
body.storefront .tutorial-play svg { width:22px;height:22px;margin-left:3px; }
body.storefront .tutorial-duration { position:absolute;right:12px;bottom:12px;padding:2px 7px;border-radius:6px;background:#182336;color:#fff;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums; }
body.storefront .tutorial-category { display:block;margin-top:16px;color:var(--yst-muted);font-size:14px; }
body.storefront .tutorial-card strong { margin-top:6px;font:600 18px/1.5 YSTBody,sans-serif; }
body.storefront .tutorial-watch { display:inline-flex;align-items:center;gap:8px;margin-top:12px;color:var(--yst-blue);font-size:14px;font-weight:600; }
body.storefront .tutorial-watch svg { width:16px;height:16px; }
body.storefront .tutorial-card:focus-visible { outline:3px solid var(--yst-blue);outline-offset:6px;border-radius:16px; }
body.storefront .tutorial-more-row { display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:28px; }
body.storefront .tutorial-more-row p { margin:0;color:var(--yst-muted);font-size:14px; }
body.storefront .tutorial-button,.tutorial-retry { display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;border:0;border-radius:10px;padding:10px 16px;background:#eaf2ff;color:#0057d9;font:600 14px/1.5 YSTBody,sans-serif;cursor:pointer; }
body.storefront .tutorial-button svg { width:18px;height:18px; }
body.storefront .tutorial-grid-more { margin-top:32px; }
body.storefront .tutorial-grid[hidden] { display:none!important; }
body.storefront .tutorial-inline { margin:0 0 24px; }
body.storefront .product-article .tutorial-inline { margin:20px 0 0; }
body.storefront .store-support-main .tutorial-inline { margin-top:16px; }
body.storefront .footer-video-link { width:fit-content;min-height:44px;padding:0;border:0;background:transparent;color:var(--yst-muted);font:400 14px/1.8 YSTBody,sans-serif;text-align:left;cursor:pointer; }
body.storefront .footer-video-link:hover { color:var(--yst-blue); }
body.storefront .video-guides h2:focus { outline:none; }
@media (hover:hover) and (pointer:fine) {
  body.storefront .tutorial-card:hover .tutorial-media img { transform:scale(1.035); }
  body.storefront .tutorial-card:hover .tutorial-play { transform:translate(-50%,-50%) scale(1.1);background:var(--yst-blue);color:#fff; }
  body.storefront .tutorial-card:hover strong { color:var(--yst-blue);text-decoration:underline;text-underline-offset:4px; }
}

/* Native dialog owns protected focus; its single player exists only while open. */
body.storefront .tutorial-dialog {
  width:min(980px,calc(100% - 40px));max-height:calc(100dvh - 40px);margin:auto;padding:0;overflow:auto;
  border:0;border-radius:16px;background:#fff;color:var(--yst-ink);box-shadow:0 24px 70px rgba(24,35,54,.28);
  font:400 16px/1.65 YSTBody,sans-serif;
}
body.storefront .tutorial-dialog[open] { animation:tutorial-arrive 240ms cubic-bezier(.16,1,.3,1); }
body.storefront .tutorial-dialog::backdrop { background:rgba(24,35,54,.68); }
body.storefront .tutorial-toolbar { display:flex;align-items:flex-start;gap:20px;justify-content:space-between;padding:20px 24px; }
body.storefront .tutorial-dialog h2 { max-width:65ch;margin:0;font:600 20px/1.5 YSTBody,sans-serif;letter-spacing:-.02em; }
body.storefront .tutorial-close { display:grid;place-items:center;flex:none;width:44px;height:44px;padding:10px;border:0;border-radius:10px;background:#f4f7fc;color:var(--yst-ink);cursor:pointer; }
body.storefront .tutorial-close svg { width:22px;height:22px; }
body.storefront .tutorial-player { position:relative;aspect-ratio:16/9;background:#090a0f; }
body.storefront .tutorial-player iframe { display:block;width:100%;height:100%;border:0; }
body.storefront .tutorial-player-note { margin:0;padding:16px 24px 0;color:var(--yst-muted);font-size:14px; }
body.storefront .tutorial-dialog-description { margin:8px 0 0;padding:0 24px;color:var(--yst-muted);font-size:14px; }
body.storefront .tutorial-recovery { display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:16px 24px; }
body.storefront .tutorial-recovery .tutorial-dialog-description { margin:0;padding:0; }
body.storefront .tutorial-related { display:flex;gap:8px;flex-wrap:wrap;margin:0;padding:0 24px 24px; }
body.storefront .tutorial-related button { min-height:44px;padding:10px 12px;border:1px solid var(--yst-line);border-radius:10px;background:#fff;color:var(--yst-ink);font:400 14px/1.5 YSTBody,sans-serif;cursor:pointer; }
body.storefront .tutorial-related button[aria-pressed=true] { color:var(--yst-blue);border-color:var(--yst-blue);background:#eaf2ff; }
body.storefront .tutorial-related button:hover { background:var(--yst-soft); }
body.storefront .tutorial-retry:focus-visible,.tutorial-dialog button:focus-visible { outline:3px solid #0057d9;outline-offset:4px; }
html:has(.tutorial-dialog[open]) { overflow:hidden;scrollbar-gutter:stable; }
@keyframes tutorial-arrive { from { opacity:.8;transform:translateY(10px) scale(.985); } to { opacity:1;transform:none; } }
@media(max-width:900px) {
  body.storefront .video-guides-heading { display:block; }
  body.storefront .video-channel { margin-top:16px;padding:0; }
  body.storefront .tutorial-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
  body.storefront .video-guides { width:calc(100% - 32px);margin:40px auto 48px;padding-top:24px; }
  body.storefront .video-guides h2 { font-size:24px; }
  body.storefront .tutorial-grid { grid-template-columns:minmax(0,1fr);gap:28px; }
  body.storefront .tutorial-card strong { font-size:18px; }
  body.storefront .tutorial-dialog { width:calc(100% - 24px);max-height:calc(100dvh - 24px); }
  body.storefront .tutorial-toolbar { padding:16px;gap:12px; }
  body.storefront .tutorial-dialog h2 { font-size:18px; }
  body.storefront .tutorial-player-note,.tutorial-dialog-description { padding-left:16px;padding-right:16px; }
  body.storefront .tutorial-recovery { padding:16px; }
  body.storefront .tutorial-related { padding:0 16px 16px; }
}
@media(prefers-reduced-motion:reduce) {
  body.storefront .home-art.is-inspecting [data-region=hardware-kit],
  body.storefront :is(.store-product,.product-related-link):hover,
  body.storefront .home-tool:hover .tool-icon { transform:none;filter:none; }
  body.storefront .tutorial-dialog[open] { animation:none; }
  body.storefront :is(.tutorial-media img,.tutorial-play) { transition:none; }
  body.storefront .tutorial-card:hover .tutorial-media img { transform:none; }
  body.storefront .tutorial-card:hover .tutorial-play { transform:translate(-50%,-50%); }
  body.storefront :is(.store-button,.shop-action-button,.home-configure,.home-play,.accent-button,.secondary-button,.platform-button,.preview-button,.product-image-zoom,.tutorial-button,.tutorial-close,.tutorial-retry,#storeSearchButton,.shop-cart-nav,.mobile-menu-toggle,.shipment-header-link):is(:hover,:active):not(:disabled):not([aria-disabled=true]) { transform:none; }
}
