/* Eigenes Mobil-Gerüst. Keine Desktop-Klassen. */
#m-app { display: none; }

html.wl-mobile body.is-wait {
    cursor: wait !important;
}
html.wl-mobile body.is-wait::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 40050;
    background: rgba(20, 24, 28, 0.12);
    pointer-events: all;
    cursor: wait;
}
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #005EB8;
}
html.wl-mobile body > header.topbar,
html.wl-mobile body > main {
    display: none !important;
}

html.wl-mobile #m-app {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    height: 100%;
    height: 100dvh;
    min-width: 0;
    overflow: hidden;
    background: #ece8df;
    position: relative;
}

.m-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 10px;
    padding-top: max(8px, env(safe-area-inset-top));
    background: #005EB8;
    color: #fff;
    position: relative;
}
.m-head-title {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.m-brand {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: max-content max-content max-content;
    align-items: end;
    line-height: 1;
    color: #fff;
    pointer-events: none;
}
.m-brand .m-b-pre,
.m-brand .m-b-lek,
.m-brand .m-b-post {
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    line-height: 0.78;
}
.m-brand .m-b-pre { justify-self: end; }
.m-brand .m-b-lek { text-align: center; }
.m-head-beta {
    margin-left: 8px;
    font-size: 11px;
    font-style: italic;
    font-weight: 600;
    color: #ff3b30;
}
html.wl-stage-prod .m-head-beta {
    color: #2ecc71;
}
.m-head-btn {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 20px;
    line-height: 1;
}
.m-head-btn:active { background: rgba(255,255,255,.15); }
.m-head-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 10px 9px;
}
.m-head-burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 1px;
}
.m-head-dim { display: none !important; }
.m-head-pop {
    position: fixed;
    top: calc(44px + env(safe-area-inset-top, 0px));
    left: 8px;
    right: auto;
    z-index: 80;
    min-width: 11rem;
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 52px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow: visible;
    background: #fff;
    color: #2c2a26;
    border: 1px solid #c5bfb3;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(40,36,28,.18);
    padding: 4px;
    transform: none;
}
.m-head-pop[hidden] { display: none !important; }
.m-head-pop button[hidden] { display: none !important; }
.m-head-pop button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 7px 10px;
    min-height: 34px;
    font: 600 13px system-ui, sans-serif;
    color: #2c2a26;
    border-radius: 5px;
}
.m-head-pop button svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: #3d4f63;
}
.m-head-pop button:active { background: #efe8dc; }
.m-head-pop button[disabled] { opacity: .45; }
.m-head-pop .m-head-parent {
    background: #f7f4ee;
}
.m-head-pop .m-head-parent.is-open {
    background: #efe8dc;
    color: #2c2a26;
    border-radius: 6px;
}
.m-head-pop .m-head-parent.is-open svg {
    color: #5a5348;
}
.m-head-pop .m-head-parent::after {
    content: '›';
    margin-left: auto;
    opacity: 0.55;
    font-weight: 400;
    font-size: 18px;
    line-height: 1;
}
.m-head-pop .m-head-parent.is-open::after {
    transform: none;
    opacity: 0.8;
}
#m-head-ml2,
#m-head-view,
#m-head-set {
    position: fixed;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff !important;
    color: #2c2a26 !important;
    padding: 4px !important;
    min-width: 12.5rem;
    max-width: 16rem;
    border: 1px solid #c5bfb3;
    border-radius: 8px;
    box-shadow: 4px 4px 18px rgba(40,36,28,.16);
}
#m-head-ml2[hidden],
#m-head-view[hidden],
#m-head-set[hidden] { display: none !important; }
#m-head-ml2 button,
#m-head-view button,
#m-head-set button {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 7px 10px !important;
    border: 0 !important;
    border-radius: 5px !important;
    background: transparent !important;
    color: #2c2a26 !important;
    font: 500 13px system-ui, sans-serif !important;
    text-align: left !important;
    box-shadow: none !important;
}
#m-head-ml2 button svg,
#m-head-view button svg,
#m-head-set button svg {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px !important;
    color: #3d4f63 !important;
}
#m-head-set button svg.lang-flag {
    width: 21px !important;
    height: 15px !important;
    flex: 0 0 21px !important;
    color: initial !important;
}
html.wl-mobile .m-head-pop button svg.lang-flag,
html.wl-mobile .m-head-langs button svg.lang-flag,
html.wl-mobile .m-head-langs .lang-flag {
    width: 21px !important;
    height: 15px !important;
    flex: 0 0 21px !important;
    color: initial;
    display: block;
    border: 1px solid rgba(0,0,0,.22);
    border-radius: 2px;
}
.m-head-sub[hidden] { display: none !important; }
.m-head-sub2 {
    position: relative;
    left: 0;
    top: 0;
    margin: 0 4px 4px 10px;
    min-width: 0;
    max-width: none;
    max-height: none;
    border-radius: 8px;
    border-top: 1px solid #d4cfc4;
    box-shadow: inset 3px 0 0 #005EB8;
    background: #f3eee4;
}
.m-head-sub button {
    font-weight: 500;
    font-size: 13px;
    color: #3a352e;
    padding: 7px 10px;
    min-height: 34px;
    border-radius: 0;
}
.m-head-gap {
    height: 8px;
    margin: 4px 8px;
    border-top: 1px solid #d4cfc4;
}
.m-head-sub button svg {
    color: #5a5348;
}
.m-head-sub button + button {
    border-top: 1px solid #e0d8cc;
}
.m-head-sub button.is-on {
    background: #e8e2d6;
    color: #2c2a26;
}
.m-head-sub2 {
    position: relative;
    left: 0;
    top: 0;
    margin: 0 4px 4px 10px;
    min-width: 0;
    max-width: none;
    max-height: none;
    border-radius: 8px;
    border-top: 1px solid #d4cfc4;
    box-shadow: inset 3px 0 0 #005EB8;
    background: #f3eee4;
}
.m-head-sub .m-head-parent {
    width: 100%;
}
.m-head-langs {
    display: flex;
    flex-direction: column;
}
.m-head-langs button {
    display: flex;
    align-items: center;
    gap: 8px;
}

.m-body {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    margin: 8px;
    background: #f7f4ee;
    border: 1px solid #d4cfc4;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
#m-chart[hidden] { display: none !important; }
#m-chart {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}
.m-stat-btn,
.m-cmt-btn {
    position: absolute;
    top: 3px;
    z-index: 12;
    width: 26px;
    height: 22px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #3d4f63;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.m-stat-btn { right: 6px; }
.m-cmt-btn { right: 34px; }
.m-stat-btn[hidden],
.m-cmt-btn[hidden] { display: none !important; }
.m-stat-btn.on,
.m-cmt-btn.on {
    color: #005EB8;
    background: rgba(31,78,121,.12);
}
.m-stat {
    position: absolute;
    inset: 0;
    z-index: 45;
    background: rgba(20,24,28,0.35);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 44px 10px 12px;
}
.m-stat[hidden] { display: none !important; }
.m-stat-card {
    width: min(420px, 100%);
    max-height: calc(100% - 8px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #f7f4ee;
    border-radius: 12px;
    padding: 12px 12px 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
    color: #2c2a26;
}
.m-stat-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.m-stat-bar strong { flex: 1; font-size: 15px; }
.m-stat-x {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: #5c574e;
}
.m-stat-scope {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}
.m-stat-scope button {
    flex: 1;
    border: 1px solid #c5bfb3;
    background: #fff;
    border-radius: 8px;
    padding: 7px 8px;
    font: 600 13px system-ui, sans-serif;
    color: #2c2a26;
}
.m-stat-scope button.on {
    background: #005EB8;
    color: #fff;
    border-color: #005EB8;
}
.m-stat-scroll {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
.m-stat-tbl {
    width: 100%;
    border-collapse: collapse;
    font: 13px system-ui, sans-serif;
}
.m-stat-tbl th,
.m-stat-tbl td {
    padding: 6px 6px;
    border-bottom: 1px solid #e4dfd4;
    white-space: nowrap;
}
.m-stat-tbl th {
    font-weight: 700;
    text-align: center;
    font-size: 12px;
}
.m-stat-tbl td:first-child,
.m-stat-tbl th:first-child {
    text-align: left;
    color: #5c574e;
    font-weight: 600;
    padding-left: 2px;
}
.m-stat-tbl td { text-align: right; }

.m-filt {
    position: absolute;
    inset: 0;
    z-index: 47;
    background: rgba(20,24,28,0.35);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 44px 10px 12px;
}
.m-filt[hidden] { display: none !important; }
.m-filt-card {
    width: min(420px, 100%);
    background: #f7f4ee;
    border-radius: 12px;
    padding: 12px 12px 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
    color: #2c2a26;
}
.m-filt-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.m-filt-bar strong { font-size: 15px; }
.m-filt-hint {
    flex: 1;
    font-size: 11px;
    color: #5a564e;
    text-align: right;
}
.m-filt-x {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: #5c574e;
}
.m-filt-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.m-filt-row button {
    flex: 1 1 0;
    min-width: 48px;
    border: 1px solid #c5bfb3;
    background: #fff;
    border-radius: 8px;
    padding: 8px 6px;
    font: 600 13px system-ui, sans-serif;
    color: #2c2a26;
}
.m-filt-row button.on {
    background: #005EB8;
    color: #fff;
    border-color: #005EB8;
}
.m-filt-row button.is-locked {
    opacity: 0.4;
}
.m-filt-extra {
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
}
.m-filt-extra .m-filt-val {
    width: 52px;
    flex: 0 0 52px;
    border: 1px solid #c5bfb3;
    border-radius: 8px;
    padding: 7px 6px;
    font: 600 13px system-ui, sans-serif;
    background: #fff;
    color: #2c2a26;
    box-sizing: border-box;
}
.m-filt-extra .m-filt-unit {
    flex: 0 0 auto;
    margin: 0 4px 0 4px;
    font: 600 12px system-ui, sans-serif;
    color: #5c574e;
}
.m-filt-extra #m-filt-hz-go {
    margin-right: 20px;
}
.m-filt-extra #m-filt-n {
    margin-left: 0;
}
.m-filt-extra > button {
    flex: 0 0 auto;
    min-width: 72px;
}

.m-fft {
    position: absolute;
    inset: 0;
    z-index: 46;
    background: rgba(20,24,28,0.35);
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 36px 8px 10px;
}
.m-fft[hidden] { display: none !important; }
.m-fft-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #f7f4ee;
    border-radius: 12px;
    padding: 8px 8px 8px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
    color: #2c2a26;
    min-height: 0;
}
.m-fft-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    min-height: 28px;
}
.m-fft-bar strong { font-size: 15px; }
.m-fft-range {
    flex: 1;
    font-size: 11px;
    color: #5a564e;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.m-fft-x {
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    width: 32px;
    height: 32px;
    color: #2c2a26;
}
.m-fft-info {
    font-size: 12px;
    color: #2c2a26;
    background: #efe8dc;
    border-radius: 6px;
    padding: 4px 8px;
    margin-bottom: 4px;
}
.m-fft-info[hidden] { display: none !important; }
#m-fft-cv {
    flex: 1 1 auto;
    width: 100%;
    min-height: 160px;
    touch-action: none;
}

.m-foot {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 10px;
    background: #f7f4ee;
    color: #6e6a62;
    font-size: 10px;
    line-height: 1.2;
}
.m-foot-mark {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.m-foot-links { white-space: nowrap; }
.m-foot-links button {
    border: 0;
    background: none;
    color: #5a6570;
    font-size: 10px;
    padding: 0 4px;
}

.m-tabs {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: #efebe3;
    border-top: 1px solid #c5bfb3;
    padding-bottom: env(safe-area-inset-bottom);
}
.m-tab {
    height: 48px;
    border: 0;
    background: transparent;
    color: #5c5850;
    font: 600 12px system-ui, sans-serif;
}
.m-tab.on {
    background: #fff;
    color: #005EB8;
    box-shadow: inset 0 3px 0 #005EB8;
}

.m-pane {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #f7f4ee;
}
.m-kenn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6e6a62;
    font: 600 14px system-ui, sans-serif;
}
html.wl-mobile #m-body #mess-table-pane,
html.wl-mobile #m-table-host #mess-table-pane {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f7f4ee !important;
    box-shadow: none !important;
}
html.wl-mobile #m-body #mess-table-pane .tbl-bar {
    flex: 0 0 auto;
    padding: 6px 10px 2px;
}
html.wl-mobile #m-body #mess-datum {
    font-weight: 700;
    text-align: center;
}
html.wl-mobile #m-body #kks-table-wrap {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: none !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
}
html.wl-mobile #m-body #mess-table {
    width: max-content !important;
    min-width: 100% !important;
    table-layout: auto !important;
}

#m-table-host {
    display: flex;
    flex-direction: column;
    background: #f7f4ee;
}
#m-table-host[hidden] { display: none !important; }
#m-kenn-host[hidden] { display: none !important; }
.m-tbl-date {
    flex: 0 0 auto;
    text-align: center;
    font: 700 13px system-ui, sans-serif;
    color: #2c2a26;
    padding: 6px 8px 4px;
}
.m-tbl-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
.m-tbl {
    border-collapse: collapse;
    width: max-content;
    min-width: 100%;
    font: 12px/1.2 system-ui, sans-serif;
    background: #f7f4ee;
}
.m-tbl thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #efebe3;
    font-weight: 700;
    text-align: center;
    padding: 4px 8px;
    border-bottom: 1px solid #d4cfc4;
    white-space: nowrap;
}
.m-tbl thead th.col-zeit {
    padding-left: 4px;
    padding-right: 2px;
}
.m-tbl td {
    padding: 2px 8px 2px 6px;
    border-bottom: 1px solid #ece7dc;
    white-space: nowrap;
    vertical-align: middle;
}
.m-tbl tbody tr:nth-child(even) td { background: #efeae0; }
.m-tbl .col-zeit {
    text-align: right;
    font-variant-numeric: tabular-nums;
    padding-left: 4px;
    padding-right: 2px;
    white-space: nowrap;
    width: var(--wl-col-zeit, 96px);
    min-width: var(--wl-col-zeit, 96px);
    max-width: var(--wl-col-zeit, 96px);
    box-sizing: border-box;
}
.m-tbl .col-k { text-align: right; padding-left: 10px; padding-right: 3px; }
.m-tbl .mw-u,
html.wl-mobile .m-tbl .mw-u,
html.wl-mobile #mess-table td.col-k .mw-u {
    color: #8a867c !important;
    margin-left: 0.08rem;
    font-weight: 500;
}
.m-tbl .col-kom { min-width: 8rem; }
.m-tbl .kom-input {
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    padding: 0;
}
.m-tbl-empty { text-align: center; color: #6e6a62; padding: 24px; }
.m-tbl .mw-t { font-variant-numeric: tabular-nums; font-weight: 600; }
.m-tbl .mw-ms {
    display: inline;
    margin: 0;
    padding: 0;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.m-tbl .mw-ms::before { content: ","; }
html.wl-mobile .m-tbl .mw-ms3,
.m-tbl td.col-zeit .mw-ms3 {
    display: inline !important;
    margin: 0 0 0 0.28rem;
    font-size: 0.68rem;
    color: #8a867c;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}
html.wl-mobile .m-tbl .mw-ms3::after,
.m-tbl td.col-zeit .mw-ms3::after { content: " ms"; }

html.wl-mobile #chart-map-preview[hidden],
html.wl-mobile #chart-map-preview[hidden] * {
    display: none !important;
}
html.wl-mobile #chart-map-preview:not([hidden]) {
    display: block !important;
    z-index: 5000 !important;
}
html.wl-mobile #gps-hint {
    z-index: 5001 !important;
}
.m-tbl .col-gps {
    text-align: center;
    width: 36px;
    min-width: 36px;
}
.m-tbl .col-gps.open {
    min-width: 11rem;
    text-align: left;
}
.m-tbl .gps-pin {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}
.m-tbl .gps-pin-fix { width: 20px; height: 20px; }
.m-tbl .gps-txt { margin-left: 6px; font-size: 11px; color: #3d3a34; }

html.wl-mobile #dlg-kenn {
    z-index: 40000 !important;
    align-items: flex-start;
    justify-content: center;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
}
html.wl-mobile #dlg-kenn .dlg-kenn-card {
    width: min(26rem, calc(100vw - 16px)) !important;
    max-width: calc(100vw - 16px) !important;
    height: auto !important;
    max-height: calc(100dvh - 16px) !important;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}
html.wl-mobile #dlg-kenn .dlg-kenn-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}
html.wl-mobile #dlg-kenn .dlg-kenn-panes {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}
html.wl-mobile #dlg-kenn .dlg-kenn-pane-reg {
    column-gap: 24px;
    row-gap: 10px;
}

.m-tab.off,
.m-tab:disabled {
    opacity: 0.38;
    pointer-events: none;
}

.wl-file-pick {
    position: fixed;
    left: 0;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    z-index: 0;
}

.m-title-hits {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
}
.m-title-hits button {
    position: absolute;
    pointer-events: auto;
    border: 0;
    background: transparent;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}
.m-chset {
    position: absolute;
    inset: 0;
    z-index: 40;
    background: rgba(20,24,28,0.35);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 12px 12px;
}
.m-chset[hidden] { display: none !important; }
.m-chset-card {
    width: min(360px, 100%);
    background: #f7f4ee;
    border-radius: 12px;
    padding: 12px 14px 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
    color: #2c2a26;
}
.m-chset-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.m-chset-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #005EB8;
}
.m-chset-bar strong { flex: 1; font-size: 15px; }
.m-chset-x {
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    width: 32px;
    height: 32px;
}
.m-chset-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    font-size: 13px;
}
.m-chset-row > span { width: 64px; flex: 0 0 64px; }
.m-chset-row input[type="text"],
.m-chset-row input[type="color"] {
    flex: 1;
    min-width: 0;
    height: 32px;
    border: 1px solid #d4cfc4;
    border-radius: 6px;
    background: #fff;
    padding: 0 8px;
}
.m-chset-row input[type="color"] { padding: 2px; max-width: 56px; flex: 0 0 56px; }
.m-chset-seg { display: flex; gap: 6px; }
.m-chset-seg button {
    min-width: 40px;
    height: 32px;
    border: 1px solid #d4cfc4;
    border-radius: 6px;
    background: #efebe3;
}
.m-chset-seg button.on { background: #005EB8; color: #fff; border-color: #005EB8; }
.m-chset .m-chset-on {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-size: 13px;
    white-space: nowrap;
    line-height: 1;
}
.m-chset-sw {
    flex: 0 0 40px;
    width: 40px;
    height: 22px;
    border: 0;
    border-radius: 11px;
    background: #c8c2b6;
    position: relative;
    padding: 0;
}
.m-chset-sw::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
}
.m-chset-sw.on { background: #005EB8; }
.m-chset-sw.on::after { left: 20px; }

.m-live {
    position: absolute;
    inset: 0;
    z-index: 50;
    background: #ece8df;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.m-live[hidden] { display: none !important; }
.m-live-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #005EB8;
    color: #fff;
}
.m-live-bar strong { font-size: 15px; }
.m-live-demo {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #f3d27a;
    border: 1px solid rgba(243,210,122,0.55);
    border-radius: 4px;
    padding: 1px 6px;
}
.m-live-lamp {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    opacity: 0.55;
    margin-left: 4px;
}
.m-live-lamp i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6b7380;
    display: block;
}
.m-live-lamp.on { opacity: 1; }
.m-live-lamp.on i { background: #3dce6a; }
.m-live-lamp.on-pulse i {
    background: #e24b4b;
    animation: m-live-blink 0.7s steps(2) infinite;
}
@keyframes m-live-blink {
    50% { opacity: 0.2; }
}
.m-live-x {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 24px;
    width: 36px;
    height: 36px;
    line-height: 1;
}
.m-live-meta {
    display: flex;
    justify-content: space-between;
    padding: 6px 12px;
    font-size: 12px;
    color: #5c584f;
}
.m-live-grid {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    padding: 0 8px 8px;
}
.m-live-tile {
    background: #f7f4ee;
    border: 1px solid #d4cfc4;
    border-radius: 10px;
    padding: 8px 10px 6px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.m-live-tile-h {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
}
.m-live-tile-h i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.m-live-val {
    font-size: 22px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #2c2a26;
    margin-top: 4px;
    white-space: nowrap;
}
.m-live-tile canvas {
    flex: 1 1 auto;
    width: 100%;
    min-height: 36px;
    display: block;
}

.m-live-read {
    display: none !important;
}
.m-live-chip {
    background: #f7f4ee;
    border: 1px solid #d4cfc4;
    border-radius: 8px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.m-live-chip-n { font-size: 11px; font-weight: 700; }
.m-live-chip strong {
    font-size: 18px;
    font-variant-numeric: tabular-nums;
    color: #2c2a26;
    white-space: nowrap;
}
.m-live-strip-wrap {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0 8px calc(16px + env(safe-area-inset-bottom, 0px));
    padding: 4px 0 0;
    background: #ece8df;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    touch-action: none;
}
.m-live-strip-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.m-live-span {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: center;
}
.m-live-span button {
    border: 1px solid #d4cfc4;
    background: #f7f4ee;
    border-radius: 6px;
    font-size: 11px;
    padding: 3px 7px;
    color: #2c2a26;
}
.m-live-span button.on {
    background: #005EB8;
    color: #fff;
    border-color: #005EB8;
}
.m-live-chip-h {
    display: flex;
    align-items: center;
    gap: 6px;
}
.m-live-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.28;
    flex: 0 0 8px;
}
.m-live-led.on { opacity: 1; }
.m-live-rng {
    margin-left: auto;
    display: flex;
    gap: 4px;
    font-size: 10px;
    font-style: normal;
    color: #b0aaa0;
}
.m-live-rng em {
    font-style: normal;
    padding: 0 2px;
}
.m-live-rng em.on {
    color: #2c2a26;
    font-weight: 700;
}
.m-live-chip.is-on { box-shadow: inset 2px 0 0 currentColor; }

html.wl-mobile #winlog-hint {
    top: calc(3.2rem + env(safe-area-inset-top, 0px));
    z-index: 60020;
}
html.wl-mobile #dlg-port,
html.wl-mobile #winlog-busy {
    z-index: 50010 !important;
}
html.wl-mobile #dlg-port .dlg-card {
    width: calc(100vw - 24px);
    max-width: 22rem;
}
html.wl-mobile #dlg-live {
    display: none !important;
}
html.wl-mobile #dlg-live-take {
    z-index: 60000 !important;
    display: flex !important;
}
html.wl-mobile #dlg-live-take[hidden] {
    display: none !important;
}
html.wl-mobile #dlg-prog,
html.wl-mobile #dlg-fw {
    z-index: 50020 !important;
}
html.wl-mobile .prog-overlay,
html.wl-mobile #dlg-fw,
html.wl-mobile #dlg-kenn {
    align-items: flex-start;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
html.wl-mobile .prog-overlay .prog-dlg,
html.wl-mobile .prog-overlay .prog-card,
html.wl-mobile #dlg-fw .dlg-card,
html.wl-mobile #dlg-fw .fw-card {
    width: min(22.5rem, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 8px auto;
    box-sizing: border-box;
}
.m-live.from-dev .m-live-demo,
.m-live .m-live-demo[hidden] {
    display: none !important;
}
#m-head-pop [data-mact="ml2"][hidden] {
    display: none !important;
}
html.wl-mobile #dlg-mail {
    z-index: 50040 !important;
    align-items: flex-start;
    overflow: auto;
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
}
html.wl-mobile #dlg-mail .dlg-mail-card {
    width: min(22.5rem, calc(100vw - 16px));
    max-height: calc(100dvh - 16px);
    overflow: auto;
    margin: 8px auto;
    box-sizing: border-box;
}
html.wl-mobile #dlg-mail .dlg-field input,
html.wl-mobile #dlg-mail .dlg-field textarea {
    width: 100%;
    box-sizing: border-box;
}
html.wl-mobile #dlg-mail .dlg-mail-from {
    margin: 0 0 8px;
    font-size: 12px;
    color: #5c5850;
}
html.wl-mobile #dlg-mail .dlg-mail-status,
.dlg-mail-status {
    margin: 8px 0 0;
    font-size: 13px;
    min-height: 1.2em;
}
.dlg-mail-status.is-ok { color: #1f6b3a; }
.dlg-mail-status.is-err { color: #9b1c1c; }
.dlg-mail-status.is-warn { color: #8a5a00; }
.dlg-mail-status.is-info { color: #3d4a5c; }
