/*
 * openLoxTouchDisplay - display replica (see preview.js and docs/UI.md).
 * Everything is laid out in true display pixels inside .oltp-stage; the
 * frame is scaled as a whole. Colours come in as CSS variables (--P panel,
 * --T text, --S tile, --A active tile, --AT active text, ...).
 */
@font-face {
    font-family: "OLTD Inter";
    src: url("fonts/inter-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: block;
}
@font-face {
    font-family: "OLTD Inter";
    src: url("fonts/inter-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: block;
}
@font-face {
    font-family: "OLTD InterDisplay";
    src: url("fonts/interdisplay-300.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: block;
}
@font-face {
    font-family: "OLTD Icons";
    src: url("fonts/oltd-icons.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

.oltp-frame {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
}
.oltp-bezel {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: 0 0;
    background: linear-gradient(160deg, #1b1b1b, #070707 55%);
    box-shadow: inset 0 0 0 1px #2c2c2c, 0 10px 28px rgba(0, 0, 0, 0.28);
}
.oltp-stage {
    position: relative;
    overflow: hidden;
    background: #000;
    color: #fff;
    font-family: "OLTD Inter", Inter, system-ui, sans-serif;
    font-weight: 400;
    font-size: var(--fb);
    line-height: 1.2;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
    -webkit-user-select: none;
    box-sizing: border-box;
}
.oltp-stage *,
.oltp-stage *::before,
.oltp-stage *::after {
    box-sizing: border-box;
}
.oltp-stage button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    text-align: inherit;
    line-height: inherit;
    text-shadow: none;
    box-shadow: none;
    border-radius: 0;
    min-width: 0;
    -webkit-tap-highlight-color: transparent;
}
.oltp-stage button:focus-visible {
    outline: 2px solid var(--acc);
    outline-offset: -2px;
}
.oltp-i {
    font-family: "OLTD Icons";
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    display: inline-block;
    flex: none;
    -webkit-font-smoothing: antialiased;
}

/* ---- tab bar ---- */
.oltp-tabbar {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: var(--tab);
    display: flex;
    align-items: center;
}
.oltp-tabs {
    flex: 1;
    display: flex;
    height: 100%;
    min-width: 0;
    overflow: hidden;
}
.oltp-stage .oltp-tab {
    flex: none;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--tabOff);
}
/* Upright the bar is a column at the left edge instead of a row on top
   (docs/UI.md section 2): the same cells, read from top to bottom. */
.oltp-tabbar.vert {
    right: auto;
    bottom: 0;
    width: var(--tab);
    height: auto;
    flex-direction: column;
}
.oltp-tabbar.vert .oltp-tabs {
    flex-direction: column;
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
}
.oltp-stage .oltp-tabbar.vert .oltp-tab {
    width: 100%;
    height: auto;
}
.oltp-stage .oltp-tabbar.vert .oltp-tabnav {
    width: 100%;
    height: calc(var(--icon) * 0.5);
}
.oltp-tabbar.vert .oltp-status {
    margin: 4px 0 12px;
}
.oltp-tab-ico {
    position: relative;
    display: grid;
    place-items: center;
    /* Square, like the display's own (scr_main.c: tab_hl x tab_hl, radius of
       a tile). Wider than tall looks off-centre around a square icon. */
    width: var(--tabHl);
    height: var(--tabHl);
    border-radius: var(--tr);
}
.oltp-stage .oltp-tab.on {
    color: var(--tabOn);
}
.oltp-tab.on .oltp-tab-ico {
    background: var(--tabHi);
}
.oltp-tab-flame {
    position: absolute;
    top: 4px;
    right: 6px;
    color: #F28C28;
}
.is-night .oltp-tab-flame {
    color: inherit;
}
.oltp-stage .oltp-tabnav {
    flex: none;
    width: calc(var(--icon) * 0.5);
    height: 100%;
    display: grid;
    place-items: center;
    color: #9a9a9a;
}
.is-night .oltp-tabnav {
    color: var(--tabOff);
}
.oltp-status {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 12px 0 4px;
}
.oltp-status.warn {
    background: #F2A93B;
}
.oltp-status.err {
    background: #E5484D;
}

/* ---- panel ---- */
.oltp-panel {
    /* holds exactly the grid the menu leaves over: below its row, beside its
       column when the panel stands upright (docs/UI.md section 2) */
    position: absolute;
    top: var(--panel-top);
    left: var(--panel-x);
    width: var(--panel-w);
    height: var(--panel-h);
    border-radius: var(--r);
    background: var(--P);
    color: var(--T);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}
.oltp-page {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.oltp-sub {
    flex: 1;
    min-height: 0;
}

/* a page whose entries were placed on the raster: every tile sits where the
   editor put it, and what does not fit is cut off - exactly as on the glass */
.oltp-placed {
    position: relative;
    display: block;
}
.oltp-cell {
    position: absolute;
    overflow: hidden;
}
/* A row lying in the raster is placed, not flowed: ".oltp-stage .oltp-row"
   below sets position: relative and is the more specific of the two, so
   without this the row kept its place in the flow AND was moved by its cell
   on top of that - every row after the first slid one cell further down. */
.oltp-stage .oltp-row.oltp-cell {
    position: absolute;
}
.oltp-cell > .oltp-page {
    height: 100%;
}
.oltp-foldertile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100%;
    text-align: center;
    cursor: pointer;
}
.oltp-foldertile-n {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.oltp-stage .oltp-pill {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    height: var(--pill-h);
    margin: var(--pad) var(--pad) 0;
    padding: 0 14px 0 10px;
    border-radius: calc(var(--pill-h) * 0.32);
    background: var(--pill);
    color: var(--pillT);
    font-weight: 500;
    font-size: var(--fb);
}
.oltp-pill-t {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- grids (moods, favourites) ---- */
.oltp-grid {
    flex: 1;
    min-height: 0;
    display: grid;
    gap: var(--gap);
    padding: var(--pad) var(--pad) 0;
    overflow-y: auto;
    scrollbar-width: none;
}
.oltp-grid::-webkit-scrollbar,
.oltp-list::-webkit-scrollbar {
    display: none;
}

/* ---- action bar ---- */
.oltp-actions {
    flex: 0 0 var(--act);
    display: flex;
    align-items: center;
    padding: 0 var(--pad);
}
.oltp-stage .oltp-act {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--T);
}
.oltp-act-t {
    font-weight: 500;
    font-size: var(--fb);
    letter-spacing: 0.02em;
}
.oltp-act.tog:not(.on) {
    opacity: 0.45;
}

/* ---- lists ---- */
.oltp-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    padding: var(--pad);
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}
.oltp-stage .oltp-row {
    position: relative;
    flex: none;
    width: 100%;
    display: flex;
    align-items: center;
    gap: calc(var(--fb) * 0.7);
    padding: 0 calc(var(--fb) * 0.8);
    border-radius: var(--tr);
    text-align: left;
    color: var(--T);
}
.oltp-stage .oltp-row.tile {
    background: var(--S);
}
.oltp-row:not(.tile) + .oltp-row:not(.tile)::before {
    content: "";
    position: absolute;
    left: calc(var(--fb) * 0.8);
    right: calc(var(--fb) * 0.8);
    top: calc(var(--gap) * -0.5 - 0.5px);
    height: 1px;
    background: var(--line);
}
.oltp-row-n {
    flex: 1;
    min-width: 0;
    font-weight: 500;
    font-size: var(--fb);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.oltp-row-mid {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: calc(var(--fb) * 0.2);
}
.oltp-row-mid .oltp-row-n {
    flex: none;
}
.oltp-row-s {
    font-size: var(--fb);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.oltp-row-v2 {
    font-size: calc(var(--fb) * 0.86);
    font-weight: 500;
}
.oltp-row-v {
    flex: none;
    font-weight: 500;
    font-size: var(--fb);
    white-space: nowrap;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.oltp-row-chev {
    opacity: 0.95;
}
.oltp-stage .oltp-row-btn {
    flex: none;
    width: calc(var(--actIcon) * 2.3);
    height: 100%;
    display: grid;
    place-items: center;
}
.oltp-stage .oltp-toggle {
    flex: none;
    position: relative;
    width: calc(var(--fb) * 2.6);
    height: calc(var(--fb) * 1.5);
    border-radius: 999px;
    background: var(--T3);
    transition: background 0.15s;
}
.oltp-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(var(--fb) * 1.5 - 6px);
    height: calc(var(--fb) * 1.5 - 6px);
    border-radius: 50%;
    background: #fff;
    transition: left 0.15s;
}
.oltp-stage .oltp-toggle.on {
    background: var(--acc);
}
.oltp-toggle.on .oltp-knob {
    left: calc(100% - var(--fb) * 1.5 + 3px);
}
.is-night .oltp-knob {
    background: #000;
    box-shadow: inset 0 0 0 1px var(--T);
}

/* ---- lighting (docs/design licht-seite, dialog-lichtkreise) ---- */
/* the widget is a tile, its keys take the card colour - light on dark */
.oltp-light,
.oltp-dim {
    gap: var(--gap);
    padding: 0 var(--inset) var(--inset);
    background: var(--S);
    border-radius: var(--kr);
    overflow: hidden;
}
.oltp-light.nohead,
.oltp-dim.nohead {
    margin-top: var(--gap);
    padding-top: var(--inset);
}
.oltp-light-h,
.oltp-dim-h {
    flex: none;
    font-weight: 500;
    font-size: var(--ft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.oltp-moods {
    flex: none;
    display: grid;
    gap: var(--gap);
    overflow: hidden;
}
.oltp-moods.scroll {
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}
.oltp-moods::-webkit-scrollbar {
    display: none;
}
.oltp-keys {
    flex: none;
    display: flex;
    gap: var(--gap);
}
.oltp-stage .oltp-key {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: calc(var(--gap) / 2);
    background: var(--P);
    color: var(--T);
    border-radius: var(--kr);
    scroll-snap-align: start;
}
.oltp-stage .oltp-key.on {
    background: var(--A);
    color: var(--AT);
}
.oltp-key.on .oltp-i {
    color: var(--acc);
}
.oltp-key-l {
    max-width: 100%;
    padding: 0 var(--gap);
    font-size: var(--fb);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.oltp-key svg {
    display: block;
    flex: none;
}

/* dialogs sit on the cells of the whole screen, the menu row included */
.oltp-dlg-bg {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
}
.oltp-dlg {
    position: absolute;
    background: var(--P);
    color: var(--T);
    border-radius: var(--r);
    box-shadow: 0 0 0 1px var(--border);
}
.oltp-dlg-t {
    position: absolute;
    font-weight: 500;
    font-size: var(--ft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.oltp-stage .oltp-dlg-x {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.oltp-dlg-body {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    overflow-y: auto;
    scrollbar-width: none;
}
.oltp-dlg-body::-webkit-scrollbar {
    display: none;
}
.oltp-circ {
    flex: none;
    display: flex;
    align-items: center;
    background: var(--S);
    border-radius: var(--kr);
}
.oltp-circ-n {
    flex: none;
    padding-right: var(--gap);
    font-weight: 500;
    font-size: var(--fb);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.oltp-circ-v {
    flex: none;
    font-size: var(--fb);
    color: var(--T2);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.oltp-circ-v.grow {
    flex: 1;
    min-width: 0;
}
.oltp-circ-end {
    flex: none;
    height: 100%;
    margin-left: auto;
    display: grid;
    place-items: center;
}
/* slider and switch: dark on a track of the card colour, which stands out on the tile */
.oltp-slider {
    position: relative;
    flex: none;
    cursor: pointer;
}
.oltp-slider-t {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-radius: 999px;
    background: var(--P);
}
.oltp-slider-f {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 999px;
    background: var(--A);
}
.oltp-slider-k {
    position: absolute;
    top: 50%;
    border-radius: 50%;
    background: var(--A);
}
.oltp-stage .oltp-sw {
    position: relative;
    flex: none;
    border-radius: 999px;
    background: var(--P);
}
.oltp-stage .oltp-sw.on {
    background: var(--A);
}
.oltp-sw-k {
    position: absolute;
    border-radius: 50%;
    background: var(--K);
}
.oltp-sw.on .oltp-sw-k {
    background: var(--P);
}
.is-night .oltp-key,
.is-night .oltp-circ,
.is-night .oltp-slider-t,
.is-night .oltp-sw {
    box-shadow: inset 0 0 0 1px var(--line);
}
.is-night .oltp-key.on,
.is-night .oltp-sw.on {
    box-shadow: none;
}
.is-night .oltp-key.on .oltp-i {
    color: inherit;
}

/* ---- shading ---- */
.oltp-jalpage {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: row;
    gap: var(--gap);
    padding: var(--pad) var(--pad) 0;
}
.oltp-jal {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.oltp-jal-h {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 2px 4px calc(var(--pad) + 2px);
    font-size: var(--fb);
}
.oltp-jal.compact .oltp-jal-h {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.oltp-jal-n {
    font-weight: 500;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.oltp-jal-s {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.oltp-jal-b {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}
.oltp-stage .oltp-jal-btn {
    flex: 1;
    min-height: 0;
    display: grid;
    place-items: center;
    background: var(--S);
    border-radius: var(--tr);
}
.oltp-stage .oltp-auto {
    flex: 0 0 var(--act);
    display: grid;
    place-items: center;
    font-weight: 500;
    font-size: var(--fb);
    letter-spacing: 0.02em;
}
.oltp-stage .oltp-auto:not(.on) {
    opacity: 0.45;
}

/* ---- climate / big values ---- */
.oltp-clim-body,
.oltp-info-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: var(--pad) var(--pad) 0;
    text-align: center;
}
.oltp-clim-t {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: var(--ft);
}
.oltp-big {
    display: flex;
    align-items: stretch;
    font-family: "OLTD InterDisplay", "OLTD Inter", system-ui, sans-serif;
    font-weight: 300;
    line-height: 0.78;
    letter-spacing: -0.01em;
    margin: 0.12em 0 0.1em;
    font-variant-numeric: tabular-nums;
}
.oltp-big-i {
    padding-top: 0.02em;
}
.oltp-big-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.46em;
    line-height: 0.8;
    padding-left: 0.02em;
}
.oltp-big-u {
    font-size: 1.05em;
}
.oltp-big-d {
    color: var(--T2);
    font-size: 0.86em;
}
.oltp-clim-target {
    margin-top: calc(var(--fb) * 0.5);
    font-weight: 500;
    font-size: calc(var(--fb) * 0.9);
    text-transform: uppercase;
    letter-spacing: 0.01em;
}
.oltp-clim-sub {
    font-size: calc(var(--fb) * 0.9);
}

/* ---- audio ---- */
.oltp-stage .oltp-fav {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
}
.oltp-fav-art {
    position: relative;
    flex: 1;
    min-height: 0;
    border-radius: var(--tr);
    overflow: hidden;
}
.oltp-fav-t {
    position: absolute;
    left: 10px;
    top: 9px;
    right: 30px;
    font-weight: 500;
    font-size: calc(var(--fb) * 0.78);
    line-height: 1.15;
    color: #1a1a1a;
}
.oltp-fav.on .oltp-fav-t {
    color: #fff;
}
.oltp-fav-star {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #fff;
}
.oltp-fav-play {
    position: absolute;
    left: 50%;
    top: 58%;
    transform: translate(-50%, -50%);
    color: #fff;
}
.oltp-fav-cap {
    flex: none;
    padding: 5px 1px 0;
    font-size: calc(var(--fb) * 0.62);
    line-height: 1.25;
}
.oltp-fav-song,
.oltp-fav-sub {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.oltp-fav-sub {
    color: var(--T2);
}
.is-night .oltp-fav-art {
    background: none !important;
    box-shadow: inset 0 0 0 1px var(--line);
}
.is-night .oltp-fav-t,
.is-night .oltp-fav-star,
.is-night .oltp-fav-play {
    color: var(--T);
}

/* ---- simple controls ---- */
.oltp-center {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: calc(var(--fb) * 0.7);
    padding: var(--pad);
    text-align: center;
}
.oltp-title {
    font-weight: 500;
    font-size: var(--ft);
    max-width: 92%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.oltp-stage .oltp-round {
    border-radius: 50%;
    background: var(--S);
    display: grid;
    place-items: center;
    transition: background 0.12s;
}
.oltp-stage .oltp-round.on {
    background: var(--A);
    color: var(--AT);
}
.oltp-sub-t {
    font-size: var(--fb);
    color: var(--T2);
}
.oltp-bigtext {
    font-weight: 500;
    font-size: calc(var(--ft) * 1.5);
    max-width: 92%;
    overflow-wrap: anywhere;
}
/* ---- dimmer (docs/design g_Dimmer) ---- */
/* two rows put the keys beside the value, which stands over its slider */
.oltp-dim-b {
    flex: none;
    display: flex;
    gap: var(--gap);
}
.oltp-dim-v {
    flex: none;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--gap);
}
.oltp-row-keys {
    flex: none;
    display: flex;
    align-items: stretch;
    gap: var(--gap);
}
.oltp-row-keys .oltp-big {
    align-self: center;
    padding-right: var(--gap);
}
.is-night .oltp-round,
.is-night .oltp-jal-btn,
.is-night .oltp-row.tile {
    box-shadow: inset 0 0 0 1px var(--line);
}
.is-night .oltp-round.on {
    box-shadow: none;
}

/* ---- messages ---- */
.oltp-msg {
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: calc(var(--fb) * 0.6);
    padding: var(--pad);
    text-align: center;
}
.oltp-msg-t {
    font-weight: 500;
    font-size: var(--ft);
}

/* ---- rest mode ---- */
.oltp-rest {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--P);
    color: var(--T);
    cursor: pointer;
}
.is-night .oltp-rest,
.oltp-rest.is-off {
    background: #000;
}
.oltp-rest-tabs {
    flex: 0 0 var(--tab);
    display: flex;
    align-items: center;
    justify-content: space-around;
    opacity: 0.5;
}
.oltp-rest.is-off .oltp-rest-tabs {
    opacity: 0;
}
.oltp-rest-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: calc(var(--fb) * 0.4);
    padding-bottom: var(--tab);
    text-align: center;
}
.oltp-rest-clock {
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}
.oltp-rest-date {
    font-weight: 500;
    line-height: 1.1;
}
.oltp-rest-l {
    font-size: var(--ft);
    color: var(--T2);
}
.oltp-rest-big .oltp-big-i,
.oltp-rest-big .oltp-big-side {
    font-weight: 300;
}
.oltp-rest-hint {
    color: #555;
    font-size: var(--fb);
}

/* ---- desktop picture on the rest screen ---- */
.oltp-rest.has-desk {
    background-color: #000;
    background-size: cover;
    background-position: center;
    color: #fff;
}
.oltp-rest.has-desk .oltp-rest-tabs {
    display: none;
}
.oltp-rest.has-desk .oltp-rest-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: flex-start;
    justify-content: flex-end;
    padding: calc(var(--m) * 3) calc(var(--m) * 4);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
    text-align: left;
}
.oltp-rest.has-desk .oltp-rest-body.is-empty {
    display: none;
}
.oltp-rest.has-desk .oltp-rest-l {
    color: rgba(255, 255, 255, 0.75);
}

/* ---- eco / waiting ---- */
.oltp-stage.is-eco {
    background: #000;
}
.oltp-wait {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
    color: #fff;
}
.oltp-wait .oltp-i {
    color: #5a5a5a;
    margin-bottom: 6px;
}
.oltp-wait-n {
    font-weight: 500;
    font-size: var(--ft);
}
.oltp-wait-ip {
    color: #8a8a8a;
    font-size: var(--fb);
}
.oltp-wait-t {
    color: #bdbdbd;
    font-size: var(--fb);
    max-width: 80%;
}

/* blocks the original lacks: meter lines, intercom camera */
.oltp-kvs {
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: calc(var(--fb) * 0.6);
}
.oltp-kv {
    display: flex;
    justify-content: space-between;
    font-size: var(--fb);
}
.oltp-kv-l {
    color: var(--T2);
}
.oltp-kv-v {
    font-weight: 500;
}
.oltp-pad {
    padding: var(--pad) var(--pad) 0;
}
.oltp-ic {
    padding: var(--pad);
    gap: var(--gap);
}
.oltp-cam {
    flex: 1;
    min-height: 0;
    border-radius: var(--tr);
    background: #000;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.oltp-cam-t {
    font-size: var(--fb);
}
.oltp-ic-btns {
    display: flex;
    gap: var(--gap);
}
.oltp-ic-btns .oltp-btn {
    flex: 1;
    height: calc(var(--fb) * 2.4);
    border: 0;
    border-radius: var(--tr);
    background: var(--S);
    color: var(--T);
    font: inherit;
    font-size: var(--fb);
}

/* Where the page designer put the menu: the display draws its black bar in
   that cell instead of a tile (scr_main.c build_frame). */
#oltd .oltp-cell-menu,
.oltp-cell-menu {
    background: #000;
    border-radius: var(--tr, 8px);
}

/* The menu where the page designer put it: the bar in its cell instead of
   the strip at the edge (scr_main.c build_frame). */
#oltd .oltp-tabbar.is-placed,
.oltp-tabbar.is-placed {
    border-radius: var(--tr, 8px);
    background: #000;
}

/* A page that may scroll: everything below the first screen is there and the
   page scrolls to it, as the display does. The spacer gives it its height -
   the tiles themselves are placed absolutely and carry none. */
.oltp-placed.is-scroll {
    overflow-y: auto;
}
.oltp-placed-h {
    flex: none;
    width: 1px;
}
/* One screen at a time: the scrolling settles on an anchor, one per screen.
   Only these carry scroll-snap-align, so the tiles are never snap points. */
.oltp-placed.is-paged {
    scroll-snap-type: y mandatory;
}
.oltp-placed-snap {
    position: absolute;
    left: 0;
    width: 1px;
    height: 1px;
    scroll-snap-align: start;
    pointer-events: none;
}
