@import './button-motion.css';
@import './interaction-guard.css';
@import './session-island.css';
@import './footer-credit.css';
/* ═══════════════ FreeF1 — Help & Support Desk ═══════════════
   Matches the multi-page FreeF1 design system (layout.css / outage.css):
   #0e0f11 carbon canvas, shared 64px shell header, #18191d raised card,
   upright Archivo 700 headings, clean form surfaces, and shared footer. */

@import './outage.css';

:root {
  --page: #0e0f11;
  --bg-elev: #141518;
  --card: #18191d;
  --card-2: #212227;
  --card-3: #2b2c31;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --fg: #cecfd2;
  --fg-2: #a9abaf;
  --fg-3: #96999e;
  --fg-4: #7e8188;
  --white: #ffffff;
  --accent: #e10600;
  --green: #25d366;
  --amber: #f59e0b;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  min-height: 100%;
  background: var(--page);
  color: var(--fg);
  color-scheme: dark;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(880px 420px at 50% -140px, rgba(225, 6, 0, 0.07), transparent 70%),
    var(--page);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(225, 6, 0, 0.4);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
[role='button'],
[role='option'],
summary {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.wrap {
  width: min(100%, calc(var(--wrap) + clamp(40px, 10vw, 112px)));
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

/* ── Shared 64px FreeF1 Shell Header ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition:
    background-color 180ms var(--ease),
    border-color 180ms var(--ease),
    backdrop-filter 180ms var(--ease);
}

.nav.stuck {
  background: color-mix(in srgb, var(--page) 94%, transparent);
  border-bottom-color: var(--line-2);
}

.nav-inner {
  width: min(100%, calc(var(--wrap) + clamp(40px, 10vw, 112px)));
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  flex-shrink: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-mark svg {
  width: 18px;
  height: 18px;
  display: block;
}

.brand-text {
  font-family: 'Archivo', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--fg-2);
  transition: color 150ms var(--ease), background-color 150ms var(--ease);
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a[aria-current='page'],
.nav-links .help-nav-current {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.help-notification-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(225, 6, 0, 0.7);
}

.help-notification-dot[hidden] {
  display: none !important;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  order: 3;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-2);
  white-space: nowrap;
}

.nav-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  flex-shrink: 0;
}

.nav-pill.is-offline {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

.nav-pill.is-offline .dot {
  background: var(--amber);
}

html:has(#partialOutageStage) .nav-pill {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

html:has(#partialOutageStage) .nav-pill .dot {
  background: var(--amber);
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 15px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
}

/* ── Main Help Container & Card ── */
.help-main {
  flex: 1;
  width: min(100%, 760px);
  margin: clamp(32px, 5vh, 56px) auto 52px;
  padding-inline: clamp(18px, 4vw, 28px);
}

.help-card {
  position: relative;
  padding: clamp(26px, 4.5vw, 42px);
  border-radius: 20px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(225, 6, 0, 0.08), transparent 62%),
    var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 64px rgba(0, 0, 0, 0.42);
}

.help-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.help-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(225, 6, 0, 0.14);
  border: 1px solid rgba(225, 6, 0, 0.32);
  color: #ff9a96;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.help-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

.help-badge {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-3);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

h1,
.ticket-heading {
  margin: 0 0 10px;
  font-family: 'Archivo', 'Inter', sans-serif;
  font-size: clamp(28px, 4.2vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--white);
}

.help-intro {
  max-width: 62ch;
  margin: 0 0 20px;
  color: var(--fg-2);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ── Availability Banner ── */
.help-status {
  margin: 0 0 22px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.help-status[data-state='ready'] {
  background: rgba(37, 211, 102, 0.08);
  border-color: rgba(37, 211, 102, 0.28);
  color: #a3f5be;
}

.help-status[data-state='offline'],
.help-status[data-state='error'] {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

/* ── Request Form ── */
#helpRequestForm {
  display: grid;
  gap: 16px;
}

.help-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.help-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

.help-field > span:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--fg-2);
  font-size: 12.5px;
  font-weight: 600;
}

.help-field small {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fg-4);
  font-variant-numeric: tabular-nums;
}

.help-field input,
.help-field select,
.help-field textarea,
#chatMessage {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg-elev);
  color: var(--white);
  font-size: 14px;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease), background-color 150ms var(--ease);
}

.help-field input,
.help-field select {
  min-height: 44px;
  padding: 0 13px;
}

.help-field textarea,
#chatMessage {
  min-height: 140px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.55;
}

.help-field input::placeholder,
.help-field textarea::placeholder,
#chatMessage::placeholder {
  color: var(--fg-4);
}

.help-field input:hover,
.help-field textarea:hover,
#chatMessage:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.help-field input:focus,
.help-field select:focus,
.help-field textarea:focus,
#chatMessage:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.help-field input:-webkit-autofill,
.help-field input:-webkit-autofill:hover,
.help-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0 1000px #141518 inset;
}

/* ── Custom Category Select ── */
.select-shell {
  position: relative;
  width: 100%;
}

.select-shell.is-open {
  z-index: 30;
}

.select-shell > .native-select-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.select-trigger {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg-elev);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}

.select-trigger:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.22);
  background: var(--card);
}

.select-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-chevron {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-right: 1.5px solid var(--fg-3);
  border-bottom: 1.5px solid var(--fg-3);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease);
}

.select-trigger[aria-expanded='true'] {
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.select-trigger[aria-expanded='true'] .select-chevron {
  border-color: var(--white);
  transform: translateY(2px) rotate(225deg);
}

.select-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 2px;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
  animation: helpSelectMenuIn 160ms var(--ease);
}

.select-menu[hidden] {
  display: none;
}

.select-menu.above {
  top: auto;
  bottom: calc(100% + 6px);
}

@keyframes helpSelectMenuIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.select-option {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--fg-2);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}

.select-option:hover,
.select-option:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.select-option[aria-selected='true'] {
  color: var(--white);
  background: rgba(225, 6, 0, 0.16);
  border-color: rgba(225, 6, 0, 0.36);
}

.select-option.is-disabled {
  color: var(--fg-4);
  cursor: not-allowed;
}

/* ── Notes, Diagnostics & Actions ── */
.help-upload-note {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  color: var(--fg-2);
  font-size: 13px;
  line-height: 1.55;
}

.help-upload-note b {
  color: var(--white);
  font-weight: 600;
}

.diagnostics-details {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
}

.diagnostics-details summary {
  cursor: pointer;
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
}

.diagnostics-details p {
  margin-top: 8px;
  color: var(--fg-3);
  font-size: 12.5px;
  line-height: 1.6;
}

.diagnostics-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--fg-2);
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

.diagnostics-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.help-privacy {
  color: var(--fg-4);
  font-size: 12px;
  line-height: 1.55;
}

.help-submit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.help-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--page);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease), opacity 150ms var(--ease);
}

.help-submit:hover:not(:disabled) {
  background: #e6e7eb;
  border-color: #e6e7eb;
}

.help-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.help-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.help-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--card-2);
  color: #f5f5f7;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease);
}

.help-secondary-btn:hover {
  background: var(--card-3);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--white);
}

.help-secondary-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.help-error {
  color: #ff9a96;
  font-size: 13px;
  line-height: 1.5;
}

.help-footer-note {
  margin: 16px 8px 0;
  color: var(--fg-4);
  text-align: center;
  font-size: 12.5px;
  line-height: 1.6;
}

/* ── Active Ticket Conversation Panel ── */
.ticket-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ticket-state {
  padding: 5px 11px;
  border: 1px solid rgba(37, 211, 102, 0.32);
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.12);
  color: #8bf0ae;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ticket-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 16px 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  color: var(--fg-3);
  font-size: 12.5px;
}

.ticket-summary strong {
  color: var(--white);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
}

.ticket-summary span:last-child {
  margin-left: auto;
  color: var(--fg-2);
  font-weight: 500;
}

.chat-messages {
  max-height: min(56vh, 520px);
  min-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--page);
  scroll-behavior: smooth;
}

.chat-empty {
  margin: auto;
  max-width: 34ch;
  color: var(--fg-4);
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}

.chat-message {
  max-width: 86%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  background: var(--card-2);
}

.chat-message.visitor {
  align-self: flex-end;
  border-color: rgba(225, 6, 0, 0.3);
  border-radius: 14px 14px 4px 14px;
  background: rgba(225, 6, 0, 0.12);
}

.chat-message.staff {
  align-self: flex-start;
}

.chat-message-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 5px;
  color: var(--white);
  font-size: 12px;
  font-weight: 650;
}

.chat-message-head time {
  color: var(--fg-4);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
}

.chat-message-text {
  margin: 0;
  color: #e6e7eb;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13.5px;
  line-height: 1.55;
}

.chat-form {
  margin-top: 16px;
}

.chat-form .help-field {
  margin-bottom: 8px;
}

#chatMessage {
  min-height: 96px;
}

.chat-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.chat-actions small {
  max-width: 38ch;
  color: var(--fg-4);
  font-size: 12px;
  line-height: 1.5;
}

.ticket-delete-row {
  margin-top: 22px;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  color: var(--fg-4);
  font-size: 12.5px;
}

.delete-ticket {
  padding: 7px 12px;
  border: 1px solid rgba(225, 6, 0, 0.34);
  border-radius: 8px;
  background: rgba(225, 6, 0, 0.08);
  color: #ff9a96;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}

.delete-ticket:hover {
  background: rgba(225, 6, 0, 0.16);
  border-color: rgba(225, 6, 0, 0.5);
}

/* ── Shared FreeF1 Footer ── */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 32px;
  color: var(--fg-4);
  font-size: 12.5px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.footer-tagline {
  margin-top: 10px;
  max-width: 34ch;
  font-size: 12.5px;
  color: var(--fg-4);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-3);
  transition: color 150ms var(--ease);
}

.footer-nav a:hover,
.footer-nav a[aria-current='page'] {
  color: var(--white);
}

.footer-nav a.footer-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg-2);
  transition: color 150ms var(--ease), background-color 150ms var(--ease), border-color 150ms var(--ease);
}

.footer-nav a.footer-discord:hover {
  color: var(--white);
  background: rgba(88, 101, 242, 0.22);
  border-color: rgba(88, 101, 242, 0.48);
}

.footer-bottom {
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: var(--fg-2);
  transition: color 150ms var(--ease);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px clamp(20px, 5vw, 56px) 16px;
    background: rgba(14, 15, 17, 0.98);
    border-bottom: 1px solid var(--line-2);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 12px;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .help-form-grid {
    grid-template-columns: 1fr;
  }

  .help-submit-row {
    flex-direction: column;
    align-items: stretch;
  }

  .chat-message {
    max-width: 94%;
  }

  .chat-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@view-transition { navigation: auto; }

body > .nav { view-transition-name: site-nav; }
::view-transition-group(site-nav) {
  animation-duration: .22s;
  animation-timing-function: cubic-bezier(.16, 1, .3, 1);
  z-index: 200;
}
::view-transition-old(site-nav),
::view-transition-new(site-nav) {
  animation-duration: .14s;
}

@media (min-width: 901px) {
  .nav-links a[aria-current="page"]::after { view-transition-name: nav-active-bar; }
  ::view-transition-group(nav-active-bar) {
    animation-duration: .26s;
    animation-timing-function: cubic-bezier(.16, 1, .3, 1);
    z-index: 201;
  }
}

::view-transition-old(root) {
  animation: pageOut .16s cubic-bezier(.4, 0, .2, 1) both;
}
::view-transition-new(root) {
  animation: pageIn .26s cubic-bezier(.16, 1, .3, 1) .02s both;
}
@keyframes pageOut { to { opacity: 0; transform: translate3d(0, -4px, 0) scale(.996); } }
@keyframes pageIn { from { opacity: 0; transform: translate3d(0, 7px, 0); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .chat-messages {
    scroll-behavior: auto;
  }

  .select-menu {
    animation: none;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
  }

  .nav,
  .nav-links a,
  .help-field input,
  .help-field select,
  .help-field textarea,
  #chatMessage,
  .select-trigger,
  .select-chevron,
  .select-option,
  .help-submit,
  .help-secondary-btn,
  .delete-ticket,
  .footer-nav a {
    transition: none;
  }
}
