/* Standalone so these controls also work when the phone roll replaces site.css. */
.tw-privacy-panel, .tw-privacy-trigger, .tw-privacy-page {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #e9e2d0;
}
.tw-privacy-panel, .tw-privacy-panel *, .tw-privacy-trigger { box-sizing: border-box; }
.tw-privacy-panel[hidden] { display: none !important; }
.tw-privacy-panel {
  position: fixed; z-index: 60; left: max(16px, env(safe-area-inset-left));
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  width: min(390px, calc(100vw - 32px)); max-height: min(420px, 65svh);
  overflow: auto; overscroll-behavior: contain;
  padding: 20px; border: 1px solid #456065; border-radius: 14px;
  background: #0b1518; box-shadow: 0 12px 40px rgba(0,0,0,.45);
  font-size: 13px; line-height: 1.5; text-align: left;
}
.tw-privacy-panel h2 { margin: 0 32px 10px 0; font: 600 16px/1.3 system-ui, sans-serif; letter-spacing: 0; text-transform: none; }
.tw-privacy-panel p { margin: 0 0 12px; color: #d5dfdd; }
.tw-privacy-panel .tw-privacy-status { color: #aac7c5; font-size: 12px; }
.tw-privacy-close {
  position: absolute; top: 7px; right: 7px; width: 36px; height: 36px;
  padding: 0; border: 0; border-radius: 7px; background: transparent; color: #e9e2d0;
  font: 400 26px/1 system-ui, sans-serif; cursor: pointer;
}
.tw-privacy-actions { display: flex; gap: 10px; margin: 4px 0 12px; }
.tw-privacy-actions button {
  flex: 1; min-height: 42px; padding: 9px 14px; border: 1px solid #7eaaa6; border-radius: 7px;
  background: #142a2d; color: #e9e2d0; font: 600 13px/1.3 system-ui, sans-serif; cursor: pointer;
}
.tw-privacy-actions button:hover, .tw-privacy-close:hover { background: #203b3e; }
.tw-privacy-actions button:disabled { opacity: .5; cursor: not-allowed; }
.tw-privacy-details { color: #c8e8e5; text-decoration: underline; text-underline-offset: 3px; }
.tw-privacy-trigger {
  position: fixed; z-index: 40; left: max(12px, env(safe-area-inset-left));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px)); min-height: 32px;
  padding: 6px 10px; border: 1px solid #496366; border-radius: 7px;
  background: rgba(5,9,10,.94); font-size: 11px; line-height: 1.3; cursor: pointer;
}
.tw-privacy-panel :focus-visible, .tw-privacy-trigger:focus-visible, .tw-privacy-page :focus-visible {
  outline: 2px solid #5fc9c2; outline-offset: 3px;
}
.tw-privacy-panel h2:focus { outline: none; }
/* The roll's lower-left corner carries its scroll cue; keep privacy opposite the brand. */
.tw-r .tw-privacy-trigger {
  left: auto; right: max(12px, env(safe-area-inset-right));
  top: calc(12px + env(safe-area-inset-top, 0px)); bottom: auto;
}
.tw-r .tw-privacy-panel {
  left: auto; right: max(16px, env(safe-area-inset-right));
  top: calc(56px + env(safe-area-inset-top, 0px)); bottom: auto;
}
.tw-m .tw-privacy-trigger { top: calc(82px + env(safe-area-inset-top, 0px)); bottom: auto; }
.tw-m .tw-privacy-panel { top: calc(122px + env(safe-area-inset-top, 0px)); bottom: auto; }
@media (max-width: 560px) {
  .tw-privacy-panel { padding: 16px; font-size: 12px; }
  .tw-privacy-panel h2 { font-size: 15px; }
}
.tw-privacy-page { margin: 0; background: #05090a; font-size: 16px; line-height: 1.7; }
.tw-privacy-page * { box-sizing: border-box; }
.tw-privacy-page header, .tw-privacy-page main, .tw-privacy-page footer { max-width: 780px; margin: auto; padding: 28px 24px; }
.tw-privacy-page header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-bottom: 1px solid #284044; }
.tw-privacy-page a { color: #a9e3de; text-underline-offset: 3px; }
.tw-privacy-page .privacy-brand { color: #e9e2d0; text-decoration: none; font: 600 15px/1.7 Georgia, serif; letter-spacing: .1em; }
.tw-privacy-page .privacy-brand span { color: #f0a75a; }
.tw-privacy-page h1 { font: 400 clamp(30px, 6vw, 44px)/1.15 Georgia, serif; margin: 8px 0 24px; }
.tw-privacy-page h2 { font-size: 20px; line-height: 1.3; margin: 32px 0 10px; }
.tw-privacy-page p { margin: 0 0 16px; color: #c1cdcb; }
.tw-privacy-page button[data-privacy-settings] { min-height: 44px; padding: 10px 16px; border: 1px solid #7eaaa6; border-radius: 7px; background: #142a2d; color: #e9e2d0; font: inherit; cursor: pointer; }
.tw-privacy-page footer { border-top: 1px solid #284044; font-size: 14px; }
