@font-face {
 font-family: Roboto;
 font-style: normal;
 font-weight: 100 900;
 font-display: swap;
 src: url(./assets/roboto-latin-ext.woff2) format("woff2");
 unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
 font-family: Roboto;
 font-style: normal;
 font-weight: 100 900;
 font-display: swap;
 src: url(./assets/roboto-latin.woff2) format("woff2");
 unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

main {
 --picker-font: Roboto, -apple-system, "Segoe UI", system-ui, sans-serif;
}

main select {
 font-family: var(--picker-font);
 font-size: .875rem;
 font-weight: 500;
 letter-spacing: .01em;
 line-height: 1.4;
}

main select option {
 font-family: var(--picker-font);
 font-size: .75rem;
 font-weight: 400;
 letter-spacing: .01em;
}

@supports (-webkit-touch-callout: none) {
 main select {
  font-size: 16px;
  font-size: max(16px, 1rem);
 }
}

.theme-choices {
 border: 0;
 display: grid;
 gap: 8px;
 grid-template-columns: repeat(2, minmax(0, 1fr));
 margin: 0 0 17px;
 padding: 0;
}

.theme-choices legend {
 font-weight: 600;
 margin-bottom: 8px;
}

.theme-choices button[aria-pressed="true"] {
 background: #20bfd12b;
 border-color: var(--accent);
 color: var(--accent);
 font-weight: 600;
}

.mapping-count {
 color: var(--accent);
 font-family: var(--picker-font);
 font-size: .8125rem;
 font-weight: 500;
 line-height: 1.4;
}

[data-section="map"] .settings-content > label:not(.mapping-choice) {
 font-family: var(--picker-font);
 font-size: .75rem;
 font-weight: 500;
 line-height: 1.4;
}

.mapping-choice {
 border-bottom: 1px solid #7996a433;
 font-family: var(--picker-font);
 font-size: .875rem;
 font-weight: 400;
 letter-spacing: .01em;
 line-height: 1.4;
 padding: 5px 0 10px;
}

.mapping-choice small {
 color: var(--accent);
 display: block;
 font-size: inherit;
 font-weight: 500;
 line-height: 1.4;
 overflow-wrap: anywhere;
 padding: 2px 0;
}

.mapping-diagnostics dl {
 display: grid;
 font-size: .83rem;
 gap: 5px 10px;
 grid-template-columns: minmax(0, 1fr) auto;
}

.mapping-diagnostics dd {
 margin: 0;
}

.settings-switch-row {
 align-items: center;
 display: flex;
 gap: 10px;
 justify-content: space-between;
 min-height: 44px;
}

.settings-switch-row input {
 appearance: none;
 -webkit-appearance: none;
 background: #495c68;
 border: 1px solid #7996a46a;
 border-radius: 22px;
 cursor: pointer;
 flex: none;
 height: 28px;
 margin: 0;
 min-height: 0;
 padding: 0;
 width: 47px;
}

.settings-switch-row input::before {
 background: #fff;
 border-radius: 50%;
 content: "";
 display: block;
 height: 20px;
 margin: 3px;
 width: 20px;
}

.settings-switch-row input:checked {
 background: #20bfd1;
 border-color: #20bfd1;
}

.settings-switch-row input:checked::before {
 transform: translateX(19px);
}
.display-settings{margin:0 0 16px}
.display-settings p{font-size:.84rem;line-height:1.4;margin:6px 0}
.display-settings .row[hidden],.display-settings button[hidden],#display-help:empty{display:none}

.supla-warning {
 background: #10232e;
 border: 1px solid #97714c;
 border-radius: 12px;
 color: #ffe0af;
 font-size: .875rem;
 line-height: 1.4;
 margin: calc(12px + env(safe-area-inset-top, 0px)) auto 0;
 max-width: min(calc(100% - 32px), 724px);
 padding: 10px 12px;
}
.supla-warning p { margin: 0 0 4px; }
.supla-warning a { color: inherit; }
.supla-last-read { font-size: .8125rem; opacity: .85; }
.supla-device-prompt { margin-top: 16px; }
body[data-theme=light] .supla-warning { background: #fff7e6; border-color: #bf9b65; color: #573810; }
