.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  margin-bottom: 36px;
  margin-top: -22px;
  margin-left: -22px;
  margin-right: -22px;
  padding: 40px 20px 18px;
  border-top: 0;
  border-bottom: 1px solid rgba(21, 37, 58, 0.1);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 14px 32px rgba(27, 45, 70, 0.14);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 50%, rgba(124, 92, 255, 0.07), transparent 30%),
    radial-gradient(circle at 82% 50%, rgba(105, 240, 255, 0.09), transparent 28%),
    linear-gradient(180deg, rgba(247, 250, 255, 0.74), rgba(235, 242, 250, 0.84));
  backdrop-filter: blur(20px) saturate(115%);
  -webkit-backdrop-filter: blur(20px) saturate(115%);
  z-index: 0;
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.title-stack h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  color: #0d2238;
}

.title-stack p {
  margin: 8px 0 0;
  color: rgba(38, 58, 83, 0.84);
  font-size: 14px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill,
.chip,
.btn {
  border: 1px solid rgba(21, 37, 58, 0.1);
  border-radius: 999px;
  background: rgba(250, 252, 255, 0.86);
  color: #102338;
  font: inherit;
}

.pill {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(17, 32, 51, 0.08);
}

.btn {
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(17, 32, 51, 0.1);
  border-color: rgba(17, 32, 51, 0.18);
}

.btn.primary {
  background: linear-gradient(135deg, #1c8c8e, #3155b7);
  color: #fff;
  border-color: transparent;
}

.btn.secondary {
  background: rgba(248, 251, 255, 0.74);
}

.card {
  border-radius: var(--radius-xl);
  background: rgba(247, 250, 255, 0.84);
  border: 1px solid rgba(21, 37, 58, 0.1);
  box-shadow: 0 22px 48px rgba(27, 45, 70, 0.14);
  overflow: hidden;
}

.section-card,
.analysis-card,
.table-card {
  padding: 22px;
  color: #102338;
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.92), rgba(240, 246, 252, 0.9));
}

.section-head,
.table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head p,
.table-head p {
  margin: 8px 0 0;
  color: rgba(38, 58, 83, 0.82);
  font-size: 14px;
  line-height: 1.5;
  max-width: 66ch;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(232, 240, 248, 0.95);
  border: 1px solid rgba(21, 37, 58, 0.1);
  font-size: 12px;
  color: rgba(38, 58, 83, 0.82);
  font-weight: 600;
}

.small-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.small-badge.teal { color: var(--teal); background: var(--teal-soft); }
.small-badge.orange { color: var(--orange); background: var(--orange-soft); }
.small-badge.navy { color: rgba(173, 206, 255, 0.95); background: rgba(55, 82, 132, 0.28); }
.small-badge.red { color: var(--red); background: var(--red-soft); }
.small-badge.lime { color: var(--lime); background: var(--lime-soft); }

.severity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.severity.red {
  color: var(--red);
  background: var(--red-soft);
}

.severity.orange {
  color: var(--orange);
  background: var(--orange-soft);
}

.severity.green {
  color: var(--lime);
  background: var(--lime-soft);
}

.page-panel {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 255, 0.92));
  border: 1px solid rgba(21, 37, 58, 0.08);
  box-shadow: 0 22px 48px rgba(27, 45, 70, 0.12);
}

.page-panel h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 0.98;
}

.page-panel p {
  margin: 0;
  max-width: 62ch;
  color: rgba(46, 68, 95, 0.76);
  line-height: 1.6;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.placeholder-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(21, 37, 58, 0.08);
}

.placeholder-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.placeholder-card p {
  margin: 0;
  color: rgba(46, 68, 95, 0.76);
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .topbar {
    margin-top: -14px;
    margin-left: -14px;
    margin-right: -14px;
  }

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

@media (max-width: 820px) {
  .topbar {
    position: static;
    margin: 0 -14px 20px;
    padding: 20px 16px 16px;
  }

  .topbar-actions {
    justify-content: flex-start;
  }
}

body.support-modal-open {
  overflow: hidden;
}

.support-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
}

.support-widget-launch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px 9px 9px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(17, 35, 56, 0.96), rgba(28, 140, 142, 0.94));
  color: #fff;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(11, 22, 36, 0.28);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.support-widget-launch:hover,
.support-widget-launch:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(11, 22, 36, 0.34);
}

.support-widget-launch-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 14px;
}

.support-widget-launch-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}

.support-widget-launch-copy strong {
  font-size: 13px;
  line-height: 1.1;
}

.support-widget-launch-copy span {
  display: none;
}

.support-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  overflow-y: auto;
  padding: 24px 14px;
}

.support-modal-shell.is-open {
  display: block;
}

.support-success-shell {
  display: none;
  align-items: center;
  justify-content: center;
}

.support-success-shell.is-open {
  display: flex;
}

.support-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 29, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.support-modal {
  position: relative;
  width: min(680px, calc(100vw - 28px));
  max-height: calc(100vh - 48px);
  margin: 0 auto;
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.98), rgba(239, 246, 252, 0.96));
  border: 1px solid rgba(21, 37, 58, 0.12);
  box-shadow: 0 30px 80px rgba(12, 24, 39, 0.28);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.support-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.support-modal-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(28, 140, 142, 0.12);
  color: #196f79;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-modal-head h2 {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 0.96;
  color: #0d2238;
}

.support-modal-head p {
  margin: 0;
  max-width: 56ch;
  color: rgba(38, 58, 83, 0.82);
  line-height: 1.55;
}

.support-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(21, 37, 58, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #102338;
  font: inherit;
  cursor: pointer;
}

.support-form {
  display: grid;
  gap: 18px;
}

.support-success-modal {
  width: min(560px, calc(100vw - 28px));
  max-height: none;
  padding: 34px 30px;
  overflow: visible;
}

.support-success-modal-copy {
  display: grid;
  gap: 12px;
}

.support-success-modal-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 0.98;
  color: #0d2238;
}

.support-success-modal-copy p {
  margin: 0;
  color: rgba(38, 58, 83, 0.84);
  line-height: 1.6;
}

.support-success-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.support-form-notice {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.support-form-notice.is-hidden {
  display: none;
}

.support-form-notice.is-error {
  background: rgba(191, 61, 37, 0.12);
  color: #8c2f1c;
}

.support-form-notice.is-success {
  background: rgba(45, 123, 71, 0.12);
  color: #215b33;
}

.support-category-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.support-category-group legend,
.support-priority-group legend {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #102338;
}

.support-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.support-category-option {
  display: block;
}

.support-category-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.support-category-card {
  display: grid;
  gap: 6px;
  min-height: 108px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(21, 37, 58, 0.1);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(27, 45, 70, 0.08);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
  cursor: pointer;
}

.support-category-card strong {
  font-size: 15px;
  color: #102338;
}

.support-category-card span {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(38, 58, 83, 0.8);
}

.support-category-option:hover .support-category-card,
.support-category-input:focus-visible + .support-category-card {
  transform: translateY(-1px);
  border-color: rgba(49, 85, 183, 0.32);
  box-shadow: 0 16px 34px rgba(27, 45, 70, 0.12);
}

.support-category-input:checked + .support-category-card {
  border-color: rgba(49, 85, 183, 0.4);
  background: linear-gradient(180deg, rgba(235, 244, 255, 0.96), rgba(224, 238, 249, 0.92));
  box-shadow: 0 18px 36px rgba(27, 45, 70, 0.14);
}

.support-priority-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.support-priority-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.support-priority-option {
  display: block;
}

.support-priority-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.support-priority-card {
  display: grid;
  gap: 6px;
  min-height: 94px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(21, 37, 58, 0.1);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(27, 45, 70, 0.08);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
  cursor: pointer;
}

.support-priority-card strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #102338;
}

.support-priority-card strong .fa-circle-exclamation {
  color: #ba3d30;
  font-size: 14px;
}

.support-priority-card span {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(38, 58, 83, 0.8);
}

.support-priority-option:hover .support-priority-card,
.support-priority-input:focus-visible + .support-priority-card {
  transform: translateY(-1px);
  border-color: rgba(49, 85, 183, 0.32);
  box-shadow: 0 16px 34px rgba(27, 45, 70, 0.12);
}

.support-priority-input:checked + .support-priority-card {
  border-color: rgba(49, 85, 183, 0.4);
  background: linear-gradient(180deg, rgba(235, 244, 255, 0.96), rgba(224, 238, 249, 0.92));
  box-shadow: 0 18px 36px rgba(27, 45, 70, 0.14);
}

.support-priority-input[value="critical"]:checked + .support-priority-card {
  border-color: rgba(191, 61, 37, 0.34);
  background: linear-gradient(180deg, rgba(255, 239, 235, 0.96), rgba(252, 226, 219, 0.92));
}

.support-priority-note {
  margin: 12px 2px 0;
  color: rgba(63, 39, 31, 0.84);
  font-size: 13px;
  line-height: 1.5;
}

.support-field {
  display: grid;
  gap: 8px;
}

.support-field span {
  font-size: 14px;
  font-weight: 700;
  color: #102338;
}

.support-field input,
.support-field textarea {
  width: 100%;
  border: 1px solid rgba(21, 37, 58, 0.14);
  border-radius: 18px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.9);
  color: #102338;
  font: inherit;
  resize: vertical;
}

.support-field input:focus,
.support-field textarea:focus {
  outline: none;
  border-color: rgba(49, 85, 183, 0.44);
  box-shadow: 0 0 0 4px rgba(49, 85, 183, 0.12);
}

.support-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 820px) {
  .support-widget {
    right: 14px;
    bottom: 14px;
  }

  .support-modal-shell {
    padding: 10px 9px;
  }

  .support-modal {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 20px);
    margin: 0 auto;
    padding: 18px;
    border-radius: 22px;
  }

  .support-success-modal {
    padding: 28px 20px;
  }

  .support-category-grid {
    grid-template-columns: 1fr;
  }

  .support-priority-grid {
    grid-template-columns: 1fr;
  }

  .support-form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .support-form-actions .btn {
    width: 100%;
  }
}
