/* WaveGate connection page. No remote assets or build step. */
:root {
  color-scheme: dark;
  font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f7f8f5;
  background: #070a10;
  font-size: 15px;
  line-height: 1.5;
  font-synthesis: none;
  --surface: #0b1119;
  --surface-soft: #101722;
  --line: #25303c;
  --muted: #97a4b4;
  --accent: #61f9ff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; min-width: 280px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, summary { touch-action: manipulation; }
button { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button:disabled { cursor: not-allowed; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.icon { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.page-shell { width: min(900px, calc(100% - 48px)); margin: 0 auto; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 750; letter-spacing: -.7px; }
.brand img { display: block; }
.support-link { display: inline-flex; align-items: center; gap: 7px; color: #bac5d2; font-size: 13px; padding: 10px 0 10px 10px; }
.support-link:hover, .footer a:hover { color: var(--accent); }
.support-link .icon { width: 17px; height: 17px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-size: 23px; font-weight: 650; line-height: 1.3; letter-spacing: -.55px; }
h3 { font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: -.15px; }
.card { background: var(--surface); border: 1px solid #22343f; border-radius: 16px; }
.access-card { padding: 22px 24px 17px; }
.access-main, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.access-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.access-heading > .icon { width: 23px; height: 23px; color: var(--accent); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; flex: none; color: #8ce5b1; background: #13271f; border: 1px solid #254533; border-radius: 30px; padding: 4px 9px; font-size: 12px; line-height: 1.5; }
.status-orb { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pill.is-warning { color: #f1cd8d; background: #2c2418; border-color: #51422b; }
.status-pill.is-neutral { color: #a9b8c9; background: #17202c; border-color: #2c3949; }
.access-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 2px 0 16px; gap: 16px; }
.fact { min-width: 0; }
.fact + .fact { padding-left: 22px; border-left: 1px solid var(--line); }
.fact-label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.fact strong { overflow-wrap: anywhere; display: block; font-size: 15px; font-weight: 550; }
.access-actions { display: flex; gap: 10px; margin-top: 15px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; border: 1px solid transparent; border-radius: 7px; padding: 10px 17px; font-size: 13px; font-weight: 600; line-height: 1.5; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.button .icon { width: 17px; height: 17px; }
.button-primary { color: #05262a; background: #77f4f0; }
.button-primary:hover { background: #a2fffa; }
.button-secondary { color: #dce5ed; background: #141d29; border-color: #344252; }
.button-secondary:hover { background: #1c2938; border-color: #496171; }
.access-actions > .button { flex: 1; }
.access-actions > .qr-shortcut { flex: none; padding: 10px 12px; }
.access-note, .lte-note { color: #7c8b9c; font-size: 11px; line-height: 1.6; margin-top: 11px; }
.lte-note { color: #9baabb; }
.state-message { font-size: 14px; color: #b1bfce; line-height: 1.65; margin-top: 15px; }
.access-card.is-welcome .access-actions { margin-top: 18px; }
.manual-copy { margin-top: 15px; }
.manual-copy label { display: block; font-size: 12px; color: #b0c0cc; margin-bottom: 7px; }
.manual-copy input { width: 100%; min-height: 42px; padding: 9px 11px; color: #d1eef0; border: 1px solid #3c5963; border-radius: 6px; background: #070c12; font-size: 13px; }
.manual-copy p { font-size: 12px; color: var(--muted); margin-top: 7px; }
.setup-section { margin-top: 18px; scroll-margin-top: 20px; }
.section-heading { padding: 20px 24px 17px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.platform-control { flex: none; }
.platform-control select { min-height: 39px; width: 155px; border: 1px solid #304651; border-radius: 8px; padding: 8px 11px; background: #111c25; color: #d3dfe7; font: inherit; font-size: 13px; cursor: pointer; }
.platform-control select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.app-selection { padding: 0 24px; }
.client-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.client-tab { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 43px; padding: 6px 9px 6px 6px; border: 1px solid #2b3d4c; border-radius: 8px; background: #101924; color: #a2b3c4; font-size: 12px; font-weight: 550; text-align: left; cursor: pointer; }
.client-tab:hover { border-color: #527181; color: #dbe7ef; }
.client-tab.is-selected { border-color: #2f8490; background: #0b2830; color: #9bfbff; }
.client-mark { display: grid; place-items: center; flex: none; width: 27px; height: 27px; border-radius: 6px; background: #1c2b39; color: #b5d0df; font-size: 12px; font-weight: 700; }
.client-tab.is-selected .client-mark { background: #10434d; color: #a5fcff; }
.client-name { min-width: 0; overflow-wrap: anywhere; }
.client-badge { flex: none; max-width: 47px; margin-left: auto; color: #a4a6ae; font-size: 9px; line-height: 1.25; text-align: right; }
.client-tab.is-selected .client-badge { color: #76b9be; }
.client-note { color: #8196a9; font-size: 11px; line-height: 1.65; margin-top: 11px; }
.setup-content { padding: 23px 24px 6px; }
.step { display: flex; gap: 12px; margin-bottom: 24px; position: relative; }
.step:not(:last-child)::before { content: ""; position: absolute; width: 1px; left: 11px; top: 28px; bottom: -20px; background: linear-gradient(#23626b, #1d3d47); }
.step-number { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; border: 1px solid #36515b; background: #13232c; color: #b3e3ea; border-radius: 50%; font-size: 12px; position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--surface); }
.step-body { min-width: 0; flex: 1; }
.step h3 { padding-top: 1px; margin-bottom: 6px; }
.step p { white-space: pre-line; color: #99aabd; font-size: 13px; line-height: 1.65; max-width: 720px; }
.step .button { margin-top: 11px; }
.button-small { min-height: 39px; padding: 8px 13px; font-size: 12px; }
.step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 9px; }
.download-more { display: contents; }
.step .before-import { margin-bottom: 7px; color: #bbbdaf; }
.download-alternative { display: inline-block; margin-top: 11px; color: #a3c8d7; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.download-alternative:hover { color: var(--accent); }
.step .step-footnote { font-size: 11px; margin-top: 9px; color: #778c9e; }
summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; padding: 13px 0; color: #c7d3df; font-size: 13px; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary > .icon { width: 16px; height: 16px; color: #788d9e; transition: transform .15s; }
details[open] > summary > .icon { transform: rotate(180deg); color: var(--accent); }
.details-content { padding: 0 0 17px; }
.details-content > p { color: #94a7b9; font-size: 13px; line-height: 1.7; }
.details-content > a { display: inline-block; color: #9adfe6; font-size: 13px; margin-top: 10px; }
.details-content > .details-note { font-size: 11px; color: #8293a6; margin-top: 10px; }
.remaining-time { color: #91a9b7; font-size: 12px; margin-top: 10px; }
.remaining-time.is-warning { color: #f1cd8d; }
.subscription-details { margin-top: 6px; }
.subscription-details > summary { min-height: 35px; padding: 6px 0; font-size: 12px; color: #8fa5b6; }
.text-button { min-height: 34px; border: 1px solid #2e4655; border-radius: 6px; background: #111e28; color: #a0dce0; padding: 6px 9px; font-size: 11px; cursor: pointer; }
.text-button:hover { border-color: #4a7d88; background: #16303a; }
.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; z-index: 30; inset: 0; overflow-y: auto; display: flex; align-items: center; justify-content: center; padding: 20px; background: #010409d9; backdrop-filter: blur(5px); }
.qr-dialog { flex: none; margin: auto; width: min(100%, 378px); padding: 20px; background: #0c141e; border: 1px solid #314856; border-radius: 15px; box-shadow: 0 20px 90px #0009; }
.modal-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-heading h2 { font-size: 18px; }
.icon-button { display: grid; place-items: center; min-width: 35px; min-height: 35px; border: 1px solid #304552; border-radius: 7px; background: #16232e; cursor: pointer; }
.icon-button:hover { background: #213541; }
#qr-description { margin-top: 9px; color: #9eb1c2; font-size: 12px; line-height: 1.65; }
.qr-image { display: grid; place-items: center; margin: 16px auto; max-width: 256px; min-height: 180px; padding: 3px; border-radius: 10px; background: #fff; color: #14212a; font-size: 13px; text-align: center; overflow: hidden; }
.qr-image > svg { display: block; width: 100%; height: auto; }
.qr-link { display: block; width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid #314956; border-radius: 6px; background: #070d14; color: #a3c9d3; font-size: 11px; }
#qr-copy { width: 100%; margin-top: 10px; }
.modal-note { margin-top: 10px; color: #7d91a4; font-size: 10px; text-align: center; }
.faq-section { margin-top: 15px; padding: 0 2px; }
.faq-section details { border-bottom: 1px solid #1d2732; }
.faq-section summary { min-height: 45px; font-size: 12px; padding: 12px 1px; color: #aebdcd; }
.faq-section .details-content { padding: 0 1px 16px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 23px 2px 30px; color: #62768b; font-size: 11px; }
.footer > span { color: #7a91a5; font-weight: 600; }
.toast { position: fixed; z-index: 20; bottom: 22px; left: 50%; transform: translate(-50%, 8px); max-width: calc(100% - 32px); width: max-content; padding: 11px 16px; color: #c4fff6; background: #12322f; border: 1px solid #39635d; border-radius: 8px; box-shadow: 0 8px 35px #0007; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.noscript-note { padding: 14px 20px; color: #c1cfdb; font-size: 13px; text-align: center; border-top: 1px solid var(--line); }
.noscript-note a { color: var(--accent); text-decoration: underline; }
[hidden] { display: none !important; }
@media (max-width: 620px) {
  .page-shell { width: calc(100% - 28px); }
  .topbar { height: 65px; }
  .brand { font-size: 19px; gap: 8px; }
  .brand img { width: 27px; height: 27px; }
  .support-link { font-size: 12px; }
  .card { border-radius: 15px; }
  .access-card { padding: 18px 17px 14px; }
  .access-main { gap: 10px; flex-wrap: wrap; }
  h1, h2 { font-size: 20px; }
  .access-heading { gap: 8px; }
  .access-heading > .icon { width: 21px; height: 21px; }
  .status-pill { font-size: 11px; padding: 3px 8px; }
  .access-facts { padding: 4px 0 12px; gap: 8px; }
  .fact + .fact { padding-left: 11px; }
  .fact-label { font-size: 11px; }
  .fact strong { font-size: 13px; }
  .access-actions { flex-wrap: wrap; gap: 8px; }
  .access-actions > #copy-button { flex-basis: 100%; }
  .access-actions > #connect-button { flex: 1; }
  .access-actions > .qr-shortcut { padding-left: 13px; padding-right: 13px; }
  .button { font-size: 13px; min-height: 42px; }
  .access-note, .lte-note { font-size: 10px; margin-top: 10px; }
  .setup-section { margin-top: 14px; }
  .section-heading { padding: 17px 17px 15px; }
  .platform-control select { width: 140px; min-height: 39px; font-size: 12px; }
  .app-selection { padding: 0 17px; }
  .client-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .client-tab { font-size: 11px; gap: 7px; padding-right: 7px; }
  .client-badge { font-size: 8px; }
  .client-note { font-size: 10px; }
  .setup-content { padding: 20px 17px 4px; }
  .step { gap: 10px; margin-bottom: 22px; }
  .step-number { width: 23px; height: 23px; }
  .step:not(:last-child)::before { left: 11px; }
  h3 { font-size: 15px; }
  .step p, .details-content > p { font-size: 13px; }
  .button-small { font-size: 12px; min-height: 39px; }
  .step-actions { align-items: center; gap: 0 7px; }
  .step-actions > #download-button { flex-basis: auto; }
  .step-actions > #import-button { flex-basis: 100%; }
  .text-button { font-size: 10px; padding: 6px 7px; }
  .modal-backdrop { padding: 14px; }
  .qr-dialog { padding: 17px; }
  .download-alternative { margin-top: 10px; }
  summary { font-size: 13px; }
  .faq-section { margin-top: 12px; }
  .faq-section summary { font-size: 12px; }
  .footer { padding: 21px 1px 25px; }
}
@media (max-width: 350px) {
  .page-shell { width: calc(100% - 20px); }
  .access-card { padding-left: 14px; padding-right: 14px; }
  .access-facts { gap: 6px; }
  .fact + .fact { padding-left: 8px; }
  .fact strong { font-size: 12px; }
  .fact-label { font-size: 10px; }
  .access-heading h1 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.connection-variants { padding: 0 24px 20px; color: #8296a9; font-size: 12px; }
