/* ===== Design tokens (dark default) ===== */
:root {
  --bg: #0f172a;
  --bg-soft: #1e293b;
  --card: #1e293b;
  --card-2: #273449;
  --border: #334155;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --brand: #6366f1;
  --brand-2: #8b5cf6;
  --accent: #22d3ee;
  --good: #22c55e;
  --good-2: #16a34a;
  --warn: #fbbf24;
  --bad: #f87171;
  --nav-bg: rgba(15, 23, 42, .82);
  --shadow: 0 20px 50px -20px rgba(0,0,0,.6);
  --radius: 18px;
}
:root[data-theme="light"] {
  --bg: #f1f5f9;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --card-2: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-dim: #64748b;
  --nav-bg: rgba(255, 255, 255, .85);
  --shadow: 0 20px 50px -24px rgba(2,6,23,.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(99,102,241,.16), transparent 60%),
    radial-gradient(800px 500px at 110% 8%, rgba(34,211,238,.12), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--brand); }
img { max-width: 100%; }

/* ===== Top navigation ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.08rem; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 18px -6px rgba(99,102,241,.6);
}
.brand .logo svg { width: 19px; height: 19px; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-weight: 600; font-size: .93rem;
  padding: 8px 12px; border-radius: 9px; transition: background .15s, color .15s;
}
.nav-links a:hover { color: var(--text); background: var(--card-2); }
.nav-links a.active { color: var(--text); background: var(--card-2); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 38px; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--card-2); border: 1px solid var(--border); color: var(--text);
}
.icon-btn:hover { background: var(--border); }
.icon-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }

.lang-wrap { position: relative; display: flex; align-items: center; }
.lang-wrap svg.globe { width: 16px; height: 16px; position: absolute; left: 9px; pointer-events: none; color: var(--text-dim); }
select.lang {
  appearance: none; cursor: pointer;
  background: var(--card-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 30px 9px 30px; font-size: .88rem; font-weight: 600;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 8px center;
}

.hamburger { display: none; }

/* Mobile & tablet nav (full link row needs ~1030px to avoid wrapping) */
@media (max-width: 1050px) {
  .hamburger { display: grid; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
    background: var(--nav-bg); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border); padding: 8px 14px 14px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
}

@media (max-width: 480px) {
  .brand .brand-text { display: none; }
}

/* ===== Hero ===== */
.hero { max-width: 820px; margin: 0 auto; padding: 26px 24px 4px; text-align: center; }
.hero h1 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); line-height: 1.12; margin: 0 0 10px; letter-spacing: -.03em; }
.hero h1 .grad { background: linear-gradient(120deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--text-dim); font-size: 1.03rem; max-width: 600px; margin: 0 auto; }

/* ===== Layout ===== */
main { max-width: 1120px; margin: 0 auto; padding: 18px 24px 50px; }
.panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px; margin-top: 18px;
}

/* ===== Mic test panel ===== */
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--border); font-size: .9rem; font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-dim); flex: none; }
.status.live .dot { background: var(--good); animation: pulse 1.6s infinite; }
.status.error .dot { background: var(--bad); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5);} 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0);} 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0);} }

.device-select { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.device-select label { color: var(--text-dim); font-size: .84rem; font-weight: 600; }
select#deviceList {
  appearance: none; background: var(--card-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 34px 9px 12px; font-size: .88rem; font-weight: 500; max-width: 240px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center;
}

/* Controls */
.controls { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 4px; align-items: center; }
button {
  font: inherit; font-weight: 700; cursor: pointer; border: 1px solid transparent; border-radius: 12px;
  padding: 13px 22px; display: inline-flex; align-items: center; gap: 9px;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease, opacity .2s;
}
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: not-allowed; }
button svg { width: 18px; height: 18px; }
.btn-start { background: linear-gradient(135deg, var(--good), var(--good-2)); color: #fff; box-shadow: 0 10px 24px -10px rgba(34,197,94,.75); font-size: 1.02rem; }
.btn-start:hover:not(:disabled) { box-shadow: 0 14px 30px -10px rgba(34,197,94,.9); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 10px 24px -10px rgba(99,102,241,.8); }
.btn-rec { background: linear-gradient(135deg, #ef4444, #f97316); color: #fff; box-shadow: 0 10px 24px -10px rgba(239,68,68,.7); }
.btn-rec.recording { animation: recpulse 1.4s infinite; }
@keyframes recpulse { 0%,100% { box-shadow: 0 10px 24px -10px rgba(239,68,68,.7);} 50% { box-shadow: 0 10px 30px -6px rgba(239,68,68,1);} }
.btn-ghost { background: var(--card-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover:not(:disabled) { background: var(--border); }

.rec-timer { display: none; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--bad); }
.rec-timer.active { display: inline-flex; }
.rec-timer .rdot { width: 11px; height: 11px; border-radius: 50%; background: var(--bad); animation: pulse2 1s infinite; }
@keyframes pulse2 { 50% { opacity: .3; } }

/* Visualizer + meter */
.viz-wrap { margin: 22px 0 6px; }
canvas#waveform { width: 100%; height: 170px; display: block; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--border); border-radius: 14px; }
.meter-block { margin-top: 20px; }
.meter-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.meter-label span:first-child { font-weight: 600; }
.meter-label .val { color: var(--text-dim); font-variant-numeric: tabular-nums; font-size: .9rem; }
.meter { height: 16px; border-radius: 999px; overflow: hidden; background: var(--card-2); border: 1px solid var(--border); }
.meter-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--good), var(--warn) 70%, var(--bad)); border-radius: 999px; transition: width .06s linear; }
.meter-hint { margin-top: 8px; color: var(--text-dim); font-size: .85rem; }

.errorbox { display: none; margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.4); color: var(--bad); font-size: .92rem; }
.errorbox.show { display: block; }

.playback { margin-top: 24px; padding-top: 24px; border-top: 1px dashed var(--border); display: none; }
.playback.show { display: block; }
.playback h3 { margin: 0 0 14px; font-size: 1.05rem; }
audio { width: 100%; margin-bottom: 14px; }

/* ===== Headphone test panel ===== */
.hp-volume { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.hp-volume label { font-weight: 700; font-size: .9rem; }
.hp-volume input[type="range"] { flex: 1; min-width: 160px; accent-color: var(--brand); }
.hp-volume .val { font-variant-numeric: tabular-nums; color: var(--text-dim); font-weight: 700; min-width: 44px; text-align: right; }

.hp-section { margin-top: 30px; padding-top: 26px; border-top: 1px dashed var(--border); }
.hp-section:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.hp-section h3 { margin: 0 0 8px; font-size: 1.05rem; }
.hp-section > p { margin: 0 0 18px; color: var(--text-dim); font-size: .92rem; max-width: 640px; }

.hp-lr-row { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; margin: 4px 0 18px; }
.hp-side-btn { background: var(--card-2); color: var(--text); border-color: var(--border); min-width: 150px; justify-content: center; }
.hp-side-btn:hover:not(:disabled) { background: var(--border); }
.hp-lr-indicator { display: flex; gap: 14px; }
.hp-ind {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; background: var(--card-2); border: 1px solid var(--border); color: var(--text-dim);
  transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
.hp-ind.active { background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; box-shadow: 0 8px 20px -8px rgba(99,102,241,.7); transform: scale(1.08); }

.hp-confirm { margin: 4px 0 0; padding: 16px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--border); text-align: center; }
.hp-confirm p { margin: 0 0 12px; font-weight: 600; }
.hp-confirm .controls { justify-content: center; margin: 0; }

.hp-result { margin-top: 14px; padding: 12px 16px; border-radius: 12px; font-size: .9rem; display: none; }
.hp-result.good { display: block; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.4); color: var(--good); }
.hp-result.warn { display: block; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.4); color: var(--warn); }

.pan-track { position: relative; height: 10px; border-radius: 999px; margin: 18px 0 8px; border: 1px solid var(--border); background: linear-gradient(90deg, var(--brand), var(--card-2) 50%, var(--accent)); }
.pan-dot { position: absolute; top: 50%; left: 0%; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); transform: translate(-50%, -50%); box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.pan-labels { display: flex; justify-content: space-between; font-size: .8rem; color: var(--text-dim); font-weight: 700; }

.freq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; }
.freq-btn { background: var(--card-2); border: 1px solid var(--border); color: var(--text); flex-direction: column; padding: 16px 10px; gap: 4px; width: 100%; }
.freq-btn span { color: var(--text-dim); font-weight: 600; font-size: .82rem; }
.freq-btn.playing { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.freq-btn.playing span { color: rgba(255,255,255,.85); }

/* ===== Dead pixel test panel ===== */
body[data-page="dead-pixel"] .hp-section > p { max-width: none; }
.dp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.dp-swatch {
  position: relative; width: 100%; height: 84px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--sw); color: #fff;
  font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.7);
  display: flex; align-items: flex-end; justify-content: flex-start; padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.dp-swatch:hover { transform: translateY(-2px); }
.dp-swatch-light { color: #0f172a; text-shadow: none; border-color: var(--border); box-shadow: inset 0 0 0 1px rgba(15,23,42,.08); }

.dp-overlay {
  position: fixed; inset: 0; z-index: 999; display: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.dp-overlay.show { display: block; }
body.dp-locked { overflow: hidden; }

.dp-hint {
  position: absolute; left: 50%; bottom: 34px; transform: translate(-50%, 8px);
  background: rgba(15,23,42,.78); color: #fff; border: 1px solid rgba(255,255,255,.18);
  padding: 10px 18px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
  white-space: nowrap;
}
.dp-hint.show { opacity: 1; transform: translate(-50%, 0); }

.dp-exit {
  position: absolute; top: 18px; right: 18px; width: 42px; height: 42px;
  border-radius: 50%; background: rgba(15,23,42,.55); color: #fff;
  border: 1px solid rgba(255,255,255,.22); display: grid; place-items: center;
  padding: 0; backdrop-filter: blur(6px);
}
.dp-exit svg { width: 18px; height: 18px; }
.dp-exit.dp-exit-dark { background: rgba(255,255,255,.7); color: #0f172a; border-color: rgba(15,23,42,.15); }

/* Features / steps / faq */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 34px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.feature .ficon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(34,211,238,.18)); color: var(--accent); }
.feature .ficon svg { width: 22px; height: 22px; }
.feature h4 { margin: 0 0 6px; font-size: 1.02rem; }
.feature p { margin: 0; color: var(--text-dim); font-size: .92rem; }

.steps { margin-top: 42px; }
.steps h2, .faq h2 { text-align: center; font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: 24px; }
.steps-intro { text-align: center; color: var(--text-dim); font-size: .95rem; margin: -14px 0 24px; }
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 18px; }
.step { padding: 22px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; }
.step .num { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; margin-bottom: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.step h4 { margin: 0 0 6px; font-size: 1rem; }
.step p { margin: 0; color: var(--text-dim); font-size: .9rem; }

.about-blurb { margin-top: 46px; }
.about-blurb h2 { text-align: center; font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: 16px; }
.about-blurb-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 26px;
}
.about-blurb-card p { color: var(--text-dim); font-size: .96rem; line-height: 1.7; margin: 0 0 14px; }
.about-blurb-card p:last-child { margin-bottom: 0; }

.why-test { margin-top: 46px; }
.why-test h2 { text-align: center; font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: 16px; }
.why-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 26px;
}
.why-card p { color: var(--text-dim); font-size: .96rem; line-height: 1.7; margin: 0 0 16px; }
.why-card ul { margin: 0 0 16px; padding-left: 20px; }
.why-card li { color: var(--text-dim); font-size: .95rem; line-height: 1.65; margin-bottom: 10px; }
.why-card li strong { color: var(--text); }
.why-card .why-close { margin-bottom: 0; }

.info-block { margin-top: 46px; }
.info-block h2 { text-align: center; font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: 16px; }
.info-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 26px;
}
.info-img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--border); margin-bottom: 18px; }
.info-card p { color: var(--text-dim); font-size: .96rem; line-height: 1.7; margin: 0 0 16px; }
.info-card p:last-child { margin-bottom: 0; }
.info-card p strong { color: var(--text); }
.info-card ul, .info-card ol { margin: 0 0 16px; padding-left: 20px; }
.info-card ul:last-child, .info-card ol:last-child { margin-bottom: 0; }
.info-card li { color: var(--text-dim); font-size: .95rem; line-height: 1.65; margin-bottom: 10px; }
.info-card li strong { color: var(--text); }

.faq { margin-top: 46px; max-width: 820px; margin-left: auto; margin-right: auto; }
details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 4px 18px; margin-bottom: 12px; }
details summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 1.4rem; color: var(--text-dim); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 16px; color: var(--text-dim); font-size: .94rem; }

/* ===== Content pages (about / contact / privacy / sitemap) ===== */
.page { max-width: 820px; margin: 0 auto; padding: 30px 24px 20px; }
.page h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -.02em; margin: 0 0 6px; }
.page .lead { color: var(--text-dim); font-size: 1.05rem; margin: 0 0 22px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px; margin-bottom: 20px;
}
.card h2 { font-size: 1.25rem; margin: 0 0 12px; letter-spacing: -.01em; }
.card h2:not(:first-child) { margin-top: 26px; }
.card h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.card p { color: var(--text); margin: 0 0 14px; }
.card p, .card li { color: var(--text); }
.card ul { margin: 0 0 14px; padding-left: 20px; color: var(--text); }
.card li { margin-bottom: 7px; }
.card .muted { color: var(--text-dim); font-size: .9rem; }
.updated { color: var(--text-dim); font-size: .88rem; margin-bottom: 22px; }

.profile { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.avatar {
  width: 96px; height: 96px; border-radius: 24px; flex: none;
  display: grid; place-items: center; font-size: 2.4rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 12px 30px -10px rgba(99,102,241,.6);
}
.profile .p-meta h2 { margin: 0 0 4px; }
.profile .p-meta .role { color: var(--text-dim); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.chip { background: var(--card-2); border: 1px solid var(--border); color: var(--text-dim); font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; }

/* Contact page */
.contact-email-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.contact-email-row a.btn-primary { font-size: .95rem; }
a.btn-primary, a.btn-ghost {
  font: inherit; font-weight: 700; cursor: pointer; border: 1px solid transparent; border-radius: 12px;
  padding: 13px 22px; display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
}
a.btn-primary svg, a.btn-ghost svg { width: 18px; height: 18px; }

/* Sitemap list */
.sitemap-list { list-style: none; padding: 0; margin: 0; }
.sitemap-list li { border-bottom: 1px solid var(--border); }
.sitemap-list li:last-child { border-bottom: none; }
.sitemap-list a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 4px; text-decoration: none; color: var(--text); font-weight: 600; }
.sitemap-list a:hover { color: var(--brand); }
.sitemap-list a span { color: var(--text-dim); font-weight: 500; font-size: .88rem; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; background: var(--bg-soft); }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 34px 24px; display: grid; grid-template-columns: 1.8fr .8fr .8fr; gap: 28px; }
.footer-inner .fbrand { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 10px; }
.footer-inner .fbrand .logo { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.footer-inner .fbrand .logo svg { width: 17px; height: 17px; }
.footer-col h5 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin: 0 0 12px; }
.footer-col a { display: block; color: var(--text-dim); text-decoration: none; font-size: .92rem; padding: 5px 0; }
.footer-col a:hover { color: var(--text); }
.footer-col p { color: var(--text-dim); font-size: .9rem; margin: 0 0 10px; }
.footer-tagline { line-height: 1.6; }
.footer-bottom { border-top: 1px solid var(--border); text-align: center; color: var(--text-dim); font-size: .85rem; padding: 18px 24px; }

@media (max-width: 680px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .panel { padding: 20px; }
  .controls button { flex: 1 1 auto; justify-content: center; }
  .status-row { flex-direction: column; align-items: stretch; }
  .device-select { justify-content: space-between; }
  select#deviceList, select#spDeviceList { max-width: none; }
}
@media (max-width: 440px) { .footer-inner { grid-template-columns: 1fr; } }
