:root.tlc-lock { overflow: hidden; }
.tlc-root, .tlc-root * { box-sizing: border-box; }
.tlc-root[hidden] { display: none !important; }
.tlc-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.42); z-index: 999997; backdrop-filter: blur(2px); }
.tlc-banner { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; z-index: 999998; background: #fff; color: #161616; border-radius: 18px; padding: 26px; box-shadow: 0 24px 70px rgba(0,0,0,.25); font-family: inherit; }
.tlc-banner h2 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 30px); line-height: 1.15; }
.tlc-banner p { margin: 0; line-height: 1.55; color: #555; }
.tlc-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.tlc-links a { color: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.tlc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tlc-btn, .tlc-open-preferences, .tlc-floating-button { appearance: none; border: 0; font: inherit; cursor: pointer; }
.tlc-btn { min-height: 46px; padding: 11px 18px; border-radius: 999px; font-weight: 700; transition: transform .15s ease, opacity .15s ease; }
.tlc-btn:hover { transform: translateY(-1px); }
.tlc-btn-primary { background: var(--tlc-brand, #111); color: var(--tlc-brand-text, #fff); }
.tlc-btn-secondary { background: #f0f0f0; color: #111; }
.tlc-btn-link { background: transparent; color: #111; text-decoration: underline; text-underline-offset: 3px; }
.tlc-pref-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.tlc-pref-header h2 { margin: 0; }
.tlc-back { width: 38px; height: 38px; border: 1px solid #ddd; border-radius: 50%; background: #fff; cursor: pointer; font-size: 20px; }
.tlc-category { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-top: 1px solid #e9e9e9; margin: 0; cursor: pointer; }
.tlc-category strong { display: block; margin-bottom: 4px; }
.tlc-category p { font-size: 14px; }
.tlc-category input { position: absolute; opacity: 0; pointer-events: none; }
.tlc-switch { width: 48px; height: 28px; background: #d4d4d4; border-radius: 999px; position: relative; transition: .2s ease; }
.tlc-switch:after { content: ''; position: absolute; width: 22px; height: 22px; top: 3px; left: 3px; background: #fff; border-radius: 50%; box-shadow: 0 1px 5px rgba(0,0,0,.2); transition: .2s ease; }
.tlc-category input:checked + .tlc-switch { background: var(--tlc-brand, #111); }
.tlc-category input:checked + .tlc-switch:after { transform: translateX(20px); }
.tlc-category input:focus-visible + .tlc-switch { outline: 3px solid rgba(0,0,0,.25); outline-offset: 2px; }
.tlc-always { font-size: 13px; font-weight: 700; white-space: nowrap; }
.tlc-floating-button { position: fixed; left: 14px; bottom: 14px; z-index: 999996; padding: 9px 12px; border-radius: 999px; background: #111; color: #fff; font-size: 12px; box-shadow: 0 5px 20px rgba(0,0,0,.2); }
.tlc-open-preferences { padding: 0; background: transparent; text-decoration: underline; }
@media (max-width: 640px) {
  .tlc-banner { bottom: 0; width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  .tlc-actions { display: grid; grid-template-columns: 1fr; }
  .tlc-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tlc-btn, .tlc-switch, .tlc-switch:after { transition: none; }
}
