:root {
  --portal-accent: #0d6efd;
  --portal-bg: #f4f6f9;
}

body {
  background: var(--portal-bg);
}

.portal-header {
  background: #fff;
  border-bottom: 1px solid #dee2e6;
}

.portal-brand {
  color: #212529;
  font-weight: 700;
  text-decoration: none;
}

.portal-brand:hover {
  color: var(--portal-accent);
}

.portal-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.portal-shell {
  max-width: 1080px;
}

.portal-hero {
  background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
  color: #fff;
  border-radius: 1rem;
}

.portal-card {
  border: 0;
  border-radius: 1rem;
}

.portal-label {
  font-weight: 600;
  color: #343a40;
}

.form-control,
.form-select {
  min-height: 44px;
}

textarea.form-control {
  min-height: 92px;
}

.ticket-thread-item {
  border-left: 3px solid #dee2e6;
}

.ticket-thread-item.staff {
  border-left-color: var(--portal-accent);
  background: #f8f9ff;
}

.ticket-thread-item.guest {
  border-left-color: #198754;
  background: #f6fdf9;
}

.secure-link-box {
  background: #f8f9fa;
  border: 1px dashed #ced4da;
  border-radius: .75rem;
  word-break: break-all;
}

.attachment-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.portal-footer {
  color: #6c757d;
  font-size: .875rem;
}

@media (max-width: 575.98px) {
  .portal-shell {
    padding-left: .75rem;
    padding-right: .75rem;
  }

  .portal-hero {
    border-radius: .75rem;
  }

  .portal-card {
    border-radius: .75rem;
  }

  .portal-header .btn {
    padding: .35rem .6rem;
    font-size: .875rem;
  }

  .portal-actions .btn {
    width: 100%;
  }
}
