@import url("/assets/base.css");
/* Brand values are supplied from Stammdaten by applyBrand(). */
:root {
  --bg: #f6f7f3;
  --ink: #253c35;
  --muted: #7c8882;
  --line: #e5e9e2;
  --green: #275d4c;
  --lime: #e7efda;
  --white: #fff;
  --red: #b74b40;
}
.brand.custom-logo {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.brand.custom-logo img {
  width: auto;
  max-width: 200px;
  height: 65px;
  object-fit: contain;
  object-position: left;
}
.brand.custom-logo strong {
  font-size: 19px;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.template-grid .panel-body {
  padding: 20px;
}
.template-grid h2 {
  margin-bottom: 14px;
}
.template-sample {
  padding: 26px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.template-sample h3 {
  margin-top: 24px;
}
.template-decoration {
  position: absolute;
  right: 5px;
  top: 0;
  font-size: 100px;
  opacity: 0.12;
  pointer-events: none;
}
.room-picker {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
}
.room-picker summary {
  cursor: pointer;
  font-weight: 600;
}
.room-options {
  max-height: 240px;
  overflow-y: auto;
  margin: 14px 0;
}
.screen-workflow {
  margin: 16px 0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.6 "Segoe UI",
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.initial {
  padding: 15vh 12vw;
  font: 40px Georgia;
}
.initial span {
  display: block;
  font: 15px "Segoe UI";
  margin-top: 20px;
}
.shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 34px 21px;
  z-index: 20;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 9px 36px;
}
.brand img {
  width: 39px;
}
.brand strong {
  font: 23px/1.05 Georgia;
  letter-spacing: -0.8px;
}
.brand small {
  display: block;
  letter-spacing: 2.2px;
  font-size: 9px;
  margin-top: 8px;
  color: var(--muted);
  text-transform: uppercase;
}
.nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: #a0aaa3;
  padding: 15px 15px 8px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 15px;
  margin: 3px 0;
  border-radius: 7px;
  color: #728078;
  font-size: 13px;
  font-weight: 550;
  transition: 0.15s;
}
.nav-link:hover {
  background: #f5f7f2;
  color: var(--green);
}
.nav-link.active {
  background: #edf2e7;
  color: #285e49;
}
.nav-link.active:after {
  content: "";
  width: 5px;
  height: 5px;
  background: #61855c;
  border-radius: 50%;
  margin-left: auto;
}
.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.nav-bottom {
  margin-top: auto;
}
.system-note {
  margin: 20px 10px 12px;
  padding: 17px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #809081;
  font-size: 11px;
}
.system-note strong {
  display: block;
  color: #536e58;
  font-size: 12px;
  margin-bottom: 5px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #68906a;
  margin-right: 6px;
}
.user {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 17px 8px 0;
  border-top: 1px solid var(--line);
}
.avatar {
  height: 34px;
  width: 34px;
  border-radius: 50%;
  background: #f0e7db;
  color: #8f7056;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.user small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.user .icon-button {
  margin-left: auto;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 77px;
  background: #ffffffc9;
  border-bottom: 1px solid var(--line);
  padding: 0 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
  color: #8b948e;
}
.breadcrumb {
  display: flex;
  gap: 12px;
  align-items: center;
}
.breadcrumb strong {
  color: #4d6255;
  font-weight: 500;
}
.top-right {
  display: flex;
  gap: 23px;
  align-items: center;
}
.small-tag {
  border: 1px solid #e5e9de;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 10px;
  letter-spacing: 0.4px;
  background: #fbfcf8;
  color: #697c60;
}
.workspace {
  padding: 35px 43px 50px;
  max-width: 1650px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #8b977f;
  text-transform: uppercase;
  font-weight: 650;
  margin: 0 0 6px;
}
h1 {
  font:
    34px/1.2 Georgia,
    serif;
  font-weight: 400;
  letter-spacing: -1px;
  margin: 0 0 8px;
}
h2 {
  font:
    23px/1.3 Georgia,
    serif;
  font-weight: 400;
  margin: 0;
}
h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
p {
  margin: 0 0 12px;
}
.muted,
.subtext {
  color: var(--muted);
}
.subtext {
  font-size: 12px;
}
.button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 9px 15px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}
.button:hover {
  background: #f1f5ee;
  border-color: #bccdbd;
}
.button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.button.primary:hover {
  background: #174533;
}
.button.danger {
  color: var(--red);
}
.button .icon {
  height: 16px;
  width: 16px;
}
.icon-button {
  border: 0;
  background: none;
  padding: 6px;
  color: #7a8b7e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}
.icon-button:hover {
  background: #edf2e8;
  color: var(--green);
}
.toolbar {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.welcome {
  background: #e9eedf;
  min-height: 178px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 27px 32px;
  border: 1px solid #dfe6d4;
  border-radius: 9px;
  margin-bottom: 25px;
  overflow: hidden;
  position: relative;
}
.welcome-copy {
  position: relative;
  z-index: 1;
  max-width: 480px;
}
.welcome h2 {
  font-size: 29px;
  color: #34533b;
  margin-bottom: 11px;
  letter-spacing: -0.5px;
}
.welcome p {
  font-size: 12px;
  color: #71816a;
  max-width: 385px;
  line-height: 1.8;
  margin-bottom: 14px;
}
.welcome a {
  font-size: 12px;
  font-weight: 600;
  color: #3e603e;
  display: flex;
  gap: 8px;
  align-items: center;
}
.welcome-art {
  width: 232px;
  height: 136px;
  position: relative;
  flex-shrink: 0;
}
.arch {
  position: absolute;
  bottom: -45px;
  right: 38px;
  width: 120px;
  height: 180px;
  border: 1px solid #a9ba93;
  border-radius: 90px 90px 0 0;
  background: #d7e2c6;
}
.arch:before {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid #abbc95;
  border-radius: 80px 80px 0 0;
}
.mini-screen {
  position: absolute;
  width: 70px;
  height: 114px;
  left: 22px;
  top: 15px;
  background: #f9fbf4;
  border: 5px solid #436449;
  border-radius: 6px;
  box-shadow: 6px 8px 0 #99aa7c40;
  transform: rotate(-8deg);
  padding: 11px 6px;
}
.mini-screen b {
  font: 11px Georgia;
  color: #58734b;
}
.mini-screen span {
  height: 4px;
  background: #d4dfc5;
  display: block;
  margin: 8px 0;
}
.art-leaf {
  position: absolute;
  width: 40px;
  height: 80px;
  background: #b1c395;
  border-radius: 100% 0 100% 0;
  right: 13px;
  top: 43px;
  transform: rotate(20deg);
}
.art-sun {
  position: absolute;
  right: 3px;
  top: 0;
  width: 26px;
  height: 26px;
  border: 1px solid #a9ba93;
  border-radius: 50%;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 31px;
}
.stat {
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8b978b;
  font-size: 11px;
}
.stat-top .icon {
  width: 17px;
  height: 17px;
}
.stat-number {
  font-size: 29px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -1px;
  margin: 5px 0;
}
.stat-foot {
  font-size: 10px;
  color: #91a08b;
}
.stat-foot .dot {
  width: 5px;
  height: 5px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 17px;
}
.section-heading h2 {
  font-size: 23px;
}
.section-heading a {
  font-size: 11px;
  color: #718368;
  display: flex;
  gap: 7px;
  align-items: center;
}
.count {
  font: 11px "Segoe UI";
  background: #e9eee3;
  padding: 3px 8px;
  border-radius: 5px;
  margin-left: 8px;
  vertical-align: middle;
  color: #748568;
}
.screen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.screen-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.screen-stage {
  height: 197px;
  position: relative;
  background: #ecefe7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.screen-card:nth-child(2n) .screen-stage {
  background: #eaece5;
}
.stage-lines {
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px solid #d8ded1;
  border-radius: 50%;
  left: 50%;
  top: 20%;
  transform: translateX(-50%);
}
.stage-lines:before,
.stage-lines:after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid #d8ded1;
  border-radius: 50%;
}
.stage-lines:after {
  inset: 55px;
}
.stage-status {
  position: absolute;
  left: 17px;
  top: 14px;
  z-index: 2;
}
.badge {
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 4px;
  color: #59734f;
  background: #ecf3e5;
  border: 1px solid #dbe7d0;
  font-weight: 550;
}
.badge.offline {
  background: #f3f1ec;
  color: #918671;
  border-color: #e6e0d5;
}
.badge.draft {
  background: #f9f0df;
  color: #a48245;
  border-color: #efe2c5;
}
.badge.blue {
  background: #eaf0f7;
  border-color: #d9e5ee;
  color: #6787a1;
}
.badge .dot {
  margin: 0;
  width: 5px;
  height: 5px;
  background: currentColor;
}
.screen-device {
  position: relative;
  height: 169px;
  width: 98px;
  border: 5px solid #34443b;
  border-radius: 6px;
  background: #fafbf5;
  box-shadow: 8px 10px 15px #58624625;
  transform: rotate(-5deg);
  overflow: hidden;
}
.screen-card:nth-child(2n) .screen-device {
  transform: rotate(5deg);
}
.device-content {
  height: 100%;
  padding: 8px 7px;
  color: #526347;
}
.device-brand {
  font: 7px Georgia;
  padding-bottom: 10px;
  border-bottom: 1px solid #dfe6d4;
}
.device-title {
  font: 10px Georgia;
  margin: 10px 0 7px;
}
.device-room {
  padding: 5px 0;
  border-bottom: 1px solid #dfe6d4;
  font-size: 5px;
}
.device-room small {
  display: block;
  color: #99a18b;
  font-size: 4px;
}
.device-bottom {
  font-size: 4px;
  position: absolute;
  bottom: 8px;
}
.resolution-tag {
  position: absolute;
  right: 13px;
  bottom: 12px;
  font: 9px monospace;
  letter-spacing: 0.5px;
  color: #8b9582;
}
.screen-info {
  padding: 17px 20px 14px;
}
.screen-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}
.screen-title h3 {
  font-size: 14px;
}
.screen-location {
  font-size: 10px;
  color: #95a08f;
}
.screen-playlist {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin: 15px 0 11px;
  padding-bottom: 12px;
  font-size: 11px;
}
.screen-playlist span {
  color: #8c9985;
}
.screen-playlist strong {
  font-weight: 500;
}
.screen-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: #8d9a87;
}
.screen-footer a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #496c49;
  font-weight: 550;
}
.screen-footer .icon {
  width: 14px;
  height: 14px;
}
.two-col {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 23px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.panel-header {
  padding: 18px 21px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.panel-header h2 {
  font: 19px Georgia;
}
.panel-body {
  padding: 20px;
}
.room-row {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #edf0e9;
}
.room-row:last-child {
  border-bottom: 0;
}
.room-symbol {
  width: 33px;
  height: 33px;
  border: 1px solid #e4eadb;
  background: #f7f9f2;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #8b9c74;
}
.room-main {
  flex: 1;
  min-width: 0;
}
.room-main strong {
  font-size: 12px;
  font-weight: 550;
}
.room-main small {
  display: block;
  font-size: 10px;
  color: #939e8d;
}
.room-row .badge {
  font-size: 9px;
}
.activity {
  display: flex;
  gap: 12px;
  padding: 12px 0;
}
.activity-dot {
  height: 27px;
  width: 27px;
  background: #f0f4e9;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #91a178;
  flex-shrink: 0;
}
.activity-dot .icon {
  width: 13px;
}
.activity strong {
  font-size: 11px;
  font-weight: 500;
}
.activity small {
  font-size: 10px;
  display: block;
  color: #99a28f;
}
.footer-note {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #9ba591;
}
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  background: #f9faf6;
  color: #8c9784;
  font-weight: 550;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 13px 18px;
  white-space: nowrap;
}
td {
  padding: 17px 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
td .subtext {
  font-size: 10px;
}
td:last-child {
  white-space: nowrap;
}
.table-name {
  font-weight: 550;
}
.list-tools {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.search {
  max-width: 350px;
  width: 100%;
}
input,
select,
textarea {
  border: 1px solid #dfe5d8;
  border-radius: 5px;
  background: #fff;
  padding: 10px 12px;
  width: 100%;
  color: var(--ink);
  font-size: 13px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #8daa7c;
  outline-offset: 1px;
}
textarea {
  resize: vertical;
  min-height: 115px;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}
input[type="color"] {
  height: 41px;
  padding: 5px;
}
.empty {
  text-align: center;
  padding: 50px 25px;
  color: #8a987f;
}
.empty .icon {
  width: 35px;
  height: 35px;
  display: block;
  margin: 0 auto 15px;
}
.empty strong {
  color: #647559;
  display: block;
  margin-bottom: 7px;
}
.empty p {
  font-size: 12px;
}
.playlist-card {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 18px;
}
.playlist-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.playlist-top h2 {
  margin-bottom: 6px;
}
.sequence {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sequence-item {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fafbf8;
  padding: 12px;
  border-radius: 6px;
}
.sequence-item[draggable="true"] {
  cursor: grab;
}
.sequence-item.dragging {
  opacity: 0.4;
}
.grip {
  color: #a2ae97;
}
.sequence-number {
  font-size: 10px;
  color: #a0ac96;
  min-width: 18px;
}
.sequence-icon {
  background: #edf2e5;
  color: #859872;
  width: 34px;
  height: 40px;
  border-radius: 4px;
  display: grid;
  place-items: center;
}
.sequence-copy {
  flex: 1;
}
.sequence-copy strong {
  font-size: 12px;
  font-weight: 550;
}
.sequence-copy small {
  display: block;
  color: #98a28e;
  font-size: 10px;
}
.sequence-actions {
  display: flex;
  gap: 2px;
  align-items: center;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.media-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.media-preview {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-conic-gradient(#edf0e8 0% 25%, #f9faf7 0% 50%) 50%/16px
    16px;
}
.media-preview img,
.media-preview video {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.media-card .panel-body {
  padding: 15px;
}
.media-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.media-card small {
  font-size: 10px;
  color: #94a087;
}
.media-uses {
  font-size: 10px;
  margin-top: 10px;
  color: #718168;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.settings-grid .panel {
  padding: 24px;
}
.settings-grid h2 {
  font-size: 21px;
  margin-bottom: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 17px;
}
.field > span,
.field > label {
  font-size: 11px;
  font-weight: 550;
  color: #67795f;
}
.field small {
  font-size: 10px;
  color: #8d9b83;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.check-field {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  margin: 10px 0;
}
.notice {
  padding: 13px 16px;
  border: 1px solid #e1e8d5;
  border-radius: 6px;
  font-size: 11px;
  background: #f2f6eb;
  color: #748467;
  margin-bottom: 20px;
}
.error {
  color: #a6483c;
  background: #fcf0eb;
  border: 1px solid #f0d8cd;
  padding: 11px 14px;
  border-radius: 5px;
  font-size: 12px;
  margin: 12px 0;
}
.success {
  color: #45633f;
  background: #edf4e5;
  padding: 12px;
  border-radius: 5px;
}
.detail-json {
  max-width: 700px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
}
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-art {
  padding: 8vw;
  background: #e7eedd;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-art h1 {
  font: 60px/1.12 Georgia;
  letter-spacing: -2px;
  max-width: 430px;
  margin-top: 40px;
}
.auth-art p {
  color: #7a8d6e;
  max-width: 350px;
  margin-top: 20px;
}
.auth-art .brand {
  padding: 0;
  position: absolute;
  top: 50px;
  left: 8vw;
}
.auth-art .arch {
  height: 330px;
  width: 220px;
  right: -65px;
  bottom: -40px;
  border-radius: 160px 160px 0 0;
}
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-form {
  max-width: 350px;
  width: 100%;
}
.auth-form h2 {
  font-size: 31px;
  margin-bottom: 10px;
}
.auth-form p {
  font-size: 12px;
  color: #8a9880;
  margin-bottom: 30px;
}
.auth-form .button.primary {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
}
.auth-form .text-button {
  display: block;
  margin: 15px auto;
  color: #7c8e6e;
  background: none;
  border: 0;
  font-size: 12px;
}
.auth-foot {
  margin-top: 45px;
  color: #9ba58f;
  font-size: 10px;
  text-align: center;
}
dialog {
  border: 1px solid #dce3d3;
  border-radius: 12px;
  padding: 0;
  max-width: 710px;
  width: calc(100% - 30px);
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 25px 100px #10261930;
}
dialog::backdrop {
  background: #18251c69;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 28px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  font-size: 25px;
}
.dialog-body {
  padding: 23px 28px;
  max-height: calc(90vh - 78px);
  overflow: auto;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 8px;
}
.crop-preview {
  max-height: 230px;
  max-width: 100%;
  display: block;
  margin: 12px auto;
  border: 1px solid var(--line);
}
.preview-dialog {
  max-width: 540px;
}
.preview-frame {
  width: 100%;
  aspect-ratio: 9/16;
  border: 0;
  background: #f5f7ee;
  display: block;
}
.preview-dialog .dialog-body {
  padding: 0;
  max-height: none;
}
.preview-dialog {
  max-height: 94vh;
  width: min(440px, 48vh);
}
.preview-dialog .dialog-head {
  padding: 10px 15px;
}
.preview-dialog .dialog-head h2 {
  font: 15px "Segoe UI";
}
#toast {
  position: fixed;
  right: 28px;
  bottom: 25px;
  background: #244d3b;
  color: #fff;
  padding: 13px 20px;
  box-shadow: 0 6px 22px #17312322;
  border-radius: 7px;
  font-size: 12px;
  z-index: 100;
  display: none;
  max-width: 400px;
}
#toast.show {
  display: block;
}
#toast.bad {
  background: #9b493c;
}
.mobile-toggle {
  display: none;
}
.form-help {
  font-size: 11px;
  color: #8c9a82;
  margin-bottom: 20px;
}
.schedule-field {
  padding: 15px;
  background: #f6f8f1;
  border-radius: 6px;
}
.time-label {
  font-size: 10px;
  color: #9aa38e;
}
.room-drag-row[draggable="true"] {
  cursor: grab;
}
.room-drag-row.dragging {
  opacity: 0.4;
}
@media (min-width: 1600px) {
  .workspace {
    padding-top: 45px;
  }
  .screen-stage {
    height: 240px;
  }
  .screen-device {
    height: 201px;
    width: 116px;
  }
  .device-title {
    font-size: 13px;
  }
  .device-room {
    font-size: 7px;
    padding: 8px 0;
  }
  .device-room small {
    font-size: 5px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 210px;
    padding: 28px 14px;
  }
  .shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .workspace {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .brand strong {
    font-size: 21px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .screen-playlist {
    font-size: 10px;
  }
  .welcome-art {
    width: 180px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    width: 185px;
    padding: 25px 10px;
  }
  .shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .brand {
    gap: 8px;
    padding-left: 5px;
  }
  .brand img {
    width: 31px;
  }
  .brand strong {
    font-size: 19px;
  }
  .nav-link {
    font-size: 12px;
    gap: 9px;
    padding: 10px;
  }
  .workspace {
    padding: 25px 20px;
  }
  .topbar {
    padding: 0 20px;
  }
  .top-right .date {
    display: none;
  }
  .welcome-art {
    display: none;
  }
  .welcome {
    padding: 25px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .screen-grid {
    grid-template-columns: 1fr;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  h1 {
    font-size: 29px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .playlist-top {
    flex-direction: column;
  }
  .sequence-actions .icon-button {
    padding: 4px;
  }
  .sequence-copy {
    min-width: 0;
  }
  .sequence-copy strong {
    overflow-wrap: anywhere;
  }
  .sequence-item {
    padding: 9px;
    gap: 6px;
  }
  .auth-art {
    padding: 6vw;
  }
  .auth-art h1 {
    font-size: 45px;
  }
}
@media (max-width: 600px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 235px;
    box-shadow: 8px 0 30px #20342220;
  }
  .shell.menu-open .sidebar {
    transform: translateX(0);
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .topbar {
    height: 62px;
  }
  .top-right {
    gap: 10px;
  }
  .workspace {
    padding: 22px 17px;
  }
  .page-heading {
    gap: 14px;
    flex-wrap: wrap;
  }
  .page-heading .button {
    padding: 8px 11px;
  }
  .welcome h2 {
    font-size: 25px;
  }
  .welcome {
    min-height: 160px;
  }
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .dialog-body {
    padding: 20px;
  }
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-art {
    display: none;
  }
  .auth-main {
    padding: 30px;
  }
  .toolbar {
    gap: 5px;
  }
  .sequence-icon {
    display: none;
  }
  .footer-note span:last-child {
    display: none;
  }
  .settings-grid .panel {
    padding: 20px;
  }
}

/* Brand palette applies throughout administration and login. */
.nav-link.active,
.icon-button:hover,
.button:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.button.primary {
  color: var(--brand-contrast);
}
.button.primary:hover {
  background: var(--green);
  filter: brightness(0.94);
  color: var(--brand-contrast);
}
.welcome,
.auth-art {
  background: var(--brand-soft);
  border-color: var(--brand-line);
}
.welcome h2,
.welcome a,
.auth-art h1 {
  color: var(--brand-dark);
}
.welcome p,
.auth-art > p {
  color: var(--brand-dark);
}
.arch,
.art-leaf {
  border-color: var(--brand-line);
}
.art-sun {
  background: var(--brand-line);
}
.mini-screen {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
}
