/* v46: Icon library / copyable SVG area */


    /* ===========================================================================
       LOADING / MOTION SYSTEM
       ---------------------------------------------------------------------------
       Zweck:
       - zentrale, dezente Animationen für Ladezustände
       - sequenzielle Punkte/Balken statt statischer Fake-Loader
       - respektiert prefers-reduced-motion
       =========================================================================== */

    @keyframes ui-spin { to { transform: rotate(360deg); } }
    @keyframes ui-spin-reverse { to { transform: rotate(-360deg); } }
      22% {
        opacity: 1;
        transform: translateY(-2px) scale(1.12);
        color: var(--accent);
      }
      46% {
        opacity: .72;
        transform: translateY(0) scale(1);
        color: var(--text-2);
      }
    }
      22% {
        opacity: 1;
        transform: translateY(-2px) scale(1.58);
        color: var(--accent);
      }
      46% {
        opacity: .78;
        transform: translateY(0) scale(1.34);
        color: var(--text-2);
      }
    }

    @keyframes ui-bar-sequence {
      0%, 100% { opacity: .34; transform: scaleY(.42); background: var(--text-3); }
      22% { opacity: 1; transform: scaleY(1); background: var(--accent); }
      44% { opacity: .62; transform: scaleY(.68); background: var(--text-2); }
    }

    @keyframes ui-button-shimmer {
      0% { transform: translateX(-130%); opacity: 0; }
      22% { opacity: .55; }
      100% { transform: translateX(130%); opacity: 0; }
    }

    @keyframes ui-progress-stripe { to { background-position: 32px 0; } }

    .motion-spin { animation: ui-spin .85s linear infinite; transform-origin: 50% 50%; }
    .motion-spin-slow { animation: ui-spin 1.4s linear infinite; transform-origin: 50% 50%; }
    .motion-spin-reverse { animation: ui-spin-reverse 1.15s linear infinite; transform-origin: 50% 50%; }

    .loading-bars {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: currentColor;
      flex: 0 0 auto;
    }

    .loading-bars { gap: 4px; width: 24px; height: 18px; }
    .loading-bars i {
      width: 4px;
      height: 16px;
      border-radius: 999px;
      background: var(--text-3);
      transform-origin: 50% 100%;
      animation: ui-bar-sequence .95s cubic-bezier(.4,0,.2,1) infinite;
    }
    .loading-bars i:nth-child(2) { animation-delay: .12s; }
    .loading-bars i:nth-child(3) { animation-delay: .24s; }

    .btn.is-loading,
    .btn[aria-busy="true"] { cursor: progress; }

    .btn.loading-shimmer {
      position: relative;
      overflow: hidden;
      isolation: isolate;
    }

    .btn.loading-shimmer::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
      animation: ui-button-shimmer 1.35s ease-in-out infinite;
    }

    .btn.secondary.loading-shimmer::after,
    .btn.outline.loading-shimmer::after {
      background: linear-gradient(90deg, transparent, var(--hover), transparent);
    }

    .loading-showcase { display: grid; gap: 14px; }
    .loading-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

    .loading-demo-card {
      display: grid;
      gap: 10px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      background: var(--surface-1);
    }

    .loading-demo-card h4 { margin: 0; font-size: 14px; color: var(--text); }
    .loading-demo-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }


    /* Animierter Ellipsis-Loader
       --------------------------------------------------------------------------
       Ausgangswert ist das normale Lucide-Icon #i-ellipsis.
       Die animierte Variante nutzt dieselbe 24x24-Box, dieselben Kreise
       und dieselbe Stroke-Stärke. Dadurch wirken normale und animierte
       Ellipsis optisch gleich groß. Nur die drei Punkte werden per CSS
       nacheinander hervorgehoben. */
    @keyframes ui-ellipsis-dot {
      0%, 100% {
        opacity: .42;
        transform: translateY(0) scale(1);
        color: var(--text-3);
      }
      22% {
        opacity: 1;
        transform: translateY(-1.5px) scale(1.08);
        color: var(--accent);
      }
      46% {
        opacity: .74;
        transform: translateY(0) scale(1);
        color: var(--text-2);
      }
    }

    .ellipsis-loader {
      width: 24px;
      min-width: 24px;
      height: 24px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-left: 3px;
      color: currentColor;
      line-height: 0;
      vertical-align: middle;
      flex: 0 0 auto;
    }

    .ellipsis-loader .ellipsis-loader-icon {
      width: 24px;
      height: 24px;
      display: block;
      overflow: visible;
      flex: 0 0 auto;
    }

    .ellipsis-loader .ellipsis-dot {
      transform-box: fill-box;
      transform-origin: center;
      animation: ui-ellipsis-dot 1.05s cubic-bezier(.4,0,.2,1) infinite;
    }

    .ellipsis-loader .ellipsis-dot:nth-child(2) { animation-delay: .14s; }
    .ellipsis-loader .ellipsis-dot:nth-child(3) { animation-delay: .28s; }

    .btn .ellipsis-loader {
      align-self: center;
      translate: 0 .5px;
    }

    .icon-preview .ellipsis-loader {
      width: 34px;
      min-width: 34px;
      height: 34px;
      margin-left: 0;
    }

    .icon-preview .ellipsis-loader .ellipsis-loader-icon {
      width: 34px;
      height: 34px;
    }

    @media (max-width: 640px) {
      .icon-preview .ellipsis-loader {
        width: 32px;
        min-width: 32px;
        height: 32px;
      }

      .icon-preview .ellipsis-loader .ellipsis-loader-icon {
        width: 32px;
        height: 32px;
      }
    }

    .progress-animated { position: relative; overflow: hidden; }
    .progress-animated > span {
      background-image: linear-gradient(45deg, rgba(255,255,255,.12) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.12) 75%, transparent 75%, transparent);
      background-size: 32px 32px;
      animation: ui-progress-stripe .9s linear infinite;
    }

    @media (prefers-reduced-motion: reduce) {
      .motion-spin,
      .motion-spin-slow,
      .motion-spin-reverse,
      .loading-bars i,
      .ellipsis-loader .ellipsis-dot,
      .btn.loading-shimmer::after,
      .progress-animated > span { animation: none !important; }
    }

    .icon-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
      padding: 10px 12px;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      background: var(--surface-2);
    }

    .icon-copy-state {
      min-width: 86px;
      text-align: center;
      padding: 5px 9px;
      border-radius: 999px;
      border: 1px solid var(--border-2);
      color: var(--text-2);
      background: var(--surface);
      font-size: 12px;
      font-weight: 800;
      white-space: nowrap;
    }

    .icon-copy-state.is-ok {
      color: var(--btn-primary-text);
      border-color: var(--btn-primary-bg);
      background: var(--btn-primary-bg);
    }


    .icon-category + .icon-category { margin-top: 22px; }

    .icon-category-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
      padding-top: 2px;
    }

    .icon-category-head h3 {
      margin: 0;
      font-size: 15px;
      letter-spacing: .01em;
    }

    .icon-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
      gap: 12px;
    }

    .icon-card {
      display: grid;
      justify-items: center;
      gap: 8px;
      min-height: 132px;
      padding: 14px 10px 12px;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      background: var(--surface);
      color: var(--text);
      cursor: pointer;
      text-align: center;
      transition: border-color .16s ease, background .16s ease, transform .12s ease;
    }

    .icon-card:hover,
    .icon-card:focus-visible {
      border-color: var(--border-2);
      background: var(--surface-2);
      transform: translateY(-1px);
    }

    .icon-card:focus-visible {
      outline: 0;
      box-shadow: 0 0 0 3px var(--focus);
    }

    .icon-preview {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 58px;
      height: 58px;
      border-radius: 0;
      border: 0;
      background: transparent;
      color: var(--text-2);
    }

    .icon-preview .ui-icon {
      width: 34px;
      height: 34px;
    }

    .ui-icon {
      width: 24px;
      height: 24px;
      display: block;
      color: currentColor;
    }
    .ui-icon use { pointer-events: none; }
    .btn .ui-icon { width: 16px; height: 16px; flex: 0 0 auto; }
    .btn.icon .ui-icon { width: 18px; height: 18px; }
    .media-thumb .ui-icon { width: 54px; height: 54px; color: var(--faint); }


    .icon-name {
      max-width: 100%;
      color: var(--text);
      font-size: 13px;
      font-weight: 800;
      line-height: 1.2;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .icon-class {
      max-width: 100%;
      display: block;
      padding: 3px 6px;
      border-radius: 7px;
      color: var(--muted);
      background: var(--field);
      border: 1px solid var(--border);
      font-size: 11px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    @media (max-width: 720px) {
      .icon-toolbar { align-items: flex-start; flex-direction: column; }
      .icon-copy-state { min-width: 0; }
      .icon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
      .icon-card { min-height: 124px; padding-inline: 8px; }
      .icon-preview { width: 54px; height: 54px; }
      .icon-preview .ui-icon { width: 32px; height: 32px; }
    }
