#proecom-theme-control {
 --theme-fg: #275345;
 --theme-bg: #fff;
 --theme-border: #c6d4cc;
 --theme-hover: #eff5f1;
 --theme-focus: #247357;
 position: relative;
 display: inline-flex;
 align-items: center;
 flex: 0 0 auto;
 width: auto;
 margin: 0;
 color: var(--theme-fg);
 font: 600 13px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html[data-theme="dark"] #proecom-theme-control {
 --theme-fg: var(--dark-ink);
 --theme-bg: var(--dark-raised);
 --theme-border: var(--dark-control-border);
 --theme-hover: var(--dark-hover);
 --theme-focus: var(--dark-accent);
}
#proecom-theme-control select {
 appearance: none;
 box-sizing: border-box;
 display: block;
 width: auto;
 min-width: 0;
 max-width: none;
 min-height: 38px;
 margin: 0;
 padding: 7px 26px 7px 32px;
 border: 1px solid var(--theme-border);
 border-radius: 8px;
 background: var(--theme-bg);
 color: var(--theme-fg);
 font: inherit;
 cursor: pointer;
}
#proecom-theme-control select:hover { background: var(--theme-hover); }
#proecom-theme-control select:focus-visible { outline: 2px solid var(--theme-focus); outline-offset: 2px; }
#proecom-theme-control .theme-symbol {
 position: absolute;
 z-index: 1;
 left: 10px;
 width: 14px;
 height: 14px;
 box-sizing: border-box;
 border: 1.6px solid currentColor;
 border-radius: 50%;
 background: linear-gradient(90deg, currentColor 50%, transparent 50%);
 pointer-events: none;
}
#proecom-theme-control::after {
 content: "";
 position: absolute;
 right: 12px;
 width: 5px;
 height: 5px;
 border-right: 1.5px solid;
 border-bottom: 1.5px solid;
 transform: translateY(-1px) rotate(45deg);
 pointer-events: none;
}
#proecom-theme-control.theme-in-form { display: flex; width: max-content; margin: 0 0 12px auto; }
#proecom-theme-feedback:not([hidden]) {
 position: absolute;
 top: calc(100% + 6px);
 right: 0;
 z-index: 30;
 width: max-content;
 max-width: min(260px, 85vw);
 border: 1px solid var(--theme-border);
 border-radius: 8px;
 padding: 8px 12px;
 background: var(--theme-bg);
 color: var(--theme-fg);
 font-size: 13px;
 line-height: 1.4;
}
@media (max-width: 760px) {
 body > header:has(> .security-open):has(> #proecom-theme-control) {
  flex-wrap: wrap;
  gap: 8px;
 }
 body > header:has(> .security-open) #proecom-theme-control select { overflow: hidden; }
 #proecom-theme-control select {
  width: 40px;
  height: 40px;
  padding: 0;
  color: transparent;
 }
 #proecom-theme-control select option { color: var(--theme-fg); background: var(--theme-bg); }
 #proecom-theme-control .theme-symbol { left: 12px; width: 16px; height: 16px; }
 #proecom-theme-control::after { display: none; }
}
@media (forced-colors: active) {
 #proecom-theme-control select { appearance: auto; color: ButtonText; width: auto; padding-inline: 6px; }
 #proecom-theme-control .theme-symbol, #proecom-theme-control::after { display: none; }
}
@media print {
 #proecom-theme-control, #proecom-theme-control.theme-in-form { display: none; }
}
