:root {
  --ink: #08243d;
  --muted: #607589;
  --line: #dce8f1;
  --surface: #ffffff;
  --surface-soft: #f4f9fc;
  --navy: #042d50;
  --blue: #087bcd;
  --cyan: #23c6ee;
  --green: #16a884;
  --danger: #c53845;
  --warning: #bd6c00;
  --shadow: 0 24px 70px rgba(4, 45, 80, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 92px 0; }
.section-soft { background: var(--surface-soft); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #08669f;
  background: #e7f8fd;
  border: 1px solid #c4edf7;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.1; letter-spacing: -.035em; margin-top: 0; }
h1 { font-size: clamp(2.55rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: 1.2rem; }
.lead { color: #46657d; font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 690px; }
.small { font-size: .86rem; color: var(--muted); }
.muted { color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220,232,241,.8);
}
.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 245px; height: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { text-decoration: none; color: #27465d; font-weight: 700; font-size: .94rem; }
.nav-links a:hover { color: var(--blue); }
.nav-actions { display: flex; gap: 10px; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 1.5rem; }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #087bcd, #11a5d6); box-shadow: 0 12px 28px rgba(8,123,205,.24); }
.btn-secondary { color: var(--navy); background: #fff; border-color: var(--line); }
.btn-ghost { color: var(--blue); background: transparent; border-color: #9ed8ed; }
.btn-danger { color: #fff; background: var(--danger); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 80% 35%, rgba(39,205,242,.35), transparent 30%),
    radial-gradient(circle at 15% 10%, rgba(56,168,242,.25), transparent 25%),
    linear-gradient(135deg, #032944 0%, #075f9c 58%, #0d95c3 100%);
  padding: 92px 0 86px;
}
.hero::after {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50%;
  right: -210px;
  top: -170px;
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 62px; align-items: center; }
.hero h1 { margin: 22px 0; max-width: 740px; }
.hero .lead { color: #d5eef9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .btn-secondary { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 32px; color: #d9eef7; font-size: .88rem; font-weight: 700; }
.trust-row span::before { content: "✓"; color: #70f3da; margin-right: 7px; }

.scan-visual {
  position: relative;
  min-height: 530px;
  display: grid;
  place-items: center;
}
.scan-rings {
  position: absolute;
  width: 430px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(160,238,255,.42);
  box-shadow: 0 0 0 35px rgba(113,221,245,.055), 0 0 0 75px rgba(113,221,245,.035);
  animation: breathe 5s ease-in-out infinite;
}
.phone {
  position: relative;
  z-index: 2;
  width: 270px;
  padding: 14px;
  border-radius: 42px;
  background: #051c31;
  box-shadow: 0 32px 70px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.14);
  transform: rotate(2deg);
}
.phone-screen {
  min-height: 470px;
  border-radius: 31px;
  padding: 25px 20px;
  color: var(--ink);
  background: linear-gradient(#f9fdff, #ecf7fb);
}
.phone-logo { width: 135px; }
.metric-score { margin: 28px auto 18px; width: 142px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--cyan) 0 78%, #dcecf2 78%); }
.metric-score > div { width: 112px; aspect-ratio: 1; display: grid; place-items: center; text-align: center; border-radius: 50%; background: white; box-shadow: inset 0 0 0 1px var(--line); }
.metric-score strong { font-size: 2rem; display: block; line-height: 1; }
.mini-metric { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .82rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; background: var(--green); }
.floating-card {
  position: absolute;
  z-index: 3;
  width: 180px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 17px;
  background: rgba(5,45,76,.7);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
}
.floating-card strong { display: block; font-size: 1.35rem; }
.card-one { left: 0; top: 110px; }
.card-two { right: 0; bottom: 92px; }
@keyframes breathe { 50% { transform: scale(1.045); opacity: .75; } }

.stats-strip { margin-top: -42px; position: relative; z-index: 5; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 30px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: 2.3rem; color: var(--blue); letter-spacing: -.04em; }
.stat span { color: var(--muted); font-weight: 650; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 16px 44px rgba(4,45,80,.06); }
.card-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 15px; color: var(--blue); background: #e8f7fd; font-size: 1.35rem; font-weight: 900; }
.card p { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 900; margin-bottom: 18px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.security-panel { padding: 38px; color: #fff; background: linear-gradient(145deg, #052d4f, #075f91); border-radius: 28px; box-shadow: var(--shadow); }
.check-list { display: grid; gap: 14px; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 12px; color: #d8edf6; }
.check-list li::before { content: "✓"; flex: 0 0 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #043d5a; background: #77f1d8; font-weight: 900; }

.cta-panel { padding: 50px; text-align: center; color: #fff; border-radius: 30px; background: linear-gradient(135deg, #062e4d, #087bcd 62%, #19afd8); box-shadow: var(--shadow); }
.cta-panel .lead { margin-inline: auto; color: #d9f0fa; }

.site-footer { padding: 58px 0 30px; color: #d4e8f2; background: #031e33; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 50px; }
.footer-logo { width: 260px; }
.site-footer a { color: #d4e8f2; text-decoration: none; }
.site-footer a:hover { color: #7eeaff; }
.footer-links { display: grid; gap: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #8fb0c1; font-size: .82rem; }

.auth-page { min-height: 100vh; background: linear-gradient(135deg, #eef8fc, #fff 55%, #e7f5fb); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: .85fr 1.15fr; }
.auth-brand { position: relative; overflow: hidden; padding: 56px; color: #fff; background: linear-gradient(150deg, #042b4a, #087bcd); display: flex; flex-direction: column; justify-content: space-between; }
.auth-brand::after { content:""; width: 480px; height: 480px; position:absolute; border:1px solid rgba(255,255,255,.18); border-radius:50%; right:-210px; bottom:-180px; box-shadow:0 0 0 55px rgba(255,255,255,.035),0 0 0 110px rgba(255,255,255,.02); }
.auth-brand img { width: 285px; position: relative; z-index: 2; }
.auth-brand-copy { position: relative; z-index: 2; max-width: 480px; }
.auth-brand-copy h1 { font-size: clamp(2.3rem, 4vw, 4rem); }
.auth-main { padding: 45px; display: grid; place-items: center; }
.form-card { width: min(570px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.95); box-shadow: var(--shadow); }
.form-card h1 { font-size: 2.35rem; margin-bottom: 10px; }
.field { display: grid; gap: 7px; margin-top: 18px; }
.field label { font-size: .9rem; font-weight: 800; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #c9dae6;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(8,123,205,.11); }
.field textarea { min-height: 120px; resize: vertical; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; color: #496478; font-size: .9rem; }
.checkbox input { margin-top: 4px; }
.form-actions { margin-top: 24px; display: grid; gap: 12px; }
.form-actions .btn { width: 100%; }
.form-status { display: none; margin-top: 18px; padding: 13px 15px; border-radius: 12px; font-size: .92rem; }
.form-status.show { display: block; }
.form-status.success { color: #075f4e; background: #def8ef; border: 1px solid #aeead9; }
.form-status.error { color: #842b34; background: #fff0f1; border: 1px solid #f1c2c7; }
.form-status.info { color: #195d86; background: #eaf7fd; border: 1px solid #bee8f5; }
.password-help { font-size: .78rem; color: var(--muted); }
.back-link { display: inline-flex; margin-bottom: 20px; font-weight: 750; text-decoration: none; }

.legal-header { padding: 75px 0 45px; color: #fff; background: linear-gradient(135deg, #042b4a, #087bcd); }
.legal-content { width: min(850px, calc(100% - 40px)); margin: 55px auto 90px; }
.legal-content h2 { font-size: 1.65rem; margin-top: 38px; }
.legal-content h3 { margin-top: 28px; }
.legal-content p, .legal-content li { color: #3f5b70; }
.notice { padding: 18px; border-radius: 14px; border-left: 4px solid var(--warning); background: #fff7e9; color: #6a481a; }

.dashboard-body { min-height: 100vh; background: #eef5f9; }
.dashboard-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.dashboard-nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dashboard-nav img { width: 220px; }
.user-chip { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 900; }
.dashboard-main { padding: 38px 0 70px; }
.dashboard-hero { display:flex; align-items:flex-end; justify-content:space-between; gap:25px; margin-bottom:28px; }
.dashboard-hero h1 { font-size: clamp(2rem,4vw,3.2rem); margin-bottom: 6px; }
.metric-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.metric-card { padding:22px; border:1px solid var(--line); border-radius:18px; background:#fff; }
.metric-card span { color:var(--muted); font-size:.85rem; }
.metric-card strong { display:block; margin-top:7px; font-size:1.65rem; }
.dashboard-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:22px; margin-top:22px; }
.panel { padding:26px; border:1px solid var(--line); border-radius:22px; background:#fff; }
.integration-banner { display:flex; gap:14px; padding:17px; border-radius:15px; background:#fff7e9; border:1px solid #f1d39f; color:#6b4c20; }
.scan-list { display:grid; gap:12px; margin-top:18px; }
.scan-item { padding:15px; display:flex; justify-content:space-between; gap:15px; border:1px solid var(--line); border-radius:14px; }
.badge { display:inline-flex; padding:5px 9px; border-radius:999px; font-size:.72rem; font-weight:900; letter-spacing:.04em; }
.badge-demo { color:#195d86; background:#e5f4fb; }
.system-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin-top:18px; }
.system-card { padding:14px; border:1px solid var(--line); border-radius:13px; background:#f8fbfd; }
.system-card strong { display:block; font-size:.9rem; }
.system-card span { font-size:.75rem; color:var(--muted); }
.chat { display:flex; flex-direction:column; min-height:530px; }
.chat-messages { flex:1; display:flex; flex-direction:column; gap:12px; overflow:auto; max-height:450px; padding-right:5px; }
.message { max-width:88%; padding:12px 14px; border-radius:15px; font-size:.9rem; white-space:pre-wrap; }
.message.assistant { align-self:flex-start; background:#edf7fb; border:1px solid #caeaf4; }
.message.user { align-self:flex-end; color:#fff; background:var(--blue); }
.chat-form { display:flex; gap:9px; margin-top:15px; }
.chat-form input { flex:1; padding:12px; border:1px solid #c9dae6; border-radius:12px; }
.emergency { color:#7d2029; background:#ffeff1!important; border-color:#efb9bf!important; font-weight:700; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav.open { align-items: flex-start; padding: 18px 0; flex-wrap: wrap; }
  .nav.open .nav-links { order: 3; width: 100%; display: grid; gap: 10px; padding: 15px 0 4px; }
  .hero-grid, .split, .auth-shell, .dashboard-grid { grid-template-columns: 1fr; }
  .scan-visual { min-height: 510px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .auth-brand { min-height: 380px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 26px, 1160px); }
  .section { padding: 68px 0; }
  .brand img { width: 205px; }
  .nav-actions .btn-secondary { display: none; }
  .hero { padding-top: 64px; }
  .hero-grid { gap: 25px; }
  .scan-visual { min-height: 455px; transform: scale(.9); margin: -25px -25px; }
  .floating-card { width: 150px; font-size: .78rem; }
  .stats-grid, .grid-3, .steps, .footer-grid, .metric-grid, .system-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .cta-panel { padding: 35px 22px; }
  .footer-bottom { flex-direction: column; }
  .auth-main { padding: 20px 14px 40px; }
  .auth-brand { padding: 30px 22px; min-height: 315px; }
  .form-card { padding: 26px 20px; }
  .dashboard-hero { align-items:flex-start; flex-direction:column; }
  .dashboard-nav img { width: 180px; }
  .user-chip .user-copy { display:none; }
  .chat-form { flex-direction:column; }
}

/* Panel administrativo */
.admin-body { background: #edf4f8; }
.admin-alert { display:none; position:fixed; z-index:80; right:24px; top:90px; max-width:420px; padding:14px 18px; border-radius:14px; box-shadow:var(--shadow); }
.admin-alert.show { display:block; }
.admin-alert.success { color:#075f4e; background:#def8ef; border:1px solid #aeead9; }
.admin-alert.error { color:#842b34; background:#fff0f1; border:1px solid #f1c2c7; }
.admin-metrics { grid-template-columns:repeat(4,1fr); }
.metric-action { cursor:pointer; transition:transform .15s ease, box-shadow .15s ease; }
.metric-action:hover { transform:translateY(-2px); box-shadow:0 12px 28px rgba(5,45,79,.1); }
.admin-panel-section { margin-top:22px; }
.admin-section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:22px; margin-bottom:20px; }
.admin-section-head h2 { margin:0 0 4px; font-size:1.7rem; }
.admin-filters { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.admin-filters input, .admin-filters select { min-height:42px; padding:10px 12px; border:1px solid #c9dae6; border-radius:11px; background:#fff; color:var(--ink); }
.admin-filters input { min-width:260px; }
.admin-table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:15px; }
.admin-table { width:100%; border-collapse:collapse; background:#fff; min-width:1000px; }
.admin-table th { padding:13px 14px; text-align:left; color:#496478; background:#f4f8fb; border-bottom:1px solid var(--line); font-size:.78rem; text-transform:uppercase; letter-spacing:.04em; }
.admin-table td { padding:14px; border-bottom:1px solid #e8eff4; vertical-align:top; font-size:.88rem; }
.admin-table tr:last-child td { border-bottom:0; }
.admin-table-footer { display:flex; justify-content:flex-end; padding-top:12px; }
.table-actions { display:flex; gap:7px; flex-wrap:wrap; }
.table-note { margin-top:7px; max-width:260px; color:#775123; font-size:.75rem; }
.validation-line { color:#8798a4; font-size:.78rem; }
.validation-line.is-valid { color:#08745f; font-weight:750; }
.btn-small { padding:8px 10px; border-radius:9px; font-size:.76rem; }
.btn-danger { color:#fff; background:#b53643; border:1px solid #b53643; }
.btn-danger:hover { background:#922933; }
.status-pending_admin { color:#73510e; background:#fff0c9; }
.status-pending_email { color:#195d86; background:#e5f4fb; }
.status-active { color:#075f4e; background:#def8ef; }
.status-suspended { color:#842b34; background:#fff0f1; }
.status-rejected { color:#5d6670; background:#edf0f2; }
.admin-dialog { width:min(520px,calc(100% - 30px)); padding:0; border:0; border-radius:22px; box-shadow:0 24px 70px rgba(2,25,43,.3); }
.admin-dialog::backdrop { background:rgba(2,25,43,.58); backdrop-filter:blur(3px); }
.admin-dialog form { padding:28px; }
.admin-dialog h2 { margin-bottom:8px; }
.dialog-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:24px; }

@media (max-width: 980px) {
  .admin-metrics { grid-template-columns:1fr 1fr; }
  .admin-section-head { align-items:flex-start; flex-direction:column; }
}

@media (max-width: 680px) {
  .admin-metrics { grid-template-columns:1fr; }
  .admin-filters { width:100%; }
  .admin-filters input, .admin-filters select, .admin-filters .btn { width:100%; min-width:0; }
  .admin-alert { left:13px; right:13px; top:82px; }
  .dialog-actions { flex-direction:column-reverse; }
  .dialog-actions .btn { width:100%; }
}

/* Medición Shen.AI */
.dashboard-actions { display:flex; gap:10px; flex-wrap:wrap; }
.btn.disabled { opacity:.55; pointer-events:none; }
.system-parameter { display:flex; justify-content:space-between; gap:12px; margin-top:9px; padding-top:9px; border-top:1px solid var(--line); font-size:.78rem; }
.system-parameter strong { white-space:nowrap; color:var(--blue); }
.measurement-body { min-height:100vh; background:linear-gradient(180deg,#eef8fc,#f8fbfd); }
.measurement-main { padding:34px 0 70px; }
.measurement-shell { width:min(900px,calc(100% - 30px)); }
.measurement-precheck h1 { font-size:clamp(2rem,5vw,3.1rem); margin-bottom:10px; }
.measurement-precheck form { margin-top:24px; }
.urgent-check { padding:13px; border:1px solid #efc1c7; border-radius:12px; color:#842b34; background:#fff3f4; }
.preparation-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:22px 0; }
.preparation-grid div { padding:15px; border:1px solid var(--line); border-radius:14px; background:#f8fbfd; }
.preparation-grid strong,.preparation-grid span { display:block; }
.preparation-grid span { margin-top:5px; color:var(--muted); font-size:.8rem; }
.compatibility-box { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin:18px 0; }
.compatibility-item { display:flex; align-items:center; gap:8px; padding:10px 12px; border-radius:10px; font-size:.82rem; }
.compatibility-item.ok { color:#075f4e; background:#e5f8f2; }
.compatibility-item.fail { color:#842b34; background:#fff0f1; }
.compatibility-item span { width:20px; height:20px; display:grid; place-items:center; border-radius:50%; background:rgba(255,255,255,.7); font-weight:900; }
.btn-large { width:100%; margin-top:8px; padding:15px 20px; }
.scan-panel { padding:20px; overflow:hidden; }
.scan-panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:5px 5px 16px; }
.scan-panel-head h2 { margin:4px 0 0; font-size:1.7rem; }
.sdk-loading { margin-bottom:14px; }
.loader-track { height:6px; overflow:hidden; border-radius:999px; background:#dcebf2; }
.loader-track span { display:block; width:0; height:100%; background:linear-gradient(90deg,var(--blue),var(--cyan)); transition:width .25s ease; }
.sdk-loading small { display:block; margin-top:7px; color:var(--muted); }
.shen-canvas-wrap { height:min(72vh,760px); min-height:520px; display:grid; place-items:center; overflow:hidden; border-radius:18px; background:#071a26; }
#mxcanvas { aspect-ratio:480/894; max-width:100%; max-height:100%; }
.live-status-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:14px; }
.live-status-grid div { padding:12px; border-radius:12px; background:#f0f7fa; }
.live-status-grid span,.live-status-grid strong { display:block; }
.live-status-grid span { color:var(--muted); font-size:.72rem; }
.live-status-grid strong { margin-top:4px; font-size:.9rem; }
.privacy-line { margin:15px 4px 2px; text-align:center; }
.result-panel { text-align:center; }
.result-panel h2 { font-size:2rem; }
.result-metrics { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin:24px 0; text-align:left; }
.result-metric { padding:18px; border:1px solid var(--line); border-radius:15px; background:#f8fbfd; }
.result-metric span,.result-metric strong { display:block; }
.result-metric span { color:var(--muted); font-size:.82rem; }
.result-metric strong { margin-top:6px; font-size:1.5rem; }
.result-metric small { font-size:.75rem; color:var(--muted); }
@media (max-width:680px) {
  .preparation-grid,.compatibility-box,.result-metrics { grid-template-columns:1fr; }
  .scan-panel { padding:12px; }
  .scan-panel-head { flex-direction:column; }
  .shen-canvas-wrap { min-height:460px; height:70vh; }
  .live-status-grid { grid-template-columns:1fr; }
}



/* Shen.AI responsive canvas v1.2.7 */
.shenai-mobile-frame {
  width: min(90vw, 405px);
  aspect-ratio: 9 / 16;
  margin: 0 auto 18px;
  overflow: hidden;
  border-radius: 22px;
  background: #eeeeee;
  box-shadow: 0 10px 28px rgba(8, 43, 73, 0.10);
}

.shenai-mobile-frame #mxcanvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
}

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .shenai-mobile-frame {
    width: min(88vw, 370px);
    border-radius: 18px;
  }
}

@media (max-width: 380px) {
  .shenai-mobile-frame {
    width: 86vw;
  }
}
