:root {
  --navy: #10253f;
  --navy-soft: #303d4d;
  --navy-light: #173a5f;
  --cyan: #00a9ce;
  --lime: #b7d433;
  --ink: #172233;
  --muted: #617083;
  --surface: #fff;
  --line: #e4eaf0;
  --shadow: 0 18px 50px rgba(15, 35, 61, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: linear-gradient(135deg, rgba(245,249,252,.98), rgba(235,244,248,.93)); font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.topbar { height: 7px; background: linear-gradient(90deg, var(--cyan) 0 68%, var(--lime) 68%); }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.portal-header { position: relative; overflow: hidden; margin-top: 18px; padding: clamp(22px,3vw,34px); border-radius: 22px; color: #fff; background: var(--navy-soft); box-shadow: var(--shadow); }
.portal-header::after { content: ""; position: absolute; width: 330px; height: 330px; right: -110px; top: -170px; border: 55px solid rgba(0,169,206,.22); border-radius: 50%; }
.brand { position: relative; z-index: 1; display: flex; align-items: center; gap: clamp(22px,4vw,48px); }
.brand-logo { display: block; width: min(330px,34vw); max-height: 88px; object-fit: contain; object-position: left center; }
.brand-copy { padding-left: clamp(22px,4vw,48px); border-left: 1px solid rgba(255,255,255,.28); }
.eyebrow { margin: 0 0 6px; color: var(--lime); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.portal-header h1 { margin: 0; font-size: clamp(1.8rem,3.2vw,3rem); line-height: 1.02; letter-spacing: -.045em; }
.header-intro { max-width: 620px; margin: 10px 0 0; color: rgba(255,255,255,.78); font-size: clamp(.96rem,1.5vw,1.08rem); }
main { padding: 26px 0 42px; }
.content-hero { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(28px,5vw,62px); align-items: center; padding: clamp(26px,5vw,58px) 0; }
.content-hero h2 { margin: 0; font-size: clamp(2.2rem,5.8vw,4.8rem); line-height: .98; letter-spacing: -.05em; }
.content-hero h2 em { color: var(--cyan); font-style: normal; }
.lede { max-width: 650px; margin: 22px 0; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 11px 16px; border-radius: 9px; text-decoration: none; font-weight: 750; transition: filter .2s, transform .2s; }
.button.primary { color: #fff; background: var(--cyan); }
.button.secondary { color: var(--navy-light); background: #fff; border: 1px solid var(--line); }
.button:hover { filter: brightness(.96); transform: translateY(-1px); }
.signal-card { padding: 26px; border-radius: 18px; color: #fff; background: var(--navy-soft); box-shadow: var(--shadow); }
.status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: #dcebb5; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(183,212,51,.16); }
.route { display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.18); }
.route span { grid-row: 1 / 3; color: #cbd5de; font-size: .82rem; }
.route b { font-size: 1.25rem; }
.route small { color: #cbd5de; text-align: right; }
.signal-card p { margin: 16px 0 0; color: #cbd5de; }
.signal-card code { color: #fff; }
.notice { display: flex; gap: 16px; margin: 0 0 34px; padding: 18px 20px; border: 1px solid #dce7c0; border-left: 5px solid var(--lime); border-radius: 12px; background: #f5f9e9; }
.notice-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--navy); background: var(--lime); font-weight: 900; }
.notice h2 { margin: 0; font-size: 1.08rem; }
.notice p { margin: 4px 0 0; color: #526276; }
.section { margin-top: 28px; padding: clamp(24px,4vw,38px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 8px 25px rgba(18,44,68,.07); }
.section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 22px; }
.section-heading .eyebrow { flex-basis: 100%; }
.section-heading h2, .help h2, .qr-section h2 { margin: 0; font-size: clamp(1.55rem,3vw,2.25rem); line-height: 1.08; letter-spacing: -.025em; }
.section-heading > p:last-child { margin: 0; color: var(--muted); }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.settings-card { overflow: hidden; padding: 22px; border: 1px solid var(--line); border-top: 5px solid var(--cyan); border-radius: 14px; background: #f9fbfc; }
.settings-card.outgoing { border-top-color: var(--lime); }
.settings-card header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.settings-card header > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: #fff; background: var(--cyan); font-size: 1.25rem; font-weight: 800; }
.settings-card.outgoing header > span { color: var(--navy); background: var(--lime); }
.settings-card h3 { margin: 0; font-size: 1.45rem; }
.settings-card header small { color: var(--muted); }
dl { margin: 0; }
dl > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
dt { color: var(--muted); }
dd { margin: 0; max-width: 64%; overflow-wrap: anywhere; font-weight: 700; text-align: right; }
.copy { display: flex; align-items: center; gap: 8px; padding: 2px; border: 0; color: var(--ink); background: transparent; cursor: pointer; font: inherit; }
.copy span { color: #008eaf; font-size: .67rem; font-weight: 800; text-transform: uppercase; }
.alternative, .inline-note, .note { margin: 12px 0 0; padding: 12px; border-radius: 8px; color: var(--muted); background: #edf4f7; font-size: .82rem; }
.file-link { display: inline-flex; margin-top: 18px; padding: 10px 14px; border-radius: 8px; color: #fff; background: var(--cyan); font-weight: 750; text-decoration: none; }
.file-link:hover { filter: brightness(.96); }
.steps-section { color: #fff; background: var(--navy-soft); }
.steps-section .section-heading > p:last-child { color: #d1dae2; }
.tabs { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 8px; }
.tabs button { flex: none; padding: 9px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; color: #e4ebf0; background: transparent; cursor: pointer; font: inherit; font-weight: 700; }
.tabs button[aria-selected="true"] { border-color: var(--cyan); color: #fff; background: var(--cyan); }
.panels { min-height: 300px; margin-top: 14px; padding: 26px 30px; border-radius: 13px; color: var(--ink); background: #fff; }
.panels ol { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.panels li { position: relative; padding: 12px 0 12px 48px; border-bottom: 1px solid var(--line); counter-increment: steps; }
.panels li::before { content: counter(steps); position: absolute; top: 8px; left: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #fff; background: var(--cyan); font-weight: 800; }
.device-settings { display: grid; gap: 6px; margin-top: 18px; padding: 15px 17px; border-left: 4px solid var(--lime); border-radius: 9px; color: var(--ink); background: #f3f7e8; font-size: .86rem; }
.device-settings > strong { margin-bottom: 2px; color: var(--navy-light); font-size: .94rem; }
.device-settings span { overflow-wrap: anywhere; }
.qr-section { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 36px; }
.qr-section img { width: 176px; height: 176px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.help { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; }
.help ul { margin: 0; padding-left: 20px; }
.help li { margin-bottom: 10px; }
.privacy { grid-column: 1 / -1; margin: 0; padding: 16px 18px; border-left: 4px solid var(--cyan); border-radius: 9px; background: #eaf8fb; }
footer { border-top: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.72); font-size: .82rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; padding-block: 20px 28px; }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 10; padding: 9px 16px; border-radius: 999px; color: #fff; background: var(--navy); opacity: 0; pointer-events: none; transform: translate(-50%,20px); transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  .shell { width: min(100% - 24px,1180px); }
  .portal-header { margin-top: 12px; border-radius: 20px; }
  .brand { display: block; }
  .brand-logo { width: min(270px,80%); margin-bottom: 24px; }
  .brand-copy { padding: 0; border: 0; }
  main { padding-top: 12px; }
  .content-hero { grid-template-columns: 1fr; gap: 24px; padding: 30px 0; }
  .content-hero h2 { font-size: clamp(2.2rem,13vw,3.4rem); }
  .settings-grid, .help { grid-template-columns: 1fr; }
  .section { margin-top: 18px; padding: 22px 18px; }
  .section-heading { display: block; }
  .section-heading > p:last-child { margin-top: 8px; }
  .panels { min-height: 360px; padding: 22px 17px; }
  .panels li { padding-left: 43px; }
  .qr-section { grid-template-columns: 1fr; text-align: center; }
  .qr-section img { margin: auto; }
  .privacy { grid-column: auto; }
  .footer-inner { flex-direction: column; gap: 6px; }
  .copy span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
