/* Screen-only personal preferences. Also loaded inside the React shadow root. */
@media screen {
  [data-pz-size="large"] {--pz-readable-size:16px;font-size:var(--pz-readable-size)!important}
  [data-pz-size="extra"] {--pz-readable-size:18px;font-size:var(--pz-readable-size)!important}
  [data-pz-size]:not([data-pz-size="standard"]) :where(*) {font-size:inherit!important;line-height:1.5}
  [data-pz-size]:not([data-pz-size="standard"]) h1 {font-size:calc(var(--pz-readable-size)*1.75)!important;line-height:1.3}
  [data-pz-size]:not([data-pz-size="standard"]) h2 {font-size:calc(var(--pz-readable-size)*1.3)!important;line-height:1.35}
  [data-pz-size]:not([data-pz-size="standard"]) h3 {font-size:calc(var(--pz-readable-size)*1.1)!important}
  [data-pz-size]:not([data-pz-size="standard"]) :is(small,time,.muted,.chat-unread) {font-size:calc(var(--pz-readable-size)*.9)!important}
  [data-pz-size]:not([data-pz-size="standard"]) :is(button,.ant-btn,.primary-link,.secondary-link) {height:auto;min-height:44px;white-space:normal}
  [data-pz-size]:not([data-pz-size="standard"]) :is(.ant-form-item-label>label,.editor-tabs button) {height:auto;white-space:normal}
  [data-pz-size]:not([data-pz-size="standard"]) .chat-heading h2 {font-size:var(--pz-readable-size)!important}
  [data-pz-size]:not([data-pz-size="standard"]) .chat-unread {min-width:28px;height:28px;line-height:1}
  html[data-ui="pz2"][data-pz-size]:not([data-pz-size="standard"]) .pz2-sidebar .nav-btn {font-size:var(--pz-readable-size)!important}
  [data-pz-bold="yes"], [data-pz-bold="yes"] :where(*) {font-weight:600!important}
  [data-pz-bold="yes"] :is(strong,b,h1,h2,h3,h4,th) {font-weight:800!important}
  html[data-ui="pz2"][data-pz-bold="yes"] .pz2-sidebar .nav-btn {font-weight:600!important}
  html[data-ui="pz2"][data-pz-contrast="high"] {
    --theme-text:#152c3e;--theme-text-muted:#405366;--theme-text-secondary:#405366;--theme-border:#6c8195;
    --theme-border-strong:#455e74;--theme-input-bg:#fff;
  }
  html[data-ui="pz2"][data-theme="dark"][data-pz-contrast="high"] {
    --theme-text:#f6faff;--theme-text-muted:#d1deed;--theme-text-secondary:#d1deed;--theme-border:#91a9c1;
    --theme-border-strong:#c0d3e7;--theme-input-bg:#142432;
  }
  [data-pz-contrast="high"] :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.ant-input-affix-wrapper,.ant-select-selector,.ant-picker) {border-width:2px}
  [data-pz-contrast="high"] :is(input,textarea)::placeholder {color:var(--theme-text-muted);opacity:1}
  [data-pz-contrast="high"] :is(input,select,textarea,button,a):focus-visible {outline:3px solid var(--theme-primary);outline-offset:2px}
  .readability-preview[aria-label] {font-size:var(--readability-preview-size)!important;font-weight:var(--readability-preview-weight)!important;border:2px solid var(--readability-preview-border);padding:18px;border-radius:10px;background:var(--theme-surface);color:var(--theme-text)}
  .readability-preview[aria-label] :where(*) {font-size:inherit!important;font-weight:inherit!important;line-height:1.5}
  .readability-preview[aria-label] p {margin:0 0 10px}
  .readability-preview[aria-label] input {display:block;box-sizing:border-box;width:100%;border:2px solid var(--readability-preview-border);border-radius:8px;padding:10px;background:var(--theme-input-bg);color:var(--theme-text)}
  .readability-controls .ant-radio-group {display:flex;flex-wrap:wrap;gap:10px}
  .readability-options {border:0;padding:0;margin:20px 0}
  .readability-options legend {margin-bottom:10px;font-weight:700}
  .readability-controls .form-footer {display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
}
