/* Extracted from app/templates/tutorials.html (inline <style>) — frontend consolidation.
   Static CSS (no Jinja). Uses tokens from tokens.css. */

    /* Hero */
    .tut-hero { padding: 120px 0 48px; text-align: center; }
    .tut-hero h1 {
      font-size: 2.4rem; font-weight: 800;
      background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
      margin-bottom: 12px;
    }
    .tut-hero p { color: rgba(255,255,255,0.55); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

    /* Stats */
    .tut-stats {
      display: flex; gap: 40px; justify-content: center; padding: 0 24px 48px;
    }
    .tut-stat { text-align: center; }
    .tut-stat-num {
      font-size: 1.8rem; font-weight: 800; color: #fff;
      background: linear-gradient(135deg, var(--primary, #6366f1), var(--primary-light, #818cf8));
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    }
    .tut-stat-label { color: rgba(255,255,255,0.35); font-size: 0.8rem; margin-top: 4px; }

    /* Search */
    .tut-search-wrap {
      max-width: 500px; margin: 0 auto 16px; padding: 0 24px; position: relative;
    }
    .tut-search {
      width: 100%; padding: 12px 18px 12px 42px; border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03);
      color: #fff; font-size: 0.9rem; outline: none; transition: border-color 0.2s; box-sizing: border-box;
    }
    .tut-search:focus { border-color: rgba(99,102,241,0.5); }
    .tut-search::placeholder { color: rgba(255,255,255,0.3); }
    .tut-search-icon {
      position: absolute; left: 38px; top: 50%; transform: translateY(-50%);
      color: rgba(255,255,255,0.3); font-size: 1rem; pointer-events: none;
    }

    /* Filter drawer toggle — hidden on desktop, shown on mobile */
    .tut-filter-toggle {
      display: none; align-items: center; gap: 8px; margin: 8px auto 4px;
      padding: 10px 18px; border-radius: 22px; font-size: 0.85rem; font-weight: 600;
      background: rgba(99,102,241,0.12); color: var(--primary-light, #818cf8);
      border: 1px solid rgba(99,102,241,0.3); cursor: pointer; transition: all 0.2s;
    }
    .tut-filter-toggle:hover { background: rgba(99,102,241,0.2); }
    .tut-filter-toggle[aria-expanded="true"] .tut-filter-toggle-icon { transform: rotate(90deg); }
    .tut-filter-toggle-icon { display: inline-block; transition: transform 0.2s; }

    /* App-Hub channel pills ("Kanäle") */
    .tut-hubs {
      display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
      max-width: 860px; margin: 8px auto 4px; padding: 0 24px;
    }
    .tut-hub-pill {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 8px 16px; border-radius: 20px; font-size: 0.82rem; font-weight: 600;
      background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.55);
      border: 1px solid rgba(255,255,255,0.06); cursor: pointer; transition: all 0.2s;
      white-space: nowrap;
    }
    .tut-hub-pill::before { content: "📺"; font-size: 0.9em; }
    .tut-hub-pill[data-hub="all"]::before { content: "🏠"; }
    .tut-hub-pill:hover, .tut-hub-pill.active {
      background: rgba(236,72,153,0.15); color: #f472b6; border-color: rgba(236,72,153,0.35);
    }

    /* App / instance pills */
    .tut-apps {
      display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
      max-width: 860px; margin: 4px auto 4px; padding: 0 24px;
    }
    .tut-app-pill {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 6px 14px; border-radius: 18px; font-size: 0.78rem; font-weight: 600;
      background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.5);
      border: 1px solid rgba(255,255,255,0.06); cursor: pointer; transition: all 0.2s;
      white-space: nowrap;
    }
    .tut-app-pill::before { content: "📦"; font-size: 0.9em; }
    .tut-app-pill[data-app="all"]::before { content: "🗂️"; }
    .tut-app-pill:hover, .tut-app-pill.active {
      background: rgba(56,189,248,0.15); color: #38bdf8; border-color: rgba(56,189,248,0.35);
    }

    /* Category pills */
    .tut-cats {
      display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
      max-width: 860px; margin: 24px auto 36px; padding: 0 24px;
    }
    .tut-cat-pill {
      padding: 8px 18px; border-radius: 20px; font-size: 0.82rem; font-weight: 600;
      background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.5);
      border: 1px solid rgba(255,255,255,0.06); cursor: pointer; transition: all 0.2s;
      white-space: nowrap;
    }
    .tut-cat-pill:hover, .tut-cat-pill.active {
      background: rgba(99,102,241,0.15); color: var(--primary-light, #818cf8); border-color: rgba(99,102,241,0.3);
    }

    /* Toolbar */
    .tut-toolbar {
      display: flex; justify-content: space-between; align-items: center;
      max-width: 960px; margin: 0 auto 20px; padding: 0 24px;
    }
    .tut-result-count { color: rgba(255,255,255,0.4); font-size: 0.82rem; }
    .tut-reset-btn {
      padding: 7px 14px; border-radius: 16px; font-size: 0.8rem; font-weight: 600;
      background: rgba(244,63,94,0.12); color: #fb7185;
      border: 1px solid rgba(244,63,94,0.3); cursor: pointer; transition: all 0.2s; white-space: nowrap;
    }
    .tut-reset-btn:hover { background: rgba(244,63,94,0.22); border-color: rgba(244,63,94,0.5); }

    /* Grid */
    .tut-grid {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
      max-width: 960px; margin: 0 auto; padding: 0 24px 80px;
    }
    @media (max-width: 900px) { .tut-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 560px) { .tut-grid { grid-template-columns: 1fr; } }

    /* YouTube-style sections (channels per App-Hub / App) */
    .tut-sections {
      max-width: 1100px; margin: 0 auto; padding: 0 24px 80px;
    }
    .tut-section { margin-bottom: 40px; }
    .tut-section-head {
      display: flex; align-items: baseline; justify-content: space-between;
      gap: 12px; margin-bottom: 16px;
    }
    .tut-section-title {
      font-size: 1.15rem; font-weight: 700; color: #fff; margin: 0;
      display: flex; align-items: center; gap: 8px;
    }
    .tut-section-count { font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.35); }
    .tut-section-link {
      flex-shrink: 0; padding: 6px 14px; border-radius: 16px; font-size: 0.78rem; font-weight: 600;
      background: rgba(99,102,241,0.12); color: var(--primary-light, #818cf8);
      border: 1px solid rgba(99,102,241,0.25); cursor: pointer; transition: all 0.2s; white-space: nowrap;
    }
    .tut-section-link:hover { background: rgba(99,102,241,0.22); border-color: rgba(99,102,241,0.45); }
    .tut-section-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px;
    }

    /* ── Mobile: filter drawer + swipeable shelves + single-column cards ── */
    @media (max-width: 640px) {
      .tut-filter-toggle { display: inline-flex; }
      /* The filter bar collapses into a drawer, opened via the toggle. */
      .tut-filters {
        display: none; flex-direction: column; gap: 4px;
        margin: 4px auto 8px; max-width: 560px;
      }
      .tut-filters.open { display: flex; }
      /* Pills become left-aligned, wrapping chip rows inside the drawer. */
      .tut-filters .tut-hubs,
      .tut-filters .tut-apps,
      .tut-filters .tut-cats { justify-content: flex-start; margin: 4px 0; gap: 8px; }
      /* Browse shelves turn into horizontally swipeable rows. */
      .tut-section-grid {
        grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%;
        overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
      }
      .tut-section-grid > * { scroll-snap-align: start; }
      /* Filtered card grid is single-column on phones. */
      .tut-grid { grid-template-columns: 1fr; }
    }

    /* Card */
    .tut-card {
      background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
      border-radius: 16px; overflow: hidden; transition: all 0.25s; display: flex; flex-direction: column;
      text-decoration: none;
    }
    .tut-card:hover {
      border-color: rgba(99,102,241,0.3); background: rgba(99,102,241,0.04);
      transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    }
    .tut-card.tut-card-incomplete {
      border-color: rgba(251,191,36,0.2); opacity: 0.75; cursor: default; pointer-events: none;
    }
    .tut-thumb {
      position: relative; width: 100%; padding-top: 56.25%; background: rgba(0,0,0,0.4);
      overflow: hidden;
    }
    .tut-thumb img {
      position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
      transition: transform 0.3s;
    }
    .tut-card:hover .tut-thumb img { transform: scale(1.04); }
    .tut-thumb-placeholder {
      position: absolute; top: 0; left: 0; width: 100%; height: 100%;
      display: flex; align-items: center; justify-content: center;
      background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(129,140,248,0.05));
      font-size: 2.5rem;
    }
    .tut-play-overlay {
      position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
      width: 44px; height: 44px; background: rgba(255,255,255,0.15); border-radius: 50%;
      display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
      backdrop-filter: blur(4px); transition: background 0.2s;
    }
    .tut-card:hover .tut-play-overlay { background: rgba(99,102,241,0.5); }
    .tut-duration-badge {
      position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.75);
      color: #fff; font-size: 0.7rem; font-weight: 600; padding: 2px 7px; border-radius: 4px;
      backdrop-filter: blur(2px);
    }
    .tut-incomplete-badge {
      position: absolute; top: 8px; left: 8px; background: rgba(251,191,36,0.85);
      color: #1a1a1a; font-size: 0.65rem; font-weight: 700; padding: 3px 8px; border-radius: 6px;
    }

    /* Card body */
    .tut-card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
    .tut-card-cat {
      font-size: 0.7rem; font-weight: 600; color: var(--primary-light, #818cf8);
      text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px;
    }
    .tut-card-title {
      color: #fff; font-weight: 700; font-size: 0.92rem; line-height: 1.4;
      margin-bottom: 8px;
    }
    .tut-card-desc {
      color: rgba(255,255,255,0.4); font-size: 0.8rem; line-height: 1.55;
      margin-bottom: 12px; flex: 1;
      display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    }

    /* Origin/channel badges */
    .tut-card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
    .tut-card-badge {
      display: inline-flex; align-items: center; gap: 4px;
      padding: 3px 9px; border-radius: 12px; font-size: 0.7rem; font-weight: 600;
      border: 1px solid transparent; line-height: 1.4; white-space: nowrap;
    }
    button.tut-card-badge { cursor: pointer; transition: all 0.2s; }
    .tut-badge-hub { background: rgba(236,72,153,0.13); color: #f472b6; border-color: rgba(236,72,153,0.3); }
    button.tut-badge-hub:hover { background: rgba(236,72,153,0.25); border-color: rgba(236,72,153,0.5); }
    .tut-badge-hub::before { content: "📺"; font-size: 0.85em; }
    .tut-badge-app { background: rgba(56,189,248,0.13); color: #38bdf8; border-color: rgba(56,189,248,0.3); }
    button.tut-badge-app:hover { background: rgba(56,189,248,0.25); border-color: rgba(56,189,248,0.5); }
    .tut-badge-app::before { content: "📦"; font-size: 0.85em; }
    .tut-badge-platform { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.45); border-color: rgba(255,255,255,0.1); }
    .tut-badge-platform::before { content: "🏠"; font-size: 0.85em; }
    .tut-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
    .tut-tag {
      display: inline-block; padding: 3px 9px; border-radius: 10px; font-size: 0.68rem; font-weight: 600;
      background: rgba(99,102,241,0.1); color: rgba(129,140,248,0.8);
      border: 1px solid rgba(99,102,241,0.15);
    }

    /* States */
    .tut-state {
      max-width: 480px; margin: 60px auto; text-align: center; padding: 0 24px 80px;
    }
    .tut-state-icon { font-size: 3rem; margin-bottom: 16px; }
    .tut-state h2 { color: #fff; font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
    .tut-state p { color: rgba(255,255,255,0.4); font-size: 0.9rem; line-height: 1.6; }
    .tut-state .tut-retry-btn {
      display: inline-block; margin-top: 20px; padding: 10px 24px; border-radius: var(--radius-pill);
      background: rgba(99,102,241,0.2); color: var(--primary-light, #818cf8); border: 1px solid rgba(99,102,241,0.3);
      font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
    }
    .tut-state .tut-retry-btn:hover { background: rgba(99,102,241,0.35); }

    /* Loading skeleton */
    .tut-skeletons {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
      max-width: 960px; margin: 0 auto; padding: 0 24px 80px;
    }
    @media (max-width: 900px) { .tut-skeletons { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 560px) { .tut-skeletons { grid-template-columns: 1fr; } }
    .tut-skel {
      background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
      border-radius: 16px; overflow: hidden; animation: tut-pulse 1.5s ease-in-out infinite;
    }
    .tut-skel-thumb { width: 100%; padding-top: 56.25%; background: rgba(255,255,255,0.05); }
    .tut-skel-body { padding: 16px 18px; }
    .tut-skel-line {
      height: 10px; border-radius: 6px; background: rgba(255,255,255,0.06); margin-bottom: 10px;
    }
    .tut-skel-line.short { width: 55%; }
    .tut-skel-line.full { width: 100%; }
    .tut-skel-line.medium { width: 75%; }
    @keyframes tut-pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.5; }
    }

    /* No-JS fallback */
    noscript .tut-noscript-msg {
      background: #1e1e2e; color: #e2e8f0; padding: 48px 24px; text-align: center;
      font-family: Inter, system-ui, sans-serif;
    }

    /* ── Detail Panel ─────────────────────────────────────────── */
    .tut-detail-backdrop {
      position: fixed; inset: 0; background: rgba(0,0,0,0.65);
      z-index: 9000; opacity: 0; pointer-events: none;
      transition: opacity 0.25s;
      backdrop-filter: blur(3px);
    }
    .tut-detail-backdrop.open { opacity: 1; pointer-events: auto; }

    .tut-detail-panel {
      position: fixed; top: 0; right: 0; bottom: 0;
      width: min(680px, 100vw);
      background: #0d0d1a;
      border-left: 1px solid rgba(255,255,255,0.08);
      z-index: 9001;
      display: flex; flex-direction: column;
      transform: translateX(100%);
      transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
      overflow: hidden;
    }
    .tut-detail-panel.open { transform: translateX(0); }

    .tut-detail-header {
      display: flex; align-items: center; gap: 12px;
      padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.07);
      flex-shrink: 0;
    }
    .tut-detail-back {
      display: flex; align-items: center; justify-content: center;
      width: 36px; height: 36px; border-radius: 10px;
      background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
      color: rgba(255,255,255,0.6); font-size: 1rem; cursor: pointer;
      transition: all 0.2s; flex-shrink: 0;
    }
    .tut-detail-back:hover { background: rgba(255,255,255,0.1); color: #fff; }
    .tut-detail-header-title {
      font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.7);
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }

    .tut-detail-body {
      flex: 1; overflow-y: auto; padding: 0 0 40px;
      scroll-behavior: smooth;
    }

    /* Thumbnail in detail */
    .tut-detail-thumb {
      position: relative; width: 100%; padding-top: 56.25%;
      background: rgba(0,0,0,0.5); overflow: hidden; flex-shrink: 0;
    }
    .tut-detail-thumb img {
      position: absolute; top: 0; left: 0; width: 100%; height: 100%;
      object-fit: cover;
    }
    .tut-detail-thumb-placeholder {
      position: absolute; top: 0; left: 0; width: 100%; height: 100%;
      display: flex; align-items: center; justify-content: center;
      background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(129,140,248,0.06));
      font-size: 4rem;
    }

    .tut-detail-content { padding: 24px 28px; }

    .tut-detail-meta {
      display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
      margin-bottom: 14px;
    }
    .tut-detail-cat {
      font-size: 0.7rem; font-weight: 700; color: var(--primary-light, #818cf8);
      text-transform: uppercase; letter-spacing: 0.06em;
    }
    /* Origin/Herkunft chip in the detail meta (reuses .tut-badge-* colours) */
    .tut-detail-origin {
      display: inline-flex; align-items: center; gap: 4px;
      padding: 3px 9px; border-radius: 12px; font-size: 0.7rem; font-weight: 600;
      border: 1px solid transparent; line-height: 1.4;
    }
    .tut-detail-sep { color: rgba(255,255,255,0.2); font-size: 0.75rem; }
    .tut-detail-duration {
      font-size: 0.75rem; color: rgba(255,255,255,0.4);
      display: flex; align-items: center; gap: 4px;
    }
    .tut-detail-difficulty {
      display: inline-flex; align-items: center; gap: 4px;
      padding: 2px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 600;
      border: 1px solid;
    }
    .tut-diff-beginner   { color: #34d399; border-color: rgba(52,211,153,0.3); background: rgba(52,211,153,0.08); }
    .tut-diff-intermediate { color: #fbbf24; border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.08); }
    .tut-diff-advanced   { color: #f87171; border-color: rgba(248,113,113,0.3); background: rgba(248,113,113,0.08); }

    .tut-detail-title {
      font-size: 1.35rem; font-weight: 800; color: #fff; line-height: 1.35;
      margin-bottom: 12px;
    }
    .tut-detail-desc {
      font-size: 0.9rem; color: rgba(255,255,255,0.55); line-height: 1.65;
      margin-bottom: 20px;
    }
    .tut-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }

    /* CTA buttons */
    .tut-detail-ctas {
      display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px;
    }
    .tut-detail-cta {
      display: inline-flex; align-items: center; gap: 7px;
      padding: 10px 20px; border-radius: 10px; font-size: 0.85rem; font-weight: 600;
      text-decoration: none; transition: all 0.2s; border: 1px solid;
    }
    .tut-cta-youtube {
      background: rgba(255,0,0,0.12); color: #f87171;
      border-color: rgba(248,113,113,0.3);
    }
    .tut-cta-youtube:hover { background: rgba(255,0,0,0.22); }
    .tut-cta-docs {
      background: rgba(99,102,241,0.1); color: var(--primary-light, #818cf8);
      border-color: rgba(99,102,241,0.3);
    }
    .tut-cta-docs:hover { background: rgba(99,102,241,0.2); }
    .tut-cta-hub {
      background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(34,211,238,0.1));
      color: var(--accent, #22d3ee);
      border-color: rgba(34,211,238,0.3);
    }
    .tut-cta-hub:hover { background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(34,211,238,0.18)); }
    .tut-cta-copy {
      background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.5);
      border-color: rgba(255,255,255,0.08); cursor: pointer;
    }
    .tut-cta-copy:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75); }

    /* Divider before markdown */
    .tut-detail-divider {
      height: 1px; background: rgba(255,255,255,0.07); margin: 4px 0 24px;
    }

    /* Markdown content area */
    .tut-md-body {
      font-size: 0.88rem; color: rgba(255,255,255,0.72); line-height: 1.75;
    }
    .tut-md-body .tut-md-h1 {
      font-size: 1.15rem; font-weight: 700; color: #fff; margin: 28px 0 10px;
      border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 8px;
    }
    .tut-md-body .tut-md-h2 {
      font-size: 1rem; font-weight: 700; color: rgba(255,255,255,0.9);
      margin: 22px 0 8px;
    }
    .tut-md-body .tut-md-h3 {
      font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.8);
      margin: 18px 0 6px;
    }
    .tut-md-body .tut-md-p { margin: 0 0 14px; }
    .tut-md-body .tut-inline-code {
      background: rgba(99,102,241,0.12); color: #a5b4fc;
      padding: 1px 6px; border-radius: 5px; font-family: 'Fira Code', 'Consolas', monospace;
      font-size: 0.82em;
    }
    .tut-code-block {
      background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.07);
      border-radius: 10px; padding: 16px 18px; margin: 12px 0 18px;
      overflow-x: auto; font-family: 'Fira Code', 'Consolas', monospace;
      font-size: 0.8rem; line-height: 1.6; color: #c4b5fd;
      white-space: pre; max-height: 420px;
      max-width: 100%; box-sizing: border-box;
    }
    .tut-code-block code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }
    .tut-blockquote {
      border-left: 3px solid rgba(99,102,241,0.5); margin: 12px 0;
      padding: 10px 16px; background: rgba(99,102,241,0.06); border-radius: 0 8px 8px 0;
      color: rgba(255,255,255,0.6); font-size: 0.85rem;
    }
    .tut-md-ul, .tut-md-ol {
      padding-left: 20px; margin: 8px 0 14px; color: rgba(255,255,255,0.65);
    }
    .tut-md-ul li, .tut-md-ol li { margin-bottom: 5px; }
    .tut-md-body a {
      color: var(--primary-light, #818cf8); text-decoration: underline; text-underline-offset: 2px;
      word-break: break-word; overflow-wrap: anywhere;
    }
    .tut-md-body a:hover { color: #a5b4fc; }

    /* Detail states */
    .tut-detail-state {
      padding: 60px 28px; text-align: center;
    }
    .tut-detail-state-icon { font-size: 2.8rem; margin-bottom: 16px; }
    .tut-detail-state h3 { color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
    .tut-detail-state p { color: rgba(255,255,255,0.4); font-size: 0.88rem; line-height: 1.6; }
    .tut-detail-spinner {
      width: 36px; height: 36px; border: 3px solid rgba(99,102,241,0.2);
      border-top-color: var(--primary, #6366f1); border-radius: 50%;
      animation: tut-spin 0.7s linear infinite; margin: 60px auto 0;
    }
    @keyframes tut-spin { to { transform: rotate(360deg); } }

    /* Copy-link feedback */
    .tut-copy-toast {
      position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
      background: rgba(52,211,153,0.15); border: 1px solid rgba(52,211,153,0.4);
      color: #34d399; padding: 9px 20px; border-radius: 10px; font-size: 0.82rem;
      font-weight: 600; pointer-events: none; opacity: 0;
      transition: opacity 0.25s, transform 0.25s; z-index: 9999;
    }
    .tut-copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
  
