/* Shared support center — visually continuous with the host workbench. */
.support-launch {
  min-height: 40px;
  padding: 8px 13px;
  color: var(--primary, #0071e3);
  background: rgb(0 113 227 / 8%);
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms cubic-bezier(.2, .8, .2, 1);
}
.support-launch:hover { background: rgb(0 113 227 / 13%); }
.support-launch:active { transform: scale(.97); }

.support-dialog {
  width: min(780px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 28px;
  color: var(--ink, #1d1d1f);
  background: #fff;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 24px;
  box-shadow: 0 28px 90px rgb(0 0 0 / 24%);
}
.support-dialog::backdrop {
  background: rgb(29 29 31 / 34%);
  backdrop-filter: saturate(120%) blur(14px);
  -webkit-backdrop-filter: saturate(120%) blur(14px);
}
.support-dialog header { position: sticky; top: -28px; z-index: 2; margin: -28px -28px 20px; padding: 22px 28px 18px; background: rgb(255 255 255 / 88%); border-bottom: 1px solid var(--line, rgb(0 0 0 / 8%)); backdrop-filter: blur(20px); }
.support-dialog header, .support-dialog nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.support-dialog h2 { margin: 0; color: var(--ink, #1d1d1f); font-size: 24px; font-weight: 650; letter-spacing: -.025em; }
.support-dialog h3 { margin-bottom: 14px; font-size: 18px; font-weight: 650; }
.support-dialog button { min-height: 40px; padding: 8px 14px; color: var(--primary, #0071e3); background: var(--surface-soft, #f5f5f7); border: 0; border-radius: 11px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.support-dialog header button { width: 40px; padding: 0; overflow: hidden; color: transparent; border-radius: 50%; }
.support-dialog header button::after { display: grid; place-items: center; color: var(--muted-strong, #424245); content: "×"; font-size: 21px; line-height: 1; }
.support-dialog nav { justify-content: flex-start; width: fit-content; margin-bottom: 20px; padding: 4px; gap: 4px; background: #ededf0; border-radius: 11px; }
.support-dialog nav button { min-height: 34px; padding-inline: 14px; color: var(--muted-strong, #424245); background: transparent; border-radius: 8px; font-weight: 550; }
.support-dialog nav button[aria-selected="true"] { color: var(--ink, #1d1d1f); background: #fff; box-shadow: 0 1px 5px rgb(0 0 0 / 14%); }
.support-dialog button:focus-visible, .support-dialog input:focus-visible, .support-dialog textarea:focus-visible, .support-dialog select:focus-visible { outline: 3px solid rgb(0 113 227 / 34%); outline-offset: 3px; }
.support-dialog form { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line, rgb(0 0 0 / 8%)); }
.support-dialog label { display: grid; gap: 8px; margin: 14px 0; color: var(--ink, #1d1d1f); font-size: 14px; font-weight: 550; }
.support-dialog input, .support-dialog select, .support-dialog textarea { width: 100%; min-height: 48px; box-sizing: border-box; padding: 11px 14px; color: var(--ink, #1d1d1f); background: #fff; border: 1px solid var(--line-strong, rgb(0 0 0 / 16%)); border-radius: 12px; font: inherit; font-size: 16px; }
.support-dialog textarea { resize: vertical; line-height: 1.55; }
.support-list { display: grid; gap: 8px; margin: 18px 0; }
.support-list > button { display: grid; gap: 5px; min-height: 64px; padding: 14px 16px; color: var(--ink, #1d1d1f); background: var(--surface-soft, #f7f7f9); border: 1px solid transparent; border-radius: 14px; text-align: left; }
.support-list > button:hover { background: #fff; border-color: var(--line, rgb(0 0 0 / 8%)); box-shadow: 0 6px 20px rgb(0 0 0 / 6%); }
.support-list small { overflow-wrap: anywhere; color: var(--muted, #6e6e73); font-size: 12px; line-height: 1.5; }
.support-detail { padding: 18px; background: var(--surface-soft, #f7f7f9); border-radius: 16px; }
.support-detail:empty { display: none; }
.support-feedback { min-height: 0; margin: 0 0 12px; color: var(--red, #d70015); font-size: 13px; }
.support-feedback:empty { display: none; }
.support-statement, .support-events p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.65; }
.support-events { padding-left: 22px; }
.support-events time { display: block; color: var(--muted, #6e6e73); font-size: 12px; }
.support-sla { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px 14px; align-items: center; margin: 14px 0; padding: 12px 14px; color: var(--muted-strong, #424245); background: rgb(0 113 227 / 7%); border-radius: 12px; font-size: 12px; }
.support-sla strong { color: var(--primary, #0071e3); }
.support-live-status { padding: 0 8px; color: var(--muted, #6e6e73); font-size: 12px; white-space: nowrap; }

@media (max-width: 640px) {
  .support-launch { width: 40px; padding: 0; overflow: hidden; color: transparent; }
  .support-launch::after { display: grid; place-items: center; color: var(--primary, #0071e3); content: "?"; font-size: 15px; }
  .support-dialog { width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
  .support-dialog header { top: -22px; margin: -22px -18px 18px; padding: 18px; }
  .support-dialog nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .support-dialog nav button { flex: 1 0 auto; }
  .support-sla { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .support-launch { transition: none; }
}
