.seq-modal-card {
      background: var(--surface);
      border: 1px solid #334155;
      padding: 20px;
      border-radius: 12px;
      width: 680px;
      max-width: 95vw;
      max-height: 90dvh;
      display: flex;
      flex-direction: column;
      gap: 12px;
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
    }

    .seq-toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      justify-content: space-between;
    }

    .seq-search {
      flex: 1 1 200px;
      background: #0f172a;
      color: var(--text);
      border: 1.5px solid #475569;
      border-radius: 6px;
      padding: 8px 12px;
      font-size: 0.85rem;
      outline: none;
    }

    .seq-search:focus {
      border-color: var(--accent);
    }

    .seq-filter-pills {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }

    .seq-pill-btn {
      background: var(--panel);
      color: var(--text-muted);
      border: 1px solid #475569;
      padding: 5px 10px;
      border-radius: 6px;
      font-size: 0.76rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s;
    }

    .seq-pill-btn:hover,
    .seq-pill-btn.active {
      background: rgba(56, 189, 248, 0.18);
      color: var(--accent);
      border-color: var(--accent);
    }

    .seq-visual-list {
      overflow-y: auto;
      max-height: 52dvh;
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 6px;
      background: #0f172a;
      border: 1px solid #334155;
      border-radius: 8px;
    }

    .seq-item-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      background: var(--panel);
      border: 1.5px solid #334155;
      border-radius: 8px;
      padding: 10px 12px;
      transition: all 0.15s;
      user-select: none;
    }

    .seq-item-card.excluded {
      opacity: 0.5;
      background: #131c2e;
      border-style: dashed;
    }

    .seq-item-card.dragging {
      opacity: 0.4;
      border-color: var(--accent);
    }

    .seq-item-left {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
      flex: 1;
    }

    .seq-drag-handle {
      cursor: grab;
      color: var(--text-muted);
      font-size: 1.1rem;
      padding: 0 4px;
      flex-shrink: 0;
    }

    .seq-order-num {
      min-width: 28px;
      height: 24px;
      border-radius: 6px;
      background: rgba(56, 189, 248, 0.15);
      color: var(--accent);
      font-size: 0.75rem;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .seq-item-info {
      min-width: 0;
      flex: 1;
    }

    .seq-item-title {
      font-size: 0.86rem;
      font-weight: 700;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .seq-item-meta {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      margin-top: 4px;
      font-size: 0.7rem;
    }

    .seq-badge {
      padding: 2px 6px;
      border-radius: 4px;
      font-weight: 700;
      background: #27354f;
      color: #cbd5e1;
    }

    .seq-badge.type-term {
      background: rgba(192, 132, 252, 0.2);
      color: #d8b4fe;
    }

    .seq-badge.type-img {
      background: rgba(244, 114, 182, 0.2);
      color: #f9a8d4;
    }

    .seq-badge.type-diag {
      background: rgba(56, 189, 248, 0.2);
      color: #7dd3fc;
    }

    .seq-badge.type-seq {
      background: rgba(250, 204, 21, 0.2);
      color: #fde047;
    }

    .seq-badge.mastered {
      background: rgba(34, 197, 94, 0.2);
      color: #4ade80;
    }

    .seq-item-controls {
      display: flex;
      gap: 4px;
      flex-shrink: 0;
    }

    .seq-move-btn {
      background: #0f172a;
      color: var(--text);
      border: 1px solid #475569;
      border-radius: 5px;
      width: 28px;
      height: 28px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 0.8rem;
      font-weight: 700;
    }

    .seq-move-btn:hover:not(:disabled) {
      border-color: var(--accent);
      color: var(--accent);
    }

    .seq-move-btn:disabled {
      opacity: 0.3;
      cursor: default;
    }
