/* ===== TestEveryDevice design system ===== */
:root {
  --bg: #0a0c11;
  --bg2: #0e1118;
  --card: #131722;
  --card2: #171c29;
  --line: rgba(255, 255, 255, 0.075);
  --line2: rgba(255, 255, 255, 0.13);
  --text: #eaeef6;
  --muted: #8e97ab;
  --dim: #5f6880;
  --accent: #39f2a5;
  --accent2: #22c98a;
  --info: #5aa9ff;
  --warn: #ffbf3c;
  --fail: #ff5672;
  --violet: #9b7bff;
  --radius: 18px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 20px 50px -24px rgba(0,0,0,0.7);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 500px at 85% -10%, rgba(57, 242, 165, 0.07), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(90, 169, 255, 0.07), transparent 60%);
  background-repeat: no-repeat;
}
a { color: inherit; }
img, svg, canvas, video { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
::selection { background: rgba(57, 242, 165, 0.3); }
.wrap { width: min(1220px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Header ===== */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(10, 12, 17, 0.78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; font-size: 19px; white-space: nowrap; }
.logo svg { width: 32px; height: 32px; flex: none; }
.logo b { color: var(--accent); font-weight: 800; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; padding: 8px 11px; border-radius: 10px; white-space: nowrap; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav a.on { color: var(--text); background: rgba(57, 242, 165, 0.1); }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line2); background: transparent; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
.more { position: relative; }
.more-b { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--muted); font-size: 14px; font-weight: 600; padding: 8px 11px; border-radius: 10px; cursor: pointer; }
.more-b svg { width: 14px; height: 14px; transition: transform .15s; }
.more-b:hover, .more.on .more-b { color: var(--text); background: rgba(255,255,255,0.05); }
.more.on .more-b { background: rgba(57, 242, 165, 0.1); }
.more-m { display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 8px; border-radius: 14px; background: #141925; border: 1px solid var(--line2); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
.more.open .more-m { display: flex; flex-direction: column; }
.more.open .more-b svg { transform: rotate(180deg); }
.more-m a { padding: 9px 12px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #04140d; padding: 8px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 12px; }
@media (max-width: 1180px) {
  .menu-btn { display: grid; place-items: center; }
  .more-b { display: none; }
  .more-m { display: flex; flex-direction: column; position: static; padding: 0; border: 0; background: none; box-shadow: none; min-width: 0; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 10px 20px 18px; background: rgba(10, 12, 17, 0.97); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 15px; }
}

/* ===== Hero / page head ===== */
.page-head { padding: 34px 0 18px; }
.crumbs { font-size: 13px; color: var(--dim); margin-bottom: 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 10px; font-weight: 800; }
h1 em { font-style: normal; background: linear-gradient(92deg, var(--accent), var(--info)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 18px; max-width: 760px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.chip svg { width: 14px; height: 14px; color: var(--accent); }

/* ===== Layout for tools ===== */
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; margin-bottom: 26px; }
.tool-grid > * { min-width: 0; }
@media (max-width: 980px) { .tool-grid { grid-template-columns: 1fr; } }
.card { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tool { padding: 20px; position: relative; }
.tool-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.tool-bar .sp { flex: 1; }
.side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
@media (max-width: 980px) { .side { position: static; } }

/* ===== Buttons & inputs ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line2); background: rgba(255,255,255,0.04); padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 14.5px; cursor: pointer; text-decoration: none; transition: transform .08s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: var(--accent); color: #04140d; border-color: transparent; box-shadow: 0 8px 24px -10px rgba(57, 242, 165, 0.7); }
.btn.primary:hover { background: #5cf7b9; }
.btn.danger { color: #ffd2da; border-color: rgba(255, 86, 114, 0.4); background: rgba(255, 86, 114, 0.1); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.lg { padding: 14px 22px; font-size: 16px; border-radius: 14px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn.on { border-color: var(--accent); color: var(--accent); background: rgba(57, 242, 165, 0.08); }
select.sel { background: var(--bg2); border: 1px solid var(--line2); border-radius: 12px; padding: 9px 12px; font-size: 14px; max-width: 100%; }
input.inp { background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; font-size: 14px; font-family: var(--mono); }
.seg { display: inline-flex; flex-wrap: wrap; padding: 3px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg2); }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg button.on { background: rgba(255,255,255,0.09); color: var(--text); }
input[type=range] { accent-color: var(--accent); width: 100%; }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; }
.stat .k { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); font-weight: 700; }
.stat .v { font-family: var(--mono); font-size: 21px; font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .v small { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 3px; }
.stat.good .v { color: var(--accent); } .stat.warn .v { color: var(--warn); } .stat.bad .v { color: var(--fail); }

/* ===== Empty / connect state ===== */
.empty { display: grid; place-items: center; text-align: center; padding: 46px 20px; border: 1.5px dashed var(--line2); border-radius: 16px; background: rgba(255,255,255,0.015); }
.empty .ico { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: rgba(57, 242, 165, 0.08); color: var(--accent); margin-bottom: 14px; }
.empty .ico svg { width: 40px; height: 40px; }
.empty h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.01em; }
.empty p { margin: 0 auto 16px; color: var(--muted); max-width: 440px; }
.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* ===== Diagnosis panel ===== */
.diag { padding: 18px; }
.diag-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.diag-h .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); font-weight: 800; }
.verdict { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.verdict .dot { width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center; }
.verdict .dot svg { width: 20px; height: 20px; }
.verdict h3 { margin: 0; font-size: 16.5px; line-height: 1.3; letter-spacing: -0.01em; }
.verdict p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.verdict.idle .dot { background: rgba(255,255,255,0.06); color: var(--muted); }
.verdict.good { border-color: rgba(57, 242, 165, 0.35); } .verdict.good .dot { background: rgba(57, 242, 165, 0.14); color: var(--accent); }
.verdict.warn { border-color: rgba(255, 191, 60, 0.35); } .verdict.warn .dot { background: rgba(255, 191, 60, 0.14); color: var(--warn); }
.verdict.bad { border-color: rgba(255, 86, 114, 0.4); } .verdict.bad .dot { background: rgba(255, 86, 114, 0.14); color: var(--fail); }
.verdict.info { border-color: rgba(90, 169, 255, 0.35); } .verdict.info .dot { background: rgba(90, 169, 255, 0.14); color: var(--info); }
.checks { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 7px; }
.checks li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.checks li i { width: 18px; height: 18px; border-radius: 6px; flex: none; margin-top: 2px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 900; }
.checks li.ok i { background: rgba(57, 242, 165, 0.15); color: var(--accent); }
.checks li.wn i { background: rgba(255, 191, 60, 0.15); color: var(--warn); }
.checks li.no i { background: rgba(255, 86, 114, 0.15); color: var(--fail); }
.checks li.td i { background: rgba(255,255,255,0.06); color: var(--dim); }
.checks li b { color: var(--text); font-weight: 600; }
.fix { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.fix h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.fix ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 5px; }
.fix ol b { color: var(--text); }
.diag-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* ===== Affiliate & ad slots ===== */
.aff { padding: 16px 18px; display: none; }
.aff.show { display: block; }
.aff h4 { margin: 0 0 4px; font-size: 15px; }
.aff p { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; }
.aff-list { display: flex; flex-direction: column; gap: 8px; }
.aff-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); text-decoration: none; font-weight: 600; font-size: 14px; }
.aff-list a:hover { border-color: var(--line2); }
.aff-list a span { color: var(--accent); font-size: 13px; white-space: nowrap; }
.aff small { display: block; margin-top: 10px; color: var(--dim); font-size: 11.5px; }
.ad-slot { display: none; }
body.ads-on .ad-slot.on { display: block; min-height: 120px; margin: 18px 0; border-radius: 14px; }
.ad-lbl { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.cbanner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin-inline: auto; z-index: 300; background: #161b27; border: 1px solid var(--line2); border-radius: 16px; padding: 16px 18px; box-shadow: 0 20px 60px -20px rgba(0,0,0,.8); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.cbanner p { margin: 0; flex: 1 1 280px; }
.cbanner a { color: var(--text); }
.cb-act { display: flex; gap: 8px; }
/* ===== Legal / text pages ===== */
.legal { max-width: 820px; margin: 0 auto 30px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin: 6px 0 4px; letter-spacing: -0.02em; }
.legal .upd { color: var(--dim); font-size: 13.5px; margin: 0 0 18px; }
.ftr .cols { grid-template-columns: 1.3fr repeat(4, 1fr) !important; }
@media (max-width: 900px) { .ftr .cols { grid-template-columns: 1fr 1fr !important; } }

/* ===== Content sections ===== */
.content { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; margin: 10px 0 30px; }
.content > * { min-width: 0; }
@media (max-width: 980px) { .content { grid-template-columns: 1fr; } }
.prose { padding: 26px 28px; }
.prose h2 { font-size: 24px; letter-spacing: -0.02em; margin: 26px 0 10px; line-height: 1.2; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 20px 0 6px; }
.prose p, .prose li { color: #c3cad8; }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin: 5px 0; }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; margin: 9px 0; background: var(--bg2); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; }
.rel { padding: 18px; }
.rel h3 { margin: 0 0 12px; font-size: 15px; }
.rel a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 14.5px; }
.rel a:hover { background: rgba(255,255,255,0.04); }
.rel a .i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,0.05); color: var(--accent); flex: none; }
.rel a .i svg { width: 19px; height: 19px; }
.rel a small { display: block; color: var(--dim); font-weight: 500; font-size: 12.5px; }

/* ===== Home ===== */
.hero { padding: 60px 0 30px; text-align: center; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); max-width: 900px; margin-inline: auto; }
.hero .lead { margin: 14px auto 0; font-size: 19px; }
.hero .chips { justify-content: center; }
.hero-cta { display: flex; gap: 10px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0 40px; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } }
.tile { padding: 20px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; transition: transform .18s, border-color .18s; min-height: 190px; position: relative; overflow: hidden; }
.tile:hover { transform: translateY(-3px); border-color: rgba(57, 242, 165, 0.35); }
.tile .ti { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(140deg, rgba(57, 242, 165, 0.18), rgba(90, 169, 255, 0.12)); color: var(--accent); }
.tile .ti svg { width: 28px; height: 28px; }
.tile h2 { font-size: 19px; margin: 4px 0 0; letter-spacing: -0.01em; }
.tile p { margin: 0; color: var(--muted); font-size: 14px; }
.tile .go { margin-top: auto; font-weight: 700; font-size: 13.5px; color: var(--accent); }
.tile.big { grid-column: span 2; }
@media (max-width: 480px) { .tile.big { grid-column: auto; } }
.models { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.models span { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 8px; background: rgba(255,255,255,0.05); color: var(--muted); }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 40px; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }
.why .card { padding: 20px; }
.why h3 { margin: 10px 0 4px; font-size: 17px; }
.why p { margin: 0; color: var(--muted); font-size: 14.5px; }
.why .ti { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(57, 242, 165, 0.1); color: var(--accent); }
.why .ti svg { width: 22px; height: 22px; }
.sec-title { font-size: 26px; letter-spacing: -0.02em; margin: 10px 0 4px; }
.sec-sub { color: var(--muted); margin: 0 0 6px; }

/* ===== Footer ===== */
.ftr { border-top: 1px solid var(--line); margin-top: 30px; padding: 30px 0 40px; color: var(--muted); font-size: 14px; }
.ftr .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .ftr .cols { grid-template-columns: 1fr 1fr; } }
.devgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 14px 0 34px; }
@media (max-width: 960px) { .devgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .devgrid { grid-template-columns: 1fr; } }
.devcol { padding: 16px 18px; }
.devcol h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.devcol a { display: block; text-decoration: none; color: var(--muted); padding: 4px 0; font-weight: 600; font-size: 14.5px; }
.devcol a:hover { color: var(--accent); }
.legal .prose { padding: 26px 30px; }
@media (max-width: 600px) { .legal .prose { padding: 18px; } }
.ftr h4 { color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 10px; }
.ftr a { display: block; text-decoration: none; padding: 3px 0; }
.ftr a:hover { color: var(--text); }
.ftr .fine { margin-top: 24px; font-size: 12.5px; color: var(--dim); }
.lang-sel { margin-top: 12px; }

/* ===== Toast ===== */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; background: #1d2333; border: 1px solid var(--line2); padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; z-index: 200; transition: .25s; pointer-events: none; box-shadow: 0 12px 30px -10px rgba(0,0,0,0.6); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Shared tool widgets ===== */
.panel-t { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); font-weight: 800; margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }
.panel-t:first-child { margin-top: 0; }
.panel-t .sp { flex: 1; height: 1px; background: var(--line); }
.meter { height: 14px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); overflow: hidden; position: relative; }
.meter > i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--accent2), var(--accent) 60%, var(--warn) 85%, var(--fail)); background-size: var(--w, 100%) 100%; border-radius: 8px; transition: width 0.05s linear; }
.meter > b { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #fff; opacity: 0.85; left: 0; }
.progress { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.progress .bar { flex: 1; height: 8px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--line); overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.log { font-family: var(--mono); font-size: 12.5px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; max-height: 180px; overflow: auto; color: var(--muted); }
.log div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log div b { color: var(--text); font-weight: 600; }
.note { font-size: 13px; color: var(--dim); margin-top: 10px; }
.kbd { font-family: var(--mono); font-size: 12px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line2); background: var(--bg2); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; }

/* Fullscreen test overlay (screen tests) */
.fs { position: fixed; inset: 0; z-index: 1000; background: #000; cursor: none; display: none; }
.fs.on { display: block; }
.fs .hint { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); background: rgba(0,0,0,0.75); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; transition: opacity .6s; text-align: center; cursor: default; border: 1px solid rgba(255,255,255,0.15); }
.fs .hint.hide { opacity: 0; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ===== Detected device banner ===== */
.detected { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 16px; margin-bottom: 16px; border-radius: 16px; border: 1px solid rgba(90, 169, 255, 0.28); background: linear-gradient(90deg, rgba(90, 169, 255, 0.08), rgba(57, 242, 165, 0.05)); }
.detected[hidden] { display: none; }
.det-l { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; flex: 1; min-width: 0; }
.det-k { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--info); display: inline-flex; align-items: center; gap: 7px; }
.det-k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--info); box-shadow: 0 0 0 4px rgba(90, 169, 255, 0.18); }
.det-i { font-weight: 700; font-size: 14px; display: inline-flex; flex-direction: column; line-height: 1.2; }
.det-i small { font-size: 11px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.det-p { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.det-p .sel { padding: 7px 10px; font-size: 13.5px; }
.det-n { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--muted); }
.det-n b { color: var(--text); }
.ftr a.logo { display: flex; }
@media (max-width: 1180px) {
  .nav.open { background: #0b0e14 !important; max-height: calc(100vh - 64px); overflow-y: auto; box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); }
}
