.issues-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;

  .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
  }

  .modal {
    position: absolute;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);
    width: min(920px, 94vw);
    max-height: 80vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;

    .title-area {
      display: flex;
      align-items: center;
      gap: 12px;

      h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        color: #111827;
      }

      .counts {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;

        .count {
          font-size: 12px;
          color: #6b7280;
        }

        .open { color: #2563eb; }
        .in-progress { color: #10b981; }
        .resolved { color: #7c3aed; }
        .closed { color: #ef4444; }
      }
    }

    .close-btn {
      border: none;
      background: transparent;
      font-size: 20px;
      cursor: pointer;
      color: #6b7280;
    }
  }

  .tools {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;

    .search-input {
      flex: 1;
      padding: 8px 10px;
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      font-size: 14px;
    }

    .filters {
      display: flex;
      gap: 8px;

      .chip {
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        padding: 6px 10px;
        font-size: 12px;
        background: #fff;
        cursor: pointer;
      }

      .chip.active {
        border-color: #2563eb;
        color: #2563eb;
        background: #eff6ff;
      }
    }

    .primary {
      border: none;
      background: #2563eb;
      color: #fff;
      padding: 8px 12px;
      border-radius: 8px;
      cursor: pointer;
    }
  }

  .create-form {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;

    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr 1fr;
      gap: 12px;

      .form-item {
        display: flex;
        flex-direction: column;
        gap: 6px;

        label { font-size: 12px; color: #6b7280; }
        input, select, textarea {
          border: 1px solid #e5e7eb;
          border-radius: 8px;
          padding: 8px 10px;
          font-size: 14px;
        }
      }

      .form-item.full { grid-column: span 4; }
    }

    .form-actions {
      display: flex;
      justify-content: flex-end;
      gap: 12px;
      margin-top: 8px;

      .secondary {
        background: #fff;
        border: 1px solid #e5e7eb;
        color: #374151;
        padding: 8px 12px;
        border-radius: 8px;
        cursor: pointer;
      }

      .primary {
        border: none;
        background: #10b981;
        color: #fff;
        padding: 8px 12px;
        border-radius: 8px;
        cursor: pointer;
      }
    }
  }

  .body {
    padding: 12px 16px;
    overflow: auto;
  }

  .issue-list {
    display: flex;
    flex-direction: column;
    gap: 12px;

    .issue-item {
      border: 1px solid #e5e7eb;
      border-radius: 10px;
      padding: 10px;

      .title-row {
        display: flex;
        align-items: center;
        justify-content: space-between;

        .left { display: flex; align-items: center; gap: 8px; }
        .issue-title { font-weight: 600; color: #111827; }

        .badge {
          font-size: 12px;
          padding: 2px 8px;
          border-radius: 12px;
          border: 1px solid #e5e7eb;
          color: #374151;
        }

        .status.open { color: #2563eb; border-color: #bfdbfe; background: #eff6ff; }
        .status.in-progress { color: #10b981; border-color: #a7f3d0; background: #ecfdf5; }
        .status.resolved { color: #7c3aed; border-color: #ddd6fe; background: #f5f3ff; }
        .status.closed { color: #ef4444; border-color: #fecaca; background: #fef2f2; }

        .priority.low { color: #6b7280; }
        .priority.medium { color: #2563eb; }
        .priority.high { color: #f59e0b; }
        .priority.critical { color: #ef4444; }
      }

      .description { margin: 6px 0; color: #374151; }

      .meta { display: flex; gap: 8px; flex-wrap: wrap; color: #6b7280; font-size: 12px; }
      .meta .tag { background: #f3f4f6; border-radius: 10px; padding: 2px 6px; }

      .actions { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
      .actions .action-label { font-size: 12px; color: #6b7280; }
      .actions .ghost { border: 1px dashed #e5e7eb; background: #fff; border-radius: 8px; padding: 4px 8px; font-size: 12px; cursor: pointer; }

      .comments { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
      .comments .comment-item { font-size: 12px; color: #374151; display: flex; gap: 8px; }
      .comments .comment-input { display: flex; gap: 8px; }
      .comments .comment-input input { flex: 1; border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 8px; }
      .comments .comment-input .primary { border: none; background: #2563eb; color: #fff; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
    }
  }

  .loading, .error, .empty {
    padding: 12px;
    color: #6b7280;
  }
}