/* PDFly light / dark theme. Dark is the default; light overrides the shared colour variables. */
:root{--hair-strong:rgba(255,255,255,.25);--ink-mute:#6A6E75;--line-2:#33363C;color-scheme:dark}
html[data-theme="light"]{
  --shell:#F4F2EC;--panel:#FFFFFF;--panel-2:#EDEAE2;--line-2:#D9D5CA;
  --hair:rgba(0,0,0,.11);--hair-strong:rgba(0,0,0,.24);
  --ink:#22252B;--ink-dim:#5A5E66;--ink-mute:#868A92;
  --amber:#B8700B;--amber-dim:#D9B572;--danger:#B3382C;--good:#2E8B4A;
  color-scheme:light}
html[data-theme="light"] body{background:var(--shell);color:var(--ink)}
html[data-theme="light"] ::selection{background:rgba(184,112,11,.25)}
html[data-theme="light"] input,html[data-theme="light"] textarea,html[data-theme="light"] select{color-scheme:light}
html[data-theme="light"] #app,html[data-theme="light"] .tool-card,html[data-theme="light"] .dd-panel,html[data-theme="light"] .nav-dropdown-panel{box-shadow:0 18px 50px rgba(40,34,20,.16)}
.pyth{font-family:var(--sans,system-ui,Arial,sans-serif);display:inline-flex;align-items:center;justify-content:center;width:34px;height:28px;padding:0;line-height:1;cursor:pointer}
.pyth svg{width:16px;height:16px;display:block}
.pyth-float{position:fixed;inset-inline-start:14px;bottom:14px;z-index:2147482400;width:38px;height:38px;border-radius:50%;background:var(--panel);border:1px solid var(--hair-strong);color:var(--ink)}
@media print{.pyth-float{display:none!important}}

/* narrow screens: let the top navigation wrap instead of overflowing */
@media (max-width:720px){
  .mkt-header-inner,.mkt-header-i{flex-wrap:wrap;gap:8px 12px;padding-left:16px!important;padding-right:16px!important;}
  .mkt-nav{flex-wrap:wrap;gap:6px 14px!important;justify-content:flex-end;max-width:100%;}
}

/* light-mode fixes for pale status / diff colours that were tuned for the dark theme */
html[data-theme="light"] .diff-text .added{color:#14602a}
html[data-theme="light"] .diff-text .removed{color:#8f2a20}
html[data-theme="light"] .fb-status.err,html[data-theme="light"] .err,html[data-theme="light"] .ferr,html[data-theme="light"] .imp-msg.err,html[data-theme="light"] .wf-log .bad{color:#b3382c}
html[data-theme="light"] .wf-log .ok{color:#1f7a3a}
html[data-theme="light"] .fc-warn{color:#9a5c06}
html[data-theme="light"] .encrypted-badge.locked{color:#a3382c}
html[data-theme="light"] .float-toolbar .ft-btn,html[data-theme="light"] .float-toolbar .ft-select,html[data-theme="light"] .float-toolbar .ft-size input{color:var(--ink)}
html[data-theme="light"] .float-toolbar .ft-btn:disabled,html[data-theme="light"] .float-toolbar .ft-btn[disabled]{opacity:.45}
