/* BRODLIN MASTER SWITCH (on/off toggle). One size, one look for the whole site.
   LAW of Denis, 2026-11-13: every on/off switch on the site uses this file.
   On: green #15803d. Off: grey #c7cdd4. Thumb: white. Size 34x20, thumb 16.
   DO NOT restyle switches anywhere else. New switches: class="brodlin-switch" on a <button>
   (state: aria-pressed="true", aria-checked="true" or class "is-active"/"is-on").
   Change the look ONLY in this file. Works in RTL (logical properties). */

:root .brodlin-switch {
  position: relative;
  display: inline-block;
  flex: 0 0 34px;
  width: 34px !important;
  height: 20px !important;
  min-width: 34px !important;
  min-height: 20px !important;
  max-width: 34px !important;
  max-height: 20px !important;
  padding: 0 !important;
  margin: 0;
  border: 0 !important;
  border-radius: 10px !important;
  background: #c7cdd4 !important;
  box-shadow: none !important;
  vertical-align: middle;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color .15s ease;
}
:root .brodlin-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 23, 28, .2);
  transition: inset-inline-start .15s ease;
}
:root .brodlin-switch:is([aria-pressed="true"], [aria-checked="true"], .is-active, .is-on) { background: #15803d !important; }
:root .brodlin-switch:is([aria-pressed="true"], [aria-checked="true"], .is-active, .is-on)::after { inset-inline-start: 16px; }
:root .brodlin-switch:focus-visible { outline: 2px solid #15803d; outline-offset: 2px; }
:root .brodlin-switch:disabled { opacity: .6; cursor: default; }
:root .brodlin-switch > * { display: none !important; }

/* State caption under a switch (Denis, 13.11.2026): one look for every switch.
   Markup: <span class="brodlin-switch-state">Only in this browser</span>; add class is-on while on. */
:root .brodlin-switch-state { display: block; font-size: 12.5px; font-weight: 400; line-height: 1.35; color: #5b6470; }
:root .brodlin-switch-state.is-on { color: #15803d; }
/* Denis 14.11.2026: switch + ONE status line next to it ("Saving only in this browser" / "Saving to My files"). The title ("Save to my account") is hidden: give it class brodlin-switch-title. */
:root .brodlin-switch-title { display: none !important; }
:root .brodlin-switch-state { display: inline-block !important; align-self: center; vertical-align: middle; white-space: nowrap; font-size: 14px; line-height: 20px; }
