/* Lyst tema – legges over det mørke. Kamera og fullskjerm-visning er alltid mørke. */
html[data-tema=lys]{background:#F5F3FA;color-scheme:light}
html[data-tema=lys] body,html[data-tema=lys] body.welcome,html[data-tema=lys] body.admin,html[data-tema=lys] body.doc{
  color:#1E1638;background:radial-gradient(circle at 100% 0%,rgba(167,139,250,.28),rgba(167,139,250,0) 460px),radial-gradient(circle at 0% 100%,rgba(242,194,123,.22),rgba(242,194,123,0) 420px),#F5F3FA;background-attachment:fixed}
html[data-tema=lys] .lead,html[data-tema=lys] .card,html[data-tema=lys] .notice,html[data-tema=lys] .sheet ul,html[data-tema=lys] .doc-main p,
html[data-tema=lys] .newbox p,html[data-tema=lys] .hero p,html[data-tema=lys] .prof .bio,html[data-tema=lys] .ni-tile span{color:#3F3760}
html[data-tema=lys] .muted,html[data-tema=lys] .empty,html[data-tema=lys] .conv .pv,html[data-tema=lys] .conv .meta,html[data-tema=lys] .sec span,
html[data-tema=lys] .prof span,html[data-tema=lys] .who,html[data-tema=lys] .stamp,html[data-tema=lys] .seen,html[data-tema=lys] .side-note,
html[data-tema=lys] .item .who span,html[data-tema=lys] .typing,html[data-tema=lys] .counter,html[data-tema=lys] .prof .mutual,html[data-tema=lys] .cs-ant,
html[data-tema=lys] .gvs,html[data-tema=lys] .rec-hint,html[data-tema=lys] .ni-tile small,html[data-tema=lys] .ni-text small,html[data-tema=lys] .ni-ask .ni-note,
html[data-tema=lys] .side .logo small,html[data-tema=lys] .cicons,html[data-tema=lys] .rpsround span:last-child{color:#6E6690}
html[data-tema=lys] .conv.new .pv,html[data-tema=lys] .story{color:#3F3760}
html[data-tema=lys] .tagline{color:#7A6A55}
html[data-tema=lys] .glimt-word{background:linear-gradient(180deg,#3B1F8F 10%,#6D28D9 70%,#9F7AEA);-webkit-background-clip:text;background-clip:text;color:transparent;filter:none}

/* Flater */
html[data-tema=lys] .card,html[data-tema=lys] .conv,html[data-tema=lys] .searchbox,html[data-tema=lys] .req,html[data-tema=lys] .toggle,html[data-tema=lys] .pick,
html[data-tema=lys] .notice,html[data-tema=lys] .reasons button,html[data-tema=lys] .item,html[data-tema=lys] .tablebox,html[data-tema=lys] .menu,
html[data-tema=lys] .newbox,html[data-tema=lys] .side,html[data-tema=lys] .sysrow,html[data-tema=lys] .ni-tile,html[data-tema=lys] .rpsround{
  background:#FFFFFF;border-color:rgba(109,40,217,.14);box-shadow:0 4px 16px rgba(60,40,120,.07);color:#1E1638;backdrop-filter:none;-webkit-backdrop-filter:none}
html[data-tema=lys] .conv{border-color:rgba(109,40,217,.08)}
html[data-tema=lys] .conv.new{border-color:rgba(183,121,31,.45);background:#FFFDF7}
html[data-tema=lys] .toggle span:last-child{color:#6E6690}
html[data-tema=lys] a.toggle,html[data-tema=lys] .innst-link{color:#1E1638;text-decoration:none}
html[data-tema=lys] .reasons button.on,html[data-tema=lys] .tab.on{background:#EDE7FB}
html[data-tema=lys] .tab{color:#1E1638}
html[data-tema=lys] .badge{background:#EDE7FB;color:#4C1D95}
html[data-tema=lys] .ni-text,html[data-tema=lys] .notif,html[data-tema=lys] .banner{background:#F1ECFC;border-color:rgba(109,40,217,.14);color:#2E2552}
html[data-tema=lys] .menu button,html[data-tema=lys] .menu a{color:#1E1638}
html[data-tema=lys] .menu button:hover,html[data-tema=lys] .menu a:hover{background:#F1ECFC}
html[data-tema=lys] .menu .warn,html[data-tema=lys] .sheet .strong,html[data-tema=lys] .error,html[data-tema=lys] .ni-hjelp,html[data-tema=lys] .sysrow small{color:#BE185D}

/* Skjema */
html[data-tema=lys] input,html[data-tema=lys] select,html[data-tema=lys] textarea,html[data-tema=lys] .composer textarea,html[data-tema=lys] textarea.note,
html[data-tema=lys] .biofield,html[data-tema=lys] #innsyn textarea{background:#FFFFFF;border-color:rgba(109,40,217,.25);color:#1E1638}
html[data-tema=lys] .searchbox input{background:transparent}
html[data-tema=lys] input::placeholder,html[data-tema=lys] textarea::placeholder{color:#9A92B8}

/* Knapper */
html[data-tema=lys] .btn.ghost{background:#FFFFFF;border-color:rgba(109,40,217,.35);color:#2E1A66}
html[data-tema=lys] .btn.danger{background:#FFF1F5;border-color:rgba(190,24,93,.4);color:#BE185D}
html[data-tema=lys] .linkbtn,html[data-tema=lys] .pv-mer,html[data-tema=lys] .doc-back,html[data-tema=lys] .link{color:#6D28D9}
html[data-tema=lys] .doc-main a{color:#BE185D}
html[data-tema=lys] .iconbtn{background:#FFFFFF;border-color:rgba(109,40,217,.18);color:#B7791F}
html[data-tema=lys] .goldbtn{background:#FFFFFF;color:#1E1638;box-shadow:0 0 14px rgba(242,194,123,.35)}
html[data-tema=lys] .friendcount{background:#FFFFFF;border-color:rgba(109,40,217,.15);color:#3F3760}
html[data-tema=lys] .friendcount b,html[data-tema=lys] .plusbtn,html[data-tema=lys] .plustag,html[data-tema=lys] .storylab,html[data-tema=lys] .bday .bgo,html[data-tema=lys] .gturn.turn{color:#9A5B0A}

/* Overlegg og ark */
html[data-tema=lys] .overlay,html[data-tema=lys] .modal{background:rgba(30,22,56,.35)}
html[data-tema=lys] .sheet{background:#FFFFFF;border-top-color:rgba(109,40,217,.15);color:#1E1638}
html[data-tema=lys] .toast{background:#2E2552;color:#fff}

/* Meny nederst og topp */
html[data-tema=lys] .nav{background:rgba(255,255,255,.88);border-color:rgba(109,40,217,.15);box-shadow:0 10px 28px rgba(60,40,120,.15)}
html[data-tema=lys] .nav a,html[data-tema=lys] .nav button{color:#6E6690}
html[data-tema=lys] .nav a.on{color:#6D28D9}

/* Chat */
html[data-tema=lys] .chathead,html[data-tema=lys] .composer,html[data-tema=lys] .sendbar,html[data-tema=lys] .replybar,html[data-tema=lys] .chatsok{
  background:rgba(255,255,255,.9);border-color:rgba(109,40,217,.12)}
html[data-tema=lys] .bub.them{background:#FFFFFF;border-color:rgba(109,40,217,.12);color:#1E1638;box-shadow:0 2px 8px rgba(60,40,120,.06)}
html[data-tema=lys] .bub.del{background:#F5F3FA;color:#6E6690}
html[data-tema=lys] .quote{background:rgba(109,40,217,.07);color:#3F3760}
html[data-tema=lys] .bub.me .quote{background:rgba(255,255,255,.18);color:#fff}
html[data-tema=lys] .quote b,html[data-tema=lys] .replybar b{color:#6D28D9}
html[data-tema=lys] .bub.me .quote b{color:#fff}
html[data-tema=lys] .replybar span{color:#3F3760}
html[data-tema=lys] .replybar button,html[data-tema=lys] .chatsok button{background:#F1ECFC;border-color:rgba(109,40,217,.15);color:#2E1A66}
html[data-tema=lys] .react{background:#FFFFFF;border-color:rgba(109,40,217,.18);color:#1E1638}
html[data-tema=lys] .react.mine{background:#FFF6E6;border-color:#D69E2E}
html[data-tema=lys] .typing .dots{background:#EDE7FB}
html[data-tema=lys] .snapbox.done{background:#FFFFFF;color:#3F3760}
html[data-tema=lys] .recbar{background:#FFFFFF;color:#1E1638}
html[data-tema=lys] .popt{border-color:rgba(109,40,217,.2);color:#1E1638}
html[data-tema=lys] .popt i{background:rgba(109,40,217,.12)}
html[data-tema=lys] .bub.them .vplay{background:rgba(109,40,217,.12);color:#2E1A66}
html[data-tema=lys] .bub.them .vbar{background:rgba(109,40,217,.15)}
html[data-tema=lys] .bub.them .vbar i{background:#6D28D9}
html[data-tema=lys] #msgs mark,html[data-tema=lys] #sok-list mark{background:rgba(242,194,123,.6);color:#1E1638}
html[data-tema=lys] .bday{color:#1E1638}

/* Profil og historier */
html[data-tema=lys] .prof .avpick .av,html[data-tema=lys] .story .ring .av{border-color:#F5F3FA}
html[data-tema=lys] .story .ring.seen{background:#D9D2EE}
html[data-tema=lys] .story .ring.add{background:#FFFFFF}
html[data-tema=lys] .plusstar{background:#FFFFFF}

/* Emoji- og spillknapper i ark */
html[data-tema=lys] .emojirow button,html[data-tema=lys] .emojigrid button,html[data-tema=lys] .tcell,html[data-tema=lys] .rpsbtn,html[data-tema=lys] .hkeys button{
  background:#F5F3FA;border-color:rgba(109,40,217,.15);color:#1E1638}
html[data-tema=lys] .gscore,html[data-tema=lys] .hang{color:#1E1638}
html[data-tema=lys] .gbtn{background:rgba(109,40,217,.12);color:#2E1A66}
html[data-tema=lys] .bub.me .gbtn{background:rgba(255,255,255,.22);color:#fff}
html[data-tema=lys] .gmini i{background:rgba(109,40,217,.12)}
html[data-tema=lys] th{background:#F1ECFC;color:#3F3760}
html[data-tema=lys] .iconbtn.back{background:none;border:0;box-shadow:none;color:#1E1638}
html[data-tema=lys] .doc-back{color:#1E1638}

/* Kameraet er alltid mørkt */
html[data-tema=lys] body:has(#kamera:not([hidden])) .nav,html[data-tema=lys] body:has(#preview:not([hidden])) .nav{background:rgba(12,10,24,.72);border-color:rgba(167,139,250,.22);box-shadow:0 12px 30px rgba(0,0,0,.5)}
html[data-tema=lys] body:has(#kamera:not([hidden])) .nav a,html[data-tema=lys] body:has(#kamera:not([hidden])) .nav button,html[data-tema=lys] body:has(#preview:not([hidden])) .nav a,html[data-tema=lys] body:has(#preview:not([hidden])) .nav button{color:#B3A9D6}
html[data-tema=lys] #k-tekst-felt::placeholder{color:rgba(255,255,255,.65)}
html[data-tema=lys] #k-tekst-felt{background:transparent;color:#fff}
/* «Send til» følger temaet */
html[data-tema=lys] #sendtil{background:#F5F3FA;color:#1E1638}
html[data-tema=lys] #sendtil .sec h2,html[data-tema=lys] #sendtil .sec span{color:#6E6690}
/* Admin i lys modus */
html[data-tema=lys] .item .who b,html[data-tema=lys] .main h1,html[data-tema=lys] .main h2{color:#1E1638}
html[data-tema=lys] .btn.plusbtn{color:#fff}
html[data-tema=lys] .ok{color:#047857}html[data-tema=lys] .bad{color:#BE185D}html[data-tema=lys] .wait{color:#6D28D9}
html[data-tema=lys] .side{background:rgba(255,255,255,.92);border-color:rgba(109,40,217,.14)}
html[data-tema=lys] .item .who span.ok{color:#047857}html[data-tema=lys] .item .who span.bad{color:#BE185D}html[data-tema=lys] .item .who span.wait{color:#6D28D9}
html[data-tema=lys] .biobtn{color:#3F3760}html[data-tema=lys] .biobtn.tom{color:#6D28D9}
