@font-face { font-family: Nunito; src: url("/fonts/nunito-latin-variable.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Nunito; src: url("/fonts/nunito-latin-ext-variable.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0c2845;
  --bg-2: #0b1d33;
  --card: rgb(11 31 54 / 88%);
  --card-solid: #0e2238;
  --line: rgb(166 210 245 / 14%);
  --line-strong: rgb(166 210 245 / 28%);
  --ink: #eaf3fb;
  --muted: #9fb3c6;
  --faint: #6f879d;
  --blue: #1192e8;
  --blue-2: #4fc3ff;
  --grad: linear-gradient(120deg, #4fc3ff, #1192e8 55%, #1172d8);
  --ok: #3ddc97;
  --warn: #ffb547;
  --warn-soft: rgb(255 181 71 / 10%);
  --err: #ff6b6b;
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }

/* Háttér: a BMS karbantartás-képernyőjével azonos — BMS-kék átmenet és a sinumhome Sinum-jel mintája
   (forrás: design-system.css .bms-maintenance-screen / .bms-maintenance-marks). */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(ellipse at top left, #5bbeff52 0%, #3797df38 35%, transparent 72%), linear-gradient(135deg, #102c49 0%, #174f80 55%, #0c2845 100%); }
.esp-marks{position:absolute;inset:-300px;z-index:0;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='396'%20height='288'%3E%3Csymbol%20id='m'%20viewBox='1020%2060%20270%20200'%3E%3Cpath%20d='M1082.17%20161.96l0.1%2065.56c0.02%2C17.7%2022.2%2C25.65%2033.45%2C11.98l68.92%20-83.69c5.62%2C-6.84%2016.72%2C-2.85%2016.72%2C6l0%2065.56c0%2C19.22%2025.35%2C26.16%2035.13%2C9.61l40.64%20-68.81c7.31%2C-12.4%20-8.93%2C-25.14%20-19.22%2C-15.07l-16.02%2015.71c-6.23%2C6.1%20-16.69%2C1.22%20-16.02%2C-7.48l4.87%20-62.69c1.43%2C-18.48%20-21.44%2C-28.16%20-33.69%2C-14.26l-73.72%2083.66c-5.92%2C6.72%20-17%2C2.18%20-16.5%2C-6.77l3.49%20-63.21c1.08%2C-19.82%20-24.84%2C-28.18%20-35.52%2C-11.45l-43.64%2068.36c-7.82%2C12.26%208.31%2C25.58%2018.85%2C15.57l16.23%20-15.42c6.01%2C-5.7%2015.93%2C-1.45%2015.93%2C6.84z'%20fill='none'%20stroke='%2370d9ff'%20stroke-width='1.3'%20vector-effect='non-scaling-stroke'/%3E%3C/symbol%3E%3Cuse%20href='%23m'%20x='208'%20y='56'%20width='46'%20height='34'%20opacity='0.6'/%3E%3Cuse%20href='%23m'%20x='10'%20y='200'%20width='46'%20height='34'%20opacity='0.42'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='132'%20height='96'%3E%3Csymbol%20id='m'%20viewBox='1020%2060%20270%20200'%3E%3Cpath%20d='M1082.17%20161.96l0.1%2065.56c0.02%2C17.7%2022.2%2C25.65%2033.45%2C11.98l68.92%20-83.69c5.62%2C-6.84%2016.72%2C-2.85%2016.72%2C6l0%2065.56c0%2C19.22%2025.35%2C26.16%2035.13%2C9.61l40.64%20-68.81c7.31%2C-12.4%20-8.93%2C-25.14%20-19.22%2C-15.07l-16.02%2015.71c-6.23%2C6.1%20-16.69%2C1.22%20-16.02%2C-7.48l4.87%20-62.69c1.43%2C-18.48%20-21.44%2C-28.16%20-33.69%2C-14.26l-73.72%2083.66c-5.92%2C6.72%20-17%2C2.18%20-16.5%2C-6.77l3.49%20-63.21c1.08%2C-19.82%20-24.84%2C-28.18%20-35.52%2C-11.45l-43.64%2068.36c-7.82%2C12.26%208.31%2C25.58%2018.85%2C15.57l16.23%20-15.42c6.01%2C-5.7%2015.93%2C-1.45%2015.93%2C6.84z'%20fill='none'%20stroke='%2370d9ff'%20stroke-width='1'%20vector-effect='non-scaling-stroke'/%3E%3C/symbol%3E%3Cuse%20href='%23m'%20x='10'%20y='8'%20width='46'%20height='34'%20opacity='0.16'/%3E%3Cuse%20href='%23m'%20x='76'%20y='56'%20width='46'%20height='34'%20opacity='0.16'/%3E%3C/svg%3E");background-size:396px 288px,132px 96px;mask-image:radial-gradient(ellipse 65% 60% at 50% 32%,#000 0%,rgb(0 0 0/55%) 50%,transparent 90%);-webkit-mask-image:radial-gradient(ellipse 65% 60% at 50% 32%,#000 0%,rgb(0 0 0/55%) 50%,transparent 90%);animation:esp-mark-move 160s linear infinite}
@keyframes esp-mark-move { to { transform: translate3d(396px, 288px, 0); } }
@keyframes glow { 50% { opacity: .55; transform: scale(1.08); } }

/* Fejléc */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px max(16px, env(safe-area-inset-right)) 14px max(16px, env(safe-area-inset-left)); background: transparent; transition: background-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.top.scrolled { background: rgb(12 40 69 / 72%); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; min-width: 0; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand-tag { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--blue-2); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.account { position: relative; display: flex; align-items: center; gap: 10px; }
.credits { display: flex; align-items: baseline; gap: 6px; padding: 6px 14px 6px 12px; border-radius: 999px; background: rgb(11 31 54 / 80%); border: 1px solid rgb(79 195 255 / 40%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.credits-num { min-width: 1.4ch; text-align: center; font-size: 20px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.credits-label { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.credits.empty { background: rgb(255 107 107 / 10%); border-color: rgb(255 107 107 / 45%); }
.credits.empty .credits-num { background: none; color: var(--err); }
.credits.bump { animation: bump .6s var(--ease); }
@keyframes bump { 40% { transform: scale(1.12); } }
.user { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: rgb(11 31 54 / 80%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); cursor: pointer; }
.user:hover { border-color: var(--line-strong); }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #04223d; font-weight: 900; font-size: 13px; }
.user-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 14px; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; padding: 8px; border-radius: 14px; background: var(--card-solid); border: 1px solid var(--line-strong); box-shadow: 0 24px 50px -20px rgb(0 0 0 / 80%); }
.menu-head { display: grid; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-head span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.menu button { width: 100%; text-align: left; padding: 10px; border: 0; border-radius: 10px; background: none; cursor: pointer; font-weight: 700; }
.menu button:hover { background: rgb(255 255 255 / 6%); }

main { width: 100%; overflow-x: clip; max-width: 1240px; margin: 0 auto; padding: 36px 16px 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 60px -40px rgb(0 0 0 / 85%); }
.card h2 { margin: 0 0 14px; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.hint { margin: 0; color: var(--faint); font-size: 13px; }

/* Belépés */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) 270px minmax(0, 430px); gap: 36px; align-items: center; min-height: calc(100vh - 200px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgb(11 31 54 / 85%); box-shadow: inset 0 0 0 1px rgb(79 195 255 / 30%); color: var(--blue-2); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow i { width: 8px; height: 8px; border-radius: 2px; background: var(--blue-2); box-shadow: 0 0 10px var(--blue-2); }
/* A cím és a bevezető mögött a háttérminta elhalványul, hogy ne fusson bele a szövegbe. */
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -60px -80px -40px -80px; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgb(14 44 74 / 92%), rgb(14 44 74 / 70%) 60%, transparent); }
.hero h1 { margin: 18px 0 14px; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -.02em; font-weight: 900; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 520px; margin: 0 0 24px; color: var(--muted); font-size: 16.5px; }
.facts { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; max-width: 520px; }
.facts li { display: grid; padding: 12px 16px 12px 44px; position: relative; border-radius: 14px; border: 1px solid var(--line); background: rgb(11 31 54 / 82%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.facts li::before { content: ""; position: absolute; left: 16px; top: 16px; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--blue-2); box-shadow: inset 0 0 0 3px var(--bg-2), inset 0 0 0 10px var(--blue); }
.facts b { font-size: 14.5px; }
.facts span { color: var(--muted); font-size: 13.5px; }
.auth { position: relative; isolation: isolate; }
.hero-mark { width: 100%; height: auto; overflow: visible; transform: rotate(-8deg); pointer-events: none; }
.hm-halo { animation: glow 6s ease-in-out infinite; transform-origin: 210px 180px; }
.hm-traces path { fill: none; stroke: rgb(166 210 245 / 22%); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hm-pulses path { fill: none; stroke: #8fd8ff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 18 240; animation: pulse 3.2s linear infinite; filter: drop-shadow(0 0 4px #4fc3ff); }
.hm-pulses path:nth-child(2) { animation-delay: -.8s; } .hm-pulses path:nth-child(3) { animation-delay: -1.6s; animation-direction: reverse; } .hm-pulses path:nth-child(4) { animation-delay: -2.4s; animation-direction: reverse; }
@keyframes pulse { from { stroke-dashoffset: 258; } to { stroke-dashoffset: 0; } }
.hm-nodes circle { fill: var(--bg-2); stroke: var(--blue-2); stroke-width: 2; }
.hm-wifi path { fill: none; stroke: var(--blue-2); stroke-width: 3; stroke-linecap: round; animation: blink 2.4s ease-in-out infinite; }
.hm-wifi path + path { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; } }
/* ESP32-S3 DevKit panel (a felhasználó által küldött rajz alapján, Espressif-logó nélkül) */
.hm-board { filter: drop-shadow(0 24px 34px rgb(0 0 0 / 60%)); }
.hb-pcb { fill: #0f2238; stroke: url(#hg); stroke-width: 2.5; }
.hb-ant { fill: #0b1a2c; stroke: rgb(166 210 245 / 45%); stroke-width: 2; }
.hb-trace { fill: none; stroke: #6f8aa3; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.hb-gold, .hb-pad { fill: #f5c542; }
.hb-pad { filter: drop-shadow(0 0 2px rgb(245 197 66 / 45%)); }
.hb-can { fill: #c9d3dc; stroke: #e8f3fc; stroke-width: 1.5; }
.hb-can-t { fill: #5b6b7a; font: 800 12px Nunito, sans-serif; text-anchor: middle; letter-spacing: .04em; }
.hb-can-s { fill: #6f7f8e; font: 700 9px Nunito, sans-serif; text-anchor: middle; letter-spacing: .12em; }
.hb-die { fill: none; stroke: #8e9ba7; stroke-width: 1.4; }
.hb-die2 { fill: #aeb9c3; }
.hb-l, .hb-r { fill: #d7e6f3; font: 700 9px Nunito, sans-serif; }
.hb-r { text-anchor: end; }
.hb-lab { fill: #d7e6f3; font: 800 9px Nunito, sans-serif; text-anchor: middle; letter-spacing: .06em; }
.hb-chip { fill: #07121e; stroke: rgb(166 210 245 / 25%); stroke-width: 1; }
.hb-pin1 { fill: none; stroke: #d7e6f3; stroke-width: 1.2; }
.hb-smd { fill: #e8eef3; }
/* Piros tápfeszültség-LED (SMD): folyamatosan világít. */
.hb-pwr { fill: #ff3b2f; filter: drop-shadow(0 0 3px #ff1e14) drop-shadow(0 0 8px rgb(255 30 20 / 80%)); }
.hb-pwr-glow { mix-blend-mode: screen; pointer-events: none; }
.hb-led-b { fill: #f2f5f8; }
/* RGB LED: a gateway-firmware OK-állapotú zöld szívdobbanása (led_manager.cpp heartbeatLevel):
   2 s-os ciklus, 1. felvillanás 0–190 ms, 2. felvillanás 270–500 ms 82%-on, lágy fel- és lefutással. */
.hb-led { fill: #b6ffb6; opacity: 0; animation: heartbeat 2s infinite; filter: drop-shadow(0 0 4px #00ff00) drop-shadow(0 0 10px #00ff00) drop-shadow(0 0 22px rgb(0 255 0 / 80%)); }
.hb-led-glow { opacity: 0; animation: heartbeat 2s infinite; mix-blend-mode: screen; pointer-events: none; }
@keyframes heartbeat {
  0% { opacity: 0; animation-timing-function: ease-in-out; }
  4.75% { opacity: 1; animation-timing-function: ease-in-out; }
  9.5% { opacity: 0; }
  13.5% { opacity: 0; animation-timing-function: ease-in-out; }
  19.25% { opacity: .82; animation-timing-function: ease-in-out; }
  25%, 100% { opacity: 0; }
}
.hb-btn { fill: #9aa6b2; stroke: #c9d3dc; stroke-width: 1; }
.hb-btn-k { fill: #0a0f14; }
.hb-usb { fill: #a7b1bb; stroke: #d0d8df; stroke-width: 1; }
.hb-usb-i { fill: #59646f; }
.hb-cable { stroke: rgb(166 210 245 / 30%); stroke-width: 6; stroke-linecap: round; }

.auth-card { padding: 26px; max-width: 460px; width: 100%; min-width: 0; justify-self: end; background: rgb(11 31 54 / 92%); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 20px; border-radius: 12px; background: rgb(0 0 0 / 25%); border: 1px solid var(--line); }
.tabs button { padding: 10px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 800; cursor: pointer; }
.tabs button[aria-selected="true"] { background: rgb(17 146 232 / 20%); color: var(--ink); box-shadow: inset 0 0 0 1px rgb(79 195 255 / 35%); }
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.form label, .form input { min-width: 0; }
.form input:not([type="checkbox"]):not([type="radio"]) { width: 100%; }
.form h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 800; color: var(--muted); }
.form label small { font-weight: 600; color: var(--faint); }
.form input:not([type="checkbox"]):not([type="radio"]) { height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgb(0 0 0 / 22%); color: var(--ink); font-size: 15px; font-weight: 600; outline: none; transition: border-color .2s, box-shadow .2s; }
.form input:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgb(79 195 255 / 18%); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.check { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 600 !important; color: var(--muted) !important; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--blue); width: 16px; height: 16px; flex-shrink: 0; }
.primary { height: 48px; border: 0; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 900; font-size: 15.5px; cursor: pointer; box-shadow: 0 14px 30px -14px rgb(17 146 232 / 90%); transition: transform .2s var(--ease), filter .2s; }
.primary:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08); }
.primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.primary.big { width: 100%; height: 54px; font-size: 16.5px; margin-top: 6px; }
.link { justify-self: center; border: 0; background: none; color: var(--blue-2); font-weight: 800; cursor: pointer; padding: 4px; }
.form-status { min-height: 20px; margin: 14px 0 0; font-size: 14px; font-weight: 700; }
.form-status.err { color: var(--err); }
.form-status.ok { color: var(--ok); }
/* Levél ikon a „Nézd meg a leveleidet” / „Link elküldve” üzenetnél */
.message-pane { justify-items: center; text-align: center; }
.message-pane .primary { justify-self: stretch; }
.mail-icon { display: grid; place-items: center; width: 168px; height: 168px; margin: 10px 0 14px; border-radius: 44px; background: rgb(17 146 232 / 16%); box-shadow: inset 0 0 0 1px rgb(79 195 255 / 35%), 0 0 80px -10px rgb(79 195 255 / 60%); animation: mailIn .7s var(--ease) both; }
.mail-icon svg { width: 104px; height: 104px; fill: none; stroke: var(--blue-2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
@keyframes mailIn { from { opacity: 0; transform: translateY(10px) scale(.9); } }
.mail-icon.ok { background: rgb(61 220 151 / 14%); box-shadow: inset 0 0 0 1px rgb(61 220 151 / 40%), 0 0 80px -10px rgb(61 220 151 / 55%); }
.mail-icon.ok svg { stroke: var(--ok); }
.mail-icon.ok path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: tick .6s .35s var(--ease) forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.invite-box { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgb(17 146 232 / 10%); border: 1px solid rgb(79 195 255 / 30%); font-weight: 700; overflow-wrap: anywhere; }
.invite-box b { color: var(--blue-2); white-space: nowrap; }

/* Programozó */
.browser { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 18px; border-radius: var(--radius); border: 1px solid rgb(255 181 71 / 40%); background: linear-gradient(var(--warn-soft), var(--warn-soft)), rgb(11 31 54 / 90%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.browser.ok { border-color: rgb(61 220 151 / 35%); background: linear-gradient(rgb(61 220 151 / 8%), rgb(61 220 151 / 8%)), rgb(11 31 54 / 90%); }
.browser.bad { border-color: rgb(255 107 107 / 45%); background: linear-gradient(rgb(255 107 107 / 9%), rgb(255 107 107 / 9%)), rgb(11 31 54 / 90%); }
.browser > div { display: grid; flex: 1; min-width: 0; }
.browser > div span { color: var(--muted); font-size: 13.5px; }
.browser-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--warn); stroke-width: 1.8; stroke-linecap: round; }
.browser.ok .browser-icon svg { stroke: var(--ok); }
.browser.bad .browser-icon svg { stroke: var(--err); }
.browser-state { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.browser.ok .browser-state { color: var(--ok); background: rgb(61 220 151 / 12%); }
.browser.bad .browser-state { color: var(--err); background: rgb(255 107 107 / 12%); }

.app-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 12px; margin: 0 0 18px; padding: 0; }
.steps li { counter-increment: s; display: grid; padding-left: 46px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgb(17 146 232 / 16%); border: 1px solid rgb(79 195 255 / 35%); color: var(--blue-2); font-weight: 900; }
.steps b { font-size: 15px; }
.steps span { color: var(--muted); font-size: 13.5px; }
.picker { margin: 0; padding: 14px; border-radius: 14px; background: #f4f6f8; color: #1f2328; box-shadow: 0 20px 40px -24px rgb(0 0 0 / 90%); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.picker-head { font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.picker-item { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; font-size: 13px; }
.picker-item small { display: block; color: #57606a; font-size: 12px; }
.picker-item.on { background: #dbe9fb; }
.radio { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #8c959f; flex-shrink: 0; }
.picker-item.on .radio { border-color: #1a73e8; box-shadow: inset 0 0 0 3px #dbe9fb, inset 0 0 0 7px #1a73e8; }
.picker-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.btn-ghost, .btn-blue { position: relative; padding: 6px 14px; border-radius: 16px; font-size: 13px; font-weight: 600; }
.btn-ghost { border: 1px solid #c6ccd2; color: #1a73e8; }
.btn-blue { background: #1a73e8; color: #fff; animation: ring 2.4s ease-in-out infinite; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgb(26 115 232 / 0%); } 50% { box-shadow: 0 0 0 5px rgb(26 115 232 / 28%); } }
.pointer { position: absolute; right: -10px; bottom: -16px; width: 18px; height: 22px; background: #111; clip-path: polygon(0 0, 0 78%, 26% 60%, 44% 100%, 58% 94%, 40% 56%, 72% 56%); filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff); }
.guide > .hint { margin-top: 14px; }
.picker figcaption { margin-top: 12px; color: #57606a; font-size: 12px; }

.products { display: grid; gap: 8px; margin-bottom: 20px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; margin-bottom: 8px; transition: border-color .2s, background .2s; }
.choice:has(input:checked) { border-color: rgb(79 195 255 / 60%); background: rgb(17 146 232 / 12%); }
.choice input { margin-top: 4px; accent-color: var(--blue); }
.choice b { display: block; }
.choice span { color: var(--muted); font-size: 13.5px; }
.version { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: rgb(79 195 255 / 14%); color: var(--blue-2); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.warn { padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); border: 1px solid rgb(255 181 71 / 35%); color: var(--warn); font-size: 13.5px; margin-bottom: 8px; }
.warn .check { margin-top: 8px; color: var(--ink) !important; }
.credit-note { min-height: 20px; margin: 10px 0 0; color: var(--muted); font-size: 13.5px; }
.credit-note.err { color: var(--err); font-weight: 700; }
.status { display: flex; justify-content: space-between; gap: 12px; margin: 16px 0 8px; font-weight: 800; }
.status .state-ok { color: var(--ok); }
.status .state-err { color: var(--err); }
.bar { height: 8px; background: rgb(255 255 255 / 8%); border-radius: 99px; overflow: hidden; }
.bar div { height: 100%; width: 0; background: var(--grad); border-radius: inherit; transition: width .25s; box-shadow: 0 0 12px rgb(79 195 255 / 60%); }
pre { margin: 14px 0 0; padding: 12px; max-height: 240px; overflow: auto; border-radius: 12px; background: rgb(0 0 0 / 40%); border: 1px solid var(--line); color: #c9d6e3; font-size: 12px; white-space: pre-wrap; word-break: break-word; }

.devices { margin-bottom: 18px; }
/* Egyszerűsített menet (2026-10-25): három nagy lépés, egy fő gomb, a haladó mód és a napló lenyitva. */
.flow { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; padding: 0; counter-reset: f; }
.flow li { counter-increment: f; position: relative; display: grid; gap: 4px; padding: 18px 18px 18px 74px; min-height: 92px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: border-color .3s, box-shadow .3s, opacity .3s; }
.flow li b { font-size: 16px; }
.flow li span:not(.flow-ico) { color: var(--muted); font-size: 13.5px; }
.flow-ico { position: absolute; left: 16px; top: 18px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgb(17 146 232 / 16%); box-shadow: inset 0 0 0 1px rgb(79 195 255 / 35%); }
.flow-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--blue-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow li::after { content: counter(f); position: absolute; left: 46px; top: 10px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 11px; font-weight: 900; }
.flow li.active { border-color: rgb(79 195 255 / 70%); box-shadow: 0 0 0 3px rgb(79 195 255 / 15%), 0 20px 40px -26px rgb(17 146 232 / 80%); }
.flow li.done .flow-ico { background: rgb(61 220 151 / 14%); box-shadow: inset 0 0 0 1px rgb(61 220 151 / 40%); }
.flow li.done .flow-ico svg { stroke: var(--ok); }
.flow li.done::after { content: "✓"; background: var(--ok); color: #052b1a; }
.fw-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 15px; }
.fw-label { color: var(--faint); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; margin-right: 4px; }
.flash .primary.big { margin-top: 0; height: 60px; font-size: 18px; }
.advanced, .log-details { margin-top: 16px; }
.advanced summary, .log-details summary, details.help summary { cursor: pointer; color: var(--blue-2); font-weight: 800; font-size: 14px; list-style: none; }
.advanced summary::before, .log-details summary::before, details.help summary::before { content: "›"; display: inline-block; width: 14px; transition: transform .2s; }
details[open] > summary::before { transform: rotate(90deg); }
.advanced[open] summary { margin-bottom: 12px; }
details.help summary { font-size: 15px; }
details.help[open] summary { margin-bottom: 12px; }
.browser.compact { display: inline-flex; padding: 6px 14px 6px 8px; margin-bottom: 14px; border-radius: 999px; }
.browser.compact .browser-icon svg { width: 20px; height: 20px; }
.browser.compact > div span, .browser.compact .browser-state { display: none; }
.browser.compact b { font-size: 13px; color: var(--ok); }

.device-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.device-table th { text-align: left; padding: 8px 10px; color: var(--faint); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.device-table td { padding: 10px; border-bottom: 1px solid var(--line); }
.device-table tr:last-child td { border-bottom: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.pill.ok { color: var(--ok); background: rgb(61 220 151 / 12%); }
.pill.failed { color: var(--err); background: rgb(255 107 107 / 12%); }
.pill.started { color: var(--warn); background: rgb(255 181 71 / 12%); }
.help ul { margin: 0; padding-left: 18px; color: var(--muted); }
.help li { margin-bottom: 6px; }
.foot { padding: 24px 16px 32px; text-align: center; color: var(--faint); font-size: 12.5px; }

@media (max-width: 1080px) {
  .auth { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .hero-mark { display: none; }
}
@media (max-width: 920px) {
  .hero::before { inset: -40px -16px; }
  .auth { grid-template-columns: minmax(0, 1fr); gap: 28px; min-height: 0; }
  .auth-card { justify-self: stretch; max-width: none; }
  .hero-mark { display: none; }
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  main { padding-top: 22px; }
  .brand-logo { height: 32px; }
  .brand-tag { display: none; }
  .user-name { display: none; }
  .user { padding: 4px; }
  .credits { padding: 5px 10px; }
  .credits-label { display: none; }
  .row2 { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .hero-mark { display: none; }
  .auth-card { order: -1; }
  .browser { flex-wrap: wrap; }
  .device-table .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
