/* Generated by build.js: the Exercise Visualizer's styles. Do not edit by hand. */
/* Styled to match Sword 3D Studio (Sword Brand Guidelines 2026):
         Lora for headlines and key numbers, Figtree for body copy, greyscale for type,
         Coral / Purple / Blue gradients only as accents. */
      :root {
        --grey-900: #0d0d0d;
        --grey-800: #2e2e2e;
        --grey-700: #5e5e5e;
        --grey-600: #808080;
        --grey-500: #ababab;
        --grey-400: #c2c2c2;
        --grey-300: #dbdbdb;
        --grey-200: #e8e8e8;
        --grey-100: #f3f3f3;
        --grey-50: #fafafa;
        --coral: #ff7e7e;
        --purple: #be95e5;
        --blue: #4a89e8;
        --gradient: linear-gradient(90deg, var(--coral), var(--purple) 50%, var(--blue));
        --gradient-angle: linear-gradient(120deg, var(--coral), var(--purple) 55%, var(--blue));
        --serif: "Lora", Georgia, "Times New Roman", serif;
        --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
        --radius: 14px;
        --shadow-sm: 0 1px 2px rgba(13, 13, 13, 0.08);
        --shadow-md: 0 1px 2px rgba(13, 13, 13, 0.05), 0 8px 24px rgba(13, 13, 13, 0.07);
        --shadow-lg: 0 1px 2px rgba(13, 13, 13, 0.06), 0 20px 50px rgba(13, 13, 13, 0.1);
        --focus: 0 0 0 3px rgba(74, 137, 232, 0.35);
        --gutter: 40px;
      }
      * {
        box-sizing: border-box;
      }
      body {
        margin: 0;
        font-family: var(--sans);
        font-size: 14px;
        line-height: 20px;
        background: var(--grey-100);
        color: var(--grey-800);
        -webkit-font-smoothing: antialiased;
      }
      button,
      select {
        font: inherit;
        color: inherit;
        cursor: pointer;
      }
      button:focus-visible,
      select:focus-visible,
      summary:focus-visible,
      a:focus-visible,
      .card:focus-visible {
        outline: none;
        box-shadow: var(--focus);
      }
      .hidden {
        display: none !important;
      }
      .empty {
        color: var(--grey-600);
      }

      /* Brand mesh glow, anchored to the bottom-right corner */
      .glow {
        position: fixed;
        right: -18vmax;
        bottom: -22vmax;
        width: 60vmax;
        height: 60vmax;
        border-radius: 50%;
        background: radial-gradient(circle at 35% 65%, rgba(255, 126, 126, 0.55), transparent 55%),
          radial-gradient(circle at 60% 40%, rgba(190, 149, 229, 0.5), transparent 55%),
          radial-gradient(circle at 75% 70%, rgba(74, 137, 232, 0.5), transparent 58%);
        filter: blur(60px);
        opacity: 0.45;
        pointer-events: none;
        z-index: 0;
      }

      /* ---------- Layout: white panel on the left, content on the right ---------- */
      .layout {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: flex-start;
        min-height: 100vh;
      }
      .content {
        flex: 1 1 auto;
        min-width: 0;
      }

      /* ---------- Panel (sidebar) ---------- */
      #sidebar {
        flex: none;
        width: 340px;
        position: sticky;
        top: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
        background: #fff;
        border-right: 1px solid var(--grey-200);
      }
      .brand {
        position: relative;
        overflow: hidden;
        flex: none;
        padding: 24px 24px 20px;
        border-bottom: 1px solid var(--grey-200);
      }
      /* small gradient accent in the header corner */
      .brand::after {
        content: "";
        position: absolute;
        right: -60px;
        top: -70px;
        width: 190px;
        height: 190px;
        border-radius: 50%;
        background: radial-gradient(circle at 30% 70%, rgba(255, 126, 126, 0.7), transparent 60%),
          radial-gradient(circle at 70% 40%, rgba(190, 149, 229, 0.7), transparent 60%),
          radial-gradient(circle at 60% 80%, rgba(74, 137, 232, 0.6), transparent 62%);
        filter: blur(26px);
        opacity: 0.7;
        pointer-events: none;
      }
      .logo {
        position: relative;
        z-index: 1;
        display: inline-block;
        line-height: 0;
        border-radius: 6px;
        margin-bottom: 22px;
      }
      .logo img {
        display: block;
        width: auto;
        height: 26px;
      }
      .brand h1 {
        position: relative;
        margin: 0 0 6px;
        font-family: var(--serif);
        font-weight: 400;
        font-size: 30px;
        line-height: 1.1;
        letter-spacing: -0.01em;
        color: var(--grey-900);
      }
      .brand p {
        position: relative;
        margin: 0;
        font-size: 13.5px;
        line-height: 1.45;
        color: var(--grey-700);
      }
      .sections {
        flex: 1;
        overflow-y: auto;
        overscroll-behavior: contain;
      }
      #sidebar section {
        padding: 20px 24px 22px;
        border-bottom: 1px solid var(--grey-200);
      }
      #sidebar section:last-child {
        border-bottom: 0;
      }
      #sidebar section h2 {
        margin: 0 0 14px;
        font-family: var(--serif);
        font-weight: 500;
        font-size: 18px;
        line-height: 24px;
        letter-spacing: -0.005em;
        color: var(--grey-900);
      }
      .search {
        display: block;
        width: 100%;
        height: 38px;
        padding: 0 12px 0 36px;
        border: 1px solid var(--grey-300);
        border-radius: 10px;
        background: #fff
          url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23808080' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='4.75'/%3E%3Cpath d='M10.5 10.5l3 3'/%3E%3C/svg%3E")
          no-repeat 12px center / 16px;
        font: inherit;
        font-size: 13px;
        color: var(--grey-900);
      }
      .search:focus {
        outline: none;
        border-color: var(--grey-700);
        box-shadow: 0 0 0 3px rgba(13, 13, 13, 0.06);
      }
      .search::placeholder {
        color: var(--grey-600);
      }

      /* A label + control on one line */
      .row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        font-size: 13.5px;
        color: var(--grey-800);
      }
      .toggle {
        cursor: pointer;
        margin-bottom: 6px;
      }
      /* Switch (dark when on) */
      .switch {
        position: relative;
        display: inline-block;
        flex: none;
        width: 38px;
        height: 22px;
      }
      .switch input {
        position: absolute;
        inset: 0;
        z-index: 1;
        width: 100%;
        height: 100%;
        margin: 0;
        opacity: 0;
        cursor: pointer;
      }
      .switch span {
        position: absolute;
        inset: 0;
        background: var(--grey-300);
        border-radius: 22px;
        transition: background 0.2s;
      }
      .switch span::before {
        content: "";
        position: absolute;
        left: 2px;
        top: 2px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        transition: transform 0.2s;
      }
      .switch input:checked + span {
        background: var(--grey-800);
      }
      .switch input:checked + span::before {
        transform: translateX(16px);
      }
      .switch input:focus-visible + span {
        box-shadow: var(--focus);
      }

      /* Property filters: uppercase sub-heads, like the device categories */
      #facets details {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--grey-200);
      }
      #facets summary {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 -6px;
        padding: 6px;
        border-radius: 8px;
        list-style: none;
        cursor: pointer;
        font: 600 11px/16px var(--sans);
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--grey-600);
      }
      #facets summary::-webkit-details-marker {
        display: none;
      }
      #facets summary:hover {
        color: var(--grey-900);
      }
      #facets summary::after {
        content: "";
        width: 6px;
        height: 6px;
        margin: -3px 4px 0 auto;
        border: solid var(--grey-600);
        border-width: 0 1.5px 1.5px 0;
        transform: rotate(45deg);
        transition: transform 0.15s;
      }
      #facets details[open] > summary::after {
        margin-top: 3px;
        transform: rotate(-135deg);
      }
      #facets details[open] > summary {
        margin-bottom: 4px;
      }
      #facets summary .sel {
        padding: 0 7px;
        border-radius: 999px;
        background: var(--grey-800);
        color: #fff;
        font-size: 11px;
        line-height: 17px;
        letter-spacing: 0;
        font-variant-numeric: tabular-nums;
      }
      #facets label.opt {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0 -6px;
        padding: 7px 6px;
        border-radius: 8px;
        font-size: 13.5px;
        line-height: 18px;
        color: var(--grey-800);
        cursor: pointer;
      }
      #facets label.opt:hover {
        background: var(--grey-100);
      }
      #facets label.opt.zero {
        color: var(--grey-500);
      }
      #facets label.opt .n {
        margin-left: auto;
        font-size: 12px;
        color: var(--grey-600);
        font-variant-numeric: tabular-nums;
      }
      #facets input[type="checkbox"] {
        flex: none;
        width: 16px;
        height: 16px;
        margin: 0;
        accent-color: var(--grey-800);
      }
      /* Ghost pill, full width */
      .ghost,
      #clearFilters {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        margin-top: 18px;
        padding: 9px;
        border: 1px solid var(--grey-200);
        border-radius: 999px;
        background: #fff;
        font-size: 13px;
        font-weight: 500;
        transition: border-color 0.15s;
      }
      .ghost:hover,
      #clearFilters:hover {
        border-color: var(--grey-400);
      }

      /* Panel footer: the key number, like the export bar */
      .side-foot {
        flex: none;
        padding: 14px 24px;
        border-top: 1px solid var(--grey-200);
        background: rgba(255, 255, 255, 0.94);
        font-size: 12px;
        line-height: 1.3;
        color: var(--grey-700);
      }
      .side-foot .num {
        display: block;
        margin-bottom: 2px;
        font-family: var(--serif);
        font-size: 19px;
        line-height: 1.3;
        letter-spacing: -0.01em;
        color: var(--grey-900);
        font-variant-numeric: tabular-nums;
      }
      .side-foot .num small {
        margin-left: 2px;
        font-family: var(--sans);
        font-size: 12px;
        color: var(--grey-700);
      }

      /* ---------- Content ---------- */
      main {
        max-width: 1200px;
        margin: 0 auto;
        padding: 32px var(--gutter) 80px;
      }
      #list > .empty {
        margin: 80px 0;
        text-align: center;
        font-family: var(--serif);
        font-size: 18px;
        color: var(--grey-700);
      }

      /* Grid of exercise cards */
      .grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
      }
      @media (max-width: 1360px) {
        .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      }
      @media (max-width: 1060px) {
        .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      }
      @media (max-width: 560px) {
        .grid { grid-template-columns: 1fr; }
      }
      .card {
        position: relative;
        display: flex;
        flex-direction: column;
        padding: 8px 8px 16px;
        border: 1.5px solid transparent;
        border-radius: var(--radius);
        background: #fff;
        box-shadow: var(--shadow-md);
        cursor: pointer;
        transition: box-shadow 0.15s, transform 0.15s;
      }
      /* hover: the brand-gradient border, like a selected device */
      .card:hover {
        background: linear-gradient(#fff, #fff) padding-box, var(--gradient-angle) border-box;
        box-shadow: var(--shadow-lg);
        transform: translateY(-1px);
      }
      .card:active {
        transform: translateY(0);
      }
      .card img {
        display: block;
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 8px;
        background: var(--grey-50);
      }
      .card .media {
        position: relative;
      }
      .card .hover-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
        background: transparent;
        opacity: 0;
        transition: opacity 0.15s;
        pointer-events: none;
      }
      .card .hover-video.playing {
        opacity: 1;
      }
      /* dim the whole box (not each layer) so the video stays opaque over the image */
      .card.inactive .media {
        opacity: 0.55;
      }
      .card .name {
        padding: 14px 6px 0;
        font-size: 15px;
        line-height: 21px;
        font-weight: 600;
        color: var(--grey-900);
        text-transform: capitalize;
        text-wrap: balance;
      }
      .card .side-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin: 10px 6px 0;
      }
      .card .side-tag {
        padding: 3px 9px;
        border: 1px solid var(--grey-200);
        border-radius: 999px;
        font: 500 11px/1.2 var(--sans);
        color: var(--grey-700);
        text-transform: capitalize;
      }
      .card .tags {
        position: absolute;
        top: 16px;
        left: 16px;
        display: flex;
        gap: 6px;
      }
      .card .tag {
        padding: 4px 10px;
        border-radius: 999px;
        background: var(--grey-800);
        color: #fff;
        font: 600 11px/1.2 var(--sans);
      }
      .card .tag.vai,
      .chip.vai {
        border-color: transparent;
        background: var(--blue);
        color: #fff;
      }

      /* ---------- Detail drawer: slides in from the right, over the grid ---------- */
      html {
        scrollbar-gutter: stable; /* no layout jump when the page scroll is locked */
      }
      body.in-detail {
        overflow: hidden;
      }
      .drawer-backdrop {
        position: fixed;
        inset: 0;
        z-index: 20;
        background: rgba(13, 13, 13, 0.32);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
      }
      body.in-detail .drawer-backdrop {
        opacity: 1;
        pointer-events: auto;
      }
      .drawer {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 21;
        display: flex;
        flex-direction: column;
        width: min(1000px, calc(100vw - 120px));
        background: var(--grey-100);
        box-shadow: -1px 0 0 var(--grey-200), -24px 0 60px rgba(13, 13, 13, 0.18);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.3s;
      }
      body.in-detail .drawer {
        transform: none;
        visibility: visible;
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
      }
      .drawer-head {
        flex: none;
        padding: 20px 32px 18px;
        background: #fff;
        border-bottom: 1px solid var(--grey-200);
      }
      .drawer-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 28px 32px 64px;
      }
      .detail-head {
        display: flex;
        align-items: center;
        gap: 8px 14px;
      }
      #detailHead h2 {
        flex: 0 1 auto;
        min-width: 0;
        margin: 0;
        font-family: var(--serif);
        font-weight: 400;
        font-size: 30px;
        line-height: 1.2;
        letter-spacing: -0.01em;
        color: var(--grey-900);
        text-transform: capitalize;
        text-wrap: balance;
      }
      .back-btn {
        flex: none;
        margin-left: auto;
        align-self: flex-start;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        padding: 0;
        border: 1px solid var(--grey-200);
        border-radius: 999px;
        background: #fff;
        font-size: 16px;
        color: var(--grey-800);
        box-shadow: var(--shadow-sm);
        transition: border-color 0.15s;
      }
      .back-btn:hover {
        border-color: var(--grey-400);
      }
      /* Side dropdown inline with the title: reads as text, with a chevron */
      .side-select {
        display: inline;
        margin: 0;
        padding: 0 0.7em 0 0;
        border: 0;
        border-radius: 6px;
        background: transparent
          url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%235e5e5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E")
          no-repeat right 0.1em center / 0.5em;
        font: inherit;
        color: var(--grey-600);
        text-transform: none;
        -webkit-appearance: none;
        appearance: none;
      }
      .side-select:hover {
        color: var(--grey-900);
      }
      .chip {
        flex: none;
        padding: 4px 10px;
        border: 1px solid var(--grey-200);
        border-radius: 999px;
        background: #fff;
        font: 500 12px/1.2 var(--sans);
        color: var(--grey-700);
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
      }
      .chip.off {
        border-color: var(--grey-800);
        background: var(--grey-800);
        color: #fff;
      }
      /* Segmented control */
      .tabs {
        display: inline-flex;
        gap: 2px;
        margin: 16px 0 0;
        padding: 3px;
        border-radius: 999px;
        background: rgba(13, 13, 13, 0.05);
      }
      .tabs button {
        padding: 6px 16px;
        border: 0;
        border-radius: 999px;
        background: transparent;
        font-size: 13px;
        color: var(--grey-700);
        transition: background 0.15s, color 0.15s;
      }
      .tabs button:hover {
        color: var(--grey-900);
      }
      .tabs button[aria-selected="true"] {
        background: #fff;
        color: var(--grey-900);
        font-weight: 600;
        box-shadow: var(--shadow-sm);
      }

      /* ---------- Detail sections ---------- */
      .block + .block {
        margin-top: 48px;
      }
      .block > h3 {
        display: flex;
        align-items: baseline;
        gap: 10px;
        margin: 0 0 14px;
        font-family: var(--serif);
        font-weight: 500;
        font-size: 20px;
        line-height: 26px;
        letter-spacing: -0.005em;
        color: var(--grey-900);
      }
      .block > h3:has(+ .hint) {
        margin-bottom: 4px;
      }
      .block > h3 .count {
        font: 600 11px/16px var(--sans);
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--grey-600);
      }
      .block > .hint {
        margin: 0 0 14px;
        font-size: 13.5px;
        line-height: 1.45;
        color: var(--grey-700);
      }

      /* Tables: white, hairline rows */
      table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        border: 1px solid var(--grey-200);
        border-radius: var(--radius);
        background: #fff;
        overflow: hidden;
        box-shadow: var(--shadow-sm);
      }
      th,
      td {
        padding: 11px 18px;
        border-bottom: 1px solid var(--grey-200);
        text-align: left;
        vertical-align: top;
        font-size: 13.5px;
        line-height: 20px;
      }
      tr:last-child th,
      tr:last-child td {
        border-bottom: 0;
      }
      th {
        width: 240px;
        font-family: var(--mono);
        font-size: 12.5px;
        font-weight: 400;
        color: var(--grey-600);
      }
      td {
        color: var(--grey-900);
        overflow-wrap: anywhere;
      }
      pre {
        margin: 0;
        padding: 10px 12px;
        border-radius: 10px;
        background: var(--grey-50);
        border: 1px solid var(--grey-200);
        font-family: var(--mono);
        font-size: 12px;
        line-height: 18px;
        white-space: pre-wrap;
      }

      /* Asset panels: media on top, their files listed below */
      .panel {
        border: 1px solid var(--grey-200);
        border-radius: var(--radius);
        background: #fff;
        overflow: hidden;
        box-shadow: var(--shadow-md);
      }
      .asset-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
        gap: 12px;
        align-items: start;
        padding: 12px;
      }
      .asset {
        margin: 0;
        min-width: 0;
      }
      .asset-img {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: contain;
        border-radius: 8px;
        background: #fff;
        box-shadow: inset 0 0 0 1px var(--grey-200);
      }
      .panel-foot {
        padding: 11px 18px;
        border-top: 1px solid var(--grey-200);
        background: var(--grey-50);
      }
      .asset-row {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13.5px;
        line-height: 20px;
      }
      .asset-row .asset-link {
        flex: 0 1 auto;
        min-width: 0;
        margin-right: 4px;
      }
      .icon-btn {
        flex: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        margin: -3px 0;
        padding: 0;
        cursor: pointer;
        border: 1px solid var(--grey-200);
        border-radius: 999px;
        background: #fff;
        color: var(--grey-700);
        box-shadow: var(--shadow-sm);
        transition: border-color 0.15s, color 0.15s;
      }
      .icon-btn + .icon-btn {
        margin-left: -3px;
      }
      .icon-btn:hover {
        border-color: var(--grey-400);
        color: var(--grey-900);
      }
      .asset-info {
        margin-top: 10px;
        padding: 10px 12px;
        border: 1px solid var(--grey-200);
        border-radius: 8px;
        background: var(--grey-50);
      }
      .asset-link {
        color: var(--grey-700);
        text-decoration: underline;
        text-decoration-color: var(--grey-300);
        text-underline-offset: 3px;
        word-break: break-all;
        border-radius: 4px;
      }
      .asset-link:hover {
        color: var(--grey-900);
        text-decoration-color: var(--grey-700);
      }

      /* Video player: controls BELOW the picture, so screenshots stay clean */
      .player {
        overflow: hidden;
        border: 1px solid var(--grey-200);
        border-radius: 8px;
        background: #fff;
      }
      video {
        display: block;
        width: 100%;
        background: #000;
      }
      .controls {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 10px 12px;
        border-top: 1px solid var(--grey-200);
        background: #fff;
      }
      .controls button {
        flex: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        padding: 0;
        border: 1px solid var(--grey-200);
        border-radius: 999px;
        background: #fff;
        font-size: 11px;
        color: var(--grey-800);
        transition: border-color 0.15s;
      }
      .controls button:hover {
        border-color: var(--grey-400);
      }
      /* play / pause: the dark primary */
      .controls button:first-child {
        border-color: var(--grey-800);
        background: var(--grey-800);
        color: #fff;
      }
      .controls button:first-child:hover {
        background: var(--grey-900);
      }
      .controls input[type="range"] {
        flex: 1 1 120px;
        min-width: 0;
        margin: 0 10px;
      }
      .controls .time {
        font-size: 12px;
        color: var(--grey-700);
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
      }

      /* Sliders (video progress): track filled with the primary blue */
      input[type="range"] {
        --p: 0%;
        -webkit-appearance: none;
        appearance: none;
        height: 18px;
        margin: 0;
        background: transparent;
        cursor: pointer;
      }
      input[type="range"]::-webkit-slider-runnable-track {
        height: 4px;
        border-radius: 4px;
        background: linear-gradient(var(--blue), var(--blue)) 0 0 / var(--p) 100% no-repeat, var(--grey-200);
      }
      input[type="range"]::-moz-range-track {
        height: 4px;
        border-radius: 4px;
        background: var(--grey-200);
      }
      input[type="range"]::-moz-range-progress {
        height: 4px;
        border-radius: 4px;
        background: var(--blue);
      }
      input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 16px;
        height: 16px;
        margin-top: -6px;
        border: 1px solid var(--grey-300);
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 1px 3px rgba(13, 13, 13, 0.18);
        transition: transform 0.1s;
      }
      input[type="range"]::-moz-range-thumb {
        width: 16px;
        height: 16px;
        border: 1px solid var(--grey-300);
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 1px 3px rgba(13, 13, 13, 0.18);
      }
      input[type="range"]:active::-webkit-slider-thumb {
        transform: scale(1.12);
      }
      input[type="range"]:focus-visible {
        outline: none;
      }
      input[type="range"]:focus-visible::-webkit-slider-thumb {
        box-shadow: var(--focus);
      }

      /* Missing assets and loading skeletons */
      .missing {
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: var(--grey-50);
        box-shadow: inset 0 0 0 1px var(--grey-200);
        font-size: 13px;
        color: var(--grey-600);
      }
      .card-missing { width: 100%; aspect-ratio: 4 / 3; }
      .card .card-missing { aspect-ratio: 1 / 1; }
      .player-missing { width: 100%; aspect-ratio: 16 / 9; }
      @keyframes shimmer {
        from { background-position: 200% 0; }
        to { background-position: -200% 0; }
      }
      img.loading,
      video.loading {
        background: linear-gradient(90deg, var(--grey-100) 25%, var(--grey-200) 50%, var(--grey-100) 75%);
        background-size: 200% 100%;
        animation: shimmer 1.4s linear infinite;
      }
      video.loading {
        aspect-ratio: 16 / 9;
      }

      /* ---------- Phones & narrow windows: panel on top, content underneath ---------- */
      @media (max-width: 860px) {
        :root {
          --gutter: 20px;
        }
        .layout {
          flex-direction: column;
          align-items: stretch;
        }
        #sidebar {
          position: static;
          width: 100%;
          height: auto;
          border-right: 0;
          border-bottom: 1px solid var(--grey-200);
        }
        .sections {
          overflow: visible;
        }
        .brand {
          padding: 20px 20px 16px;
        }
        .brand h1 {
          font-size: 26px;
        }
        #sidebar section {
          padding: 18px 20px 20px;
        }
        .side-foot {
          padding: 12px 20px;
        }
        main {
          padding-top: 24px;
        }
        .drawer {
          width: 100vw;
        }
        .drawer-head {
          padding: 16px 20px 14px;
        }
        .drawer-body {
          padding: 20px 20px 48px;
        }
        .detail-head {
          flex-wrap: wrap;
        }
        #detailHead h2 {
          font-size: 24px;
        }
        .tabs {
          margin-left: 0;
        }
        th {
          width: 40%;
        }
        th,
        td {
          padding: 10px 12px;
        }
        .asset-grid {
          grid-template-columns: 1fr;
        }
      }

      @media (prefers-reduced-motion: reduce) {
        .card,
        .drawer,
        body.in-detail .drawer,
        .drawer-backdrop,
        .switch span,
        .switch span::before {
          transition: none;
        }
        .card:hover {
          transform: none;
        }
        img.loading,
        video.loading {
          animation: none;
        }
      }
