
html[data-norya-theme="white"]{color-scheme:light;--bg:#f6f8f5;--bg2:#ffffff;--panel:#ffffff;--panel2:#f1f5f1;--panel3:#e9efea;--text:#18231d;--muted:#6d7b72;--line:rgba(25,53,38,.12);--green:#0f6b46;--green2:#16885b;--green3:#dfeee5;--gold:#c89832;--gold2:#9b701b;--gold3:#f1dfb8;--danger:#c94e55;--shadow:0 24px 70px rgba(25,53,38,.12)}
html[data-norya-theme="green"]{color-scheme:dark;--bg:#050b08;--bg2:#08110d;--panel:#0b1510;--panel2:#101b15;--panel3:#14231b;--text:#f6f7f2;--muted:#92a095;--line:rgba(255,255,255,.085);--green:#0f6b46;--green2:#16885b;--green3:#0a3f2b;--gold:#d0a13c;--gold2:#f0c86e;--gold3:#7e5d1a;--danger:#e46e72;--shadow:0 24px 70px rgba(0,0,0,.38)}
html[data-norya-theme="dark"]{color-scheme:dark;--bg:#0b0d0c;--bg2:#111412;--panel:#141816;--panel2:#191e1b;--panel3:#202622;--text:#f5f6f4;--muted:#9aa39d;--line:rgba(255,255,255,.09);--green:#267a57;--green2:#31936a;--green3:#172a21;--gold:#d0a13c;--gold2:#e6bf69;--gold3:#6f5722;--danger:#e06d73;--shadow:0 24px 70px rgba(0,0,0,.42)}

.norya-theme-picker{display:flex;align-items:center;gap:7px;margin:9px 0 2px;padding:7px 8px;border:1px solid var(--line);border-radius:10px;background:color-mix(in srgb,var(--panel2) 80%,transparent)}
.norya-theme-picker>span{font-size:9px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
.norya-theme-picker select{margin-left:auto;min-width:105px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);padding:6px 8px;font-size:10px;outline:none}
.admin-theme-picker{margin:12px 0 0}

html[data-norya-theme="white"] body,
html[data-norya-theme="white"] .chat-body{background:radial-gradient(circle at 85% -5%,rgba(200,152,50,.08),transparent 28%),radial-gradient(circle at 20% 100%,rgba(15,107,70,.06),transparent 38%),#f6f8f5!important;color:#18231d!important}
html[data-norya-theme="white"] .sidebar{background:linear-gradient(180deg,#ffffff,#f7faf7)!important;border-right-color:rgba(25,53,38,.1)!important;box-shadow:10px 0 36px rgba(25,53,38,.06)!important}
html[data-norya-theme="white"] .topbar{background:rgba(255,255,255,.88)!important;border-bottom-color:rgba(25,53,38,.1)!important}
html[data-norya-theme="white"] .conversation-search,
html[data-norya-theme="white"] .composer-shell,
html[data-norya-theme="white"] .account-card,
html[data-norya-theme="white"] .quick,
html[data-norya-theme="white"] .memory-dialog,
html[data-norya-theme="white"] .memory-card textarea{background:#fff!important;border-color:rgba(25,53,38,.11)!important;color:#18231d!important}
html[data-norya-theme="white"] .conversation-row:hover{background:#f0f5f1!important}
html[data-norya-theme="white"] .conversation-row.active{background:linear-gradient(90deg,rgba(15,107,70,.09),rgba(200,152,50,.06))!important;border-color:rgba(15,107,70,.12)!important}
html[data-norya-theme="white"] .conversation,
html[data-norya-theme="white"] .user-email,
html[data-norya-theme="white"] .quick strong,
html[data-norya-theme="white"] .empty-state h1,
html[data-norya-theme="white"] .topbar strong,
html[data-norya-theme="white"] .markdown-body strong{color:#18231d!important}
html[data-norya-theme="white"] .msg.assistant .bubble{color:#26332b!important}
html[data-norya-theme="white"] .msg.user .bubble{background:#eaf2ec!important;border-color:rgba(15,107,70,.13)!important;color:#17251d!important}
html[data-norya-theme="white"] .composer{background:linear-gradient(180deg,transparent,#f6f8f5 26%,#f6f8f5 100%)!important}
html[data-norya-theme="white"] #messageInput,
html[data-norya-theme="white"] .conversation-search input,
html[data-norya-theme="white"] .mode-wrap select,
html[data-norya-theme="white"] input,
html[data-norya-theme="white"] textarea,
html[data-norya-theme="white"] select{color:#18231d}
html[data-norya-theme="white"] .mode-wrap select{background:#fff!important;border-color:rgba(25,53,38,.12)!important}
html[data-norya-theme="white"] .web-switch span{background:#edf5f0!important;color:#276043!important;border-color:rgba(15,107,70,.16)!important}
html[data-norya-theme="white"] .link-btn{color:#765616!important}
html[data-norya-theme="white"] .side-section-title,
html[data-norya-theme="white"] .model,
html[data-norya-theme="white"] .composer-disclaimer,
html[data-norya-theme="white"] .empty-state>p,
html[data-norya-theme="white"] .quick span{color:#6d7b72!important}
html[data-norya-theme="white"] .brand-bhs{color:#15251c!important}
html[data-norya-theme="white"] .brand small{color:#7a887f!important}
html[data-norya-theme="white"] .secondary{background:#fff!important;color:#243129!important;border-color:rgba(200,152,50,.28)!important}
html[data-norya-theme="white"] .knowledge-panel,
html[data-norya-theme="white"] .sidebar-bottom{border-color:rgba(25,53,38,.1)!important}
html[data-norya-theme="white"] .conversation-menu{background:#fff!important;border-color:rgba(25,53,38,.12)!important;box-shadow:0 18px 45px rgba(25,53,38,.13)!important}
html[data-norya-theme="white"] .conversation-menu button{color:#26332b!important}
html[data-norya-theme="white"] .conversation-menu button:hover{background:#f0f5f1!important}
html[data-norya-theme="white"] .code-block{background:#121714!important}
html[data-norya-theme="white"] .code-head{background:#1a211d!important}
html[data-norya-theme="white"] .inline-code{background:#edf1ee!important;color:#62470f!important;border-color:rgba(25,53,38,.1)!important}

html[data-norya-theme="dark"] .chat-body{background:radial-gradient(circle at 76% -8%,rgba(208,161,60,.055),transparent 28rem),#0b0d0c!important}
html[data-norya-theme="dark"] .sidebar{background:linear-gradient(180deg,#101311,#0c0f0d)!important}
html[data-norya-theme="dark"] .topbar{background:rgba(12,15,13,.9)!important}
html[data-norya-theme="dark"] .composer{background:linear-gradient(180deg,transparent,#0b0d0c 28%,#0b0d0c 100%)!important}
html[data-norya-theme="dark"] .composer-shell{background:#151917!important}
html[data-norya-theme="dark"] .msg.user .bubble{background:#1b211e!important}
html[data-norya-theme="dark"] .quick{background:#131715!important}
html[data-norya-theme="dark"] .conversation-row:hover{background:#181d1a!important}

html[data-norya-theme="white"] .v45-integrations-drawer{background:#fff!important;color:#18231d!important;border-left-color:rgba(25,53,38,.12)!important;box-shadow:-24px 0 70px rgba(25,53,38,.16)!important}
html[data-norya-theme="white"] .v45-integrations{background:#f8faf8!important;border-color:rgba(200,152,50,.24)!important}
html[data-norya-theme="white"] .v45-field input{background:#fff!important;border-color:rgba(25,53,38,.14)!important;color:#18231d!important}
html[data-norya-theme="white"] .v45-toggle{background:#eef4ef!important}
html[data-norya-theme="white"] .v45-actions button{color:#243129!important}
html[data-norya-theme="dark"] .v45-integrations-drawer{background:linear-gradient(180deg,#141816,#0d100e)!important}

html[data-norya-theme="white"] .admin-body{background:#f4f7f4!important;color:#18231d!important}
html[data-norya-theme="white"] .admin-sidebar{background:linear-gradient(180deg,#fff,#f7faf7)!important;border-right-color:rgba(25,53,38,.11)!important}
html[data-norya-theme="white"] .admin-main{color:#18231d!important}
html[data-norya-theme="white"] .admin-section,
html[data-norya-theme="white"] .stat-card,
html[data-norya-theme="white"] .admin-meta-card,
html[data-norya-theme="white"] .storage-card,
html[data-norya-theme="white"] .admin-health{background:#fff!important;border-color:rgba(25,53,38,.11)!important;color:#18231d!important;box-shadow:0 10px 34px rgba(25,53,38,.05)!important}
html[data-norya-theme="white"] .admin-nav a{color:#506158!important}
html[data-norya-theme="white"] .admin-nav a:hover{background:#edf3ee!important;color:#18231d!important}
html[data-norya-theme="white"] .admin-field input,
html[data-norya-theme="white"] .admin-field textarea,
html[data-norya-theme="white"] .create-user-card input,
html[data-norya-theme="white"] .inline-reset input{background:#fff!important;color:#18231d!important;border-color:rgba(25,53,38,.13)!important}
html[data-norya-theme="white"] .admin-meta-card strong,
html[data-norya-theme="white"] .storage-head strong,
html[data-norya-theme="white"] .stat-card strong,
html[data-norya-theme="white"] .admin-topbar h1,
html[data-norya-theme="white"] .section-title-row h2{color:#18231d!important}
html[data-norya-theme="white"] .admin-table th{background:#eef3ef!important;color:#5e6d63!important}
html[data-norya-theme="white"] .admin-table td{color:#26332b!important}

html[data-norya-theme="white"] .auth-body{background:radial-gradient(circle at 15% 10%,rgba(15,107,70,.07),transparent 33%),radial-gradient(circle at 90% 0,rgba(208,161,60,.08),transparent 28%),#f5f8f5!important}
html[data-norya-theme="white"] .auth-card{background:#fff!important;border-color:rgba(25,53,38,.11)!important;color:#18231d!important;box-shadow:0 24px 70px rgba(25,53,38,.11)!important}
html[data-norya-theme="white"] .auth-card input{background:#fff!important;color:#18231d!important;border-color:rgba(25,53,38,.14)!important}
html[data-norya-theme="white"] .auth-card h1{color:#18231d!important}

@media(max-width:860px){.norya-theme-picker{margin-top:8px}.v45-integrations-drawer{width:min(430px,100vw)!important}}


/* NORYA v4.5.1 — White refinado: superfícies sólidas e menor luminância */
html[data-norya-theme="white"]{
  --bg:#eef2ee;
  --bg2:#f7f9f7;
  --panel:#ffffff;
  --panel2:#f2f5f2;
  --panel3:#e8ede9;
  --text:#17231c;
  --muted:#68766d;
  --line:rgba(30,58,43,.13);
  --shadow:0 18px 46px rgba(31,58,44,.10);
}
html[data-norya-theme="white"] body,
html[data-norya-theme="white"] .chat-body,
html[data-norya-theme="white"] .chat-main{
  background:#eef2ee!important;
  color:#17231c!important;
}
html[data-norya-theme="white"] .sidebar{
  background:#f8faf8!important;
  border-right:1px solid #dce4de!important;
  box-shadow:8px 0 28px rgba(31,58,44,.055)!important;
}
html[data-norya-theme="white"] .topbar{
  background:#f9fbf9!important;
  border-bottom:1px solid #dce4de!important;
  backdrop-filter:none!important;
}
html[data-norya-theme="white"] .messages{
  background:#eef2ee!important;
}
html[data-norya-theme="white"] .msg.assistant .bubble{
  background:#ffffff!important;
  color:#243128!important;
  border:1px solid #dce4de!important;
  border-radius:16px!important;
  padding:15px 17px!important;
  box-shadow:0 7px 20px rgba(31,58,44,.065)!important;
}
html[data-norya-theme="white"] .msg.user .bubble{
  background:#e3eee7!important;
  color:#17231c!important;
  border:1px solid #ceddd3!important;
  box-shadow:none!important;
}
html[data-norya-theme="white"] .composer{
  background:linear-gradient(180deg,rgba(238,242,238,0),#eef2ee 22%,#eef2ee 100%)!important;
}
html[data-norya-theme="white"] .composer-shell{
  background:#ffffff!important;
  border:1px solid #d5ded7!important;
  box-shadow:0 14px 34px rgba(31,58,44,.09)!important;
}
html[data-norya-theme="white"] .composer-shell:focus-within{
  border-color:rgba(155,112,27,.38)!important;
  box-shadow:0 14px 34px rgba(31,58,44,.09),0 0 0 3px rgba(200,152,50,.07)!important;
}
html[data-norya-theme="white"] .account-card,
html[data-norya-theme="white"] .conversation-search,
html[data-norya-theme="white"] .quick,
html[data-norya-theme="white"] .memory-dialog,
html[data-norya-theme="white"] .memory-card,
html[data-norya-theme="white"] .memory-card textarea{
  background:#ffffff!important;
}
html[data-norya-theme="white"] .quick{
  border-color:#dce4de!important;
  box-shadow:0 5px 16px rgba(31,58,44,.04)!important;
}
html[data-norya-theme="white"] .quick:hover{
  background:#fbf8ef!important;
  border-color:rgba(200,152,50,.28)!important;
}
html[data-norya-theme="white"] .norya-theme-picker{
  background:#f1f4f1!important;
  border-color:#d7e0d9!important;
}
html[data-norya-theme="white"] .norya-theme-picker select{
  background:#ffffff!important;
  border-color:#d5ddd7!important;
}
html[data-norya-theme="white"] .v45-integrations-backdrop{
  background:rgba(28,39,32,.48)!important;
  backdrop-filter:blur(2px)!important;
}
html[data-norya-theme="white"] .v45-integrations-drawer{
  background:#f8faf8!important;
  color:#17231c!important;
  border-left:1px solid #d8e1da!important;
  box-shadow:-20px 0 55px rgba(31,58,44,.18)!important;
}
html[data-norya-theme="white"] .v45-integrations{
  background:#ffffff!important;
  border:1px solid #dce4de!important;
  box-shadow:0 7px 20px rgba(31,58,44,.05)!important;
}
html[data-norya-theme="white"] .v45-field input{
  background:#f9fbf9!important;
  border-color:#d5ddd7!important;
}
html[data-norya-theme="white"] .v45-toggle{
  background:#edf3ef!important;
  border:1px solid #dce4de!important;
}
html[data-norya-theme="white"] .v45-drawer-head{
  border-bottom-color:#dce4de!important;
}
html[data-norya-theme="white"] .v45-drawer-head button{
  background:#ffffff!important;
  border-color:#d7dfd9!important;
  color:#26332b!important;
}
html[data-norya-theme="white"] .conversation-menu{
  background:#ffffff!important;
  border-color:#d8e1da!important;
  box-shadow:0 14px 32px rgba(31,58,44,.13)!important;
}
html[data-norya-theme="white"] .markdown-body blockquote{
  background:#f3f6f3!important;
  color:#4c5c52!important;
}
html[data-norya-theme="white"] .markdown-body table{
  background:#ffffff!important;
}
html[data-norya-theme="white"] .markdown-body th,
html[data-norya-theme="white"] .markdown-body td{
  border-color:#dce4de!important;
}
html[data-norya-theme="white"] .composer-disclaimer{
  color:#76837a!important;
}
