:root{
  --tc-bg:#0d1218;
  --tc-surface:#131a22;
  --tc-line:#2c3540;
  --tc-text:#f2eee7;
  --tc-muted:#98a1aa;
  --tc-accent:#d4b273;
}
.toolora-consent-backdrop{
  position:fixed;inset:0;z-index:9800;display:none;
  background:rgba(3,6,10,.54);backdrop-filter:blur(5px);
}
.toolora-consent-backdrop.open{display:block}
.toolora-consent-banner{
  position:fixed;left:16px;right:16px;bottom:16px;z-index:9810;
  display:none;max-width:980px;margin:auto;padding:18px;
  border:1px solid var(--tc-line);border-radius:20px;
  background:linear-gradient(180deg,rgba(20,27,35,.98),rgba(11,16,22,.98));
  color:var(--tc-text);box-shadow:0 24px 80px rgba(0,0,0,.42);
}
.toolora-consent-banner.open{display:block}
.toolora-consent-row{display:flex;align-items:flex-end;justify-content:space-between;gap:22px}
.toolora-consent-copy{max-width:650px}
.toolora-consent-kicker{font-size:10px;font-weight:850;letter-spacing:.15em;text-transform:uppercase;color:var(--tc-accent)}
.toolora-consent-title{margin:6px 0 7px;font-size:18px;font-weight:850;letter-spacing:-.025em}
.toolora-consent-text{margin:0;color:var(--tc-muted);font-size:12px;line-height:1.6}
.toolora-consent-text a{text-decoration:underline;text-underline-offset:2px;color:#d9d4cc}
.toolora-consent-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.toolora-consent-btn{
  min-height:42px;padding:0 14px;border-radius:12px;border:1px solid #39434e;
  background:#151c24;color:#eeeae3;font:inherit;font-size:11px;font-weight:850;cursor:pointer;
}
.toolora-consent-btn:hover{border-color:#596572}
.toolora-consent-btn.primary{background:#eee8dd;color:#11151a;border-color:#eee8dd}
.toolora-consent-btn.gold{background:linear-gradient(180deg,#dfc58f,#c7a464);color:#17130d;border-color:#e2ca97}
.toolora-consent-manage{
  position:fixed;left:12px;bottom:12px;z-index:9700;display:none;
  min-height:34px;padding:0 10px;border:1px solid rgba(255,255,255,.12);border-radius:999px;
  background:rgba(11,16,22,.88);backdrop-filter:blur(12px);color:#a7b0b8;
  font:inherit;font-size:9px;font-weight:800;cursor:pointer;
}
.toolora-consent-manage.show{display:block}
.toolora-consent-modal{
  position:fixed;left:50%;top:50%;z-index:9820;display:none;
  width:min(560px,calc(100% - 28px));max-height:min(760px,calc(100vh - 36px));overflow:auto;
  transform:translate(-50%,-50%);padding:22px;
  border:1px solid var(--tc-line);border-radius:22px;background:#0e141b;color:var(--tc-text);
  box-shadow:0 30px 100px rgba(0,0,0,.5);
}
.toolora-consent-modal.open{display:block}
.toolora-consent-modal-top{display:flex;justify-content:space-between;gap:16px;align-items:start}
.toolora-consent-modal h2{margin:5px 0 7px;font-size:24px;letter-spacing:-.035em}
.toolora-consent-close{width:38px;height:38px;border-radius:11px;border:1px solid #35404a;background:#161d25;color:#fff;cursor:pointer;font-size:17px}
.toolora-consent-list{display:grid;gap:10px;margin-top:18px}
.toolora-consent-item{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;padding:14px;border:1px solid #2b3540;border-radius:15px;background:#111820}
.toolora-consent-item b{display:block;font-size:12px;margin-bottom:4px}
.toolora-consent-item span{display:block;color:#7f8a94;font-size:10px;line-height:1.45}
.toolora-consent-toggle{width:44px;height:25px;border-radius:999px;border:1px solid #3a4550;background:#1b232c;position:relative;cursor:pointer}
.toolora-consent-toggle:before{content:"";position:absolute;top:3px;left:3px;width:17px;height:17px;border-radius:50%;background:#7b8791;transition:.18s ease}
.toolora-consent-toggle.on{background:#6e5836;border-color:#a78653}
.toolora-consent-toggle.on:before{left:22px;background:#f0d7a3}
.toolora-consent-toggle.locked{opacity:.72;cursor:not-allowed}
.toolora-consent-modal-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:18px}
html[data-toolora-theme="light"] .toolora-consent-banner,
html[data-toolora-theme="light"] .toolora-consent-modal{background:#fff;color:#17191b;border-color:#d9d4cc;box-shadow:0 24px 70px rgba(45,38,29,.16)}
html[data-toolora-theme="light"] .toolora-consent-text,
html[data-toolora-theme="light"] .toolora-consent-item span{color:#656d74}
html[data-toolora-theme="light"] .toolora-consent-text a{color:#2a2f34}
html[data-toolora-theme="light"] .toolora-consent-item{background:#faf8f4;border-color:#ddd7ce}
html[data-toolora-theme="light"] .toolora-consent-close,
html[data-toolora-theme="light"] .toolora-consent-btn{background:#f6f2eb;color:#202428;border-color:#d6cfc5}
html[data-toolora-theme="light"] .toolora-consent-btn.primary{background:#17191b;color:#fff;border-color:#17191b}
html[data-toolora-theme="light"] .toolora-consent-manage{background:rgba(255,255,255,.92);color:#515960;border-color:#d7d0c6}
@media(max-width:720px){
  .toolora-consent-banner{left:10px;right:10px;bottom:10px;padding:16px;border-radius:18px}
  .toolora-consent-row{align-items:stretch;flex-direction:column;gap:14px}
  .toolora-consent-actions{display:grid;grid-template-columns:1fr 1fr;justify-content:stretch}
  .toolora-consent-actions .primary{grid-column:1/-1}
  .toolora-consent-btn{width:100%}
  .toolora-consent-modal{padding:18px}
  .toolora-consent-modal-actions{display:grid;grid-template-columns:1fr}
}


/* Lunivo RC3.10 — keep privacy settings clear of installed-app navigation */
body:has(.tabs) .toolora-consent-manage,
body:has(.bottom) .toolora-consent-manage,
body:has(.action-dock) .toolora-consent-manage{
  bottom:calc(100px + env(safe-area-inset-bottom)) !important;
}

/* RC3.9 responsive audit */
.toolora-consent-banner{max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;bottom:max(12px,env(safe-area-inset-bottom))}
.toolora-consent-modal{max-height:calc(100dvh - 28px);overscroll-behavior:contain}
.toolora-consent-manage{bottom:max(10px,env(safe-area-inset-bottom))}
@media(max-width:420px){
  .toolora-consent-banner{left:8px;right:8px;padding:14px}
  .toolora-consent-title{font-size:17px}
  .toolora-consent-text{font-size:11px}
  .toolora-consent-actions{gap:6px}
  .toolora-consent-btn{min-height:40px;padding:0 10px;font-size:10px}
}
@media(max-height:520px) and (orientation:landscape){
  .toolora-consent-banner{left:8px;right:8px;bottom:6px;max-height:calc(100dvh - 12px);padding:12px}
  .toolora-consent-row{align-items:center;flex-direction:row;gap:12px}
  .toolora-consent-copy{max-width:58%}
  .toolora-consent-title{font-size:15px;margin:3px 0 4px}
  .toolora-consent-text{font-size:10px;line-height:1.4}
  .toolora-consent-actions{display:flex;max-width:42%}
  .toolora-consent-btn{min-height:36px;font-size:9px}
}


/* Lunivo RC3.24.14 — privacy settings are available only in the main-site footer. */
.toolora-consent-manage{display:none!important}
