:root {
  --bg: #f5f7fa;
  --surface: #fff;
  --surface-2: #f8fafc;
  --text: #152233;
  --muted: #657386;
  --line: #e1e7ee;
  --primary: #173f73;
  --primary-dark: #102e55;
  --primary-soft: #eaf0f7;
  --danger: #a33737;
  --danger-soft: #f8eaea;
  --success: #16714a;
  --success-soft: #e8f5ee;
  --night: #07101d;
  --night-2: #0d1928;
  --night-3: #132237;
  --night-line: #243751;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(25, 43, 70, .06)
}

* {
  box-sizing: border-box
}

html {
  font-size: 16px
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg)
}

body {
  line-height: 1.45
}

a {
  color: var(--primary);
  text-decoration: none
}

button,
input,
select,
textarea {
  font: inherit
}

button:disabled {
  opacity: .45;
  cursor: not-allowed
}

.container {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 50px
}

.page-stack>*+* {
  margin-top: 20px
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow)
}

.eyebrow {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  color: #627995
}

.muted {
  color: var(--muted)
}

h1,
h2,
h3,
p {
  margin-top: 0
}

h1 {
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 8px;
}

h2 {
  font-size: 19px;
  margin-bottom: 8px
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px
}

.page-heading p {
  margin: 0;
  color: var(--muted)
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 70px;
  padding: 0 max(24px, calc((100vw - 1240px)/2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px)
}

.app-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--text)
}

.app-brand strong,
.app-brand small {
  display: block
}

.app-brand strong {
  font-size: 15px
}

.app-brand small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.brand-mark.large {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 15px
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 5px
}

.app-nav>a {
  padding: 9px 11px;
  border-radius: 9px;
  color: #4d5d70;
  font-size: 14px;
  font-weight: 650
}

.app-nav>a:hover {
  background: var(--primary-soft);
  color: var(--primary)
}

.app-nav form {
  margin-left: 5px
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 22px;
  color: var(--text)
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border: 1px solid var(--primary);
  border-radius: 10px;
  padding: 9px 15px;
  background: var(--primary);
  color: #fff;
  font-weight: 750;
  cursor: pointer
}

.btn:hover {
  background: var(--primary-dark)
}

.btn-soft {
  background: var(--primary-soft);
  border-color: transparent;
  color: var(--primary)
}

.btn-soft:hover {
  background: #dce7f3
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: #455569
}

.btn-ghost:hover {
  background: var(--surface-2)
}

.btn-danger {
  background: var(--danger-soft);
  border-color: transparent;
  color: var(--danger)
}

.btn-danger:hover {
  background: #f2dada
}

.btn-large {
  min-height: 48px;
  width: 100%;
  font-size: 15px
}

.form-grid {
  display: grid;
  gap: 15px
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #35465a
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: .15s
}

input:focus,
select:focus,
textarea:focus {
  border-color: #7291b7;
  box-shadow: 0 0 0 3px rgba(23, 63, 115, .1)
}

textarea {
  min-height: 100px;
  resize: vertical
}

.field-help,
.privacy-note {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted)
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0
}

.check-row input {
  width: auto
}

.optional {
  font-weight: 500;
  color: var(--muted)
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px
}

.stat-card {
  padding: 19px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px
}

.stat-card span,
.stat-card small {
  display: block;
  color: var(--muted)
}

.stat-card span {
  font-size: 13px
}

.stat-card strong {
  display: block;
  margin: 6px 0 3px;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
}

.stat-card small {
  font-size: 11px
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px
}

.qr-card {
  display: grid;
  grid-template-columns: 1fr 190px;
  column-gap: 20px;
  align-items: center
}

.qr-image {
  width: 180px;
  max-width: 100%;
  grid-row: 1/3;
  grid-column: 2
}

.copy-row {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0
}

.copy-row code {
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 11px;
  color: #526173
}

.link-list {
  display: grid;
  gap: 15px;
  margin-top: 18px
}

.link-list>div {
  padding-top: 15px;
  border-top: 1px solid var(--line)
}

.link-list strong,
.link-list small {
  display: block
}

.link-list small {
  margin: 2px 0 8px;
  color: var(--muted)
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px
}

.section-head h2 {
  margin: 0
}

.recent-list {
  display: grid
}

.recent-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--line)
}

.recent-item:first-child {
  border-top: 0
}

.recent-item small {
  display: block;
  color: var(--muted)
}

.recent-item time {
  color: var(--muted);
  font-size: 12px
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800
}

.management-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 20px;
  align-items: start
}

.sticky-card {
  position: sticky;
  top: 92px
}

.table-card {
  padding: 0;
  overflow: hidden
}

.table-card>.section-head {
  padding: 20px 20px 0
}

.table-wrap {
  overflow: auto
}

table {
  width: 100%;
  border-collapse: collapse
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top
}

th {
  background: #fafbfd;
  color: #758295;
  font-size: 10px;
  white-space: nowrap
}

td {
  font-size: 13px
}

.nowrap {
  white-space: nowrap
}

.pill,
.role-badge,
.unit-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750
}

.pill {
  padding: 5px 9px;
  background: #eef2f6;
  color: #5a697a
}

.pill.on {
  background: var(--success-soft);
  color: var(--success)
}

.pill.off {
  background: #f0f2f4;
  color: #687583
}

.role-badge,
.unit-chip {
  padding: 4px 8px;
  background: var(--primary-soft);
  color: var(--primary);
  text-transform: uppercase
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 190px auto auto;
  gap: 10px
}

.empty-state {
  padding: 30px;
  text-align: center;
  color: var(--muted)
}

.media-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  align-items: start
}

.upload-card {
  position: sticky;
  top: 92px
}

.media-list {
  display: grid;
  gap: 0
}

.media-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line)
}

.media-item:first-child {
  border-top: 0
}

.media-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 10px;
  background: #0b1119
}

.media-thumb img,
.media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.video-label {
  position: absolute;
  left: 7px;
  bottom: 7px;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-size: 9px;
  font-weight: 800
}

.media-content {
  min-width: 0
}

.media-title {
  display: flex;
  justify-content: space-between;
  gap: 12px
}

.media-title strong,
.media-title small {
  display: block
}

.media-title small {
  margin-top: 2px;
  color: var(--muted)
}

.inline-edit {
  display: grid;
  grid-template-columns: minmax(150px, 1.5fr) 70px 80px 170px 170px auto;
  gap: 7px;
  margin-top: 10px
}

.inline-edit input {
  padding: 8px;
  font-size: 12px
}

.media-actions {
  display: flex;
  gap: 7px;
  margin-top: 8px
}

.media-actions form {
  margin: 0
}

.alert {
  padding: 11px 13px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 13px
}

.alert.success {
  background: var(--success-soft);
  color: var(--success)
}

.alert.error {
  background: var(--danger-soft);
  color: var(--danger)
}

.visitor-page {
  min-height: 100vh;
  background: #eef3f8
}

.visitor-shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 7vh 0;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 44px;
  align-items: center
}

.visitor-brand {
  padding: 20px
}

.visitor-brand h1 {
  font-size: 40px;
  margin: 12px 0
}

.visitor-brand p {
  max-width: 400px;
  color: var(--muted);
  font-size: 17px
}

.visitor-card {
  padding: 28px
}

.form-intro {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 20px
}

.form-intro span {
  font-size: 11px;
  color: var(--muted)
}

.success-state {
  text-align: center;
  padding: 30px 10px
}

.success-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  font-size: 30px;
  font-weight: 900
}

.success-state p {
  color: var(--muted);
  margin-bottom: 20px
}

.kiosk {
  background: var(--night);
  color: #f4f7fb;
  min-height: 100vh
}

.kiosk .eyebrow {
  color: #7f9abc
}

.kiosk-header {
  height: 82px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--night-line);
  background: #081321
}

.kiosk-brand {
  display: flex;
  align-items: center;
  gap: 12px
}

.kiosk-brand strong,
.kiosk-brand small {
  display: block
}

.kiosk-brand small {
  color: #8192a7;
  font-size: 11px
}

.kiosk-clock {
  text-align: right
}

.kiosk-clock strong,
.kiosk-clock span {
  display: block
}

.kiosk-clock strong {
  font-size: 23px
}

.kiosk-clock span {
  color: #8597ad;
  font-size: 11px
}

.reception-shell {
  height: calc(100vh - 112px);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: .85fr 1.45fr;
  gap: 16px
}

.kiosk-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--night-line);
  border-radius: 15px;
  background: var(--night-2)
}

.panel-title {
  height: 72px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--night-line)
}

.panel-title h2 {
  margin: 0;
  font-size: 20px
}

.counter {
  min-width: 38px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #173f73;
  font-weight: 800
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8ba0b7;
  font-size: 11px
}

.live-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fc686;
  box-shadow: 0 0 0 4px rgba(63, 198, 134, .09)
}

.visitor-live-list,
.agenda-live-list,
.display-agenda-list {
  height: calc(100% - 72px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #314660 transparent
}

.visitor-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 13px;
  padding: 15px 18px;
  border-bottom: 1px solid #1d3048
}

.visitor-time strong,
.visitor-time span {
  display: block
}

.visitor-time strong {
  font-size: 17px
}

.visitor-time span {
  font-size: 9px;
  color: #71859d
}

.visitor-info strong,
.visitor-info>span {
  display: block
}

.visitor-info>span {
  margin: 1px 0 6px;
  color: #91a0b2;
  font-size: 12px
}

.visitor-info div {
  font-size: 12px;
  color: #d2dae5
}

.visitor-info div b {
  color: #86a8d1
}

.visitor-info small {
  display: block;
  margin-top: 5px;
  color: #71859d
}

.agenda-date {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 7px 16px;
  background: #12233a;
  color: #96adca;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase
}

.agenda-row {
  display: grid;
  grid-template-columns: 85px minmax(0, 1fr) 140px;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid #1d3048
}

.agenda-time strong,
.agenda-time span,
.agenda-main strong,
.agenda-main span,
.agenda-room strong,
.agenda-room span {
  display: block
}

.agenda-time strong {
  font-size: 15px
}

.agenda-time span,
.agenda-main span,
.agenda-room span {
  color: #7f91a8;
  font-size: 10px
}

.agenda-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px
}

.agenda-room {
  text-align: right
}

.agenda-room strong {
  color: #b9cde6;
  font-size: 12px
}

.kiosk-footer {
  height: 30px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #60758e;
  font-size: 9px;
  border-top: 1px solid #14253a
}

.empty-state.dark {
  color: #71859d
}

.lobby-page {
  overflow: hidden
}

.lobby-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  background: #050b13
}

.lobby-media {
  position: relative;
  min-width: 0;
  background: #020407;
  overflow: hidden
}

.media-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000
}

.media-stage img,
.media-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.empty-media {
  color: #6e7c8c;
  font-size: 15px
}

.media-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 50px 24px 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8));
  pointer-events: none
}

.media-meta strong {
  display: block;
  font-size: 16px
}

.playlist-dots {
  display: flex;
  gap: 5px
}

.playlist-dots i {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: #566272
}

.playlist-dots i.active {
  background: #fff
}

.lobby-agenda {
  min-width: 0;
  display: grid;
  grid-template-rows: 92px 1fr 30px;
  background: #0b1624;
  border-left: 1px solid var(--night-line)
}

.agenda-header {
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--night-line)
}

.agenda-header h1 {
  font-size: 21px;
  margin: 0
}

.display-clock {
  text-align: right
}

.display-clock strong,
.display-clock span {
  display: block
}

.display-clock strong {
  font-size: 25px
}

.display-clock span {
  max-width: 150px;
  color: #8296ae;
  font-size: 9px
}

.display-agenda-list {
  height: auto
}

.display-meeting {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 100px;
  gap: 10px;
  padding: 12px 15px;
  border-bottom: 1px solid #1b2d44
}

.display-time strong,
.display-time span,
.display-agenda strong,
.display-agenda span,
.display-room strong,
.display-room span {
  display: block
}

.display-time strong {
  font-size: 15px
}

.display-time span,
.display-agenda span,
.display-room span {
  font-size: 9px;
  color: #7f91a8
}

.display-agenda strong {
  font-size: 12px;
  line-height: 1.3
}

.display-room {
  text-align: right
}

.display-room strong {
  font-size: 11px;
  color: #c2d3e8
}

.display-footer {
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #647991;
  font-size: 8px;
  border-top: 1px solid var(--night-line)
}

@media(max-width:1000px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .dashboard-grid,
  .management-grid,
  .media-layout {
    grid-template-columns: 1fr
  }

  .sticky-card,
  .upload-card {
    position: static
  }

  .inline-edit {
    grid-template-columns: 1fr 70px 80px
  }

  .inline-edit input[type=datetime-local] {
    grid-column: span 2
  }

  .visitor-shell {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 30px 0
  }

  .visitor-brand {
    padding: 0
  }

  .visitor-brand h1 {
    font-size: 32px
  }

  .reception-shell {
    grid-template-columns: 1fr;
    height: auto
  }

  .reception-page {
    overflow: auto
  }

  .kiosk-panel {
    min-height: 500px
  }

  .lobby-shell {
    grid-template-columns: 1fr
  }

  .lobby-agenda {
    display: none
  }
}

@media(max-width:720px) {
  .container {
    width: min(100% - 24px, 1240px);
    padding-top: 20px
  }

  .app-header {
    padding: 0 14px
  }

  .app-brand small {
    display: none
  }

  .nav-toggle {
    display: block
  }

  .app-nav {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow)
  }

  .app-nav.open {
    display: flex
  }

  .app-nav form {
    margin: 0
  }

  .app-nav .btn {
    width: 100%
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr
  }

  .stat-card strong {
    font-size: 26px
  }

  .dashboard-grid {
    grid-template-columns: 1fr
  }

  .qr-card {
    grid-template-columns: 1fr
  }

  .qr-image {
    grid-column: auto;
    grid-row: auto;
    margin: 8px auto
  }

  .management-grid {
    grid-template-columns: 1fr
  }

  .filter-bar {
    grid-template-columns: 1fr 1fr
  }

  .filter-bar input:first-child {
    grid-column: 1/-1
  }

  .media-item {
    grid-template-columns: 100px 1fr
  }

  .inline-edit {
    grid-template-columns: 1fr 70px
  }

  .inline-edit input[type=datetime-local] {
    grid-column: 1/-1
  }

  .form-row {
    grid-template-columns: 1fr
  }

  .visitor-shell {
    width: min(100% - 20px, 620px)
  }

  .visitor-card {
    padding: 20px
  }

  .visitor-brand {
    padding: 4px
  }

  .visitor-brand p {
    font-size: 14px
  }

  .form-intro {
    align-items: flex-start;
    flex-direction: column
  }

  .copy-row {
    align-items: stretch;
    flex-direction: column
  }

  .copy-row .btn {
    align-self: flex-start
  }

  .table-wrap {
    margin: 0 -1px
  }

  .agenda-row {
    grid-template-columns: 72px 1fr
  }

  .agenda-room {
    display: none
  }
}

/* Phase 3: production/mobile refinements */
.btn-microsoft {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 20px;
  background: #fff;
  color: #24364b;
  border: 1px solid var(--line)
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 11px
}

.login-divider:before,
.login-divider:after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line)
}

.mobile-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef4fb;
  color: #173f73;
  font-size: 10px;
  font-weight: 800
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important
}

.visitor-submit {
  min-height: 52px;
  font-size: 16px
}

.visitor-form input,
.visitor-form select,
.visitor-form textarea {
  font-size: 16px;
}

.visitor-form textarea {
  min-height: 100px
}

.alert:not(.error) {
  padding: 12px 14px;
  border-radius: 10px;
  background: #eef7f1;
  color: #256a45;
  border: 1px solid #cfe8d8
}

@media(max-width:600px) {
  .visitor-page {
    background: #f5f7fa
  }

  .visitor-shell {
    width: 100%;
    padding: 0;
    display: block
  }

  .visitor-brand {
    padding: 22px 20px 14px;
    background: #173f73;
    color: white
  }

  .visitor-brand .brand-mark {
    background: white;
    color: #173f73
  }

  .visitor-brand .eyebrow,
  .visitor-brand p {
    color: #dce8f7
  }

  .visitor-brand h1 {
    font-size: 28px;
    margin: 8px 0 5px
  }

  .visitor-brand p {
    font-size: 13px;
    margin: 0
  }

  .visitor-card {
    border: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: none;
    margin-top: -2px;
    padding: 22px 18px;
    min-height: calc(100vh - 170px)
  }

  .form-grid {
    gap: 15px
  }

  .visitor-submit {
    position: sticky;
    bottom: 10px;
    z-index: 4;
    width: 100%;
    box-shadow: 0 7px 22px rgba(18, 51, 89, .22)
  }

  .success-state {
    padding-top: 12vh
  }
}

/* Phase 4: media scheduling + reception operations */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px
}

.choice-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer
}

.choice-card:has(input:checked) {
  border-color: #7895b8;
  background: var(--primary-soft)
}

.choice-card input {
  width: auto;
  margin-top: 3px
}

.choice-card b,
.choice-card small {
  display: block
}

.choice-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px
}

.schedule-fields[hidden],
[data-image-duration][hidden] {
  display: none !important
}

.media-edit-form {
  grid-template-columns: minmax(140px, 1.3fr) 62px 76px 120px 160px 160px auto
}

.media-edit-form select {
  padding: 8px;
  font-size: 12px
}

.reception-checkout {
  margin-top: 8px;
  border: 1px solid #355272;
  border-radius: 8px;
  padding: 6px 9px;
  background: #132a43;
  color: #bcd2eb;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer
}

.reception-checkout:hover {
  background: #183754
}

.visitor-completed {
  opacity: .58
}

.agenda-cache-note {
  padding: 7px 14px;
  background: #3b2b16;
  color: #e5c88d;
  font-size: 9px;
  border-bottom: 1px solid #59401d
}

@media(max-width:1000px) {
  .media-edit-form {
    grid-template-columns: 1fr 70px 90px
  }

  .media-edit-form input[type=datetime-local],
  .media-edit-form select {
    grid-column: auto
  }
}

@media(max-width:720px) {
  .choice-grid {
    grid-template-columns: 1fr
  }

  .media-edit-form {
    grid-template-columns: 1fr 70px
  }

  .media-edit-form input[type=datetime-local],
  .media-edit-form select {
    grid-column: 1/-1
  }
}

/* Phase 4B.1 — branding, system page and upload fix polish */
.brand-logo {
  display: block;
  width: 126px;
  height: 34px;
  object-fit: contain;
  object-position: left center
}

.brand-copy {
  display: flex;
  flex-direction: column;
  padding-left: 12px;
  border-left: 1px solid var(--line)
}

.brand-copy strong {
  font-size: 14px;
  line-height: 1.1
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px
}

.login-logo {
  display: block;
  width: min(220px, 72%);
  height: auto;
  max-height: 200px;
  object-fit: contain;
  margin: 0 auto 16px
}

.visitor-kawung {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: 0 0 auto
}

.kiosk-kawung {
  width: 40px;
  height: 40px;
  object-fit: contain
}

.system-heading {
  padding-bottom: 2px
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px
}

.integration-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(18, 34, 51, .035)
}

.integration-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
}

.integration-body {
  min-width: 0
}

.integration-body span,
.integration-body strong,
.integration-body small {
  display: block
}

.integration-body span {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.integration-body strong {
  font-size: 14px
}

.integration-body small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap
}

.status-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor
}

.status-chip.ok {
  background: #edf8f2;
  color: #26754c
}

.status-chip.error {
  background: #fff0ef;
  color: #b23b34
}

.status-chip.off {
  background: #f1f3f6;
  color: #707b89
}

.system-audit {
  margin-top: 2px
}

.action-code {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 7px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800
}

.audit-detail {
  max-width: 420px;
  color: var(--muted);
  font-size: 11px;
  word-break: break-word
}

.nowrap {
  white-space: nowrap
}

@media(max-width:850px) {
  .integration-grid {
    grid-template-columns: 1fr
  }

  .brand-logo {
    width: 110px
  }

  .brand-copy small {
    display: none
  }
}

@media(max-width:600px) {
  .brand-copy {
    display: none
  }

  .visitor-kawung {
    width: 52px;
    height: 52px
  }

  .integration-card {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 14px
  }

  .integration-icon {
    width: 40px;
    height: 40px
  }

  .status-chip {
    grid-column: 2;
    justify-self: start
  }

  .system-heading .btn {
    width: 100%;
    text-align: center
  }
}

/* Phase 4B.2 — media list containment + unit sync polish */
.media-playlist-card {
  min-width: 0;
  overflow: hidden
}

.media-item {
  min-width: 0
}

.media-content {
  overflow: hidden
}

.media-title-copy {
  min-width: 0
}

.media-title-copy strong {
  overflow-wrap: anywhere
}

.media-edit-form {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2)
}

.media-edit-main {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) 82px 92px minmax(130px, .8fr);
  gap: 9px;
  align-items: end
}

.media-edit-schedule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px
}

.media-edit-schedule[hidden] {
  display: none !important
}

.field-compact {
  min-width: 0
}

.field-compact label {
  margin-bottom: 4px;
  font-size: 10px;
  color: var(--muted);
}

.field-compact input,
.field-compact select {
  min-width: 0;
  padding: 9px 10px;
  font-size: 12px
}

.media-edit-footer {
  display: flex;
  justify-content: flex-end
}

.media-edit-footer .btn {
  min-height: 36px;
  padding: 7px 12px
}

.media-actions {
  flex-wrap: wrap
}

.unit-integration-status {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 10px
}

.unit-sync-form {
  flex: 0 0 auto
}

.media-replacement-file {
  max-width: 420px
}

.unit-edit-input {
  min-width: 90px;
  width: 100%;
  padding: 8px 9px;
  font-size: 12px
}

.unit-edit-name {
  min-width: 190px
}

.unit-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap
}

.unit-row-actions form {
  margin: 0
}

.frontdesk-heading-actions,
.frontdesk-inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.frontdesk-stats {
  grid-template-columns: repeat(3, 1fr)
}

.frontdesk-action-cell {
  min-width: 230px
}

.frontdesk-inline-form {
  margin-top: 9px
}

.frontdesk-inline-form input {
  width: 120px;
  padding: 9px 10px
}

.frontdesk-number,
.frontdesk-completed-time {
  display: block;
  margin: 7px 0
}

.frontdesk-log-filter {
  grid-template-columns: minmax(240px, 1fr) 155px 155px 180px auto auto
}

.date-filter-field {
  display: grid;
  gap: 4px;
  margin: 0
}

.date-filter-field span {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase
}

@media(max-width:900px) {
  .frontdesk-stats {
    grid-template-columns: 1fr
  }

  .frontdesk-log-filter {
    grid-template-columns: 1fr
  }
}

@media(max-width:1180px) {
  .media-layout {
    grid-template-columns: 320px minmax(0, 1fr)
  }

  .media-edit-main {
    grid-template-columns: minmax(160px, 1fr) 72px 82px
  }

  .field-mode {
    grid-column: 1/-1
  }
}

@media(max-width:1000px) {
  .media-layout {
    grid-template-columns: 1fr
  }

  .media-edit-main {
    grid-template-columns: minmax(180px, 1fr) 82px 92px minmax(130px, .8fr)
  }

  .field-mode {
    grid-column: auto
  }
}

@media(max-width:760px) {
  .media-item {
    grid-template-columns: 1fr
  }

  .media-thumb {
    width: 180px;
    max-width: 100%
  }

  .media-edit-main {
    grid-template-columns: 1fr 80px
  }

  .field-duration,
  .field-mode {
    grid-column: auto
  }

  .field-title {
    grid-column: 1/-1
  }

  .media-edit-schedule {
    grid-template-columns: 1fr
  }

  .media-edit-footer {
    justify-content: stretch
  }

  .media-edit-footer .btn {
    width: 100%
  }

  .unit-sync-form {
    width: 100%
  }

  .unit-sync-form .btn {
    width: 100%
  }
}

/* Phase 4B.3 — reusable pagination, unit aliases, Microsoft login */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #fff
}

.pagination.single {
  justify-content: flex-start
}

.pagination-summary {
  font-size: 12px;
  color: var(--muted)
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 5px
}

.page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #506174;
  font-size: 12px;
  font-weight: 750
}

.page-btn:hover {
  border-color: #b9c8d9;
  background: var(--primary-soft);
  color: var(--primary)
}

.page-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff
}

.page-btn.disabled {
  pointer-events: none;
  opacity: .38
}

.login-provider-note {
  display: block;
  margin-top: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 11px
}

.login-provider-note code {
  font-size: 10px
}

.microsoft-primary {
  min-height: 48px;
  margin-top: 20px;
  font-size: 14px
}

.microsoft-mark {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  gap: 2px
}

.microsoft-mark i {
  display: block;
  width: 7px;
  height: 7px;
  background: currentColor
}

.microsoft-mark i:nth-child(1) {
  color: #f25022
}

.microsoft-mark i:nth-child(2) {
  color: #7fba00
}

.microsoft-mark i:nth-child(3) {
  color: #00a4ef
}

.microsoft-mark i:nth-child(4) {
  color: #ffb900
}

@media(max-width:720px) {
  .pagination {
    align-items: flex-start;
    flex-direction: column
  }

  .pagination-controls {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap
  }

  .page-btn {
    min-width: 36px
  }
}

/* v0.4.7 — polished pagination + bright kiosk themes */
.pager {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 16px 18px !important;
  border-top: 1px solid var(--line) !important;
  background: #fff !important;
  border-radius: 0 0 15px 15px !important
}

.pager-summary {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #6a788a;
  font-size: 12px
}

.pager-summary strong {
  color: #1c2d41;
  font-weight: 800
}

.pager-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap
}

.pager-number,
.pager-arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 10px !important;
  border: 1px solid #dbe3ec !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #40546c !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(20, 40, 70, .02)
}

.pager-number:hover,
.pager-arrow:hover {
  border-color: #9db2ca !important;
  background: #eef4fa !important;
  color: #173f73 !important
}

.pager-number.is-active {
  border-color: #173f73 !important;
  background: #173f73 !important;
  color: #fff !important
}

.pager-arrow.is-disabled {
  pointer-events: none !important;
  opacity: .32 !important
}

.pager-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  color: #8996a6;
  font-weight: 800
}

@media(max-width:720px) {
  .pager {
    align-items: flex-start !important;
    flex-direction: column !important
  }

  .pager-nav {
    width: 100%;
    justify-content: flex-start
  }

  .pager-number,
  .pager-arrow {
    min-width: 38px !important;
    height: 38px !important
  }
}

/* Reception: bright, high-contrast monitor theme */
body.kiosk.reception-page {
  background: #eef3f8 !important;
  color: #152233 !important
}

.reception-page .kiosk-header {
  background: #fff !important;
  border-bottom: 1px solid #dbe4ee !important;
  box-shadow: 0 2px 14px rgba(25, 49, 80, .05)
}

.reception-page .kiosk-brand strong {
  color: #14263b !important
}

.reception-page .kiosk-brand small,
.reception-page .kiosk-clock span {
  color: #687a8f !important
}

.reception-page .kiosk-clock strong {
  color: #173f73 !important
}

.reception-page .reception-shell {
  background: #eef3f8 !important
}

.reception-page .kiosk-panel {
  border: 1px solid #d8e2ec !important;
  background: #fff !important;
  box-shadow: 0 8px 28px rgba(30, 55, 85, .05)
}

.reception-page .panel-title {
  border-bottom: 1px solid #e2e9f0 !important
}

.reception-page .panel-title h2 {
  color: #152233 !important
}

.reception-page .eyebrow {
  color: #55718f !important
}

.reception-page .counter {
  background: #e8f0f9 !important;
  color: #173f73 !important
}

.reception-page .live-indicator {
  color: #5e7187 !important
}

.reception-page .visitor-row,
.reception-page .agenda-row {
  border-bottom: 1px solid #e6ecf2 !important
}

.reception-page .visitor-row:nth-child(even),
.reception-page .agenda-row:nth-child(even) {
  background: #fbfcfe !important
}

.reception-page .visitor-time strong,
.reception-page .agenda-time strong,
.reception-page .visitor-info strong,
.reception-page .agenda-main strong {
  color: #152233 !important
}

.reception-page .visitor-time span,
.reception-page .agenda-time span,
.reception-page .agenda-main span,
.reception-page .agenda-room span,
.reception-page .visitor-info>span,
.reception-page .visitor-info small {
  color: #687a8f !important
}

.reception-page .visitor-info div {
  color: #334a64 !important
}

.reception-page .visitor-info div b {
  color: #173f73 !important
}

.reception-page .agenda-room strong {
  color: #173f73 !important
}

.reception-page .agenda-date {
  background: #edf3f9 !important;
  color: #3d6084 !important;
  border-bottom: 1px solid #dce6f0 !important
}

.reception-page .reception-checkout {
  border-color: #c9d8e7 !important;
  background: #eef4fa !important;
  color: #173f73 !important
}

.reception-page .reception-checkout:hover {
  background: #dfeaf6 !important
}

.reception-page .visitor-completed {
  opacity: .58
}

.reception-page .empty-state.dark {
  color: #74869a !important
}

.reception-page .kiosk-footer {
  background: #fff !important;
  border-top: 1px solid #dbe4ee !important;
  color: #728398 !important
}

/* Lobby: bright agenda panel for long-distance readability */
body.kiosk.lobby-page {
  background: #eef3f8 !important;
  color: #152233 !important
}

.lobby-page .lobby-shell {
  background: #eef3f8 !important
}

.lobby-page .lobby-agenda {
  background: #f8fafc !important;
  border-left: 1px solid #d8e2ec !important;
  color: #152233 !important
}

.lobby-page .agenda-header {
  background: #fff !important;
  border-bottom: 1px solid #dbe4ee !important
}

.lobby-page .agenda-header h1,
.lobby-page .display-clock strong {
  color: #152233 !important
}

.lobby-page .display-clock span {
  color: #64788f !important
}

.lobby-page .eyebrow {
  color: #4f6f91 !important
}

.lobby-page .display-agenda-list {
  background: #f8fafc !important
}

.lobby-page .agenda-date {
  background: #e9f0f8 !important;
  color: #315a82 !important;
  border-bottom: 1px solid #d5e1ed !important
}

.lobby-page .display-meeting {
  border-bottom: 1px solid #e0e8f0 !important;
  background: #fff !important
}

.lobby-page .display-meeting:nth-of-type(even) {
  background: #f9fbfd !important
}

.lobby-page .display-time strong,
.lobby-page .display-agenda strong {
  color: #152233 !important
}

.lobby-page .display-time span,
.lobby-page .display-agenda span,
.lobby-page .display-room span {
  color: #6b7e93 !important
}

.lobby-page .display-room strong {
  color: #173f73 !important
}

.lobby-page .display-footer {
  background: #fff !important;
  border-top: 1px solid #dbe4ee !important;
  color: #6b7f95 !important
}

.lobby-page .empty-state.dark {
  color: #74869a !important
}

.lobby-page .media-meta {
  background: linear-gradient(transparent, rgba(7, 17, 29, .72)) !important
}


/* v0.4.8 — phone-first visitor registration + receptionist approval */
.visitor-step-head {
  margin-bottom: 20px
}

.visitor-step-head h2 {
  margin: 8px 0 6px;
  font-size: 24px
}

.visitor-step-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55
}

.visitor-step-head a {
  color: var(--primary);
  font-weight: 750
}

.step-badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 10px;
  font-weight: 850;
}

.visitor-phone-form {
  display: grid;
  gap: 12px
}

.visitor-phone-form label {
  font-weight: 800;
  font-size: 13px
}

.phone-input-wrap {
  height: 58px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 1px solid #c7d4e2;
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 0 3px transparent;
  transition: .18s
}

.phone-input-wrap:focus-within {
  border-color: #6287b2;
  box-shadow: 0 0 0 3px rgba(23, 63, 115, .09)
}

.phone-input-wrap>span {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #f2f6fa;
  border-right: 1px solid #d8e2ec;
  color: #173f73;
  font-weight: 850
}

.phone-input-wrap input {
  height: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 14px !important;
  font-size: 18px !important;
}

.field-help {
  margin-top: -4px;
  color: var(--muted);
  font-size: 10px
}

.returning-visitor-note {
  display: grid;
  gap: 2px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #cfe4d8;
  border-radius: 11px;
  background: #f0f9f4;
  color: #225d3d
}

.returning-visitor-note strong {
  font-size: 13px
}

.returning-visitor-note span {
  font-size: 11px;
  color: #527364
}

.company-confirmation {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2)
}

.company-confirmation legend {
  padding: 0 5px;
  font-weight: 700;
  color: var(--ink)
}

.company-options {
  display: flex;
  gap: 16px;
  flex-wrap: wrap
}

.company-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  cursor: pointer
}

.visitor-form input[readonly] {
  background: #f3f6f9;
  color: #526477;
  border-color: #d9e2ea;
  cursor: not-allowed
}

.optional-label {
  margin-left: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650
}

.visitor-form .privacy-note {
  line-height: 1.5
}

.reception-page .reception-shell {
  grid-template-columns: 1fr 1.35fr
}

.visitor-waiting {
  background: #fffdf8 !important
}

.visitor-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.visitor-name-line>strong {
  display: inline !important
}

.verification-pill {
  display: inline-flex !important;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff0c8;
  color: #805d00 !important;
  font-size: 8px !important;
  font-weight: 850;
}

.visitor-destination {
  font-size: 13px !important
}

.visitor-approval-box {
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid #e7d49b;
  border-radius: 10px;
  background: #fffaf0
}

.visitor-approval-box p {
  margin: 0 0 8px;
  color: #5d4d21;
  font-size: 10px;
  line-height: 1.45
}

.visitor-approval-actions {
  display: grid;
  grid-template-columns: minmax(90px, 120px) minmax(145px, auto);
  gap: 7px
}

.visitor-approval-actions input {
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  border: 1px solid #d7c078;
  border-radius: 7px;
  background: #fff;
  font-size: 11px
}

.reception-approve {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  padding: 6px 10px;
  background: #173f73;
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer
}

.reception-approve:hover {
  background: #11345f
}

.reception-approve:disabled {
  opacity: .55;
  cursor: wait
}

.visitor-action-message {
  display: block !important;
  min-height: 14px;
  margin-top: 5px;
  color: #a3453c !important;
  font-size: 9px !important
}

.approved-meta {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 5px 8px;
  border-radius: 7px;
  background: #edf7f1;
  color: #32684b !important
}

.approved-meta span {
  font-size: 8px !important;
  color: #5f7f6d !important
}

.approved-meta strong {
  font-size: 11px;
  color: #1f5c3d
}

.pill.warn {
  background: #fff3cf;
  color: #806000
}

@media(max-width:600px) {
  .visitor-shell {
    width: 100%;
    padding: 0;
    display: block
  }

  .visitor-card {
    border-radius: 16px 16px 0 0;
    min-height: calc(100vh - 148px)
  }

  .visitor-step-head h2 {
    font-size: 22px
  }

  .phone-input-wrap {
    height: 60px
  }

  .visitor-phone-form .visitor-submit {
    margin-top: 8px
  }

  .returning-visitor-note {
    margin-bottom: 14px
  }
}

@media(max-width:1050px) {
  .visitor-approval-actions {
    grid-template-columns: 1fr
  }

  .reception-page .reception-shell {
    grid-template-columns: 1fr 1.25fr
  }
}

.phone-input-wrap {
  grid-template-columns: 1fr
}

.phone-input-wrap>input {
  width: 100%
}

/* v0.4.9 — singleton RSS running text */
.rss-card {
  margin-bottom: 20px;
  border: 1px solid #d9e4ef;
  background: linear-gradient(180deg, #fff, #f9fbfd)
}

.rss-card .section-head {
  align-items: flex-start
}

.rss-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef3f7;
  color: #5d7085;
  font-size: 10px;
  font-weight: 800
}

.rss-status.on {
  background: #e8f7ef;
  color: #226544
}

.rss-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 110px 120px 120px auto;
  gap: 10px;
  align-items: end
}

.rss-form .rss-url {
  min-width: 0
}

.rss-form input {
  width: 100%
}

.rss-help {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5
}

.lobby-rss {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  display: none;
  align-items: center;
  overflow: hidden;
  background: #173f73;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 -4px 16px rgba(15, 44, 79, .12)
}

.lobby-rss.is-active {
  display: flex
}

.lobby-rss-label {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: #0f315d;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.lobby-rss-viewport {
  min-width: 0;
  flex: 1;
  overflow: hidden
}

.lobby-rss-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  text-transform: uppercase;
  animation: rss-marquee var(--rss-speed, 55s) linear infinite
}

.lobby-rss-copy {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-left: 26px;
  font-size: 15px;
  font-weight: 750
}

.lobby-rss-copy span::after {
  content: '•';
  margin-left: 26px;
  color: #82b7ee
}

.lobby-page.has-rss .lobby-shell {
  height: calc(100vh - 44px)
}

@keyframes rss-marquee {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

@media(max-width:900px) {
  .rss-form {
    grid-template-columns: 1fr 1fr
  }

  .rss-form .rss-url {
    grid-column: 1/-1
  }

  .rss-form .btn {
    grid-column: 1/-1
  }

  .lobby-rss-copy {
    font-size: 13px
  }
}

/* v0.5.0 — InJourney Lobby brand revamp */
body.kiosk.lobby-page {
  background: linear-gradient(180deg, #eef4f8 0%, #e9f0f6 100%) !important;
  color: #152233 !important;
  position: relative;
  overflow: hidden
}

.lobby-page::before,
.lobby-page::after {
  content: '';
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(18px);
  opacity: .18
}

.lobby-page::before {
  top: -110px;
  left: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at center, #ef4836 0, #ef4836 28%, transparent 72%)
}

.lobby-page::after {
  right: -70px;
  bottom: 60px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle at center, #0ea5a4 0, #0ea5a4 28%, transparent 72%)
}

.lobby-page .lobby-shell {
  position: relative;
  z-index: 1;
  height: calc(100vh - 28px) !important;
  margin: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(360px, .82fr) !important;
  gap: 18px;
  background: transparent !important
}

.lobby-page.has-rss .lobby-shell {
  height: calc(100vh - 72px) !important
}

.lobby-page .lobby-media,
.lobby-page .lobby-agenda {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 22px 48px rgba(18, 39, 64, .1)
}

.lobby-page .lobby-media {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: linear-gradient(180deg, #0d1825 0%, #08111d 100%) !important;
  border: 1px solid rgba(255, 255, 255, .07) !important;
  position: relative
}

.lobby-page .lobby-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 14%, rgba(239, 72, 54, .14), transparent 30%), radial-gradient(circle at 82% 12%, rgba(14, 165, 164, .16), transparent 28%), radial-gradient(circle at 65% 80%, rgba(130, 178, 58, .16), transparent 24%);
  pointer-events: none
}

.lobby-media-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px 14px
}

.lobby-media-brand {
  display: flex;
  align-items: center;
  gap: 13px
}

.lobby-media-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain
}

.lobby-media-brand span {
  display: block;
  color: #99adc3;
  font-size: 11px;
  font-weight: 800;
}

.lobby-media-brand strong {
  display: block;
  color: #fff;
  font-size: 21px;
  line-height: 1.15;
}

.lobby-media-logo {
  height: 38px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: brightness(1.12)
}

.media-stage-frame {
  position: relative;
  min-height: 0;
  margin: 0 18px 18px;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3)
}

.lobby-page .media-stage {
  position: absolute;
  inset: 0;
  background: #000 !important
}

.lobby-page .media-stage img,
.lobby-page .media-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.lobby-page .media-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 74px 22px 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(180deg, rgba(5, 11, 19, 0) 0%, rgba(5, 11, 19, .82) 58%, rgba(5, 11, 19, .96) 100%) !important;
  pointer-events: none
}

.lobby-page .media-meta .eyebrow {
  color: #89a3be !important
}

.lobby-page .media-meta strong {
  display: block;
  color: #fff;
  font-size: 22px;
  line-height: 1.15
}

.lobby-page .media-meta small {
  display: block;
  margin-top: 5px;
  max-width: 530px;
  color: #c9d7e6;
  font-size: 12px;
  line-height: 1.45
}

.lobby-page .playlist-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 3px
}

.lobby-page .playlist-dots i {
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .26)
}

.lobby-page .playlist-dots i.active {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22)
}

.lobby-page .lobby-agenda {
  display: grid;
  grid-template-rows: 6px auto 1fr auto;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%) !important;
  border: 1px solid #d9e4ee !important;
  color: #152233 !important
}

.agenda-brand-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 6px
}

.agenda-brand-strip i {
  display: block
}

.agenda-brand-strip .c-red {
  background: #ef4836
}

.agenda-brand-strip .c-orange {
  background: #f39a1e
}

.agenda-brand-strip .c-green {
  background: #82b23a
}

.agenda-brand-strip .c-teal {
  background: #0ea5a4
}

.lobby-page .agenda-header {
  padding: 22px 22px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: transparent !important;
  border-bottom: 1px solid #dde7f0 !important
}

.agenda-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0
}

.agenda-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 auto
}

.agenda-brand .eyebrow {
  color: #58779a !important
}

.agenda-brand h1 {
  margin: 0;
  color: #152233 !important;
  font-size: 28px !important;
  line-height: 1.08;
}

.agenda-brand p {
  margin: 6px 0 0;
  color: #667b92;
  font-size: 12px;
  line-height: 1.45;
  max-width: 280px
}

.agenda-header-side {
  display: grid;
  justify-items: end;
  gap: 10px;
  text-align: right
}

.agenda-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ebf6ef;
  color: #256444;
  font-size: 11px;
  font-weight: 850
}

.agenda-status-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38c172;
  box-shadow: 0 0 0 4px rgba(56, 193, 114, .15)
}

.lobby-page .display-clock strong {
  font-size: 34px !important;
  color: #173f73 !important
}

.lobby-page .display-clock span {
  max-width: none !important;
  color: #62768d !important;
  font-size: 11px !important
}

.lobby-page .display-agenda-list {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: transparent !important;
  padding: 10px 14px 10px !important
}

.agenda-page-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 2px 0;
  padding: 8px 4px 2px;
  color: #6b7f95;
  font-size: 11px;
  font-weight: 750
}

.agenda-page-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.agenda-page-dots i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #c5d3e2;
  display: block
}

.agenda-page-dots i.active {
  width: 18px;
  background: #173f73
}

.lobby-page .agenda-date {
  top: 0;
  margin: 10px 2px 0;
  padding: 9px 14px;
  border: 1px solid #d8e5f1;
  border-bottom: 0;
  background: #edf4fa !important;
  color: #315a82 !important;
  border-radius: 14px 14px 0 0;
  font-size: 10px;
  font-weight: 850;
}

.lobby-page .display-meeting {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 118px;
  gap: 12px;
  margin: 0 2px 6px;
  padding: 10px 12px 10px 14px;
  border: 1px solid #dbe6ef !important;
  border-left: 4px solid #173f73 !important;
  border-radius: 0 0 14px 14px;
  background: #fff !important;
  box-shadow: 0 6px 14px rgba(25, 43, 70, .04)
}

.lobby-page .display-time strong {
  font-size: 18px !important;
  color: #12253c
}

.lobby-page .display-time span,
.lobby-page .display-agenda span,
.lobby-page .display-room span {
  font-size: 10px !important;
  color: #698096 !important
}

.lobby-page .display-agenda strong {
  font-size: 14px !important;
  line-height: 1.35;
  color: #152233 !important
}

.lobby-page .display-room {
  text-align: right
}

.lobby-page .display-room strong {
  font-size: 13px !important;
  color: #173f73 !important;
  line-height: 1.25
}

.lobby-page .display-footer {
  padding: 12px 18px 14px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff !important;
  border-top: 1px solid #dbe4ee !important;
  color: #6b7f95 !important;
  font-size: 10px !important
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #173f73
}

.footer-brand img {
  width: 16px;
  height: 16px;
  object-fit: contain
}

.footer-brand b {
  font-weight: 850
}

.lobby-page .empty-state.dark {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed #d6e3ef;
  border-radius: 18px;
  background: #fbfdff;
  color: #74869a !important
}

.lobby-rss {
  left: 14px !important;
  right: 14px !important;
  bottom: 4px !important;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(90deg, #173f73 0%, #204f88 52%, #1c477b 100%) !important;
  border-top: 0 !important;
  box-shadow: 0 14px 34px rgba(15, 44, 79, .18) !important;
  overflow: hidden
}

.lobby-rss::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .07), transparent 30%);
  pointer-events: none
}

.lobby-rss-label {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 0 18px 0 14px;
  background: rgba(9, 32, 63, .24) !important;
  font-size: 10px;
  font-weight: 900;
}

.lobby-rss-label img {
  width: 20px;
  height: 20px;
  object-fit: contain
}

.lobby-rss-viewport {
  position: relative;
  z-index: 1
}

.lobby-rss-copy {
  gap: 30px;
  padding-left: 30px;
  font-size: 14px;
  font-weight: 780
}

.lobby-rss-copy span::after {
  margin-left: 30px;
  color: #9fcbfa
}

.lobby-page .empty-media {
  font-size: 16px;
  color: #8ea3b8
}

@media(max-width:1200px) {
  .lobby-page .lobby-shell {
    grid-template-columns: minmax(0, 1fr) 390px !important
  }

  .agenda-brand h1 {
    font-size: 24px !important
  }

  .lobby-page .display-clock strong {
    font-size: 30px !important
  }

  .lobby-page .display-meeting {
    grid-template-columns: 72px minmax(0, 1fr) 104px
  }
}

@media(max-width:1000px) {
  .lobby-page .lobby-shell {
    height: auto !important;
    grid-template-columns: 1fr !important;
    margin: 10px
  }

  .lobby-page.has-rss .lobby-shell {
    height: auto !important
  }

  .lobby-page .lobby-agenda {
    display: grid !important
  }

  .lobby-media-head {
    padding: 16px
  }

  .lobby-media-brand strong {
    font-size: 18px
  }

  .agenda-brand h1 {
    font-size: 22px !important
  }

  .lobby-rss {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important
  }
}


/* v0.5.1 — display refinement: less rounded, branded background, transparent empty areas */
body.kiosk.lobby-page {
  background:
    radial-gradient(circle at 10% 14%, rgba(239, 72, 54, .16) 0, rgba(239, 72, 54, .16) 10%, transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(14, 165, 164, .16) 0, rgba(14, 165, 164, .16) 10%, transparent 28%),
    radial-gradient(circle at 74% 86%, rgba(130, 178, 58, .15) 0, rgba(130, 178, 58, .15) 10%, transparent 28%),
    linear-gradient(180deg, #edf3f7 0%, #e6edf4 100%) !important;
}

.lobby-page::before,
.lobby-page::after {
  display: none !important
}

.lobby-page .lobby-shell {
  height: calc(100vh - 24px) !important;
  margin: 12px;
  gap: 14px;
}

.lobby-page.has-rss .lobby-shell {
  height: calc(100vh - 68px) !important
}

.lobby-page .lobby-media,
.lobby-page .lobby-agenda {
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(18, 39, 64, .08);
}

.lobby-page .lobby-media {
  border: 1px solid rgba(255, 255, 255, .12) !important;
}

.lobby-page .lobby-agenda {
  background: rgba(255, 255, 255, .68) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(211, 224, 236, .95) !important;
  grid-template-rows: 4px auto 1fr auto;
}

.agenda-brand-strip {
  height: 4px
}

.lobby-media-head {
  padding: 16px 20px 12px;
}

.lobby-media-brand img {
  width: 36px;
  height: 36px
}

.lobby-media-brand strong {
  font-size: 19px
}

.lobby-media-logo {
  height: 34px
}

.media-stage-frame {
  margin: 0 14px 14px;
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .22);
}

.lobby-page .media-meta {
  padding: 62px 18px 16px;
}

.lobby-page .media-meta strong {
  font-size: 20px
}

.lobby-page .media-meta small {
  font-size: 11px;
  max-width: 480px
}

.lobby-page .playlist-dots i {
  width: 16px;
  height: 4px
}

.lobby-page .agenda-header {
  padding: 18px 18px 14px;
  background: rgba(255, 255, 255, .72) !important;
}

.agenda-brand img {
  width: 32px;
  height: 32px
}

.agenda-brand h1 {
  font-size: 25px !important
}

.agenda-brand p {
  font-size: 11px;
  max-width: 250px
}

.agenda-header-side {
  gap: 8px
}

.agenda-status-chip {
  padding: 6px 10px;
  font-size: 10px
}

.lobby-page .display-clock strong {
  font-size: 31px !important
}

.lobby-page .display-clock span {
  font-size: 10px !important
}

.lobby-page .display-agenda-list {
  background: transparent !important;
  padding: 8px 12px 10px !important;
  height: 100%;
  overflow: hidden;
}

.lobby-page .agenda-date {
  margin: 8px 0 0;
  padding: 8px 12px;
  border: 1px solid rgba(216, 229, 241, .95);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: rgba(233, 240, 248, .88) !important;
}

.lobby-page .display-meeting {
  margin: 0 0 5px;
  padding: 9px 11px 9px 13px;
  border: 1px solid rgba(219, 230, 239, .95) !important;
  border-left: 3px solid #173f73 !important;
  border-radius: 0 0 10px 10px;
  background: rgba(255, 255, 255, .88) !important;
  box-shadow: 0 6px 12px rgba(25, 43, 70, .03);
}

.lobby-page .display-time strong {
  font-size: 17px !important
}

.lobby-page .display-agenda strong {
  font-size: 13px !important
}

.lobby-page .display-room strong {
  font-size: 12px !important
}

.lobby-page .display-footer {
  padding: 10px 14px 12px !important;
  background: rgba(255, 255, 255, .72) !important;
  font-size: 9px !important;
}

.lobby-page .empty-state.dark {
  min-height: 140px;
  border: none;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: #7b8da1 !important;
}

.lobby-rss {
  left: 12px !important;
  right: 12px !important;
  bottom: 4px !important;
  height: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(15, 44, 79, .14) !important;
}

.lobby-rss-label {
  padding: 0 14px 0 12px
}

.lobby-rss-label img {
  width: 18px;
  height: 18px
}

.lobby-rss-copy {
  padding-left: 24px;
  gap: 24px;
  font-size: 13px
}

.lobby-rss-copy span::after {
  margin-left: 24px
}

@media(max-width:1200px) {
  .lobby-page .lobby-shell {
    grid-template-columns: minmax(0, 1fr) 370px !important;
    gap: 12px
  }

  .agenda-brand h1 {
    font-size: 22px !important
  }
}

@media(max-width:1000px) {
  .lobby-page .lobby-shell {
    margin: 8px;
    gap: 10px;
    height: auto !important
  }

  .lobby-page.has-rss .lobby-shell {
    height: auto !important
  }

  .lobby-rss {
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important
  }
}


/* v0.5.2 — enterprise display themes + background settings */
.display-settings-form .two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px
}

.display-settings-form input[type=color] {
  padding: 4px;
  height: 44px
}

.stack-end {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px
}

.display-settings-actions {
  margin-top: 14px
}

.lobby-page {
  --brand-red: #ef4836;
  --brand-orange: #f39a1e;
  --brand-green: #82b23a;
  --brand-teal: #0ea5a4;
  --theme-ink: #152233;
  --theme-muted: #6b7f95;
  --theme-panel: rgba(255, 255, 255, .72);
  --theme-panel-border: rgba(211, 224, 236, .95);
  --theme-panel-solid: #fff;
  --theme-card: rgba(255, 255, 255, .90);
  --theme-card-border: rgba(219, 230, 239, .95);
  --theme-accent: #173f73;
  --theme-accent-soft: #edf4fa;
  --theme-rss: #173f73;
  --theme-rss-dark: #0f315d;
  --theme-glow1: rgba(239, 72, 54, .16);
  --theme-glow2: rgba(14, 165, 164, .16);
  --theme-glow3: rgba(130, 178, 58, .15);
  --display-bg-color: #eaf0f5;
  --display-bg-image: none;
  background:
    radial-gradient(circle at 10% 14%, var(--theme-glow1) 0, var(--theme-glow1) 10%, transparent 32%),
    radial-gradient(circle at 88% 12%, var(--theme-glow2) 0, var(--theme-glow2) 10%, transparent 28%),
    radial-gradient(circle at 74% 86%, var(--theme-glow3) 0, var(--theme-glow3) 10%, transparent 28%),
    var(--display-bg-image) center/cover no-repeat fixed,
    linear-gradient(180deg, var(--display-bg-color) 0%, #e6edf4 100%) !important
}

.lobby-page.theme-executive {
  --theme-ink: #0f2035;
  --theme-muted: #61768e;
  --theme-panel: rgba(255, 255, 255, .76);
  --theme-panel-border: rgba(201, 216, 230, .98);
  --theme-card: rgba(255, 255, 255, .93);
  --theme-card-border: rgba(210, 223, 235, .98);
  --theme-accent: #0f315d;
  --theme-accent-soft: #ebf2f9;
  --theme-rss: #102f57;
  --theme-rss-dark: #0b2545;
  --theme-glow1: rgba(23, 63, 115, .10);
  --theme-glow2: rgba(14, 165, 164, .10);
  --theme-glow3: rgba(130, 178, 58, .10)
}

.lobby-page.theme-corporate_clean {
  --theme-ink: #152233;
  --theme-muted: #6b7f95;
  --theme-panel: rgba(255, 255, 255, .70);
  --theme-panel-border: rgba(211, 224, 236, .95);
  --theme-card: rgba(255, 255, 255, .88);
  --theme-card-border: rgba(219, 230, 239, .95);
  --theme-accent: #173f73;
  --theme-accent-soft: #edf4fa;
  --theme-rss: #173f73;
  --theme-rss-dark: #0f315d
}

.lobby-page.theme-warm_lobby {
  --theme-ink: #2b241e;
  --theme-muted: #7b6a5b;
  --theme-panel: rgba(255, 250, 245, .76);
  --theme-panel-border: rgba(234, 220, 208, .98);
  --theme-card: rgba(255, 255, 255, .88);
  --theme-card-border: rgba(236, 223, 212, .98);
  --theme-accent: #9a6426;
  --theme-accent-soft: #f7eee4;
  --theme-rss: #76502b;
  --theme-rss-dark: #5f3e20;
  --theme-glow1: rgba(243, 154, 30, .14);
  --theme-glow2: rgba(130, 178, 58, .10);
  --theme-glow3: rgba(239, 72, 54, .08)
}

.lobby-page.bg-mode-color {
  background:
    radial-gradient(circle at 10% 14%, var(--theme-glow1) 0, var(--theme-glow1) 10%, transparent 32%),
    radial-gradient(circle at 88% 12%, var(--theme-glow2) 0, var(--theme-glow2) 10%, transparent 28%),
    radial-gradient(circle at 74% 86%, var(--theme-glow3) 0, var(--theme-glow3) 10%, transparent 28%),
    linear-gradient(180deg, var(--display-bg-color) 0%, #dfe8f0 100%) !important
}

.lobby-page.bg-mode-image {
  background:
    linear-gradient(rgba(236, 243, 247, .58), rgba(230, 237, 244, .62)),
    var(--display-bg-image) center/cover no-repeat fixed !important
}

.lobby-page.has-watermark .lobby-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .08;
  background: url('/public/icons/kawung.png') right 34px bottom 34px/240px 240px no-repeat, url('/public/icons/kawung.png') left 34px top 94px/168px 168px no-repeat
}

.lobby-page .lobby-shell {
  position: relative
}

.lobby-page .lobby-shell>* {
  position: relative;
  z-index: 1
}

.lobby-page .lobby-agenda {
  background: var(--theme-panel) !important;
  border-color: var(--theme-panel-border) !important
}

.agenda-brand-strip .c-red {
  background: var(--brand-red)
}

.agenda-brand-strip .c-orange {
  background: var(--brand-orange)
}

.agenda-brand-strip .c-green {
  background: var(--brand-green)
}

.agenda-brand-strip .c-teal {
  background: var(--brand-teal)
}

.agenda-brand .eyebrow,
.lobby-page .media-meta .eyebrow {
  color: color-mix(in srgb, var(--theme-accent) 58%, white) !important
}

.agenda-brand h1,
.lobby-page .display-agenda strong,
.lobby-page .display-clock strong,
.lobby-page .display-room strong,
.footer-brand,
.lobby-page .display-time strong {
  color: var(--theme-ink) !important
}

.agenda-brand p,
.lobby-page .display-clock span,
.lobby-page .display-time span,
.lobby-page .display-room span,
.lobby-page .display-agenda span,
.lobby-page .display-footer,
.lobby-page .empty-state.dark {
  color: var(--theme-muted) !important
}

.lobby-page .agenda-date {
  background: var(--theme-accent-soft) !important;
  color: var(--theme-accent) !important;
  border-color: var(--theme-panel-border) !important
}

.lobby-page .display-meeting {
  background: var(--theme-card) !important;
  border-color: var(--theme-card-border) !important;
  border-left-color: var(--theme-accent) !important
}

.lobby-page .display-room strong {
  color: var(--theme-accent) !important
}

.agenda-status-chip {
  background: color-mix(in srgb, var(--brand-green) 18%, white) !important;
  color: #24523a
}

.lobby-page .display-footer,
.lobby-page .agenda-header {
  background: color-mix(in srgb, var(--theme-panel) 92%, white) !important
}

.lobby-rss {
  background: linear-gradient(90deg, var(--theme-rss) 0%, color-mix(in srgb, var(--theme-rss) 84%, white) 52%, var(--theme-rss) 100%) !important
}

.lobby-rss-label {
  background: var(--theme-rss-dark) !important
}

.lobby-page.scale-large .lobby-shell {
  grid-template-columns: minmax(0, 2.24fr) minmax(440px, .96fr) !important
}

.lobby-page.scale-large .agenda-brand h1 {
  font-size: 26px !important
}

.lobby-page.scale-large .agenda-brand p {
  font-size: 13px;
  max-width: 320px
}

.lobby-page.scale-large .display-clock strong {
  font-size: 30px !important
}

.lobby-page.scale-large .display-clock span {
  font-size: 12px !important
}

.lobby-page.scale-large .display-agenda-list {
  padding: 8px 12px 8px !important;
  height: 100%;
  overflow: hidden
}

.lobby-page.scale-large .agenda-date {
  font-size: 10px;
  padding: 7px 12px;
  margin: 6px 2px 0
}

.lobby-page.scale-large .display-meeting {
  grid-template-columns: 88px minmax(0, 1fr) 140px;
  gap: 12px;
  margin: 0 2px 5px;
  padding: 9px 12px 9px 14px;
  min-height: 0;
  border-radius: 0 0 12px 12px
}

.lobby-page.scale-large .display-time strong {
  font-size: 20px !important
}

.lobby-page.scale-large .display-time span {
  font-size: 11px !important
}

.lobby-page.scale-large .display-agenda strong {
  font-size: 15px !important;
  line-height: 1.3
}

.lobby-page.scale-large .display-agenda span {
  font-size: 11px !important;
  margin-top: 3px;
  display: block
}

.lobby-page.scale-large .display-room strong {
  font-size: 14px !important;
  line-height: 1.25
}

.lobby-page.scale-large .display-room span {
  font-size: 10px !important;
  margin-top: 3px;
  display: block
}

.lobby-page.scale-large .agenda-page-indicator {
  font-size: 12px;
  padding: 6px 2px 0
}

.lobby-page.scale-large .media-meta strong {
  font-size: 24px
}

.lobby-page.scale-large .media-meta small {
  font-size: 13px
}

.lobby-page.scale-large .lobby-media-brand strong {
  font-size: 21px
}

.lobby-page.scale-large .lobby-rss {
  height: 46px
}

.lobby-page.scale-large .lobby-rss-copy {
  font-size: 15px
}

.lobby-page.scale-standard .lobby-shell {
  grid-template-columns: minmax(0, 1.3fr) minmax(390px, .9fr) !important
}

.lobby-page.agenda-empty .lobby-shell,
.lobby-page.scale-large.agenda-empty .lobby-shell,
.lobby-page.scale-standard.agenda-empty .lobby-shell {
  grid-template-columns: minmax(0, 1fr) !important
}

.lobby-page.agenda-empty .lobby-agenda {
  display: none !important
}

.lobby-page.bg-mode-image .lobby-agenda,
.lobby-page.bg-mode-image .lobby-rss {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px)
}

@media(max-width:1180px) {
  .display-settings-form .two-col {
    grid-template-columns: 1fr 1fr
  }

  .lobby-page.scale-large .lobby-shell {
    grid-template-columns: minmax(0, 1fr) 400px !important
  }

  .lobby-page.scale-large .display-meeting {
    grid-template-columns: 88px minmax(0, 1fr) 132px
  }
}

@media(max-width:900px) {
  .display-settings-form .two-col {
    grid-template-columns: 1fr
  }

  .lobby-page.scale-large .lobby-shell {
    grid-template-columns: 1fr !important
  }

  .lobby-page.has-watermark .lobby-shell::before {
    opacity: .05;
    background: url('/public/icons/kawung.png') right 16px bottom 16px/140px 140px no-repeat
  }
}


/* v0.5.3 — Reception Panel aligned with enterprise Lobby visual system */
.reception-page {
  --brand-red: #ef4836;
  --brand-orange: #f39a1e;
  --brand-green: #82b23a;
  --brand-teal: #0ea5a4;
  --theme-ink: #152233;
  --theme-muted: #6b7f95;
  --theme-panel: rgba(255, 255, 255, .74);
  --theme-panel-border: rgba(211, 224, 236, .95);
  --theme-card: rgba(255, 255, 255, .88);
  --theme-card-border: rgba(219, 230, 239, .95);
  --theme-accent: #173f73;
  --theme-accent-soft: #edf4fa;
  --theme-glow1: rgba(239, 72, 54, .13);
  --theme-glow2: rgba(14, 165, 164, .13);
  --theme-glow3: rgba(130, 178, 58, .12);
  --display-bg-color: #eaf0f5;
  --display-bg-image: none;
  background: radial-gradient(circle at 8% 14%, var(--theme-glow1), transparent 29%), radial-gradient(circle at 91% 12%, var(--theme-glow2), transparent 27%), radial-gradient(circle at 72% 88%, var(--theme-glow3), transparent 26%), var(--display-bg-image) center/cover no-repeat fixed, linear-gradient(180deg, var(--display-bg-color), #e6edf4) !important;
  color: var(--theme-ink) !important;
  overflow: hidden
}

.reception-page.theme-executive {
  --theme-ink: #0f2035;
  --theme-muted: #61768e;
  --theme-panel: rgba(255, 255, 255, .79);
  --theme-panel-border: rgba(201, 216, 230, .98);
  --theme-card: rgba(255, 255, 255, .94);
  --theme-card-border: rgba(210, 223, 235, .98);
  --theme-accent: #0f315d;
  --theme-accent-soft: #ebf2f9;
  --theme-glow1: rgba(23, 63, 115, .10);
  --theme-glow2: rgba(14, 165, 164, .10);
  --theme-glow3: rgba(130, 178, 58, .09)
}

.reception-page.theme-warm_lobby {
  --theme-ink: #2b241e;
  --theme-muted: #7b6a5b;
  --theme-panel: rgba(255, 250, 245, .79);
  --theme-panel-border: rgba(234, 220, 208, .98);
  --theme-card: rgba(255, 255, 255, .90);
  --theme-card-border: rgba(236, 223, 212, .98);
  --theme-accent: #9a6426;
  --theme-accent-soft: #f7eee4;
  --theme-glow1: rgba(243, 154, 30, .13);
  --theme-glow2: rgba(130, 178, 58, .09);
  --theme-glow3: rgba(239, 72, 54, .07)
}

.reception-page.bg-mode-image {
  background: linear-gradient(rgba(236, 243, 247, .56), rgba(230, 237, 244, .62)), var(--display-bg-image) center/cover no-repeat fixed !important
}

.reception-page.bg-mode-color {
  background: radial-gradient(circle at 8% 14%, var(--theme-glow1), transparent 29%), radial-gradient(circle at 91% 12%, var(--theme-glow2), transparent 27%), linear-gradient(180deg, var(--display-bg-color), #e6edf4) !important
}

.reception-page.has-watermark::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .065;
  background: url('/public/icons/kawung.png') right 36px bottom 34px/220px 220px no-repeat, url('/public/icons/kawung.png') left 34px top 106px/150px 150px no-repeat
}

.reception-brandbar,
.enterprise-reception,
.reception-footer {
  position: relative;
  z-index: 1
}

.reception-brandbar {
  height: 92px;
  margin: 12px 16px 0;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--theme-panel-border);
  border-radius: 8px 8px 4px 4px;
  background: var(--theme-panel);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(19, 43, 68, .06)
}

.reception-brand-main {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0
}

.reception-logo {
  width: 168px;
  height: auto;
  max-height: 52px;
  object-fit: contain
}

.reception-divider {
  width: 1px;
  height: 42px;
  background: var(--theme-panel-border)
}

.reception-brand-main .eyebrow {
  margin-bottom: 3px;
  color: var(--theme-accent) !important;
  font-size: 10px
}

.reception-brand-main strong {
  display: block;
  color: var(--theme-ink);
  font-size: 23px;
  line-height: 1.1;
}

.reception-brand-main small {
  display: block;
  margin-top: 3px;
  color: var(--theme-muted);
  font-size: 11px
}

.reception-head-right {
  display: flex;
  align-items: center;
  gap: 22px
}

.reception-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #e9f6ef;
  color: #276246;
  font-size: 10px;
  font-weight: 850
}

.reception-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38c172;
  box-shadow: 0 0 0 4px rgba(56, 193, 114, .13)
}

.reception-page .kiosk-clock strong {
  font-size: 34px !important;
  line-height: 1;
  color: var(--theme-accent) !important;
}

.reception-page .kiosk-clock span {
  margin-top: 5px;
  color: var(--theme-muted) !important;
  font-size: 10px
}

.reception-page .enterprise-reception {
  height: calc(100vh - 142px);
  padding: 14px 16px 10px;
  display: grid;
  grid-template-columns: minmax(430px, .92fr) minmax(620px, 1.45fr);
  gap: 14px;
  background: transparent !important
}

.reception-page .kiosk-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--theme-panel-border) !important;
  border-radius: 8px;
  background: var(--theme-panel) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 26px rgba(24, 49, 77, .055)
}

.panel-accent {
  height: 4px;
  display: grid;
  grid-template-columns: repeat(4, 1fr)
}

.panel-accent i:nth-child(1) {
  background: var(--brand-red)
}

.panel-accent i:nth-child(2) {
  background: var(--brand-orange)
}

.panel-accent i:nth-child(3) {
  background: var(--brand-green)
}

.panel-accent i:nth-child(4) {
  background: var(--brand-teal)
}

.reception-page .reception-section-title {
  height: 92px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--theme-panel-border) !important;
  background: rgba(255, 255, 255, .28)
}

.reception-section-title h2 {
  margin: 0;
  color: var(--theme-ink) !important;
  font-size: 24px;
}

.reception-section-title p {
  margin: 3px 0 0;
  color: var(--theme-muted);
  font-size: 10px
}

.reception-page .eyebrow {
  color: var(--theme-accent) !important
}

.reception-page .counter {
  min-width: 42px;
  height: 34px;
  background: var(--theme-accent) !important;
  color: #fff !important;
  font-size: 14px
}

.reception-page .live-indicator {
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf7f1;
  color: #32684b !important;
  font-weight: 800
}

.reception-page .visitor-live-list,
.reception-page .agenda-live-list {
  height: calc(100% - 96px);
  background: transparent;
  scrollbar-color: #bcc9d6 transparent
}

.reception-page .visitor-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--theme-card-border) !important;
  background: rgba(255, 255, 255, .35)
}

.reception-page .visitor-row:nth-child(even) {
  background: rgba(255, 255, 255, .55) !important
}

.reception-page .visitor-waiting {
  background: rgba(255, 248, 231, .88) !important;
  border-left: 4px solid #dda62d
}

.reception-page .visitor-time strong {
  font-size: 20px;
  color: var(--theme-ink) !important
}

.reception-page .visitor-time span {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 850;
  color: var(--theme-muted) !important
}

.reception-page .visitor-name-line>strong {
  font-size: 16px;
  color: var(--theme-ink) !important
}

.reception-page .visitor-info>span {
  margin: 2px 0 7px;
  color: var(--theme-muted) !important;
  font-size: 11px
}

.reception-page .visitor-destination {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #334a64 !important;
  font-size: 13px !important
}

.reception-page .visitor-destination b {
  display: inline-flex;
  padding: 3px 7px;
  background: var(--theme-accent-soft);
  color: var(--theme-accent) !important;
  border-radius: 5px;
  font-size: 11px
}

.reception-page .visitor-destination span {
  color: #90a0b1
}

.reception-page .visitor-info small {
  margin-top: 6px;
  color: var(--theme-muted) !important;
  font-size: 10px
}

.reception-page .verification-pill {
  padding: 4px 7px;
  border-radius: 5px;
  background: #fff0c8;
  color: #805d00 !important
}

.reception-page .visitor-approval-box {
  margin-top: 11px;
  padding: 10px;
  border: 1px solid #ead49c;
  border-radius: 7px;
  background: rgba(255, 250, 240, .88)
}

.reception-page .visitor-approval-box p {
  margin: 0 0 8px;
  color: #655323;
  font-size: 10px
}

.reception-page .visitor-approval-actions {
  display: grid;
  grid-template-columns: 110px minmax(140px, 180px);
  gap: 7px
}

.reception-page .visitor-approval-actions input {
  height: 34px;
  border-radius: 6px
}

.reception-page .reception-approve,
.reception-page .reception-checkout {
  min-height: 34px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 850
}

.reception-page .reception-approve {
  border: 0;
  background: var(--theme-accent);
  color: #fff
}

.approved-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px
}

.reception-page .approved-meta {
  margin: 0;
  padding: 5px 8px;
  border-radius: 6px
}

.reception-page .reception-checkout {
  margin: 0;
  border: 1px solid var(--theme-panel-border) !important;
  background: var(--theme-accent-soft) !important;
  color: var(--theme-accent) !important
}

.reception-page .agenda-date {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 8px 12px 0;
  padding: 9px 13px;
  border: 1px solid var(--theme-panel-border);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--theme-accent-soft) !important;
  color: var(--theme-accent) !important;
  font-size: 10px
}

.reception-page .agenda-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 150px;
  gap: 14px;
  margin: 0 12px 8px;
  padding: 13px 14px;
  border: 1px solid var(--theme-card-border) !important;
  border-left: 3px solid var(--theme-accent) !important;
  border-radius: 0 0 8px 8px;
  background: var(--theme-card) !important
}

.reception-page .agenda-time strong {
  font-size: 19px;
  color: var(--theme-ink) !important
}

.reception-page .agenda-time span {
  font-size: 10px;
  color: var(--theme-muted) !important
}

.reception-page .agenda-main strong {
  overflow: visible;
  white-space: normal;
  font-size: 14px;
  line-height: 1.3;
  color: var(--theme-ink) !important
}

.reception-page .agenda-main span {
  margin-top: 4px;
  font-size: 10px;
  color: var(--theme-muted) !important
}

.reception-page .agenda-room strong {
  font-size: 12px;
  line-height: 1.25;
  color: var(--theme-accent) !important
}

.reception-page .agenda-room span {
  margin-top: 4px;
  font-size: 9px;
  color: var(--theme-muted) !important
}

.reception-page .empty-state.dark {
  background: transparent !important;
  color: var(--theme-muted) !important
}

.reception-page.scale-large .enterprise-reception {
  grid-template-columns: minmax(470px, .95fr) minmax(690px, 1.55fr)
}

.reception-page.scale-large .reception-section-title {
  height: 102px
}

.reception-page.scale-large .reception-section-title h2 {
  font-size: 27px
}

.reception-page.scale-large .visitor-live-list,
.reception-page.scale-large .agenda-live-list {
  height: calc(100% - 106px)
}

.reception-page.scale-large .visitor-row {
  grid-template-columns: 92px minmax(0, 1fr);
  padding: 18px
}

.reception-page.scale-large .visitor-time strong {
  font-size: 24px
}

.reception-page.scale-large .visitor-name-line>strong {
  font-size: 18px
}

.reception-page.scale-large .visitor-info>span {
  font-size: 12px
}

.reception-page.scale-large .visitor-destination {
  font-size: 14px !important
}

.reception-page.scale-large .agenda-row {
  grid-template-columns: 108px minmax(0, 1fr) 180px;
  min-height: 86px;
  padding: 15px 16px
}

.reception-page.scale-large .agenda-time strong {
  font-size: 23px
}

.reception-page.scale-large .agenda-main strong {
  font-size: 17px
}

.reception-page.scale-large .agenda-main span {
  font-size: 11px
}

.reception-page.scale-large .agenda-room strong {
  font-size: 15px
}

.reception-page .reception-footer {
  height: 26px;
  margin: 0 16px 8px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent !important;
  color: var(--theme-muted) !important;
  font-size: 9px
}

.reception-footer span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.reception-footer img {
  width: 14px;
  height: 14px
}

.reception-page .visitor-completed {
  opacity: .52
}

@media(max-width:1250px) {

  .reception-page .enterprise-reception,
  .reception-page.scale-large .enterprise-reception {
    grid-template-columns: minmax(380px, .9fr) minmax(540px, 1.35fr)
  }

  .reception-logo {
    width: 145px
  }

  .reception-brand-main strong {
    font-size: 20px
  }

  .reception-page.scale-large .agenda-row {
    grid-template-columns: 90px minmax(0, 1fr) 145px
  }
}

@media(max-width:1000px) {
  .reception-page {
    overflow: auto
  }

  .reception-brandbar {
    margin: 8px;
    height: auto;
    min-height: 80px;
    padding: 14px
  }

  .reception-head-right {
    gap: 10px
  }

  .reception-live {
    display: none
  }

  .reception-page .enterprise-reception,
  .reception-page.scale-large .enterprise-reception {
    height: auto;
    padding: 8px;
    grid-template-columns: 1fr
  }

  .reception-page .kiosk-panel {
    min-height: 520px
  }

  .reception-page .reception-footer {
    margin: 0 8px 8px
  }

  .reception-page.has-watermark::after {
    opacity: .04;
    background: url('/public/icons/kawung.png') right 16px bottom 16px/130px 130px no-repeat
  }
}


/* v0.5.4 — background visibility hotfix */
.display-background-preview {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line)
}

.display-background-preview-box {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  border: 1px solid #d5e0ea;
  border-radius: 10px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2)
}

.display-background-preview-box span,
.display-background-preview-box strong {
  display: block;
  width: max-content;
  max-width: 100%;
  padding: 3px 7px;
  background: rgba(255, 255, 255, .88);
  color: #173f73
}

.display-background-preview-box span {
  font-size: 9px;
  font-weight: 800;
}

.display-background-preview-box strong {
  margin-top: 2px;
  font-size: 13px
}

/* Make uploaded image the actual visual base layer. */
body.kiosk.lobby-page.bg-mode-image {
  background-color: var(--display-bg-color, #eaf0f5) !important;
  background-image: linear-gradient(rgba(239, 244, 248, .14), rgba(232, 239, 245, .20)), var(--display-bg-image) !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

body.kiosk.reception-page.bg-mode-image {
  background-color: var(--display-bg-color, #eaf0f5) !important;
  background-image: linear-gradient(rgba(239, 244, 248, .12), rgba(232, 239, 245, .18)), var(--display-bg-image) !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

/* Let the background breathe through empty meeting/visitor space. */
.lobby-page.bg-mode-image .lobby-agenda {
  background: rgba(255, 255, 255, .30) !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
}

.lobby-page.bg-mode-image .agenda-header,
.lobby-page.bg-mode-image .display-footer {
  background: rgba(255, 255, 255, .68) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lobby-page.bg-mode-image .display-agenda-list {
  background: transparent !important
}

.lobby-page.bg-mode-image .agenda-date {
  background: rgba(241, 246, 250, .78) !important
}

.lobby-page.bg-mode-image .display-meeting {
  background: rgba(255, 255, 255, .82) !important
}

.lobby-page.bg-mode-image .empty-state.dark {
  background: transparent !important
}

.reception-page.bg-mode-image .reception-brandbar {
  background: rgba(255, 255, 255, .70) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.reception-page.bg-mode-image .kiosk-panel {
  background: rgba(255, 255, 255, .36) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

.reception-page.bg-mode-image .panel-title {
  background: rgba(255, 255, 255, .58) !important
}

.reception-page.bg-mode-image .visitor-live-list,
.reception-page.bg-mode-image .agenda-live-list {
  background: transparent !important
}

.reception-page.bg-mode-image .visitor-row,
.reception-page.bg-mode-image .agenda-row {
  background: rgba(255, 255, 255, .80) !important
}

.reception-page.bg-mode-image .visitor-waiting {
  background: rgba(255, 251, 240, .88) !important
}

.reception-page.bg-mode-image .empty-state.dark {
  background: transparent !important
}

.reception-page.bg-mode-image .reception-footer {
  color: #425b73 !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, .7)
}

/* More visible background gutters on 65-inch landscape screens. */
@media(min-width:1400px) {
  .lobby-page.bg-mode-image .lobby-shell {
    margin: 18px !important;
    gap: 18px !important;
    height: calc(100vh - 36px) !important
  }

  .lobby-page.bg-mode-image.has-rss .lobby-shell {
    height: calc(100vh - 82px) !important
  }

  .lobby-page.bg-mode-image .lobby-rss {
    left: 18px !important;
    right: 18px !important;
    bottom: 12px !important
  }

  .reception-page.bg-mode-image .reception-brandbar {
    margin: 14px 18px 0 !important
  }

  .reception-page.bg-mode-image .enterprise-reception {
    padding: 14px 18px 10px !important;
    gap: 18px !important
  }
}


/* v0.5.5 — explicit local / Microsoft / hybrid user authentication */
.auth-badge {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
}

.auth-microsoft {
  background: #e8f1fb;
  color: #164f8c
}

.auth-local {
  background: #eef1f4;
  color: #526274
}

.auth-hybrid {
  background: #eaf6ef;
  color: #276347
}

.linked-note {
  display: block;
  margin-top: 4px;
  color: #5f7489;
  font-size: 9px
}

.user-auth-details {
  margin-bottom: 7px
}

.user-auth-details summary {
  cursor: pointer;
  color: #173f73;
  font-size: 11px;
  font-weight: 800
}

.user-auth-form {
  display: grid;
  grid-template-columns: 120px minmax(150px, 1fr) auto;
  gap: 6px;
  margin: 7px 0 10px;
  padding: 9px;
  border: 1px solid #dce5ee;
  border-radius: 9px;
  background: #f8fafc
}

.user-auth-form select,
.user-auth-form input {
  padding: 8px;
  font-size: 11px
}

.user-auth-form .btn {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 11px
}

@media(max-width:900px) {
  .user-auth-form {
    grid-template-columns: 1fr
  }
}

/* TV ticker: solid colors also work on browsers without color-mix support. */
.lobby-page { --rss-height: 68px; --rss-safe-edge: 18px; }
.lobby-page.has-rss .lobby-shell,
.lobby-page.bg-mode-image.has-rss .lobby-shell {
  height: calc(100vh - var(--rss-height) - var(--rss-safe-edge) - 30px) !important;
}
.lobby-page .lobby-rss {
  left: var(--rss-safe-edge) !important;
  right: var(--rss-safe-edge) !important;
  bottom: var(--rss-safe-edge) !important;
  height: var(--rss-height) !important;
  background: var(--theme-rss, #173f73) !important;
  color: var(--rss-text-color, #ffffff) !important;
  border: 2px solid rgba(255,255,255,.5) !important;
  border-radius: 8px;
}
.lobby-page .lobby-rss::before { display: none; }
.lobby-page .lobby-rss-label {
  background: var(--theme-rss-dark, #0f315d) !important;
  color: var(--rss-label-color, #ffffff) !important;
  font-size: 20px !important;
  padding: 0 22px;
}
.lobby-page .lobby-rss-label img { width: 30px; height: 30px; }
.lobby-page .lobby-rss-copy {
  color: var(--rss-text-color, #ffffff) !important;
  font-size: clamp(24px, 1.55vw, 36px) !important;
  font-weight: 700;
  line-height: 1.3;
}
.lobby-page .lobby-rss-copy span,
.lobby-page .lobby-rss-copy span::after { color: inherit !important; }

/* Kawung separates headlines, including the looping ticker copies. */
.lobby-page .lobby-rss-copy span::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: middle;
  background: url('/public/icons/kawung.png') center / contain no-repeat;
}
.lobby-page.bg-mode-color { background: var(--display-bg-color, #eaf0f5) !important; }
@media (max-width:1000px) {
  .lobby-page { --rss-height: 56px; --rss-safe-edge: 10px; }
  .lobby-page .lobby-rss-label { font-size: 16px !important; padding: 0 12px; }
}
