.design-theme-controls{border-bottom:1px solid var(--sp-color-d4ddd0,#d4ddd0);padding:0 0 22px;margin:0 0 24px;min-width:0}
.design-theme-controls h3{margin:0 0 9px;font-size:13px;font-weight:600;line-height:1.8}
.design-theme-help,.design-theme-status,.design-theme-error{font-size:11px;line-height:1.9;overflow-wrap:anywhere}
.design-theme-help{margin:0 0 15px;color:var(--sp-color-687b6d,#687b6d)}
.design-theme-label{display:block;margin:0 0 7px;font-size:11px;line-height:1.8}
.design-theme-select{box-sizing:border-box;display:block;width:100%;max-width:440px;min-height:44px;padding:10px 36px 10px 12px;border:1px solid var(--sp-color-b5c5b0,#b5c5b0);border-radius:5px;background:var(--sp-color-fffefa,#fffefa);color:var(--sp-color-344c3e,#344c3e);font:inherit;font-size:12px;line-height:1.6}
.design-theme-select:focus-visible{outline:2px solid var(--accent,#496858);outline-offset:3px}
.design-theme-select:disabled{opacity:.58;cursor:default}
.design-theme-select[hidden]{display:none}
.design-theme-status{margin:10px 0 0;color:var(--sp-color-687b6d,#687b6d)}
.design-theme-error{margin:10px 0 0;color:#925640}
.design-theme-error[hidden]{display:none}
html[data-design-theme="optical"] .design-theme-controls{border-color:#59676d}
html[data-design-theme="optical"] .design-theme-help,html[data-design-theme="optical"] .design-theme-status{color:#b8c5c6}
html[data-design-theme="optical"] .design-theme-select{background:#253036;color:#e4e9e6;border-color:#809094}
html[data-design-theme="optical"] .design-theme-select:focus-visible{outline-color:#e8ddc6}
html[data-design-theme="optical"] .design-theme-error{color:#e4b5a5}
.design-theme-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:500px}
.design-theme-choices .button{white-space:normal;min-width:0;min-height:54px;padding:10px 12px;line-height:1.6;font-size:11px}
.design-theme-choices .button[aria-pressed="true"]{border-color:var(--accent,#496858);box-shadow:inset 0 0 0 1px var(--accent,#496858)}
.design-theme-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.design-theme-actions .button{font-size:11px;min-height:42px}
html[data-design-theme="optical"] .design-theme-choices .button[aria-pressed="true"]{border-color:var(--op-human);box-shadow:inset 0 0 0 1px var(--op-human)}

html[data-design-theme="optical"] .design-theme-choices button.button[aria-pressed="true"]:is(:hover,:focus-visible,:active){border-color:var(--op-human)}

.home-design-theme {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 9px;
  min-width: 0;
  color: var(--sp-color-344c3e, #344c3e);
}
.home-design-theme[hidden] { display: none; }
.home-design-theme-label, .home-design-theme-status, .home-design-theme-retry { font-size: 11px; }
.home-design-theme-status { min-width: 4.5em; }
.home-design-theme-choices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.home-design-theme-choice, .home-design-theme-retry {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--sp-color-b5c5b0, #b5c5b0);
  border-radius: 6px;
  background: var(--sp-color-fffefa, #fffefa);
  color: inherit;
  font: inherit;
  font-size: 11px;
  line-height: 1.45;
  cursor: pointer;
}
.home-design-theme-choice[aria-pressed="true"] {
  border-color: var(--sp-color-2c4f38, #2c4f38);
  background: var(--sp-color-2c4f38, #2c4f38);
  color: white;
}
.home-design-theme-choice:hover:enabled, .home-design-theme-retry:hover:enabled { box-shadow: inset 0 0 0 1px currentColor; }
.home-design-theme-choice:focus-visible, .home-design-theme-retry:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.home-design-theme-choice[aria-pressed="true"]:focus-visible { outline-color: var(--sp-color-2c4f38, #2c4f38); }
.home-design-theme-choice:disabled, .home-design-theme-retry:disabled { opacity: .65; cursor: default; }
.home-design-theme .design-theme-error { grid-column: 1 / -1; margin: 0; }
.home-design-theme-retry { grid-column: 1 / -1; justify-self: start; }
.topbar:has(.home-design-theme:not([hidden])) { height: auto; min-height: 58px; padding-block: 7px; }
html[data-design-theme="optical"] .home-design-theme { color: #dbe5e2; }
html[data-design-theme="optical"] :is(.home-design-theme-choice, .home-design-theme-retry) { background: #253036; border-color: #809094; }
html[data-design-theme="optical"] .home-design-theme-choice[aria-pressed="true"] { background: #e8ddc6; border-color: #e8ddc6; color: #233032; }
html[data-design-theme="optical"] .home-design-theme-choice[aria-pressed="true"]:focus-visible { outline-color: #e8ddc6; }

@media (max-width: 860px) {
  .topbar:has(.home-design-theme:not([hidden])) { flex-wrap: wrap; }
  .topbar .home-design-theme { order: 1; flex: 1 1 100%; grid-template-columns: auto auto 1fr; }
}
