:root {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #1f2933;
  background-color: #f5f7fb;
}

body {
  margin: 0;
  background-color: #f5f7fb;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
}

.site-header,
.site-footer {
  background: #0f172a;
  color: #fff;
}

.site-header h1 {
  margin: 0;
  font-size: 1.5rem;
}

.page-heading {
  max-width: 680px;
  margin-bottom: 24px;
}

.page-heading h2,
.ticket-status h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 2rem;
}

.eyebrow {
  margin: 0 0 6px;
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 16px;
}

.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 12px;
}

.card h3,
.section-heading h3 {
  margin: 0;
  font-size: 1.15rem;
}

.subtle {
  color: #475569;
}

label {
  font-weight: 600;
}

input,
textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5f5;
  font-size: 1rem;
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

button {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

button:hover,
.button-link:hover {
  background: #1d4ed8;
}

.status-message {
  margin-top: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 8px;
}

.status-message.error {
  background: #fee2e2;
  color: #991b1b;
}

.hint {
  color: #475569;
  margin-top: 0;
}

dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  margin: 0;
}

dt {
  font-weight: 600;
}

.ticket-list {
  margin-top: 8px;
}

.ticket-table {
  display: grid;
  gap: 8px;
}

.ticket-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 110px 150px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  color: #1f2933;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.ticket-row:hover {
  border-color: #2563eb;
}

.ticket-id {
  font-weight: 700;
}

.ticket-subject {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-date {
  color: #475569;
  font-size: 0.95rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 72px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.85rem;
  font-weight: 700;
}

.ticket-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.timeline {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.timeline-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
}

.timeline-item p {
  margin: 10px 0 0;
  white-space: pre-wrap;
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #475569;
}

.button-link {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  padding: 10px 16px;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .container {
    padding: 18px;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .ticket-row {
    grid-template-columns: 1fr;
  }

  dl {
    grid-template-columns: 1fr;
  }

  .timeline-meta,
  .ticket-title {
    align-items: flex-start;
    flex-direction: column;
  }
}
