.head h1 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.card {
  margin-bottom: 1rem;
}

.card h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.form-group label {
  font-size: 0.84rem;
}

.input,
.textarea,
select.input {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: 0.55rem;
  padding: 0.5rem 0.7rem;
  font-size: 0.88rem;
  outline: none;
  width: 100%;
}

.textarea {
  min-height: 110px;
  resize: vertical;
}

.input:focus,
.textarea:focus,
select.input:focus {
  border-color: rgba(56, 189, 248, 0.7);
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  border: none;
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.alert.ok {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #86efac;
}

.ticket-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  cursor: pointer;
}

.ticket-row:first-of-type {
  border-top: none;
}

.ticket-row:hover {
  background: rgba(56, 189, 248, 0.04);
}

.ticket-main {
  flex: 1;
  min-width: 0;
}

.ticket-subject {
  font-weight: 600;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-meta {
  font-size: 0.74rem;
  opacity: 0.65;
  margin-top: 0.15rem;
}

.pill {
  padding: 0.14rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  white-space: nowrap;
}

.pill-open {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.5);
}

.pill-assigned {
  background: rgba(251, 191, 36, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.5);
}

.pill-closed {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.cat-tag {
  font-size: 0.7rem;
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
  padding: 0.1rem 0.5rem;
  border-radius: 0.4rem;
}

.new-btn-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.3rem !important;
  }

  .card {
    padding: 0.9rem !important;
  }
}
