/* V77 — Device Mode / second-door foundation. Branch from locked V76. */
.nova-v77-device-toggle{display:flex!important;align-items:center!important;gap:9px!important;padding:8px 12px!important;border:1px solid rgba(87,183,239,.38)!important;border-radius:999px!important;background:rgba(4,21,45,.48)!important;color:#dff5ff!important;cursor:pointer!important;backdrop-filter:blur(14px)!important}
.nova-v77-device-toggle i{width:9px;height:9px;border-radius:50%;background:#74899a;box-shadow:0 0 0 3px rgba(116,137,154,.12)}
.nova-v77-device-toggle[data-active="true"] i{background:#58e6aa;box-shadow:0 0 12px rgba(88,230,170,.72)}
.nova-v77-device-toggle[data-active="true"]{border-color:rgba(88,230,170,.42)!important}
.nova-v77-consent{position:fixed;inset:0;z-index:60000;display:grid;place-items:center;background:rgba(0,5,15,.54);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.nova-v77-consent[hidden]{display:none!important}
.nova-v77-consent-card{position:relative;width:min(610px,calc(100% - 34px));padding:30px;border-radius:26px;border:1px solid rgba(92,188,244,.52);background:linear-gradient(145deg,rgba(5,26,58,.94),rgba(4,15,36,.92));box-shadow:0 28px 90px rgba(0,0,0,.56),0 0 45px rgba(42,144,231,.12);color:#eefaff}
.nova-v77-consent-card h2{margin:0 0 10px;font-size:24px}.nova-v77-consent-card p{color:#abc4d7;line-height:1.55}.nova-v77-consent-card strong{color:#f5fbff}
.nova-v77-consent-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.nova-v77-consent-actions button{padding:11px 16px;border-radius:13px;border:1px solid rgba(95,181,235,.42);background:rgba(6,31,62,.72);color:#edf9ff;cursor:pointer}.nova-v77-consent-actions .primary{background:linear-gradient(135deg,rgba(14,91,146,.95),rgba(10,55,102,.95));border-color:rgba(102,205,255,.72);box-shadow:0 0 22px rgba(50,165,235,.15)}
.nova-v77-mode-note{position:absolute;left:50%;top:92px;transform:translateX(-50%);z-index:18;display:flex;align-items:center;gap:8px;padding:8px 13px;border:1px solid rgba(84,181,238,.25);border-radius:999px;background:rgba(3,17,38,.42);backdrop-filter:blur(16px);color:#9ebbd0;font-size:11px;pointer-events:none}.nova-v77-mode-note b{color:#dff7ff}.nova-v77-mode-note .on{color:#70eab6}
.nova-v77-floating-orb{display:none;position:fixed;right:28px;bottom:28px;z-index:26000;width:64px;height:64px;border-radius:50%;border:1px solid rgba(98,201,255,.72);background:radial-gradient(circle,rgba(28,110,173,.9),rgba(2,22,49,.94));box-shadow:0 0 34px rgba(56,178,245,.38);padding:8px;cursor:pointer}.nova-v77-floating-orb img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 10px rgba(255,203,95,.45))}
html.nova-v77-device-active .nova-v77-floating-orb{display:block}
/* Restore some depth without V77 upload-style brightening. */
.nova-device-layer:after{background:radial-gradient(circle at 58% 66%,rgba(33,96,146,.07),transparent 28%),linear-gradient(180deg,rgba(0,5,18,.04),rgba(0,6,18,.12) 52%,rgba(0,5,16,.20))!important}


/* V78 — surgical Device Mode control repair + approved static futuristic treatment. */
.nova-v77-device-toggle{
  position:relative!important;
  isolation:isolate!important;
  gap:8px!important;
  padding:7px 13px!important;
  border:1px solid transparent!important;
  border-radius:999px!important;
  background:
    linear-gradient(145deg,rgba(3,17,39,.92),rgba(5,23,48,.88)) padding-box,
    linear-gradient(100deg,#20b8ff,#5c6cff,#9b54ff,#f1b94d) border-box!important;
  color:#eaf8ff!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:14px!important;
  font-weight:600!important;
  letter-spacing:.015em!important;
  line-height:1.1!important;
  box-shadow:0 0 0 1px rgba(45,152,255,.08),0 0 15px rgba(52,123,255,.13),inset 0 1px 0 rgba(255,255,255,.06)!important;
  text-shadow:0 0 10px rgba(117,205,255,.14)!important;
  transition:none!important;
}
.nova-v77-device-toggle:hover,.nova-v77-device-toggle:focus-visible{
  background:
    linear-gradient(145deg,rgba(4,22,48,.96),rgba(6,27,55,.92)) padding-box,
    linear-gradient(100deg,#20b8ff,#5c6cff,#9b54ff,#f1b94d) border-box!important;
  box-shadow:0 0 0 1px rgba(45,152,255,.10),0 0 18px rgba(70,130,255,.18),inset 0 1px 0 rgba(255,255,255,.08)!important;
  transform:none!important;
}
.nova-v77-device-toggle i{
  width:9px!important;height:9px!important;flex:0 0 9px!important;
  background:#71899c!important;
  box-shadow:0 0 0 4px rgba(113,137,156,.12)!important;
}
.nova-v77-device-toggle[data-active="true"]{
  background:
    linear-gradient(145deg,rgba(3,25,39,.94),rgba(4,35,45,.90)) padding-box,
    linear-gradient(100deg,#35e8c2,#20b8ff,#6e6cff,#f1c65a) border-box!important;
  color:#edfffb!important;
}
.nova-v77-device-toggle[data-active="true"] i{
  background:#5ff0b5!important;
  box-shadow:0 0 0 4px rgba(95,240,181,.13),0 0 10px rgba(95,240,181,.48)!important;
}
/* Device layer sits at z-index 50000; activation consent must render above it. */
.nova-v77-consent{z-index:60000!important;}

/* V79 — reliable Device Mode activation foundation. Branch from locked V78. */
.nova-v79-device-toggle{pointer-events:auto!important;touch-action:manipulation!important;z-index:4!important;font-size:13px!important;padding:7px 12px!important;min-height:34px!important}
.nova-v79-consent{display:none!important;z-index:2147483646!important;pointer-events:auto!important}
.nova-v79-consent.is-open{display:grid!important}
.nova-v79-consent .nova-v77-consent-card{z-index:2147483647!important;pointer-events:auto!important}
.nova-v79-consent-close{position:absolute;top:14px;right:14px;width:34px;height:34px;border-radius:50%;border:1px solid rgba(100,188,244,.48);background:rgba(4,23,49,.68);color:#eaf7ff;font-size:22px;line-height:1;cursor:pointer}

/* V80 — direct single-owner Device Mode toggle. Branch from locked V79. */
.nova-v80-device-toggle{pointer-events:auto!important;position:relative!important;z-index:20!important;cursor:pointer!important;user-select:none!important;-webkit-user-select:none!important}
