* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  background: #0b1020;
  color: #eef2ff;
}

.header {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
  padding: 16px;
}

.panel,
.details {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
}

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.input,
.select,
.textarea {
  background: rgba(255, 255, 255, 0.06);
  color: #eef2ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}

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

.btn {
  border: 0;
  background: #5b7cfa;
  color: white;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.12);
}
.btn--danger {
  background: #ef4444;
}

.icon-btn {
  border: 0;
  background: transparent;
  color: #eef2ff;
  font-size: 18px;
  cursor: pointer;
}

.badge {
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
}

.tickets {
  display: grid;
  gap: 10px;
}

.ticket {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.ticket:hover {
  border-color: rgba(91, 124, 250, 0.6);
}

.ticket__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ticket__title {
  margin: 0;
  font-size: 16px;
}
.ticket__meta {
  opacity: 0.8;
  font-size: 13px;
  margin-top: 6px;
}

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  text-transform: capitalize;
}

.empty {
  opacity: 0.7;
  margin: 14px 0 0;
}
.hidden {
  display: none;
}

.details__empty {
  opacity: 0.7;
  padding: 10px;
}
.details__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.details__desc {
  opacity: 0.9;
  line-height: 1.4;
}
.details__meta {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  opacity: 0.9;
}
.details__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal__card {
  width: min(520px, 100%);
  background: #0b1020;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hidden {
  display: none !important;
}

.form {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.label {
  display: grid;
  gap: 8px;
}
.form__actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
}
