    /* Source type tabs */
    .source-tabs {
      display: flex;
      gap: 4px;
      background: var(--color-bg);
      border: 1px solid var(--color-border);
      border-radius: 8px;
      padding: 4px;
      margin-bottom: 28px;
      flex-wrap: wrap;
    }
    .source-tab {
      flex: 1;
      min-width: 100px;
      padding: 10px 16px;
      border: none;
      border-radius: 6px;
      background: transparent;
      font-family: var(--font-body);
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--color-text-muted);
      cursor: pointer;
      transition: all 150ms ease;
      text-align: center;
    }
    .source-tab.active {
      background: var(--color-surface);
      color: var(--color-primary);
      box-shadow: var(--shadow-sm);
    }
    .source-tab:hover:not(.active) {
      color: var(--color-text);
    }

    /* Form panels */
    .source-panel { display: none; }
    .source-panel.active { display: block; }

    /* Form fields */
    .cite-form-group {
      margin-bottom: 18px;
    }
    .cite-form-group label {
      display: block;
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--color-text-muted);
      margin-bottom: 6px;
    }
    .cite-form-group input,
    .cite-form-group select {
      width: 100%;
      padding: 10px 14px;
      border: 1px solid var(--color-border);
      border-radius: var(--radius-sm);
      font-family: var(--font-body);
      font-size: 0.88rem;
      color: var(--color-text);
      background: var(--color-surface);
      outline: none;
      box-sizing: border-box;
    }
    .cite-form-group input:focus,
    .cite-form-group select:focus {
      border-color: var(--color-primary);
      box-shadow: 0 0 0 3px var(--color-primary-light);
    }
    .cite-form-group input::placeholder {
      color: var(--color-text-muted);
    }

    /* Row layouts */
    .cite-row {
      display: flex;
      gap: 14px;
    }
    .cite-row .cite-form-group {
      flex: 1;
    }
    .cite-row-3 .cite-form-group {
      flex: 1;
    }
    .cite-row-4 .cite-form-group {
      flex: 1;
    }

    /* Author entries */
    .author-entry {
      display: flex;
      gap: 10px;
      align-items: flex-end;
      margin-bottom: 10px;
    }
    .author-entry .cite-form-group {
      flex: 1;
      margin-bottom: 0;
    }
    .author-remove-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 38px;
      height: 38px;
      border: none;
      border-radius: var(--radius-sm);
      background: transparent;
      color: var(--color-text-muted);
      cursor: pointer;
      transition: all 150ms ease;
      flex-shrink: 0;
      margin-bottom: 0;
    }
    .author-remove-btn:hover {
      background: #fef2f2;
      color: #ef4444;
    }
    .add-author-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 14px;
      border: 1px dashed var(--color-border);
      border-radius: var(--radius-sm);
      background: transparent;
      font-family: var(--font-body);
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--color-primary);
      cursor: pointer;
      transition: all 150ms ease;
      margin-bottom: 18px;
    }
    .add-author-btn:hover {
      background: var(--color-primary-light);
      border-color: var(--color-primary-subtle);
    }

    /* Date fields */
    .date-row {
      display: flex;
      gap: 10px;
    }
    .date-row .cite-form-group {
      flex: 1;
    }
    .date-row .cite-form-group:first-child {
      flex: 1.5;
    }

    /* Section divider */
    .cite-section-label {
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--color-text-muted);
      margin-bottom: 14px;
      padding-bottom: 8px;
      border-bottom: 1px solid var(--color-border-light);
    }

    /* Citation preview */
    .cite-preview-box {
      padding: 24px;
      background: var(--color-bg);
      border: 1px solid var(--color-border);
      border-radius: var(--radius-md);
      margin-bottom: 16px;
      min-height: 60px;
    }
    .cite-preview-box .cite-output {
      font-family: 'Times New Roman', Times, Georgia, serif;
      font-size: 1rem;
      line-height: 2;
      color: var(--color-text);
      padding-left: 36px;
      text-indent: -36px;
      word-break: break-word;
    }
    .cite-preview-box .cite-output i {
      font-style: italic;
    }
    .cite-preview-placeholder {
      font-size: 0.88rem;
      color: var(--color-text-muted);
      font-style: italic;
    }

    /* Action buttons row */
    .cite-action-row {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 32px;
    }

    /* Works cited list */
    .works-cited-section {
      border-top: 2px solid var(--color-border);
      padding-top: 28px;
    }
    .works-cited-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
      flex-wrap: wrap;
      gap: 10px;
    }
    .works-cited-header h3 {
      font-size: 1rem;
      font-weight: 700;
      color: var(--color-text);
      margin: 0;
    }
    .works-cited-count {
      font-size: 0.8rem;
      color: var(--color-text-muted);
      font-weight: 500;
    }
    .works-cited-list {
      list-style: none;
      padding: 0;
      margin: 0 0 16px 0;
    }
    .works-cited-list li {
      position: relative;
      padding: 16px 20px;
      padding-right: 50px;
      background: var(--color-surface);
      border: 1px solid var(--color-border-light);
      border-radius: var(--radius-sm);
      margin-bottom: 8px;
      font-family: 'Times New Roman', Times, Georgia, serif;
      font-size: 0.95rem;
      line-height: 2;
      color: var(--color-text);
      padding-left: 56px;
      text-indent: -36px;
      word-break: break-word;
    }
    .works-cited-list li i {
      font-style: italic;
    }
    .wc-remove-btn {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      width: 32px;
      height: 32px;
      border: none;
      border-radius: var(--radius-sm);
      background: transparent;
      color: var(--color-text-muted);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 150ms ease;
    }
    .wc-remove-btn:hover {
      background: #fef2f2;
      color: #ef4444;
    }
    .works-cited-empty {
      padding: 32px 20px;
      text-align: center;
      color: var(--color-text-muted);
      font-size: 0.88rem;
      background: var(--color-bg);
      border: 1px dashed var(--color-border);
      border-radius: var(--radius-md);
    }

    /* Toast */
    .toast-msg {
      position: fixed;
      bottom: 24px;
      right: 24px;
      padding: 12px 20px;
      border-radius: var(--radius-sm);
      font-size: 0.85rem;
      font-weight: 600;
      color: white;
      background: var(--color-text);
      box-shadow: var(--shadow-lg);
      z-index: 999;
      opacity: 0;
      transform: translateY(12px);
      transition: all 250ms ease;
      pointer-events: none;
    }
    .toast-msg.show { opacity: 1; transform: translateY(0); }

    @media (max-width: 768px) {
      .source-tabs { flex-direction: column; }
      .source-tab { min-width: auto; }
      .cite-row { flex-direction: column; gap: 0; }
      .date-row { flex-direction: column; gap: 0; }
      .author-entry { flex-wrap: wrap; }
    }
    @media (max-width: 480px) {
      .cite-action-row { flex-direction: column; }
      .cite-action-row .btn { width: 100%; }
    }
