body.support-v2 {
  --support-panel: #0e1220;
  --support-panel-soft: #0b0f19;
  --support-line: rgba(255,255,255,.09);
  --support-purple: #9b5cff;
  --support-green: #5de58c;
  --support-muted: #85899a;
  background: #05070d !important;
}

/* Shared Stage 2 shell */
body.support-v2 .sidebar {
  position: sticky !important;
  overflow: visible !important;
  padding: 0 16px 16px !important;
  background: linear-gradient(180deg,#05070d 0%,#060811 100%) !important;
  border-right-color: rgba(255,255,255,.085) !important;
}
body.support-v2 .home-drawer-header {
  min-height: 92px !important;
  border-bottom-color: rgba(255,255,255,.08) !important;
}
body.support-v2 .home-brand {
  min-width: 0 !important;
  display: block !important;
}
body.support-v2 .home-brand img {
  width: min(216px,100%) !important;
  height: 58px !important;
  object-fit: contain !important;
  object-position: left center !important;
}
body.support-v2 .sidebar-nav {
  padding-top: 28px !important;
  gap: 14px !important;
  overflow: visible !important;
}
body.support-v2 .home-drawer-main {
  display: grid !important;
  gap: 8px !important;
}
body.support-v2 .home-drawer-main > a {
  min-height: 56px !important;
  padding: 0 16px !important;
  gap: 14px !important;
  border-radius: 13px !important;
  color: #aeb1c0 !important;
  font-size: .96rem !important;
  font-weight: 760 !important;
}
body.support-v2 .home-drawer-main > a:hover {
  background: rgba(255,255,255,.035) !important;
  color: #f4f1f9 !important;
}
body.support-v2 .home-drawer-main > a.active,
body.support-v2 .home-drawer-main > a[aria-current="page"] {
  border: 1px solid rgba(164,101,255,.28) !important;
  border-left: 3px solid #a36bff !important;
  background: linear-gradient(100deg,rgba(91,44,151,.42),rgba(79,37,133,.24)) !important;
  box-shadow: inset 0 0 22px rgba(142,75,239,.07) !important;
}
body.support-v2 .home-drawer-main > a.active .nav-icon,
body.support-v2 .home-drawer-main > a[aria-current="page"] .nav-icon {
  color: #c79cff !important;
}
body.support-v2 .home-drawer-divider {
  margin-top: 15px !important;
  background: rgba(255,255,255,.08) !important;
}
body.support-v2 .home-support-cta {
  min-height: 60px !important;
  margin-top: auto !important;
  border-color: rgba(155,92,255,.42) !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg,rgba(79,38,133,.40),rgba(50,28,87,.32)) !important;
  color: #d9c4ff !important;
  text-decoration: none !important;
}
body.support-v2 .home-drawer-footer .cinema-account-control {
  display: none !important;
}
body.support-v2 .home-drawer-footer {
  padding-top: 8px !important;
}

/* Home-style edge chevron */
body.support-v2 .cinema-minimize-button {
  position: absolute !important;
  z-index: 20 !important;
  top: 106px !important;
  right: -17px !important;
  width: 34px !important;
  height: 42px !important;
  min-width: 34px !important;
  min-height: 42px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  border-radius: 10px !important;
  background: #090c14 !important;
  color: #a2a6b6 !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.24) !important;
  cursor: pointer !important;
}
body.support-v2 .cinema-minimize-button > * { display: none !important; }
body.support-v2 .cinema-minimize-button::before {
  content: "‹";
  display: block;
  margin-top: -2px;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
}
body.support-v2.cinema-sidebar-minimized .cinema-minimize-button::before { content: "›"; }
body.support-v2 .cinema-minimize-button:hover {
  color: #f1edf7 !important;
  border-color: rgba(155,92,255,.44) !important;
  background: #0d101a !important;
}

/* Top bar */
body.support-v2 .topbar {
  min-height: 76px !important;
  padding-inline: clamp(26px,3vw,48px) !important;
  background: rgba(4,6,12,.94) !important;
  border-bottom-color: rgba(255,255,255,.085) !important;
  backdrop-filter: blur(20px) !important;
}
body.support-v2 .home-topbar-left,
body.support-v2 .home-topbar-right { gap: 13px !important; }
body.support-v2 .home-plex-pill,
body.support-v2 .cinema-source-pill {
  min-height: 38px !important;
  border-radius: 999px !important;
}
body.support-v2 .home-level-badge { display: none !important; }
body.support-v2 .cinema-topbar-user {
  min-height: 48px !important;
  padding: 4px 7px 4px 5px !important;
  border-radius: 13px !important;
}
body.support-v2 .cinema-topbar-avatar {
  width: 38px !important;
  height: 38px !important;
  overflow: hidden !important;
  border-radius: 11px !important;
}
body.support-v2 .cinema-topbar-user-copy strong { font-size: .79rem !important; }
body.support-v2 .cinema-topbar-user-copy small { font-size: .62rem !important; }

body.support-v2 .main-content {
  min-width: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
.support-v2-frame {
  box-sizing: border-box;
  width: min(1580px, calc(100% - clamp(44px,6vw,88px)));
  margin: 0 auto;
  padding: 28px 0 84px;
}
.support-v2-heading {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}
.support-v2-heading h1 {
  margin: 0;
  color: #f6f3fa;
  font-size: clamp(2.6rem,3.6vw,3.7rem);
  font-weight: 900;
  line-height: .96;
  letter-spacing: -.055em;
}
.support-v2-heading p {
  max-width: 720px;
  margin: 10px 0 0;
  color: #85899a;
  font-size: .84rem;
  line-height: 1.55;
}
.support-v2-contact-button,
.support-v2-send-button {
  min-height: 44px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(155,92,255,.42);
  border-radius: 10px;
  background: linear-gradient(135deg,#9b5cff,#7431df);
  color: #fff;
  font: inherit;
  font-size: .76rem;
  font-weight: 850;
  box-shadow: 0 12px 30px rgba(119,51,223,.18);
  cursor: pointer;
  transition: transform .15s ease,border-color .15s ease,background .15s ease;
}
.support-v2-contact-button:hover,
.support-v2-send-button:hover {
  transform: translateY(-1px);
  border-color: rgba(187,130,255,.6);
}

.support-v2-top-grid {
  display: grid;
  grid-template-columns: minmax(360px,.9fr) minmax(520px,1.1fr);
  gap: 14px;
  align-items: stretch;
}
.support-v2-card {
  padding: 24px;
  border: 1px solid var(--support-line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 0%,rgba(86,46,140,.05),transparent 34%),
    var(--support-panel);
  box-shadow: 0 18px 42px rgba(0,0,0,.12);
}
.support-v2-card h2 {
  margin: 0;
  color: #f0edf5;
  font-size: 1.04rem;
  font-weight: 820;
  letter-spacing: -.015em;
}
.support-v2-card > p {
  max-width: 760px;
  margin: 7px 0 0;
  color: #7c8192;
  font-size: .73rem;
  line-height: 1.5;
}
.support-v2-card-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(155,92,255,.46);
  border-radius: 9px;
  background: rgba(111,55,183,.10);
  color: #c49cff;
  font-size: .78rem;
  font-weight: 900;
}

/* FAQ */
.support-v2-faq > h2 { margin-bottom: 14px; }
.support-v2-faq details {
  border-top: 1px solid rgba(255,255,255,.075);
}
.support-v2-faq summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  list-style: none;
  color: #e9e6ef;
  font-size: .78rem;
  font-weight: 760;
  cursor: pointer;
}
.support-v2-faq summary::-webkit-details-marker { display: none; }
.support-v2-faq summary span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  color: #8b8e9d;
  font-size: 1.1rem;
  font-weight: 400;
  transition: transform .18s ease,color .18s ease,background .18s ease;
}
.support-v2-faq details[open] summary span {
  transform: rotate(45deg);
  background: rgba(155,92,255,.08);
  color: #c09cff;
}
.support-v2-faq details > div {
  padding: 0 34px 18px 0;
  color: #8d91a2;
  font-size: .74rem;
  line-height: 1.65;
}
.support-v2-faq details > div p { margin: 0 0 8px; }
.support-v2-faq ol { margin: 8px 0 0; padding-left: 20px; }

/* Contact */
.support-v2-contact {
  background:
    radial-gradient(circle at 92% 0%,rgba(93,229,140,.035),transparent 32%),
    radial-gradient(circle at 8% 100%,rgba(155,92,255,.05),transparent 36%),
    var(--support-panel);
}
.support-v2-contact form {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}
.support-v2-contact label {
  display: grid;
  gap: 7px;
  color: #a4a8b7;
  font-size: .7rem;
  font-weight: 760;
}
.support-v2-contact input,
.support-v2-contact select,
.support-v2-contact textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  background: #090d16;
  color: #f2eef7;
  font: inherit;
  font-size: .78rem;
  transition: border-color .15s ease,box-shadow .15s ease;
}
.support-v2-contact input,
.support-v2-contact select {
  min-height: 44px;
  padding: 0 12px;
}
.support-v2-contact textarea {
  min-height: 138px;
  padding: 12px;
  resize: vertical;
  line-height: 1.55;
}
.support-v2-contact input:focus,
.support-v2-contact select:focus,
.support-v2-contact textarea:focus {
  outline: none;
  border-color: rgba(155,92,255,.52);
  box-shadow: 0 0 0 3px rgba(155,92,255,.08);
}
.support-v2-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.support-v2-check {
  min-height: 34px;
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 9px !important;
  color: #8f93a3 !important;
  font-weight: 600 !important;
}
.support-v2-check input {
  width: 16px !important;
  min-height: 16px !important;
  height: 16px !important;
  padding: 0 !important;
  accent-color: var(--support-purple);
}
.support-v2-form-actions {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.support-v2-form-actions p {
  margin: 0;
  color: #8c90a0;
  font-size: .72rem;
}
.support-v2-form-actions p[data-tone="error"] { color: #ff8e99; }
.support-v2-form-actions p[data-tone="success"] { color: #77eaa0; }

/* Connection strip */
.support-v2-connection {
  min-height: 0;
  margin-top: 14px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: minmax(180px,.4fr) minmax(0,1.6fr);
  grid-template-rows: auto auto;
  column-gap: 28px;
  align-items: center;
}
.support-v2-connection h2 { grid-column: 1; grid-row: 1; }
.support-v2-connection > p { grid-column: 1; grid-row: 2; }
.support-v2-status-pills {
  grid-column: 2;
  grid-row: 1 / 3;
  margin: 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.support-v2-status-pill {
  min-height: 32px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
  color: #9da1b0;
  font-size: .68rem;
  font-weight: 760;
}
.support-v2-status-pill::before { content: "•"; margin-right: 7px; }
.support-v2-status-pill[data-tone="success"] {
  color: #77eaa0;
  border-color: rgba(93,229,140,.24);
  background: rgba(42,126,75,.09);
}
.support-v2-status-pill[data-tone="warning"] {
  color: #e5bb78;
  border-color: rgba(240,182,90,.22);
  background: rgba(117,84,34,.08);
}
.support-v2-status-pill[data-tone="error"] {
  color: #ff8f9a;
  border-color: rgba(255,114,125,.24);
  background: rgba(121,42,50,.08);
}

body.support-v2 .cinema-account-control svg,
body.support-v2 .nav-icon svg,
body.support-v2 .home-workspace-icon svg,
body.support-v2 .cinema-minimize-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Desktop collapsed rail */
@media (min-width: 981px) {
  body.support-v2.cinema-sidebar-minimized { --home-sidebar: 84px !important; }
  body.support-v2.cinema-sidebar-minimized .sidebar { padding-inline: 12px !important; }
  body.support-v2.cinema-sidebar-minimized .home-drawer-header { justify-content: center !important; }
  body.support-v2.cinema-sidebar-minimized .home-brand {
    position: relative !important;
    width: 60px !important;
    height: 58px !important;
    display: block !important;
    overflow: hidden !important;
    flex: 0 0 60px !important;
  }
  body.support-v2.cinema-sidebar-minimized .home-brand img { display: none !important; }
  body.support-v2.cinema-sidebar-minimized .home-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../assets/images/comrade-logo-official.webp");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 216px 58px;
    pointer-events: none;
  }
}

@media (max-width: 1080px) {
  .support-v2-top-grid { grid-template-columns: 1fr; }
  .support-v2-connection {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 6px;
  }
  .support-v2-connection h2,
  .support-v2-connection > p,
  .support-v2-status-pills { grid-column: 1; grid-row: auto; }
  .support-v2-status-pills { margin-top: 10px; justify-content: flex-start; }
}

@media (max-width: 980px) {
  body.support-v2 .sidebar {
    position: fixed !important;
  }
}

@media (max-width: 760px) {
  .support-v2-frame {
    width: calc(100% - 28px);
    padding: 24px 0 110px;
  }
  .support-v2-heading { align-items: flex-start; }
  .support-v2-heading h1 { font-size: 2.4rem; }
  .support-v2-contact-button { min-height: 40px; padding-inline: 12px; white-space: nowrap; }
  .support-v2-card { padding: 18px; }
  .support-v2-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .support-v2-heading { display: grid; }
  .support-v2-contact-button { justify-self: start; }
  .support-v2-top-grid { gap: 10px; }
  .support-v2-form-actions { align-items: stretch; flex-direction: column; }
  .support-v2-send-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .support-v2-contact-button,
  .support-v2-send-button,
  .support-v2-faq summary span { transition: none !important; }
}
