/* Geräte-Skins: MTP5500 (radio) + BAP850 S (bap850s) */

/* LCD-Schrift für beide Funkgeräte */
.radio-shell .screen {
    font-family: "Bahnschrift", "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.radio-shell .screen::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 29;
    opacity: 0.34;
    mix-blend-mode: multiply;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.24) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.16) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.45) 35%, transparent 40%);
    background-size: 3px 3px, 3px 3px, 2px 2px;
}

.radio-shell .screen .display-line,
.radio-shell .screen .softkey,
.radio-shell .screen .status-msg-label,
.radio-shell .screen .talk-header-title,
.radio-shell .screen .talk-id,
.radio-shell .screen .talk-channel,
.radio-shell .screen .talk-resource,
.radio-shell .screen .sds-header-title,
.radio-shell .screen .sds-menu-label,
.radio-shell .screen .option-menu-title,
.radio-shell .screen .option-menu-item,
.radio-shell .screen .option-menu-softkeys,
.radio-shell .screen .folder-menu-title,
.radio-shell .screen .folder-menu-item,
.radio-shell .screen .group-menu-title,
.radio-shell .screen .group-menu-item,
.radio-shell .screen .kw-menu-title,
.radio-shell .screen .kw-item,
.radio-shell .screen .dci-label,
.radio-shell .screen .dci-number {
    font-family: inherit;
    font-weight: normal;
}

.radio-shell[data-device="mtp5500"] .radio-wrap,
.radio-shell:not([data-device]) .radio-wrap {
    width: min(720px, 54vw);
    aspect-ratio: 1 / 1;
}

.radio-shell[data-device="bap850s"] .radio-wrap {
    width: min(400px, 30vw);
    aspect-ratio: 941 / 1672;
}

.radio-shell[data-device="bap850s"] .drag-handle {
    top: 10%;
    left: 22%;
    width: 56%;
    height: 7%;
}

/* ════════════════════════════════════════════════════════════
   BAP850 S — übernimmt MTP5500-Look, Softkeys UNTEN statt rechts
   ════════════════════════════════════════════════════════════ */

/* Display-Cutout */
.radio-shell[data-device="bap850s"] .screen {
    left: 37.4%;
    top: 52.4%;
    width: 22.5%;
    height: 12.5%;
    background: #ffffff;
    border-radius: 0;
    font-size: 7px;
    line-height: 1.1;
    box-sizing: border-box;
}

.radio-shell[data-device="bap850s"] .screen.status-dim::after {
    background: rgba(255, 255, 255, 0.05);
}

/* Statusbar (oben) — alle Icons in einer Reihe */
.radio-shell[data-device="bap850s"] .screen-statusbar {
    flex: 0 0 17%;
    min-height: 14px;
    padding: 0 3px;
    gap: 0;
    background: transparent;
    border-bottom: none;
    align-items: center;
    justify-content: stretch;
}

.radio-shell[data-device="bap850s"] .statusbar-center,
.radio-shell[data-device="bap850s"] .statusbar-right {
    display: none;
}

.radio-shell[data-device="bap850s"] .statusbar-left {
    flex: 1 1 auto;
    width: 100%;
    display: block;
    position: relative;
    min-width: 0;
    line-height: 0;
    height: 12px;
}

.radio-shell[data-device="bap850s"] #batteryIcon,
.radio-shell[data-device="bap850s"] .icon-circle,
.radio-shell[data-device="bap850s"] .icon-sds-status,
.radio-shell[data-device="bap850s"] .icon-signal-img,
.radio-shell[data-device="bap850s"] .icon-audio-lcd {
    display: block;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.radio-shell[data-device="bap850s"] .icon-signal-img {
    left: 0;
    width: 17px;
    height: 10px;
    object-fit: cover;
    object-position: center 34%;
}

.radio-shell[data-device="bap850s"] .icon-audio-lcd {
    left: 50%;
    transform: translate(-50%, -50%);
    height: 10px;
    width: auto;
    max-width: 17px;
}

.radio-shell[data-device="bap850s"] .icon-circle {
    right: 24px;
    width: 9px;
    height: 9px;
}

.radio-shell[data-device="bap850s"] .icon-sds-status {
    right: 18px;
    width: 12px;
    height: 12px;
}

.radio-shell[data-device="bap850s"] #batteryIcon {
    right: 1px;
    height: 10px;
    width: auto;
    max-width: none;
}

/* Body: vertikal — Display oben, Softkeys unten */
.radio-shell[data-device="bap850s"] #screenNormal {
    flex: 1 1 0;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
}

.radio-shell[data-device="bap850s"] .screen-body {
    min-height: 0;
    flex: 1 1 0;
}

/* Display-Lines: volle Breite */
.radio-shell[data-device="bap850s"] #screenNormal .display-lines {
    order: 1;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    padding: 1px 3px 0;
    padding-right: 3px;
    transform: none;
    justify-content: center;
    gap: 0;
    min-height: 0;
    overflow: hidden;
}

.radio-shell[data-device="bap850s"] .display-line {
    color: #0d1d25;
    font-weight: 900;
    font-size: 1.28em;
    line-height: 1.05;
    letter-spacing: 0.01em;
    text-align: center;
    white-space: nowrap;
    flex: 0 1 auto;
    min-height: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.radio-shell[data-device="bap850s"] [data-i18n="ui_radio_display_line1"] {
    font-size: 1.08em;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.radio-shell[data-device="bap850s"] #resourceLine {
    display: none !important;
}

.radio-shell[data-device="bap850s"] #channelLine {
    font-size: 1.3em;
}

.radio-shell[data-device="bap850s"] #resourceLine,
.radio-shell[data-device="bap850s"] #statusLine {
    font-size: 1.12em;
    font-weight: 800;
}

.radio-shell[data-device="bap850s"] #screenNormal .display-lines:has(#statusLine:not(:empty)) .display-line {
    font-size: 1.14em;
    line-height: 1.02;
}

.radio-shell[data-device="bap850s"] #screenNormal .display-lines:has(#statusLine:not(:empty)) #channelLine {
    font-size: 1.16em;
}

.radio-shell[data-device="bap850s"] #screenNormal .display-lines:has(#statusLine:not(:empty)) #statusLine {
    font-size: 1.02em;
}

/* Uhr + leerer statusLine ausblenden (Referenz zeigt 3 Zeilen) */
.radio-shell[data-device="bap850s"] .display-line-clock {
    display: none;
}

.radio-shell[data-device="bap850s"] #statusLine {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    margin: 0;
}

.radio-shell[data-device="bap850s"] #statusLine:empty {
    display: none;
}

/* Softkeys: unten bündig — MTP5500-Override (rechte Spalte) komplett zurücksetzen */
.radio-shell[data-device="bap850s"] #screenNormal .softkeys {
    order: 3;
    position: static;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    z-index: auto;
    flex: 0 0 17%;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin-top: auto;
    flex-direction: row;
    align-items: stretch;
    border: none;
    border-left: none;
    background: #ffffff;
    padding: 0;
    gap: 0;
}

.radio-shell[data-device="bap850s"] .softkey {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    height: auto;
    margin: 0;
    border: 1px solid #6fa8b3;
    border-radius: 3px;
    background: #b8dde2;
    color: #0d1d25;
    font-size: 1.05em;
    font-weight: normal;
    font-style: normal;
    letter-spacing: 0;
    box-shadow: none;
    padding: 1px 3px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.radio-shell[data-device="bap850s"] .softkey + .softkey {
    border-top: none;
    border-left: none;
    margin-left: -1px;
}

.radio-shell[data-device="bap850s"] .softkey-icon-mid {
    flex: 0 0 24%;
    max-width: 24%;
    padding: 0;
}

.radio-shell[data-device="bap850s"] .icon-menu {
    width: 11px;
    height: 14px;
}

/* Status-Toast (PTT/Status) */
.radio-shell[data-device="bap850s"] .status-confirm {
    top: 50%;
    left: 50%;
    width: 96%;
    height: 28%;
    max-height: none;
    min-height: 0;
    transform: translate(-50%, -50%);
    border: 1px solid #6f9b73;
    background: #e8f0e3;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
}

.radio-shell[data-device="bap850s"] .status-icon {
    width: 16%;
    min-width: 0;
    max-width: none;
    background: #1ba556;
}

.radio-shell[data-device="bap850s"] .status-warn-icon,
.radio-shell[data-device="bap850s"] .status-sds-icon {
    width: 10px;
    height: 10px;
}

.radio-shell[data-device="bap850s"] .status-check-mark {
    font-size: 12px;
    color: #ffe45c;
    transform: none;
}

.radio-shell[data-device="bap850s"] .status-msg {
    background: #eef5ea;
    padding: 1px 3px;
    min-width: 0;
    overflow: hidden;
}

.radio-shell[data-device="bap850s"] .status-msg-label {
    width: 100%;
    font-size: 9px;
    line-height: 1.05;
    color: #1c271d;
    text-align: center;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

/* Einzelruf-Banner als Overlay über dem Display (Softkeys bleiben unten) */
.radio-shell[data-device="bap850s"] .direct-input-box {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 17%;
    order: unset;
    flex: none;
    width: 100%;
    height: auto;
    min-height: 0;
    z-index: 18;
    background: #d8eed8;
    border-top: 1px solid #6fa8b3;
    border-bottom: 1px solid rgba(111, 168, 179, 0.45);
}

.radio-shell[data-device="bap850s"] .direct-input-box:not(.hidden) {
    display: flex;
    flex-direction: column;
}

.radio-shell[data-device="bap850s"] .dci-header {
    min-height: 13px;
    padding: 2px 4px;
    gap: 3px;
}

.radio-shell[data-device="bap850s"] .dci-icon {
    width: 9px;
    height: 9px;
}

.radio-shell[data-device="bap850s"] .dci-label {
    font-size: 0.95em;
}

.radio-shell[data-device="bap850s"] .dci-number {
    flex: 0 0 auto;
    min-height: 16px;
    font-size: 1.35em;
    justify-content: flex-end;
    align-items: center;
    padding: 1px 4px 2px;
}

/* Overlays: volle Breite (keine rechte Softkey-Spalte mehr) */
.radio-shell[data-device="bap850s"] #screenTalking,
.radio-shell[data-device="bap850s"] #screenCallOut,
.radio-shell[data-device="bap850s"] #screenCallIn,
.radio-shell[data-device="bap850s"] #screenCallActive {
    top: 16%;
    right: 0;
    left: 0;
    bottom: 17%;
    z-index: 35;
}

.radio-shell[data-device="bap850s"] #screenNormal .display-lines.is-talk-hidden {
    visibility: hidden;
}

.radio-shell[data-device="bap850s"] .talking-overlay {
    background: #ffffff;
}

.radio-shell[data-device="bap850s"] .talk-header {
    background: #1ec8d8;
    border-bottom-color: #0fa8b8;
}

.radio-shell[data-device="bap850s"] .talk-content,
.radio-shell[data-device="mtp5500"] .talk-content,
.radio-shell:not([data-device]) .talk-content {
    gap: 0.18em;
    padding: 0.22em 5px;
    justify-content: center;
}

.radio-shell[data-device="bap850s"] .talk-id,
.radio-shell[data-device="bap850s"] .talk-channel,
.radio-shell[data-device="bap850s"] .talk-resource,
.radio-shell[data-device="mtp5500"] .talk-id,
.radio-shell[data-device="mtp5500"] .talk-channel,
.radio-shell[data-device="mtp5500"] .talk-resource {
    color: #0d1d25;
    line-height: 1.12;
    white-space: nowrap;
    flex: 0 0 auto;
}

.radio-shell[data-device="bap850s"] .talk-header-title {
    font-size: 1.1em;
}

.radio-shell[data-device="bap850s"] .talk-id,
.radio-shell[data-device="bap850s"] .talk-channel,
.radio-shell[data-device="bap850s"] .talk-resource {
    font-size: 1.12em;
    line-height: 1.12;
}

.radio-shell[data-device="mtp5500"] .talk-resource,
.radio-shell:not([data-device]) .talk-resource {
    font-weight: 650;
}

.radio-shell[data-device="mtp5500"] .talk-id,
.radio-shell[data-device="mtp5500"] .talk-channel,
.radio-shell[data-device="mtp5500"] .talk-resource,
.radio-shell:not([data-device]) .talk-id,
.radio-shell:not([data-device]) .talk-channel,
.radio-shell:not([data-device]) .talk-resource {
    font-size: 13px;
    line-height: 1.1;
    font-weight: 600;
}

.radio-shell[data-device="bap850s"] .sds-overlay {
    background: #ffffff;
    font-size: inherit;
}

.radio-shell[data-device="bap850s"] .sds-header-title,
.radio-shell[data-device="bap850s"] .sds-menu-item,
.radio-shell[data-device="bap850s"] .sds-empty {
    font-size: 1em;
}

.radio-shell[data-device="bap850s"] .sds-menu-item {
    flex-basis: 1.34em;
    min-height: 1.34em;
    padding: 0 4px;
    gap: 3px;
}

.radio-shell[data-device="bap850s"] .sds-menu-icon {
    width: 1.05em;
    height: 1.05em;
    flex-basis: 1.05em;
}

.radio-shell[data-device="bap850s"] .sds-radio-info-lines {
    font-size: 1em;
    line-height: 1.12;
    padding-top: 0.35em;
}

.radio-shell[data-device="bap850s"] .sds-msg-row {
    padding: 2px 3px;
    min-height: 1.45em;
}

.radio-shell[data-device="bap850s"] #sdsViewList .sds-list {
    padding-top: 3px;
    scroll-padding-top: 3px;
}

.radio-shell[data-device="bap850s"] .sds-msg-nr {
    font-size: 0.95em;
    line-height: 1;
}

.radio-shell[data-device="bap850s"] .sds-msg-time-small {
    font-size: 0.82em;
    line-height: 1;
}

.radio-shell[data-device="bap850s"] .sds-detail-body {
    padding: 2px 3px;
    gap: 1px;
}

.radio-shell[data-device="bap850s"] .sds-alarm-text {
    font-size: 0.95em;
    line-height: 1.12;
    padding: 2px 3px;
}

.radio-shell[data-device="bap850s"] .sds-alarm-time {
    font-size: 0.82em;
    padding: 1px 3px;
    gap: 2px;
}

.radio-shell[data-device="bap850s"] .sds-alarm-time img {
    width: 1em;
    height: 1em;
}

.radio-shell[data-device="mtp5500"] #sdsViewMenu,
.radio-shell[data-device="mtp5500"] #sdsViewList,
.radio-shell[data-device="mtp5500"] #sdsViewDetail,
.radio-shell[data-device="mtp5500"] #sdsViewMore,
.radio-shell[data-device="mtp5500"] #sdsViewMyInfo,
.radio-shell[data-device="mtp5500"] #sdsViewRadioInfo,
.radio-shell:not([data-device]) #sdsViewMenu,
.radio-shell:not([data-device]) #sdsViewList,
.radio-shell:not([data-device]) #sdsViewDetail,
.radio-shell:not([data-device]) #sdsViewMore,
.radio-shell:not([data-device]) #sdsViewMyInfo,
.radio-shell:not([data-device]) #sdsViewRadioInfo {
    flex-direction: row;
}

.radio-shell[data-device="mtp5500"] .sds-radio-info-actions .sds-softkey-more,
.radio-shell:not([data-device]) .sds-radio-info-actions .sds-softkey-more {
    order: 3;
}

.radio-shell[data-device="mtp5500"] #sdsViewMyInfo .sds-overlay-header,
.radio-shell[data-device="mtp5500"] #sdsViewRadioInfo .sds-overlay-header,
.radio-shell:not([data-device]) #sdsViewMyInfo .sds-overlay-header,
.radio-shell:not([data-device]) #sdsViewRadioInfo .sds-overlay-header {
    border-bottom: none;
}

.radio-shell[data-device="mtp5500"] #sdsViewMyInfo .sds-overlay-header::before,
.radio-shell[data-device="mtp5500"] #sdsViewMyInfo .sds-overlay-header::after,
.radio-shell[data-device="mtp5500"] #sdsViewRadioInfo .sds-overlay-header::before,
.radio-shell[data-device="mtp5500"] #sdsViewRadioInfo .sds-overlay-header::after,
.radio-shell:not([data-device]) #sdsViewMyInfo .sds-overlay-header::before,
.radio-shell:not([data-device]) #sdsViewMyInfo .sds-overlay-header::after,
.radio-shell:not([data-device]) #sdsViewRadioInfo .sds-overlay-header::before,
.radio-shell:not([data-device]) #sdsViewRadioInfo .sds-overlay-header::after {
    content: none;
    display: none;
}

.radio-shell[data-device="mtp5500"] .sds-menu-main,
.radio-shell:not([data-device]) .sds-menu-main {
    flex: 1 1 auto;
}

.radio-shell[data-device="mtp5500"] .sds-menu-actions,
.radio-shell:not([data-device]) .sds-menu-actions {
    flex: 0 0 25%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    border-top: 0;
    border-left: 1px solid rgba(0,0,0,0.18);
}

.radio-shell[data-device="mtp5500"] .sds-sub-actions,
.radio-shell:not([data-device]) .sds-sub-actions {
    flex-basis: 24%;
}

.radio-shell[data-device="mtp5500"] .sds-menu-actions span,
.radio-shell:not([data-device]) .sds-menu-actions span {
    flex: 0 0 34%;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #b8dde2;
    font-size: 12px;
    line-height: 1;
    text-align: center;
}

.radio-shell[data-device="mtp5500"] .sds-softkey-back,
.radio-shell:not([data-device]) .sds-softkey-back {
    order: 1;
}

.radio-shell[data-device="mtp5500"] .sds-softkey-select,
.radio-shell[data-device="mtp5500"] .sds-softkey-open,
.radio-shell:not([data-device]) .sds-softkey-select {
    order: 3;
}

.radio-shell:not([data-device]) .sds-softkey-open {
    order: 3;
}

.radio-shell[data-device="mtp5500"] .sds-menu-actions .group-softkey-icon,
.radio-shell:not([data-device]) .sds-menu-actions .group-softkey-icon {
    display: none;
}

.radio-shell[data-device="mtp5500"] #screenNormal .display-lines,
.radio-shell:not([data-device]) #screenNormal .display-lines {
    flex-basis: 75%;
    width: 75%;
    max-width: 75%;
    gap: 0;
    padding: 0 2px;
    justify-content: center;
}

.radio-shell[data-device="mtp5500"] #resourceLine {
    display: none !important;
}

.radio-shell[data-device="mtp5500"] .display-line {
    line-height: 1.04;
}

.radio-shell[data-device="mtp5500"] #screenNormal .softkeys,
.radio-shell:not([data-device]) #screenNormal .softkeys {
    top: calc(-100% * 16 / 84);
    height: calc(100% * 100 / 84);
    width: 25%;
    z-index: 3;
    background: #ffffff;
    border-left: 1px solid rgba(0,0,0,0.18);
}

/* Call/Talk-Overlays: Breite an Softkey-Spalte (25%) anpassen */
.radio-shell[data-device="mtp5500"] #screenCallOut,
.radio-shell[data-device="mtp5500"] #screenCallIn,
.radio-shell[data-device="mtp5500"] #screenCallActive,
.radio-shell[data-device="mtp5500"] #screenTalking,
.radio-shell:not([data-device]) #screenCallOut,
.radio-shell:not([data-device]) #screenCallIn,
.radio-shell:not([data-device]) #screenCallActive,
.radio-shell:not([data-device]) #screenTalking {
    top: 16%;
    left: 0;
    bottom: 0;
    right: 25%;
    z-index: 35;
}

.radio-shell[data-device="mtp5500"] #screenNormal .display-lines.is-talk-hidden,
.radio-shell:not([data-device]) #screenNormal .display-lines.is-talk-hidden {
    visibility: hidden;
}

.radio-shell[data-device="mtp5500"] #screenNormal .softkey,
.radio-shell:not([data-device]) #screenNormal .softkey {
    border: 0;
    border-radius: 0;
    margin: 0;
    background: #b8dde2;
    font-size: 12px;
    font-weight: normal;
}

.radio-shell[data-device="mtp5500"] #screenNormal .softkey + .softkey,
.radio-shell:not([data-device]) #screenNormal .softkey + .softkey {
    border-top: 1px solid rgba(0,0,0,0.12);
}

.radio-shell[data-device="mtp5500"] .option-overlay,
.radio-shell[data-device="mtp5500"] .folder-overlay,
.radio-shell[data-device="mtp5500"] .group-overlay,
.radio-shell[data-device="mtp5500"] .kw-overlay,
.radio-shell:not([data-device]) .option-overlay,
.radio-shell:not([data-device]) .folder-overlay,
.radio-shell:not([data-device]) .group-overlay,
.radio-shell:not([data-device]) .kw-overlay {
    display: grid;
    grid-template-columns: 1fr 25%;
    grid-template-rows: auto 1fr;
    background: #ffffff;
}

.radio-shell[data-device="mtp5500"] .option-menu-title,
.radio-shell[data-device="mtp5500"] .folder-menu-title,
.radio-shell[data-device="mtp5500"] .group-menu-title,
.radio-shell[data-device="mtp5500"] .kw-menu-title,
.radio-shell:not([data-device]) .option-menu-title,
.radio-shell:not([data-device]) .folder-menu-title,
.radio-shell:not([data-device]) .group-menu-title,
.radio-shell:not([data-device]) .kw-menu-title {
    grid-column: 1;
    grid-row: 1;
}

.radio-shell[data-device="mtp5500"] .option-menu-list,
.radio-shell[data-device="mtp5500"] .folder-menu-list,
.radio-shell[data-device="mtp5500"] .group-menu-list,
.radio-shell[data-device="mtp5500"] .kw-list,
.radio-shell:not([data-device]) .option-menu-list,
.radio-shell:not([data-device]) .folder-menu-list,
.radio-shell:not([data-device]) .group-menu-list,
.radio-shell:not([data-device]) .kw-list {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
}

.radio-shell[data-device="mtp5500"] .option-overlay > .option-menu-softkeys,
.radio-shell[data-device="mtp5500"] .folder-overlay > .option-menu-softkeys,
.radio-shell[data-device="mtp5500"] .group-overlay > .option-menu-softkeys,
.radio-shell[data-device="mtp5500"] .kw-overlay > .option-menu-softkeys,
.radio-shell:not([data-device]) .option-overlay > .option-menu-softkeys,
.radio-shell:not([data-device]) .folder-overlay > .option-menu-softkeys,
.radio-shell:not([data-device]) .group-overlay > .option-menu-softkeys,
.radio-shell:not([data-device]) .kw-overlay > .option-menu-softkeys {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    border-top: 0;
    border-left: 1px solid rgba(0,0,0,0.18);
}

.radio-shell[data-device="mtp5500"] .option-overlay > .option-menu-softkeys span,
.radio-shell[data-device="mtp5500"] .folder-overlay > .option-menu-softkeys span,
.radio-shell[data-device="mtp5500"] .group-overlay > .option-menu-softkeys span,
.radio-shell[data-device="mtp5500"] .kw-overlay > .option-menu-softkeys span,
.radio-shell:not([data-device]) .option-overlay > .option-menu-softkeys span,
.radio-shell:not([data-device]) .folder-overlay > .option-menu-softkeys span,
.radio-shell:not([data-device]) .group-overlay > .option-menu-softkeys span,
.radio-shell:not([data-device]) .kw-overlay > .option-menu-softkeys span {
    flex: 0 0 34%;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #b8dde2;
    font-size: 12px;
    line-height: 1;
    text-align: center;
}

.radio-shell[data-device="mtp5500"] .option-overlay > .option-menu-softkeys span:first-child,
.radio-shell[data-device="mtp5500"] .folder-overlay > .option-menu-softkeys span:first-child,
.radio-shell[data-device="mtp5500"] .group-overlay > .option-menu-softkeys span:first-child,
.radio-shell[data-device="mtp5500"] .kw-overlay > .option-menu-softkeys span:first-child,
.radio-shell:not([data-device]) .option-overlay > .option-menu-softkeys span:first-child,
.radio-shell:not([data-device]) .folder-overlay > .option-menu-softkeys span:first-child,
.radio-shell:not([data-device]) .group-overlay > .option-menu-softkeys span:first-child,
.radio-shell:not([data-device]) .kw-overlay > .option-menu-softkeys span:first-child {
    order: 3;
}

.radio-shell[data-device="mtp5500"] .option-overlay > .option-menu-softkeys span:last-child,
.radio-shell[data-device="mtp5500"] .folder-overlay > .option-menu-softkeys span:last-child,
.radio-shell[data-device="mtp5500"] .group-overlay > .option-menu-softkeys span:last-child,
.radio-shell[data-device="mtp5500"] .kw-overlay > .option-menu-softkeys span:last-child,
.radio-shell:not([data-device]) .option-overlay > .option-menu-softkeys span:last-child,
.radio-shell:not([data-device]) .folder-overlay > .option-menu-softkeys span:last-child,
.radio-shell:not([data-device]) .group-overlay > .option-menu-softkeys span:last-child,
.radio-shell:not([data-device]) .kw-overlay > .option-menu-softkeys span:last-child {
    order: 1;
}

.radio-shell[data-device="mtp5500"] .option-overlay .group-softkey-icon,
.radio-shell[data-device="mtp5500"] .folder-overlay .group-softkey-icon,
.radio-shell[data-device="mtp5500"] .group-overlay .group-softkey-icon,
.radio-shell[data-device="mtp5500"] .kw-overlay .group-softkey-icon,
.radio-shell:not([data-device]) .option-overlay .group-softkey-icon,
.radio-shell:not([data-device]) .folder-overlay .group-softkey-icon,
.radio-shell:not([data-device]) .group-overlay .group-softkey-icon,
.radio-shell:not([data-device]) .kw-overlay .group-softkey-icon {
    display: none;
}

.radio-shell[data-device="bap850s"] .option-overlay {
    background: #ffffff;
    font-size: inherit;
}

.radio-shell[data-device="bap850s"] .folder-overlay {
    background: #ffffff;
    font-size: inherit;
}

.radio-shell[data-device="bap850s"] .group-overlay {
    background: #ffffff;
    font-size: inherit;
}

.radio-shell[data-device="bap850s"] .kw-overlay {
    background: #ffffff;
    font-size: inherit;
}

.radio-shell[data-device="bap850s"] .option-menu-title,
.radio-shell[data-device="bap850s"] .folder-menu-title,
.radio-shell[data-device="bap850s"] .group-menu-title,
.radio-shell[data-device="bap850s"] .kw-menu-title {
    padding: 2px 3px;
    font-size: 1.18em;
    font-weight: normal;
    line-height: 1.05;
}

.radio-shell[data-device="bap850s"] .option-menu-list,
.radio-shell[data-device="bap850s"] .folder-menu-list,
.radio-shell[data-device="bap850s"] .group-menu-list,
.radio-shell[data-device="bap850s"] .kw-list {
    background: #ffffff;
}

.radio-shell[data-device="bap850s"] .option-menu-item,
.radio-shell[data-device="bap850s"] .folder-menu-item {
    padding: 1px 5px;
    gap: 4px;
    font-size: 1.24em;
    font-weight: normal;
    line-height: 1.06;
}

.radio-shell[data-device="bap850s"] .group-menu-item {
    flex-basis: 1.62em;
    min-height: 1.62em;
    padding: 0 5px 0 1.9em;
    font-size: 1.24em;
    font-weight: normal;
    line-height: 1.06;
}

.radio-shell[data-device="bap850s"] .kw-item {
    flex-basis: 1.62em;
    min-height: 1.62em;
    padding: 0 5px;
    font-size: 1.24em;
    font-weight: normal;
    line-height: 1.06;
}

.radio-shell[data-device="bap850s"] .kw-item-phone {
    width: 1.1em;
    height: 1.1em;
}

.radio-shell[data-device="bap850s"] .group-softkey-icon {
    width: 1.15em;
    height: 1.15em;
}

.radio-shell[data-device="bap850s"] .folder-menu-item {
    flex-basis: 1.62em;
    min-height: 1.62em;
    padding-top: 0;
    padding-bottom: 0;
}

.radio-shell[data-device="bap850s"] .option-menu-icon,
.radio-shell[data-device="bap850s"] .folder-menu-icon {
    width: 1.1em;
    height: 1.1em;
    flex-basis: 1.1em;
}

.radio-shell[data-device="bap850s"] .option-menu-softkeys {
    background: #ffffff;
}

.radio-shell[data-device="bap850s"] .option-menu-softkeys span {
    font-size: 1.08em;
    font-weight: normal;
    line-height: 1;
    padding: 2px 4px;
}

.radio-shell[data-device="bap850s"] .volume-overlay {
    inset: 17% 0 0 0;
    padding: 0;
}

.radio-shell[data-device="bap850s"] .volume-header {
    padding: 2px 5px;
    gap: 4px;
}

.radio-shell[data-device="bap850s"] .volume-header-title {
    font-size: 1.22em;
    font-weight: normal;
}

.radio-shell[data-device="bap850s"] .volume-header-icon {
    width: 1.05em;
    height: 1.35em;
}

.radio-shell[data-device="bap850s"] .volume-content {
    padding: 5px 6px 0;
}

.radio-shell[data-device="bap850s"] .volume-title {
    font-size: 0.95em;
    font-weight: normal;
}

.radio-shell[data-device="bap850s"] .volume-meter {
    width: 6.1em;
    height: 0.95em;
}

.radio-shell[data-device="bap850s"] .volume-value {
    font-size: 1.25em;
    font-weight: normal;
    margin-top: 0.45em;
}

.radio-shell[data-device="bap850s"] .volume-phone-icon {
    width: 0.8em;
    height: 2.05em;
}

.radio-shell[data-device="bap850s"] .volume-panel {
    width: 8.5em;
}

.radio-shell[data-device="bap850s"] .volume-arrow {
    font-size: 1.6em;
}

.radio-shell[data-device="bap850s"] .screen-off {
    background: #1a2830;
}

.radio-shell[data-device="bap850s"] .status-beacon {
    display: none;
}

/* ── BAP850 S: Klickzonen (Kalibrierung) ── */
.radio-shell[data-device="bap850s"] #btnKnob {
    left: 32%;
    top: 38%;
    width: 14%;
    height: 8%;
}

.radio-shell[data-device="bap850s"] #btnKwList {
    left: 55%;
    top: 67.6%;
    width: 8%;
    height: 3.2%;
}

.radio-shell[data-device="bap850s"] #btnPower {
    left: 56.5%;
    top: 71.4%;
    width: 5%;
    height: 4.2%;
}

.radio-shell[data-device="bap850s"] #btnCallDial {
    left: 34.5%;
    top: 70.4%;
    width: 8%;
    height: 4.2%;
}

.radio-shell[data-device="bap850s"] #btnOption {
    left: 57%;
    top: 67.6%;
    width: 8%;
    height: 3.2%;
}

.radio-shell[data-device="bap850s"] #btnVolumeDown {
    left: 30%;
    top: 40%;
    width: 7%;
    height: 7%;
}

.radio-shell[data-device="bap850s"] #btnVolumeUp {
    left: 64%;
    top: 40%;
    width: 7%;
    height: 7%;
}

.radio-shell[data-device="bap850s"] #btnHomeChannel {
    left: 47%;
    top: 40%;
    width: 7%;
    height: 7%;
}

.radio-shell[data-device="bap850s"] #btnSDS {
    left: 42%;
    top: 67.5%;
    width: 12%;
    height: 3.2%;
}

.radio-shell[data-device="bap850s"] #btnNavLeft {
    left: 40.5%;
    top: 72.8%;
    width: 8%;
    height: 6.5%;
}

.radio-shell[data-device="bap850s"] #btnNavRight {
    left: 55.5%;
    top: 72.8%;
    width: 8%;
    height: 6.5%;
}

.radio-shell[data-device="bap850s"] #btnNavUp {
    left: 48.5%;
    top: 71.2%;
    width: 7%;
    height: 4.2%;
}

.radio-shell[data-device="bap850s"] #btnNavDown {
    left: 48.5%;
    top: 77.1%;
    width: 7%;
    height: 4.2%;
}

.radio-shell[data-device="bap850s"] #btnNum1 { left: 37.5%; top: 80.1%; }
.radio-shell[data-device="bap850s"] #btnNum2 { left: 47.6%; top: 80.1%; }
.radio-shell[data-device="bap850s"] #btnNum3 { left: 57.7%; top: 80.1%; }

.radio-shell[data-device="bap850s"] #btnNum4 { left: 37.5%; top: 84.5%; }
.radio-shell[data-device="bap850s"] #btnNum5 { left: 47.6%; top: 84.5%; }
.radio-shell[data-device="bap850s"] #btnNum6 { left: 57.7%; top: 84.5%; }

.radio-shell[data-device="bap850s"] #btnNum7 { left: 37.5%; top: 88.9%; }
.radio-shell[data-device="bap850s"] #btnNum8 { left: 47.6%; top: 88.9%; }
.radio-shell[data-device="bap850s"] #btnNum9 { left: 57.7%; top: 88.9%; }

.radio-shell[data-device="bap850s"] #btnNum0 { left: 47.6%; top: 93.2%; }

.radio-shell[data-device="bap850s"] .btn-num {
    width: 7.2%;
    height: 3.4%;
}

.radio-shell[data-device="bap850s"] .splash-logo {
    max-width: 68%;
    max-height: 62%;
}

.radio-shell[data-device="bap850s"] .splash-footer {
    font-size: 0.95em;
    padding-bottom: 2px;
}
