:root {
    font-family: system-ui, -apple-system, sans-serif;
    color: #102a43;
    background: #f4f7fa;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; padding: .55rem; border: 1px solid #b8c4ce; border-radius: .35rem; }
button { background: #126e82; color: #fff; border: 0; cursor: pointer; }
a { color: #075a70; }
.admin, .login { max-width: 1100px; margin: 2rem auto; padding: 0 1rem; }
.admin { display: flex; flex-direction: column; }
.admin header { display: flex; justify-content: space-between; align-items: center; }
.admin .admin-header { display: grid; grid-template-columns: minmax(10rem, 1fr) auto minmax(10rem, 1fr); align-items: center; gap: 1rem; min-height: 4.5rem; padding: .2rem 0 .8rem; }
.admin-header h1 { margin: 0; color: #183652; font-size: 1.45rem; letter-spacing: -.025em; }
.admin-logo { display: inline-flex; align-items: center; width: fit-content; }
.admin-logo img { display: block; width: min(12rem, 100%); height: auto; }
.admin-logout, .admin-back { justify-self: end; color: #075a70; font-size: .88rem; font-weight: 700; text-decoration: none; }
.admin-logout:hover, .admin-back:hover { text-decoration: underline; }
.admin .subpage-header { margin-bottom: .25rem; }
.admin .displays-section { order: 1; }
.admin .floor-plans-section { order: 2; }
.admin .information-pages-section { order: 3; }
.admin .replacement-logos-section { order: 4; }
.admin .design-section { order: 5; }
.admin .rooms-section { order: 6; }
.admin .foyer-section { order: 7; }
.admin .simulation-section { order: 8; }
.admin .admins-section { order: 9; }
.admin .directions-header { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .35rem; }
.admin .directions-header h1 { margin: 0; }
.admin > .module, .admin section { background: #fff; border-radius: .6rem; margin: 1.5rem 0; padding: 1.25rem; box-shadow: 0 1px 3px #0001; }
.admin > .module { padding: 0; }
.flash-message { margin: .25rem 0 1rem; padding: .85rem 1rem; border: 1px solid; border-radius: .5rem; box-shadow: 0 1px 2px #102a4212; }
.flash-success { color: #176b3a; background: #e9f7ee; border-color: #9ad9b2; }
.flash-warning { color: #745100; background: #fff6dc; border-color: #ebcf7d; }
.flash-error { color: #a42020; background: #fceaea; border-color: #e6a9a9; }
.module-summary { display: flex; align-items: center; gap: .75rem; padding: 1.25rem; cursor: pointer; list-style: none; }
.module-summary::-webkit-details-marker { display: none; }
.module-heading { color: #102a43; font-size: 1.5rem; font-weight: 700; letter-spacing: -.025em; }
.module-summary > :first-child:not(.module-heading) { min-width: 0; }
.module-meta { color: #718397; font-size: .82rem; }
.module-meta { margin-left: auto; }
.module-toggle { width: .7rem; height: .7rem; flex: 0 0 auto; margin-left: auto; border-right: 2px solid #577087; border-bottom: 2px solid #577087; transform: rotate(45deg) translateY(-.15rem); transition: transform .15s ease; }
.module-meta + .module-toggle { margin-left: .75rem; }
.module[open] .module-toggle { transform: rotate(225deg) translateY(-.15rem); }
.module-content { padding: 0 1.25rem 1.25rem; }
.module-tools { display: flex; justify-content: flex-end; margin: 0 0 1.25rem; }
.module-tools form { margin: 0; }
.module-summary:focus-visible { outline: 3px solid #126e82; outline-offset: 3px; border-radius: .45rem; }
.row { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; border-top: 1px solid #dde5eb; padding: .7rem 0; }
.row form { margin: 0; }
.profile-rename { display: flex; gap: .4rem; align-items: center; }
.profile-rename input { min-width: 12rem; }
.settings-section > .module-content h2, .subpage-section h2 { margin: 0 0 1rem; padding-bottom: .85rem; border-bottom: 1px solid #dce6ee; }
.settings-form { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; }
.settings-form label { display: grid; gap: .3rem; color: #29435d; font-size: .88rem; }
.settings-form label span { color: #718397; font-size: .76rem; }
.settings-form input[type="date"] { min-width: 10.5rem; }
.settings-form input[type="number"] { width: 5.1rem; }
.settings-form input[type="color"] { width: 3.25rem; height: 2.45rem; padding: .2rem; }
.simulation-form { align-items: start; }
.simulation-devices { display: grid; gap: .4rem; min-width: min(100%, 16rem); margin: 0; padding: .55rem .7rem .65rem; border: 1px solid #b8c4ce; border-radius: .35rem; }
.simulation-devices legend { padding: 0 .2rem; color: #29435d; font-size: .88rem; }
.simulation-device { display: flex !important; grid-template-columns: none !important; align-items: center; gap: .45rem !important; color: #29435d; cursor: pointer; }
.simulation-device input { width: 1rem; height: 1rem; margin: 0; }
.simulation-device span { display: grid; gap: .05rem; }
.simulation-device small { color: #718397; font-size: .76rem; }
.checkbox-setting { display: inline-flex !important; grid-template-columns: none !important; align-items: center; gap: .45rem !important; min-height: 2.45rem; cursor: pointer; }
.checkbox-setting input { width: 1rem; height: 1rem; margin: 0; }
.settings-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.design-subsection + .design-subsection { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid #dce6ee; }
.design-subsection h3 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .85rem; color: #183652; font-size: 1.05rem; }
.secondary-action { border: 1px solid #b9c9d5; background: #fff; color: #1c5670; }
.secondary-action:hover { background: #eef7f8; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding-bottom: .85rem; border-bottom: 1px solid #dce6ee; }
.section-heading h2 { margin: 0; }
.section-heading > span { color: #718397; font-size: .82rem; }
.upload-form, .admin-create-form { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; }
.upload-form label { display: grid; gap: .3rem; color: #29435d; font-size: .88rem; }
.upload-form input[type="file"] { max-width: 22rem; padding: .32rem; }
.floor-plans-section .hint { max-width: 48rem; }
.floor-plan-list { margin-top: 1rem; border-top: 1px solid #e1e9ef; }
.floor-plan-row { display: flex; align-items: center; gap: .85rem; min-height: 6.3rem; padding: .75rem 0; border-top: 1px solid #e1e9ef; }
.floor-plan-list > .floor-plan-row:first-child { border-top: 0; }
.floor-plan-row > span { display: grid; gap: .18rem; min-width: 0; }
.floor-plan-row small { color: #718397; }
.floor-plan-row form { margin-left: .35rem; }
.admin-create-form { padding-bottom: 1rem; border-bottom: 1px solid #e1e9ef; }
.admin-create-form input { min-width: 12.2rem; }
.admin-list { display: grid; }
.admin-row { display: grid; grid-template-columns: minmax(12rem, 20rem) 6rem auto; justify-content: start; gap: 1rem; align-items: center; min-height: 4.2rem; border-bottom: 1px solid #e1e9ef; }
.admin-row:last-child { border-bottom: 0; }
.admin-actions { display: flex; gap: .45rem; }
.danger-action { color: #a42020; }
.subpage-section { max-width: 48rem; }
.displays-section { padding: 0 !important; }
.displays-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; padding-bottom: .85rem; border-bottom: 1px solid #dce6ee; }
.displays-heading h2 { margin: 0; }
.displays-heading .hint { margin: .25rem 0 0; }
.display-create { position: relative; }
.display-create summary { list-style: none; padding: .6rem .8rem; border-radius: .35rem; background: #126e82; color: #fff; font-weight: 700; cursor: pointer; white-space: nowrap; }
.display-create summary::-webkit-details-marker, .display-actions summary::-webkit-details-marker { display: none; }
.display-create[open] form { position: absolute; z-index: 3; top: calc(100% + .5rem); right: 0; display: flex; flex-wrap: wrap; gap: .55rem; width: min(34rem, 86vw); padding: .9rem; border: 1px solid #d7e2ea; border-radius: .5rem; background: #fff; box-shadow: 0 .8rem 1.8rem #102a4322; }
.displays-list { overflow: visible; border: 1px solid #d9e3eb; border-radius: .55rem; background: #fff; }
.displays-list-head, .display-row { display: grid; grid-template-columns: minmax(13rem, 1.7fr) repeat(5, minmax(5.5rem, .75fr)) 1.75rem; gap: 1rem; align-items: center; }
.displays-list-head { min-height: 2.65rem; padding: 0 1rem; border-radius: .55rem .55rem 0 0; background: #edf3f7; color: #577087; font-size: .69rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.display-row { position: relative; min-height: 4.65rem; padding: .65rem 1rem; border-top: 1px solid #e1e9ef; }
.display-row:hover { background: #f9fcfd; }
.display-identity strong { display: block; font-size: 1rem; }
.display-identity > span { display: flex; align-items: center; gap: .45rem; margin-top: .25rem; color: #698095; font-size: .82rem; }
.display-link { display: inline-flex; align-items: center; gap: .2rem; color: #067087; font-weight: 700; text-decoration: none; }
.display-link:hover { text-decoration: underline; }
.display-link svg { width: .82rem; height: .82rem; fill: none; stroke: currentColor; stroke-width: 2; }
.display-status { display: inline-flex; align-items: center; gap: .45rem; color: #29435d; font-size: .88rem; white-space: nowrap; }
.status-dot { width: .56rem; height: .56rem; flex: 0 0 .56rem; border-radius: 50%; background: #32a874; box-shadow: 0 0 0 .18rem #32a87418; }
.status-dot.off { background: #d35659; box-shadow: 0 0 0 .18rem #d3565918; }
.display-status.unavailable { color: #8496a5; }
.display-actions { position: relative; justify-self: end; }
.display-actions summary { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: .3rem; color: #61798c; font-size: 1.35rem; line-height: 1; cursor: pointer; }
.display-actions summary:hover, .display-actions[open] summary { background: #e8f5f7; color: #067087; }
.display-menu { position: absolute; z-index: 2; top: 2rem; right: 0; display: grid; gap: .15rem; width: 15rem; padding: .4rem; border: 1px solid #d7e2ea; border-radius: .5rem; background: #fff; box-shadow: 0 .8rem 1.8rem #102a4322; }
.display-menu a, .display-menu .menu-action { display: block; width: 100%; padding: .45rem .55rem; border: 0; border-radius: .28rem; background: transparent; color: #16455f; font-size: .86rem; text-align: left; text-decoration: none; }
.display-menu a:hover, .display-menu .menu-action:hover { background: #eef7f8; color: #067087; }
.display-menu form { margin: 0; }
.display-menu .profile-rename { display: grid; gap: .35rem; padding: .35rem .45rem .55rem; border-bottom: 1px solid #e1e9ef; }
.display-menu .profile-rename label { display: grid; gap: .2rem; color: #526b7a; font-size: .74rem; }
.display-menu .profile-rename input { min-width: 0; width: 100%; padding: .38rem; }
.display-menu .profile-rename button { padding: .38rem; font-size: .8rem; }
.display-menu .danger { color: #a42020; }
.rooms-section { padding: 0 !important; }
.rooms-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: .85rem; border-bottom: 1px solid #dce6ee; }
.rooms-heading h2 { margin: 0; }
.rooms-heading .hint { margin: .25rem 0 0; }
.rooms-intro { margin: 1rem 0 1.2rem; }
.rooms-editor { overflow: hidden; border: 1px solid #d9e3eb; border-radius: .55rem; background: #fff; }
.rooms-editor-head, .room-editor-row { display: grid; grid-template-columns: minmax(15rem, 1fr) minmax(7rem, .33fr) minmax(10rem, .45fr); gap: 1rem; align-items: center; }
.rooms-editor-head { min-height: 2.65rem; padding: 0 1rem; background: #edf3f7; color: #577087; font-size: .69rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.room-editor-row { min-height: 4.8rem; padding: .65rem 1rem; border-top: 1px solid #e1e9ef; }
.room-editor-row:hover { background: #f9fcfd; }
.room-name-field { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.room-name-field input { width: min(100%, 18rem); min-width: 0; }
.room-name-field code { min-width: 0; overflow: hidden; color: #718397; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.room-priority-field input { width: 5.25rem; text-align: center; }
.room-active { display: inline-flex; align-items: center; gap: .55rem; width: fit-content; cursor: pointer; color: #29435d; font-size: .88rem; }
.room-active input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.room-toggle { position: relative; width: 2rem; height: 1.15rem; border-radius: 1rem; background: #b7c5d0; transition: background .15s ease; }
.room-toggle::after { content: ''; position: absolute; top: .18rem; left: .18rem; width: .79rem; height: .79rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #102a4333; transition: transform .15s ease; }
.room-active input:checked + .room-toggle { background: #16856d; }
.room-active input:checked + .room-toggle::after { transform: translateX(.85rem); }
.room-active input:focus-visible + .room-toggle { outline: 3px solid #5bc0cc; outline-offset: 2px; }
.rooms-editor-footer { display: flex; justify-content: flex-end; padding: .9rem 1rem; border-top: 1px solid #e1e9ef; background: #f7fafc; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.foyer-settings { display: flex; align-items: end; }
.room-save { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding-top: .7rem; }
.save-feedback { color: #176b3a; font-weight: 700; }
.direction-row { justify-content: space-between; }
.direction-row > label { min-width: min(100%, 18rem); }
.hint { color: #526b7a; }
.error { color: #a42020; }
.success { color: #176b3a; }
.warning { color: #8a6400; }
.information-page-form { display: grid; gap: 1rem; max-width: 38rem; }
.information-page-form > label:not(.room-active) { display: grid; gap: .3rem; color: #29435d; font-size: .88rem; }
.information-page-form input[type="url"] { width: 100%; }
.information-page-create-form { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; }
.information-page-create-form label { display: grid; flex: 1 1 15rem; gap: .3rem; color: #29435d; font-size: .88rem; }
.information-page-list { margin-top: 1rem; border-top: 1px solid #e1e9ef; }
.information-page-row { display: flex; align-items: center; justify-content: space-between; gap: .85rem; min-height: 4.5rem; padding: .75rem 0; border-top: 1px solid #e1e9ef; }
.information-page-list > .information-page-row:first-child { border-top: 0; }
.information-page-row > span { display: grid; min-width: 0; gap: .18rem; }
.information-page-row small { overflow: hidden; color: #718397; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.information-page-mode { color: #526b7a; font-style: normal; }
.information-page-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: .5rem; }
.information-page-link { display: inline-flex; margin-left: .25rem; color: #067087; vertical-align: text-bottom; }
.information-page-link:hover { color: #034e60; }
.information-page-link svg { width: .85rem; height: .85rem; fill: none; stroke: currentColor; stroke-width: 2; }
.floor-plan-row { align-items: flex-start; }
.floor-plan-preview { width: 9rem; height: 6rem; object-fit: contain; border: 1px solid #b8c4ce; border-radius: .35rem; background: #f4f7fa; }
.replacement-logo-list { margin-top: 1rem; border-top: 1px solid #e1e9ef; }
.replacement-logo-row { display: flex; align-items: center; gap: .85rem; min-height: 5.6rem; padding: .75rem 0; border-top: 1px solid #e1e9ef; }
.replacement-logo-list > .replacement-logo-row:first-child { border-top: 0; }
.replacement-logo-row > span { display: grid; min-width: 0; gap: .18rem; }
.replacement-logo-row small { color: #718397; }
.replacement-logo-row form { margin-left: auto; }
.replacement-logo-preview { width: 9rem; height: 4.5rem; object-fit: contain; border: 1px solid #b8c4ce; border-radius: .35rem; background: #f4f7fa; }
.login { max-width: 380px; }
.login form, .login label { display: grid; gap: .5rem; margin: .8rem 0; }

.display { min-height: 100vh; padding: clamp(1rem, 3vw, 4rem); background: linear-gradient(130deg, #072b3b, #0e596b); color: var(--display-text-color, #fff); }
.display.theme-light { background: #f4f7fa; color: var(--display-text-color, #102a43); }
.display-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); align-items: baseline; gap: 1rem; font-size: clamp(1.2rem, 2vw, 2rem); margin-bottom: clamp(1.5rem, 2vw, 2.5rem); }
.display-logo { display: block; width: min(100%, clamp(9rem, 18vw, 20rem)); max-height: clamp(2.25rem, 5vw, 4.5rem); object-fit: contain; object-position: left center; }
.display-header h1 { margin: 0; min-width: 0; font: inherit; font-size: 1.75em; font-weight: 700; text-align: center; overflow-wrap: anywhere; }
.display-header time { justify-self: end; white-space: nowrap; }
.connection { font-size: .9rem; color: #fde68a; }
.rooms { display: grid; gap: clamp(1rem, 2vw, 2rem); grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 80vh; }
.room { max-width: 900px; margin: auto; }
.room .rooms { grid-template-columns: 1fr; min-height: 70vh; }
.rooms.information-page { display: block; min-height: 80vh; }
.room .rooms.information-page { min-height: 70vh; }
.information-frame { display: block; width: 100%; height: 100%; min-height: 70vh; border: 0; border-radius: 1rem; background: #fff; }
.information-image { display: block; width: 100%; height: 100%; min-height: 70vh; border-radius: 1rem; object-fit: contain; background: #fff; }
.room-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.5rem, 4vw, 4rem); border-radius: 1rem; background: #ffffff12; border: 1px solid #ffffff4a; min-height: 30vh; }
.theme-light .room-card { background: #fff; border-color: #d9e3eb; box-shadow: 0 1px 3px #0001; }
.room-card h1 { font-size: clamp(1.6rem, 3.2vw, 3.4rem); margin: 0 0 1rem; overflow-wrap: anywhere; }
.room-heading { display: flex; align-items: flex-start; gap: clamp(.45rem, 1vw, 1rem); }
.room-heading h1 { flex: 1 1 auto; min-width: 0; }
.room-heading .room-name, .room-name-style-preview { display: inline-block; flex: 0 1 auto; width: fit-content; padding: .12em .38em .16em; border-radius: .16em; background: var(--room-name-background-color, #ff0000); color: var(--room-name-text-color, #fff); font-weight: var(--room-name-font-weight, 400); }
.company-logo-slot { margin: .2rem 0 1.25rem; }
.company-logo { display: block; max-width: 100%; object-fit: contain; object-position: left center; }
.company-logo.landscape { width: min(var(--company-logo-landscape-width, 500px), 100%); height: auto; }
.company-logo.portrait { width: auto; height: var(--company-logo-portrait-height, 500px); }
.room-name-style-preview { font-size: .82rem; }
.display-text-color-preview { font-size: .82rem; font-weight: 400; color: var(--display-text-color, #102a43); }
.direction-icon-slot:empty { display: none; }
.direction-icon { display: block; flex: 0 0 auto; width: clamp(2.5rem, 5vw, 5rem); height: clamp(2.5rem, 5vw, 5rem); fill: currentColor; filter: drop-shadow(0 .12rem .12rem #0007); }
.theme-light .direction-icon { filter: none; }
.direction-arrow { transform: rotate(var(--direction-angle)); transform-origin: center; }
.direction-here { fill: none; stroke: currentColor; stroke-width: 10; stroke-linecap: round; }
.room .room-heading { flex-direction: column; gap: 1rem; }
.room .direction-icon { width: clamp(3.5rem, 8.4vw, 7rem); height: clamp(3.5rem, 8.4vw, 7rem); }
.floor-plan-image { display: block; min-width: 0; min-height: 0; width: 100%; flex: 1 1 auto; object-fit: contain; object-position: center; border-radius: .4rem; background: #fff; }
.state { font-weight: 700; font-size: clamp(2rem, 5vw, 5rem); margin: 0; overflow-wrap: anywhere; }
.time { font-size: clamp(1.2rem, 2.5vw, 2.4rem); margin: .6rem 0; }
.following { font-size: clamp(1rem, 1.8vw, 1.7rem); margin: .6rem 0 0; opacity: .85; }
.unavailable { color: inherit; }
.theme-light .connection, .theme-light .unavailable { color: inherit; }
.loading { font-size: 1.4rem; }

.foyer { height: 100vh; display: flex; flex-direction: column; }
.foyer .rooms { flex: 1; min-height: 0; grid-template-rows: repeat(var(--foyer-rows, 1), minmax(0, 1fr)); }
.foyer .rooms.information-page { flex: 1; min-height: 0; }
.foyer .information-frame { min-height: 0; }
.foyer .information-image { min-height: 0; }
.foyer .room-card { min-height: 0; justify-content: flex-start; overflow: hidden; padding: clamp(.75rem, calc(4vw * var(--foyer-font-scale, 1) * var(--card-content-scale, 1)), 4rem); }
.foyer .room-card h1 { font-size: clamp(.9rem, calc(3.2vw * var(--foyer-font-scale, 1) * var(--card-content-scale, 1)), 3.4rem); }
.foyer .direction-icon { width: clamp(1.6rem, calc(4vw * var(--foyer-font-scale, 1) * var(--card-content-scale, 1)), 4rem); height: clamp(1.6rem, calc(4vw * var(--foyer-font-scale, 1) * var(--card-content-scale, 1)), 4rem); }
.foyer .state { font-size: clamp(1.1rem, calc(5vw * var(--foyer-font-scale, 1) * var(--card-content-scale, 1)), 5rem); }
.foyer .time { font-size: clamp(.85rem, calc(2.5vw * var(--foyer-font-scale, 1) * var(--card-content-scale, 1)), 2.4rem); }
.foyer .following { font-size: clamp(.75rem, calc(1.8vw * var(--foyer-font-scale, 1) * var(--card-content-scale, 1)), 1.7rem); }
.foyer .room-card.past .state, .foyer .room-card.past .time { color: var(--recent-booking-color, #aeb9c2); }

.foyer .room-card.floor-plan-card {
    padding: clamp(.15rem, calc(.45vw * var(--foyer-font-scale, 1)), .45rem);
    background: #fff;
    border-color: #fff;
    color: var(--display-text-color, #102a43);
}

.foyer .floor-plan-card h1 {
    display: none;
    margin: 0 0 .35rem;
}

.foyer .floor-plan-card .floor-plan-image {
    height: 0;
    align-self: stretch;
}

@media (max-width: 700px) {
    .rooms { grid-template-columns: 1fr; }
    .foyer { height: auto; min-height: 100vh; }
    .foyer .rooms { grid-template-columns: 1fr; grid-template-rows: none; min-height: 80vh; }
    .foyer .room-card { min-height: 18vh; padding: clamp(1.5rem, 4vw, 4rem); }
    .foyer .room-card h1 { font-size: clamp(1.6rem, 3.2vw, 3.4rem); }
    .foyer .state { font-size: clamp(2rem, 5vw, 5rem); }
    .foyer .time { font-size: clamp(1.2rem, 2.5vw, 2.4rem); }
    .foyer .following { font-size: clamp(1rem, 1.8vw, 1.7rem); }
    .admin { margin-top: 1rem; }
    .admin .admin-header { grid-template-columns: 1fr auto; min-height: 3.7rem; }
    .admin-header h1 { grid-column: 1 / -1; grid-row: 1; justify-self: center; font-size: 1.2rem; }
    .admin-logo { grid-column: 1; grid-row: 1; }
    .admin-logo img { width: 7.6rem; }
    .admin-logout, .admin-back { grid-column: 2; grid-row: 1; font-size: .78rem; }
    .settings-form, .upload-form, .admin-create-form { align-items: stretch; }
    .settings-form label, .upload-form label, .admin-create-form label { flex: 1 1 100%; }
    .settings-form input[type="date"], .settings-form input[type="number"], .settings-form input[type="color"], .upload-form input[type="file"], .admin-create-form input { width: 100%; max-width: none; }
    .settings-actions { width: 100%; }
    .settings-actions button, .upload-form button, .admin-create-form button { flex: 1 1 auto; }
    .floor-plan-row { align-items: flex-start; flex-wrap: wrap; }
    .floor-plan-row form { margin-left: 0; }
    .replacement-logo-row { align-items: flex-start; flex-wrap: wrap; }
    .replacement-logo-row form { margin-left: 0; }
    .admin-row { grid-template-columns: 1fr auto; gap: .45rem; padding: .75rem 0; }
    .admin-row .display-status { grid-column: 1; }
    .admin-actions { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
    .admin-actions button { padding: .45rem; }
    .displays-heading { align-items: center; }
    .displays-list-head { display: none; }
    .display-row { grid-template-columns: 1fr auto; gap: .4rem; padding: .8rem 1rem; }
    .display-row > :not(.display-identity):not(.display-actions) { grid-column: 1; }
    .display-actions { grid-column: 2; grid-row: 1; }
    .display-status::before { content: attr(data-label); width: 6.7rem; color: #698095; font-size: .76rem; }
    .rooms-heading { align-items: center; }
    .rooms-editor-head { display: none; }
    .room-editor-row { grid-template-columns: 1fr auto; gap: .55rem; padding: .8rem 1rem; }
    .room-name-field { grid-column: 1 / -1; }
    .room-name-field input { flex: 1 1 auto; }
    .room-priority-field::before { content: 'Priorität'; margin-right: .5rem; color: #698095; font-size: .76rem; }
    .room-active { justify-self: end; }
    .rooms-editor-footer { justify-content: stretch; }
    .rooms-editor-footer button { width: 100%; }
}
