    :root {
      color-scheme: dark;
      --bg: #090f19;
      --surface: #111b29;
      --surface-2: #162334;
      --surface-3: #1d2d40;
      --line: #293a4e;
      --text: #f1f6f9;
      --muted: #a2b2bf;
      --soft: #71889a;
      --mint: #83ead0;
      --mint-dark: #0d5349;
      --solar: #f7c978;
      --red: #ff8b8c;
      --red-dark: #5d292e;
      --blue: #8bbcf5;
      --shadow: 0 28px 90px rgba(0, 0, 0, .45);
      font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }
    * { box-sizing: border-box; }
    html { background: #070c14; }
    body { margin: 0; color: var(--text); background: radial-gradient(circle at 17% 29%, #172636 0, transparent 36%), radial-gradient(circle at 89% 83%, #112a30 0, transparent 36%), #070c14; }
    button, input { font: inherit; }
    button { cursor: pointer; }
    button:focus-visible, input:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
    [hidden] { display: none !important; }
    svg.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
    .stage { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: clamp(35px, 8vw, 115px); padding: 32px; }
    .intro { width: 345px; flex: none; }
    .intro-kicker { display: inline-flex; gap: 10px; align-items: center; color: var(--mint); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
    .intro-kicker::before { content: ""; width: 23px; height: 1px; background: var(--mint); }
    .intro h1 { margin: 25px 0 18px; font-size: clamp(40px, 4.2vw, 61px); letter-spacing: -.065em; font-weight: 760; line-height: 1.01; }
    .intro h1 em { color: var(--mint); font-style: normal; }
    .intro p { color: #a8b8c4; line-height: 1.7; font-size: 15px; }
    .intro-tag { margin-top: 39px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 12px; color: var(--solar); background: rgba(247, 201, 120, .08); border: 1px solid rgba(247, 201, 120, .2); font-size: 12px; font-weight: 650; }
    .intro small { display: block; margin-top: 16px; color: #7f94a2; line-height: 1.55; }
    .phone { position: relative; isolation: isolate; width: 410px; max-width: 100%; height: min(910px, calc(100vh - 64px)); min-height: 620px; flex: none; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #334457; border-radius: 35px; background: radial-gradient(circle at 71% 5%, rgba(37, 107, 102, .22), transparent 29%), var(--bg); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.055); scrollbar-width: thin; scrollbar-color: #354b58 transparent; }
    .status-bar { height: 32px; padding: 8px 23px 0; display: flex; justify-content: space-between; color: #c5d4df; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
    .system-icons { display: flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: -.06em; }
    .system-battery { width: 17px; height: 9px; border: 1.4px solid #c5d4df; border-radius: 2px; position: relative; padding: 1.5px; }
    .system-battery::before { content: ""; display: block; height: 100%; width: 75%; background: #c5d4df; border-radius: 1px; }
    .system-battery::after { content: ""; position: absolute; width: 2px; height: 4px; right: -4px; top: 1px; background: #c5d4df; border-radius: 1px; }
    .demo-bar { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 32px; padding: 6px 12px; background: rgba(247, 201, 120, .10); border-top: 1px solid rgba(247, 201, 120, .1); border-bottom: 1px solid rgba(247, 201, 120, .16); color: #f9dba5; font-size: 11px; font-weight: 660; }
    .demo-bar .icon { width: 14px; height: 14px; }
    .app-body { padding: 21px 19px 21px; }
    .app-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
    .brand { display: flex; align-items: center; gap: 11px; }
    .brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, #265b56, #133931); border: 1px solid rgba(131,234,208,.26); color: var(--mint); box-shadow: 0 8px 23px rgba(13, 83, 73, .28); }
    .brand-mark .icon { width: 22px; height: 22px; }
    .brand-name { display: block; font-size: 13px; font-weight: 850; letter-spacing: .115em; line-height: 1.2; }
    .brand-name span { color: var(--mint); }
    .brand-sub { display: block; margin-top: 3px; font-size: 10px; color: var(--soft); font-weight: 560; letter-spacing: .045em; }
    .icon-button { width: 35px; height: 35px; display: grid; place-items: center; color: #b5c5ce; background: #172333; border: 1px solid var(--line); border-radius: 12px; }
    .icon-button .icon { width: 18px; height: 18px; }
    .eyebrow { display: block; color: var(--mint); text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: .19em; }
    .page-title { margin: 8px 0 9px; font-size: 29px; line-height: 1.1; letter-spacing: -.05em; font-weight: 750; }
    .page-title em { font-style: normal; color: var(--mint); }
    .page-sub { margin: 0 0 23px; color: var(--muted); font-size: 12px; line-height: 1.5; }
    .hero { position: relative; overflow: hidden; min-height: 232px; padding: 18px 18px 17px; border: 1px solid #2b5a54; border-radius: 21px; background: radial-gradient(circle at 87% 16%, rgba(78, 185, 146, .26), transparent 43%), linear-gradient(136deg, #19392f 0%, #142c30 52%, #172636 100%); box-shadow: 0 12px 32px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.06); }
    .hero[data-state="off"] { background: radial-gradient(circle at 88% 11%, rgba(240, 137, 125, .16), transparent 43%), linear-gradient(133deg, #342632, #1e2937 69%); border-color: #63434d; }
    .hero[data-state="unknown"] { background: radial-gradient(circle at 86% 11%, rgba(247,201,120,.13), transparent 43%), linear-gradient(135deg, #34302c, #192838 67%); border-color: #6a5941; }
    .hero::after { content: ""; position: absolute; width: 170px; height: 170px; border: 1px solid rgba(255,255,255,.055); border-radius: 50%; right: -56px; top: -51px; box-shadow: 0 0 0 28px rgba(255,255,255,.018), 0 0 0 61px rgba(255,255,255,.012); pointer-events: none; }
    .hero-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .label { display: inline-flex; align-items: center; gap: 7px; color: #bed4d1; text-transform: uppercase; font-size: 10px; font-weight: 780; letter-spacing: .13em; }
    .label .icon { width: 15px; height: 15px; }
    .relay-pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 6px 8px; background: rgba(131,234,208,.13); color: #9cf4dd; font-weight: 800; font-size: 9px; letter-spacing: .055em; white-space: nowrap; }
    .relay-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(131,234,208,.13); }
    .hero[data-state="off"] .relay-pill { color: #ffc1bc; background: rgba(255,139,140,.12); }
    .hero[data-state="unknown"] .relay-pill { color: #ffe0a3; background: rgba(247,201,120,.12); }
    .state-main { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin: 27px 0 27px; }
    .relay-word { font-size: 34px; letter-spacing: -.055em; line-height: 1; font-weight: 770; }
    .relay-meta { margin: 9px 0 0; color: #b4d0ca; font-size: 11px; line-height: 1.45; max-width: 220px; }
    .hero[data-state="off"] .relay-meta, .hero[data-state="unknown"] .relay-meta { color: #c8bec2; }
    .power-circle { flex: none; width: 67px; height: 67px; display: grid; place-items: center; border: 1px solid rgba(150,241,207,.35); border-radius: 50%; background: rgba(150,241,207,.13); color: var(--mint); box-shadow: inset 0 0 0 8px rgba(150,241,207,.045); }
    .power-circle .icon { width: 27px; height: 27px; stroke-width: 2.1; }
    .hero[data-state="off"] .power-circle { color: var(--red); background: rgba(255,139,140,.11); border-color: rgba(255,139,140,.28); }
    .hero[data-state="unknown"] .power-circle { color: var(--solar); background: rgba(247,201,120,.1); border-color: rgba(247,201,120,.25); }
    .hero-bottom { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(232,255,248,.13); padding-top: 16px; }
    .hero-bottom > div + div { border-left: 1px solid rgba(232,255,248,.13); padding-left: 20px; }
    .hero-bottom small { display: block; margin-bottom: 5px; color: #a6c2c0; font-size: 9px; letter-spacing: .13em; font-weight: 760; }
    .hero-bottom strong { font-size: 14px; letter-spacing: -.015em; }
    .attention { display: flex; gap: 10px; align-items: flex-start; margin-top: 13px; padding: 12px; border: 1px solid rgba(247,201,120,.25); border-radius: 13px; color: #f3dcac; background: rgba(247,201,120,.075); font-size: 11px; line-height: 1.55; }
    .attention.danger { border-color: rgba(255,139,140,.35); color: #ffc5c2; background: rgba(255,139,140,.09); }
    .attention .icon { width: 16px; height: 16px; margin-top: 1px; }
    .scene-wrap { margin: 16px 0 26px; }
    .scene-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 9px; color: var(--muted); font-size: 11px; }
    .scene-caption strong { color: #dbe8ee; font-size: 11px; }
    .scene-caption span { font-size: 10px; color: var(--soft); }
    .scene-list { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
    .scene-list::-webkit-scrollbar { display: none; }
    .scene { white-space: nowrap; flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; background: #14202e; color: #b6c5cf; font-size: 10px; font-weight: 680; }
    .scene[aria-pressed="true"] { background: #1d4840; color: #b3f5e3; border-color: #397b6d; }
    .section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; margin-bottom: 12px; }
    .section-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.035em; font-weight: 735; }
    .section-heading span, .section-heading button { color: var(--soft); font-size: 10px; font-weight: 660; }
    .section-heading button { color: var(--mint); background: none; border: 0; padding: 3px 0; }
    .soc-card { display: flex; align-items: center; gap: 16px; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(135deg, #172539, #152331); }
    .soc-ring { position: relative; width: 79px; height: 79px; flex: none; }
    .soc-ring svg { width: 79px; height: 79px; transform: rotate(-90deg); }
    .soc-ring .ring-track { fill: none; stroke: #2b4152; stroke-width: 6; }
    .soc-ring .ring-value { fill: none; stroke: var(--mint); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .45s ease; }
    .soc-ring strong { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; letter-spacing: -.055em; }
    .soc-card small { display: block; color: var(--soft); font-size: 9px; font-weight: 770; letter-spacing: .12em; }
    .soc-card h3 { margin: 5px 0 3px; font-size: 15px; letter-spacing: -.03em; }
    .soc-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
    .metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 10px 0 23px; }
    .metric { min-height: 113px; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: #121d2b; }
    .metric-top { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; letter-spacing: .1em; font-weight: 800; }
    .metric-icon { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.055); }
    .metric-icon .icon { width: 14px; height: 14px; }
    .metric.solar .metric-icon { color: var(--solar); background: rgba(247,201,120,.12); }
    .metric.house .metric-icon { color: #8bbcf5; background: rgba(139,188,245,.12); }
    .metric.battery .metric-icon { color: var(--mint); background: rgba(131,234,208,.12); }
    .metric.grid .metric-icon { color: #e4aaf1; background: rgba(228,170,241,.12); }
    .metric-value { margin-top: 11px; font-size: 22px; letter-spacing: -.045em; font-weight: 745; white-space: nowrap; }
    .metric-value span { margin-left: 3px; color: var(--muted); font-size: 11px; font-weight: 630; letter-spacing: 0; }
    .metric-foot { display: block; margin-top: 2px; font-size: 10px; color: var(--soft); }
    .plug-power { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 25px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 16px; background: #121d2b; }
    .plug-power > div + div { border-left: 1px solid var(--line); padding-left: 15px; }
    .plug-power small { display: block; color: var(--soft); font-size: 9px; font-weight: 770; letter-spacing: .10em; }
    .plug-power strong { display: block; margin-top: 5px; font-size: 17px; letter-spacing: -.035em; }
    .controls { padding: 15px; border: 1px solid #345347; border-radius: 18px; background: linear-gradient(155deg, #182b2c, #17222e 55%); }
    .control-buttons { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; margin-top: 13px; }
    .control-buttons button, .off-button, .save-button { min-height: 43px; border-radius: 11px; font-size: 12px; font-weight: 800; }
    .auto-button { border: 1px solid #446175; background: #213347; color: #e2eff5; }
    .on-button { border: 1px solid #91ebcb; background: linear-gradient(130deg, #a3f0d2, #77dfc7); color: #0b3030; box-shadow: 0 6px 18px rgba(108,222,182,.13); }
    .off-button { width: 100%; margin-top: 9px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #a5525a; background: #512b35; color: #ffc9c4; }
    .off-button:hover { background: #61343e; }
    .off-button .icon { width: 16px; height: 16px; }
    .control-note { display: flex; align-items: flex-start; gap: 7px; margin: 13px 0 0; color: #9fb8b9; font-size: 10px; line-height: 1.5; }
    .control-note .icon { width: 15px; height: 15px; }
    .pending { margin-top: 12px; padding: 11px; background: rgba(247,201,120,.08); border: 1px solid rgba(247,201,120,.28); border-radius: 11px; }
    .pending strong { display: block; color: #ffe1a7; font-size: 11px; }
    .pending p { margin: 4px 0 9px; color: #d7c7ad; font-size: 10px; line-height: 1.45; }
    .pending button { padding: 8px 10px; background: #55442d; border: 1px solid #927448; color: #fff1d4; border-radius: 8px; font-size: 10px; font-weight: 740; }
    .hard-limits { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 15px; }
    .hard-limits span { border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); padding: 6px 8px; color: #a7bbc6; font-size: 9px; font-weight: 700; }
    .bottom-link { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 20px; padding: 13px 1px 5px; border: 0; border-top: 1px solid var(--line); background: none; color: #d2e0e8; font-size: 12px; font-weight: 710; text-align: left; }
    .bottom-link .icon { width: 15px; height: 15px; color: var(--mint); }
    .rule-intro, .history-intro { padding: 18px; margin-bottom: 16px; border: 1px solid #315b58; border-radius: 18px; background: radial-gradient(circle at 97% 0, rgba(131,234,208,.16), transparent 50%), #172a31; }
    .rule-intro .icon, .history-intro .icon { color: var(--mint); width: 23px; height: 23px; }
    .rule-intro h2, .history-intro h2 { margin: 11px 0 6px; font-size: 19px; letter-spacing: -.035em; }
    .rule-intro p, .history-intro p { margin: 0; color: #afc5c9; font-size: 11px; line-height: 1.6; }
    .rule-group { padding: 14px; margin-bottom: 11px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
    .group-title { display: flex; align-items: center; gap: 8px; padding: 2px 1px 11px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 800; }
    .group-title .icon { width: 16px; height: 16px; color: var(--mint); }
    .field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 1px; }
    .field-row + .field-row { border-top: 1px solid rgba(88,111,129,.18); }
    .field-label { min-width: 0; }
    .field-label label { display: block; font-size: 11px; font-weight: 730; line-height: 1.4; }
    .field-label small { display: block; margin-top: 3px; color: var(--soft); font-size: 10px; line-height: 1.4; }
    .field-input { flex: none; display: flex; align-items: center; gap: 4px; padding: 6px 8px 6px 6px; border: 1px solid #435769; border-radius: 10px; background: #1a2a3a; color: var(--muted); font-size: 11px; font-weight: 650; }
    .field-input input { width: 54px; padding: 3px 1px; border: 0; outline: 0; background: transparent; color: var(--text); text-align: right; font-size: 15px; font-weight: 800; appearance: textfield; -moz-appearance: textfield; }
    .field-input input::-webkit-inner-spin-button, .field-input input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
    .field-input:focus-within { border-color: var(--mint); }
    .save-button { width: 100%; margin: 4px 0 6px; border: 1px solid #91ebcb; background: var(--mint); color: #103735; }
    .validation { margin: 5px 0 13px; color: #ffc0bb; font-size: 11px; line-height: 1.5; }
    .info-line { margin: 4px 0 13px; color: var(--muted); font-size: 10px; line-height: 1.55; }
    .fixed-card { padding: 15px; margin-top: 14px; border: 1px solid #6b5243; border-radius: 17px; background: #27252a; }
    .fixed-card h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 9px; font-size: 12px; color: #f3d7b6; }
    .fixed-card .icon { width: 15px; height: 15px; }
    .fixed-card ul { list-style: none; padding: 0; margin: 0; }
    .fixed-card li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(247,201,120,.14); font-size: 11px; color: #c4b4ae; }
    .fixed-card li strong { color: #f9dbb6; text-align: right; }
    .fixed-card p { margin: 11px 0 0; color: #c2a9a2; line-height: 1.5; font-size: 10px; }
    .history-off { margin: 0 0 18px; }
    .history-filter { display: flex; gap: 6px; margin-bottom: 14px; }
    .filter { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: #14202e; color: var(--muted); font-size: 10px; font-weight: 740; }
    .filter[aria-pressed="true"] { color: var(--mint); background: #1b3b3b; border-color: #3a6961; }
    .timeline { border-left: 1px solid #405363; margin-left: 14px; padding: 1px 0 2px 20px; }
    .event { position: relative; padding: 0 0 20px 0; }
    .event:last-child { padding-bottom: 5px; }
    .event::before { content: ""; position: absolute; left: -25px; top: 3px; width: 9px; height: 9px; border: 1px solid var(--mint); background: #183a38; border-radius: 50%; box-shadow: 0 0 0 4px var(--bg); }
    .event.order::before { border-color: var(--solar); background: #453626; }
    .event.error::before { border-color: var(--red); background: #492a32; }
    .event time { display: block; color: var(--soft); font-size: 10px; margin-bottom: 5px; }
    .event h3 { margin: 0 0 4px; font-size: 12px; font-weight: 800; }
    .event p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
    .history-foot { margin: 19px 0 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--soft); font-size: 10px; line-height: 1.5; }
    .bottom-nav { position: sticky; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 9px 14px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid #2e4050; background: rgba(12, 22, 32, .96); -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px); }
    .nav-button { min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 12px; background: transparent; color: #8299a8; font-size: 9px; font-weight: 730; }
    .nav-button .icon { width: 19px; height: 19px; }
    .nav-button[aria-current="page"] { color: var(--mint); background: #1b393a; }
    .modal { position: fixed; z-index: 20; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 15px; background: rgba(1, 5, 10, .78); }
    .modal-card { width: min(410px, 100%); padding: 20px; border: 1px solid #4a665e; border-radius: 20px; background: linear-gradient(147deg, #1d3032, #13212c); box-shadow: 0 25px 75px #0009; }
    .modal-card .icon { color: var(--mint); width: 23px; height: 23px; }
    .modal-card h2 { margin: 13px 0 8px; font-size: 21px; letter-spacing: -.04em; }
    .modal-card p { margin: 0; color: #bacbcf; font-size: 12px; line-height: 1.6; }
    .modal-safety { margin: 14px 0 17px; padding: 11px; border-radius: 10px; border: 1px solid rgba(247,201,120,.26); background: rgba(247,201,120,.08); color: #f3d4a2; font-size: 11px; line-height: 1.5; }
    .modal-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 9px; }
    .modal-actions button { min-height: 42px; border-radius: 10px; font-size: 11px; font-weight: 800; }
    .modal-cancel { border: 1px solid var(--line); background: #20303c; color: #d5e2e7; }
    .modal-confirm { border: 1px solid var(--mint); background: var(--mint); color: #0b322e; }
    .toast { position: fixed; z-index: 30; bottom: 28px; left: 50%; transform: translateX(-50%); width: min(380px, calc(100% - 32px)); padding: 12px 15px; border: 1px solid #567264; border-radius: 11px; background: #223634; color: #e3f8ee; box-shadow: 0 15px 40px #0008; font-size: 11px; line-height: 1.4; text-align: center; }
    @media (max-width: 860px) { .intro { display: none; } .stage { padding: 0; align-items: flex-start; } .phone { width: min(100%, 470px); height: 100svh; min-height: 0; border-radius: 0; border-top: 0; border-bottom: 0; } }
    @media (max-width: 365px) { .app-body { padding-left: 15px; padding-right: 15px; } .page-title { font-size: 27px; } .relay-word { font-size: 30px; } .metric { padding: 11px; } .metric-value { font-size: 20px; } .field-input input { width: 45px; } }
    @media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Aplicacion conectada: pantalla de login y estados sin datos falsos. */
.login-page { min-height: 100svh; display:grid; place-items:center; padding:22px; }
.login-card { width:min(420px,100%); padding:28px 23px; border:1px solid #385b57; border-radius:24px; background:radial-gradient(circle at 90% 0%,#25473f77,transparent 45%),#111d2a; box-shadow:var(--shadow); }
.login-card .brand { margin-bottom:33px; }
.login-card h1 { font-size:28px; letter-spacing:-.05em; margin:0 0 8px; }
.login-card p { color:var(--muted); font-size:12px; line-height:1.6; margin:0 0 20px; }
.login-card label { display:block; margin:15px 0 5px; font-size:11px; font-weight:760; color:#dce7eb; }
.login-card input { width:100%; height:46px; border:1px solid #405569; border-radius:10px; background:#182a38; padding:0 13px; color:var(--text); }
.login-card .save-button { margin:22px 0 9px; }
.login-card .validation { margin:5px 0; }
.login-caption { color:var(--soft); font-size:10px; line-height:1.5; }
/* El token de alta tiene 64 caracteres: debe poder leerse/copiarse en móvil. */
.login-card #device-token code { display:block; overflow-wrap:anywhere; user-select:all; color:var(--text); font-size:13px; }
.app-safety-banner { display:flex; gap:8px; padding:10px 13px; margin-bottom:19px; border:1px solid #6c543a; border-radius:12px; background:#3a2c25; color:#f4d2a7; font-size:10px; line-height:1.5; }
.app-safety-banner .icon { width:16px; height:16px; }
.metric-value.missing { color:#839aa8; }
button:disabled { opacity:.42; cursor:not-allowed; box-shadow:none; }
.feature-message { margin:8px 0 0; color:var(--soft); font-size:10px; line-height:1.55; }
.account-name { margin:5px 0 0; color:var(--soft); font-size:10px; }
.settings-badge { display:inline-flex; padding:6px 9px; margin:0 0 10px; border-radius:999px; border:1px solid var(--line); color:var(--solar); background:#44392566; font-size:10px; }
.status-offline { color:var(--red) !important; }
/* No se oculta ningun control importante tras hover; FORZAR OFF tambien en historial. */

.sprite { position:absolute; width:0; height:0; overflow:hidden; }
.energy-head { margin-top:25px; }
.demo-bar[data-online="true"] { color:#a9f4dd; background:rgba(131,234,208,.095); border-color:rgba(131,234,208,.18); }
