.filters {
  flex-wrap: wrap;
}

.toast {
  animation: toast-arrive 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.toast.is-leaving {
  pointer-events: none;
  animation: toast-leave 0.42s ease-in both;
}

@keyframes toast-arrive {
  from { opacity: 0; transform: translateY(-16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-leave {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-12px) scale(0.97); }
}

.resolution-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  border-color: #b9ddce;
  background: linear-gradient(135deg, #f4fbf7, #fff 70%);
  box-shadow: none;
}

.resolution-card h2,
.closure-card h2 {
  margin: 3px 0 12px;
}

.resolution-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: #167b55;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.closure-card {
  border-color: #e2c3bf;
  background: #fffaf9;
  box-shadow: none;
}

.closure-card > p {
  margin: 0 0 16px;
  color: var(--muted);
}

.closure-confirm {
  margin-bottom: 20px;
}

.reopen-form {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #eadbd8;
}

.reopen-form label {
  display: grid;
  gap: 7px;
  font-weight: 650;
}

.reopen-form textarea {
  width: 100%;
  padding: 11px 12px;
  resize: vertical;
  border: 1px solid #d6d5d3;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.reopen-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(65, 121, 189, 0.13);
}

.reopen-form .button {
  justify-self: start;
}

.claim-form p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.claim-current {
  display: block;
  color: #167b55;
  font-weight: 800;
  text-align: center;
}

.assignment-form {
  display: grid;
  gap: 14px;
  border-color: #cbd8e7;
  background: linear-gradient(145deg, #f7faff, #fff 72%);
  box-shadow: none;
}

.location-form {
  display: grid;
  gap: 14px;
  box-shadow: none;
}

.location-form h2 {
  margin: -8px 0 2px;
}

.location-form label {
  display: grid;
  gap: 7px;
  font-weight: 650;
}

.location-form select,
.location-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d6d5d3;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.building-groups {
  display: grid;
  gap: 20px;
}

.building-section {
  margin-bottom: 0;
}

.building-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.building-section-head h2 {
  margin: 2px 0 0;
  font-size: 26px;
}

.building-count {
  display: grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.building-unspecified {
  border-style: dashed;
}

.assignment-form h2 {
  margin: -8px 0 2px;
}

.assignment-field {
  display: grid;
  gap: 7px;
  font-weight: 650;
}

.assignment-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d6d5d3;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.ticket-delete-form {
  border-color: #e4b9b5;
  background: #fff9f8;
  box-shadow: none;
}

.admin-close-form {
  display: grid;
  gap: 14px;
  border-color: #e6c28d;
  background: #fffbf3;
  box-shadow: none;
}

.admin-close-form h2 {
  margin: -8px 0 0;
}

.admin-close-form p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.admin-close-form label {
  display: grid;
  gap: 7px;
  font-weight: 650;
}

.admin-close-form textarea {
  width: 100%;
  padding: 10px 12px;
  resize: vertical;
  border: 1px solid #d6d5d3;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.ticket-delete-form h2 {
  margin: 3px 0 8px;
}

.ticket-delete-form p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.assignment-field small,
.manage-form label small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.ticket-author {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.ticket-author b {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-author small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .resolution-card { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .resolution-mark { width: 40px; height: 40px; }
  .closure-confirm .button,
  .reopen-form .button { width: 100%; }
}
