.bst-cookie-panel { color:var(--ink,#19221c); background:var(--surface,var(--card,#fff)); border:1px solid var(--line,#aaa); border-radius:14px; padding:16px; box-shadow:0 6px 28px #0004; font:inherit; }
section.bst-cookie-panel { position:fixed; z-index:500; left:12px; bottom:calc(12px + env(safe-area-inset-bottom)); width:min(440px,calc(100% - 24px)); box-sizing:border-box; }
.bst-cookie-panel[hidden],.bst-cookie-panel [hidden] { display:none; }
dialog.bst-cookie-panel { position:fixed; inset:0; margin:auto; width:min(420px,calc(100% - 32px)); max-height:85dvh; overflow:auto; box-sizing:border-box; }
dialog.bst-cookie-panel:not([open]) { display:none; }
dialog.bst-cookie-panel::backdrop { background:#0008; }
.bst-cookie-panel h2,.bst-cookie-panel p { margin:0 0 10px; }
.bst-cookie-panel strong { display:block; margin-bottom:6px; }
.bst-cookie-panel div { display:flex; flex-wrap:wrap; gap:6px; }
.bst-cookie-panel label { display:block; padding:8px 0; }
.bst-cookie-panel input { width:auto; accent-color:var(--green); }
.bst-cookie-panel button { font:inherit; font-size:.9rem; min-height:40px; padding:5px 10px; color:inherit; background:transparent; border:1px solid currentColor; border-radius:8px; cursor:pointer; }
.site-footer-links [data-cookie-settings] { font:inherit; color:inherit; background:transparent; border:0; padding:0; cursor:pointer; text-decoration:underline; }
@media(max-width:700px){ section.bst-cookie-panel { bottom:calc(68px + env(safe-area-inset-bottom)); } }

/* The notice card (Brady, November 8): bottom right, off the side menu; on phones a slim bar above the tab bar.
   Accept and Reject look the same, so neither is easier to press. Colors follow the site's light and dark looks. */
section.bst-cookie-card { left:auto; right:16px; bottom:calc(16px + env(safe-area-inset-bottom)); width:min(340px,calc(100% - 32px)); padding:14px 16px; border-radius:12px; border-color:#d5d9de; background:#fff; color:#1b1d20; box-shadow:0 12px 40px #0006; font:14px/1.45 Inter,system-ui,sans-serif; }
html[data-theme=dark] section.bst-cookie-card { background:#141618; border-color:#2a2d31; color:#eceef1; }
.bst-cookie-card .bst-cookie-text { display:flex; align-items:flex-start; gap:10px; margin:0 0 12px; }
.bst-cookie-card .bst-cookie-text svg { flex:none; width:24px; height:24px; margin-top:1px; fill:none; stroke:#3a8bff; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.bst-cookie-card .bst-cookie-text>span { flex:1; min-width:0; }
.bst-cookie-card strong { display:inline; margin:0 6px 0 0; font-weight:700; }
.bst-cookie-card .bst-cookie-short { display:none; }
.bst-cookie-card button.bst-cookie-link { flex:none; min-height:0; padding:0; border:0; color:#3a8bff; font-weight:600; text-decoration:underline; }
.bst-cookie-card .bst-cookie-acts { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.bst-cookie-card .bst-cookie-acts button { min-height:38px; border:1px solid #2a6fd6; background:linear-gradient(180deg,#2f7bf5,#1560cb); color:#fff; font-weight:600; border-radius:8px; }
.bst-cookie-card .bst-cookie-acts button:hover { filter:brightness(1.12); }
@media(max-width:850px){
  section.bst-cookie-card { left:8px; right:8px; width:auto; bottom:calc(71px + env(safe-area-inset-bottom)); padding:10px 12px; }
  .bst-cookie-card .bst-cookie-text { align-items:center; margin-bottom:8px; }
  .bst-cookie-card .bst-cookie-long { display:none; }
  .bst-cookie-card .bst-cookie-short { display:inline; }
  .bst-cookie-card strong { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
}
