    /* ── Sidebar ── */
    #sidebar {
      width: 220px;
      min-width: 220px;
      background: var(--sidebar-bg);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      height: 100%;
      overflow-y: auto;
    }

    #sidebar > .collapsible-section {
      flex-shrink: 0;
    }

    /* Portrait phones only; see responsive.css. */
    #mobile-panel-bar { display: none; }

    .section-toggle {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      min-height: 24px;
      list-style: none;
      cursor: pointer;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    .section-toggle::-webkit-details-marker { display: none; }
    .section-toggle::after {
      content: '';
      width: 7px;
      height: 7px;
      border-right: 2px solid currentColor;
      border-bottom: 2px solid currentColor;
      transform: rotate(-45deg);
      flex-shrink: 0;
      margin-right: 3px;
    }
    .collapsible-section[open] > .section-toggle::after { transform: rotate(45deg); }
    .collapsible-section[open] > .section-toggle { margin-bottom: 5px; }
    .section-toggle:hover { color: var(--text); }
    .section-toggle:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
      border-radius: 2px;
    }

    #sidebar-header {
      padding: 16px 14px 12px;
      border-bottom: 1px solid var(--border);
    }

    #sidebar-header h1 {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--accent);
    }

    #sidebar-header p {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 2px;
    }

    .wheel-link {
      color: var(--accent);
      text-decoration: none;
    }

    #model-panel {
      padding: 10px 14px;
      background: var(--sidebar-bg);
    }
    #background-select { margin-bottom: 3px; }

    #model-panel label {
      display: block;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 5px;
    }

    /* ── Isle Link Skins (store skins) panel ── */
    #store-skins-section {
      position: relative;
      padding: 12px 0 6px;
      border-top: 1px solid var(--border);
      flex: 1;
      min-height: 120px;
    }

    #store-skins-section:not([open]) { flex: none; min-height: 0; }
    #store-skins-section > .section-toggle { margin-bottom: 0; }
    #store-skins-content {
      position: absolute;
      inset: 36px 0 6px;
      display: flex;
      flex-direction: column;
      min-height: 0;
      overflow: hidden;
    }

    .store-section-header {
      padding: 0 14px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--accent);
    }

    #store-skins-search {
      margin: 8px 14px 0;
      padding: 7px 8px;
      min-width: 0;
      flex-shrink: 0;
      border: 1px solid var(--border);
      border-radius: 3px;
      background: var(--bg);
      color: var(--text);
      font: inherit;
      font-size: 12px;
    }
    #store-skins-search:focus-visible { outline: 1px solid var(--accent); }
    #store-skins-empty {
      margin: 0;
      padding: 10px 14px;
      color: var(--text-muted);
      font-size: 12px;
    }
    .store-skin-item[hidden] { display: none; }

    #store-skins-list {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      padding: 6px 0;
    }

    #store-skins-list::-webkit-scrollbar { width: 4px; }
    #store-skins-list::-webkit-scrollbar-track { background: transparent; }
    #store-skins-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

    .store-skin-item {
      padding: 7px 14px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      border-left: 2px solid transparent;
      transition: background 0.1s;
      font-size: 13px;
    }

    .store-skin-item:hover { background: var(--item-hover); }
    .store-skin-item.active {
      background: var(--item-active);
      border-left-color: var(--accent);
    }

    .store-skin-item .skin-dot {
      width: 7px; height: 7px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .store-skin-item .skin-name {
      flex: 1;
      color: var(--text);
      font-weight: 500;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .store-skin-item .skin-rarity {
      font-size: 10px;
      text-transform: uppercase;
      font-weight: 600;
      color: var(--text-muted);
    }

    .rarity-common  { color: #888; }
    .rarity-rare    { color: #4fc3f7; }
    .rarity-epic    { color: #7c5cfc; }
    .rarity-legendary { color: #facc15; }
    .rarity-exclusive { color: #f87171; }
    .rarity-streamer  { color: #4ade80; }

    .skin-dot.rarity-common    { background: #888; }
    .skin-dot.rarity-rare      { background: #4fc3f7; }
    .skin-dot.rarity-epic      { background: #7c5cfc; }
    .skin-dot.rarity-legendary { background: #facc15; }
    .skin-dot.rarity-exclusive { background: #f87171; }
    .skin-dot.rarity-streamer  { background: #4ade80; }

    #store-skins-section.hidden { display: none; }

    /* ── Background selector panel ── */
    #background-panel {
      padding: 10px 14px;
      border-top: 1px solid var(--border);
      background: var(--sidebar-bg);
    }
    #background-panel label {
      display: block;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 5px;
    }
    #background-panel .background-toggles {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      margin: 8px 0 0;
      min-width: 0;
      letter-spacing: 0;
    }
    #background-panel .background-transparency-control {
      display: flex;
      align-items: center;
      gap: 4px;
      margin: 0;
      font-size: 11px;
      letter-spacing: 0;
      text-transform: none;
      cursor: pointer;
    }
    #pause-anim-btn, #record-anim-btn, .anim-control-btn, .call-btn {
      width: 100%;
      margin-top: 8px;
      background: var(--bg);
      border: 1px solid var(--border);
      color: var(--text-muted);
      border-radius: 3px;
      padding: 5px 0;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.1s, color 0.12s, border-color 0.12s;
    }
    .animation-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 6px; }
    .playback-controls { display: flex; gap: 6px; }
    .playback-controls > button { min-width: 0; flex: 1; }
    #record-anim-btn:not(:disabled):hover { background: var(--item-hover); color: var(--text); }
    #record-anim-btn:disabled { cursor: not-allowed; opacity: 0.5; }
    #record-anim-btn.recording { color: #ffb3b3; border-color: #e36b6b; }
    #recording-status { margin-top: 6px; font-size: 11px; color: var(--text-muted); }
    #recording-status:empty { display: none; }
    .animation-controls .anim-control-btn { min-width: 0; }
    .animation-controls .anim-control-btn[hidden] { display: none; }
    .animation-controls #idle-sit-btn { grid-column: span 2; }
    .call-controls { display: flex; flex-wrap: wrap; gap: 6px; }
    .call-controls > .call-btn { min-width: 0; flex: 1 1 calc(25% - 6px); }
    #pause-anim-btn:hover, .anim-control-btn:not(:disabled):hover, .call-btn:not(:disabled):hover { background: var(--item-hover); color: var(--text); }
    .anim-control-btn:disabled, .call-btn:disabled { cursor: not-allowed; opacity: 0.5; }
    #pause-anim-btn.active, .anim-control-btn.active {
      background: var(--accent-dim);
      border-color: var(--accent);
      color: var(--accent);
    }

    /* ── Skin selector panel ── */
    #skin-panel {
      padding: 10px 14px;
      border-top: 1px solid var(--border);
      background: var(--sidebar-bg);
    }
    #skin-panel label {
      display: block;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 5px;
    }

    /* ── Footer / Powered by panel ── */
    #footer-panel {
      padding: 10px 14px;
      border-top: 1px solid var(--border);
      background: var(--sidebar-bg);
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .footer-label {
      color: var(--text-muted);
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .footer-link {
      color: var(--accent);
      text-decoration: none;
      font-size: 12px;
      font-weight: 500;
    }

    .footer-link:hover {
      text-decoration: underline;
    }

    #model-select,
    #background-select,
    #skin-select {
      width: 100%;
      background: var(--bg);
      border: 1px solid var(--border);
      color: var(--text);
      padding: 5px 8px;
      border-radius: 3px;
      font-size: 12px;
      cursor: pointer;
      -webkit-appearance: none;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%234a7043'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 8px center;
      padding-right: 24px;
    }

    #skin-select:disabled { opacity: 0.4; cursor: default; }
    #skin-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      max-width: 100%;
      pointer-events: auto;
    }
    #skin-controls > #skin-select { width: 95px; min-width: 0; }

