:root {
  --bg-page: #000;
  --band-gray: #d3d3d3;
  --panel-white: #ffffff;
  --text-dark: #111111;
  --text-muted: #3b3b3b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg-page);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  min-height: 100vh;
  overflow: hidden;
}

.screen {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 22vh 1fr 20vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms ease;
}

.top-bar,
.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--band-gray);
}

.top-bar {
  padding: 1.25rem 2rem;
}

.brand-logo {
  width: min(17vw, 220px);
  min-width: 130px;
  height: auto;
  display: block;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-white);
  text-align: center;
  padding: 2rem 4vw;
}

.hero-content,
.message {
  display: none;
}

.hero-connected {
  width: 100%;
}

.hero-idle {
  width: 100%;
  height: 100%;
}

.connected-view {
  display: none;
}

.hero-title,
.hero-subtitle,
.message-label,
.message-title,
.message-text {
  margin: 0;
  color: var(--text-dark);
}

.hero-title {
  font-size: clamp(4rem, 8vw, 7.2rem);
  font-weight: 400;
  line-height: 1;
}

.hero-subtitle {
  margin-top: 1.4rem;
  font-size: clamp(4.4rem, 9vw, 8.2rem);
  font-weight: 400;
  line-height: 1.02;
}

.hero-title-small {
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1.08;
}

.hero-text {
  margin: 1.5rem auto 0;
  max-width: 980px;
  font-size: clamp(1.35rem, 2vw, 2.3rem);
  line-height: 1.35;
  color: var(--text-muted);
}

.idle-media {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #050505;
  overflow: hidden;
}

.idle-top-band {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 15vh;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(211, 211, 211, 0.5);
  z-index: 2;
}

.idle-band-logo {
  width: min(12.1vw, 132px);
  min-width: 77px;
  height: auto;
  display: block;
}

.idle-video-frame {
  position: absolute;
  inset: 0;
}

.idle-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #050505;
}

.idle-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  pointer-events: none;
}

.idle-overlay-text {
  position: absolute;
  left: 50%;
  bottom: clamp(5.5rem, 9vw, 8rem);
  transform: translateX(-50%);
  margin: 0;
  max-width: min(88vw, 900px);
  padding: 0.8rem 1.1rem;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.62);
  color: #ffffff;
  font-size: clamp(0.9rem, 1.3vw, 1.2rem);
  line-height: 1.4;
  text-align: center;
}

.idle-overlay-text:empty {
  display: none;
}

.idle-overlay-callout {
  margin: 0;
  padding: 1rem 1.5rem;
  color: #ffffff;
  font-size: clamp(1.5rem, 2.8vw, 2.8rem);
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 18px;
}

.call-layout {
  width: min(95vw, 1680px);
  display: grid;
  grid-template-columns: minmax(0, 0.833fr) minmax(0, 1.08fr);
  gap: clamp(1.5rem, 4vw, 3.6rem);
  align-items: start;
  justify-content: center;
}

.info-panel {
  width: 100%;
  aspect-ratio: 5 / 6;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-slide {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.video-panel {
  position: relative;
  width: 100%;
  aspect-ratio: 1.08;
  background: #707070;
  border: 3px solid #151515;
  overflow: hidden;
}

.video-main {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.video-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
}

.video-native-pip {
  border-radius: inherit;
}

.video-placeholder {
  position: relative;
  z-index: 1;
  width: min(66%, 520px);
  aspect-ratio: 1.28;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-6%);
}

.video-placeholder-small {
  width: min(42%, 180px);
  transform: translateY(2%);
}

.video-remote-off {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  background: #d9d9d9;
}

.video-remote-off-logo {
  width: min(58%, 340px);
  height: auto;
  display: block;
}

.video-avatar {
  position: relative;
  width: 100%;
  height: 100%;
}

.avatar-head,
.avatar-body {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  background: #111;
}

.avatar-head {
  top: 16%;
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.avatar-body {
  bottom: 10%;
  width: 78%;
  height: 46%;
  border-radius: 50% 50% 10% 10%;
}

.video-pip {
  position: absolute;
  right: 2.2rem;
  bottom: 1.4rem;
  width: 18.5%;
  min-width: 140px;
  aspect-ratio: 4 / 3;
  height: auto;
  background: #dcdcdc;
  border: 3px solid #1a1a1a;
  overflow: hidden;
}

.video-pip-full {
  width: 21%;
  min-width: 170px;
  right: 2.4rem;
  bottom: 2rem;
}

.video-pip-assist {
  width: 23%;
  min-width: 78px;
  right: 0.55rem;
  bottom: 0.55rem;
  border-width: 2px;
}

.pip-placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #dcdcdc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.4rem, 2.4vw, 2.8rem);
  color: #111;
}

.has-stream {
  color: transparent;
}

.has-stream .video-placeholder,
.has-stream .pip-placeholder {
  opacity: 0;
  pointer-events: none;
}

.video-caption {
  margin: 1rem 0 0;
  font-size: clamp(1.2rem, 2vw, 2.2rem);
  color: #111;
}

.video-caption-small {
  margin-top: 0.45rem;
  font-size: 0.95rem;
  line-height: 1.1;
}

.video-panel-fullscreen {
  aspect-ratio: auto;
  height: min(74vh, 980px);
  border: 0;
}

body[data-remote-video="off"] .video-remote-off {
  display: flex;
}

body[data-remote-video="off"] .video-main .video-native[data-rtc-role="remote"] {
  opacity: 0;
}

.assist-layout {
  width: min(1320px, 100%);
  display: grid;
  grid-template-columns: 1fr minmax(250px, 370px);
  grid-template-rows: auto 1fr;
  gap: 1.4rem 2rem;
  align-items: start;
}

.assist-header {
  grid-column: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 2rem;
}

.assist-logo {
  width: clamp(92px, 9vw, 150px);
  height: auto;
  display: block;
}

.assist-title-block {
  padding-top: 0.35rem;
}

.assist-title {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
}

.assist-unit {
  margin: 0.75rem 0 0;
  font-size: clamp(1.6rem, 2.7vw, 3rem);
  font-weight: 400;
  text-align: center;
}

.assist-video-panel {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  width: 100%;
  aspect-ratio: 1.46;
  background: #707070;
  border: 3px solid #151515;
  overflow: hidden;
}

.content-stage {
  grid-column: 1 / span 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.content-stage-map {
  padding-top: 0.5rem;
}

.map-stage {
  width: min(1000px, 100%);
  min-height: 330px;
  padding: 2.4rem 1rem 1.2rem;
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 1rem;
  background: #858585;
}

.map-figure {
  position: relative;
  width: 100%;
  aspect-ratio: 1700 / 566;
  overflow: hidden;
  background: #676767;
}

.map-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.map-slots {
  position: absolute;
  inset: 0;
}

.map-slots-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.map-slot-shape {
  fill: transparent;
  stroke: transparent;
  stroke-width: 4;
  rx: 3;
  ry: 3;
}

.map-slot.is-selected .map-slot-shape {
  fill: rgba(201, 224, 75, 0.66);
  stroke: #c9e04b;
}

.map-corridor {
  grid-column: 1;
  justify-self: center;
  color: #333;
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.corridor-1 {
  order: 2;
}

.corridor-2 {
  order: 4;
}

.map-side {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 0;
}

.map-side-text {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #414546;
  color: #b9cf7e;
  font-size: 1.2rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.map-brand-box {
  background: #9b9b9b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem;
}

.map-brand-unit {
  margin: 0;
  font-size: 1rem;
  color: #444;
}

.map-brand-logo {
  width: 92px;
  height: auto;
}

.content-stage-products {
  padding-top: 0.8rem;
}

.qr-box {
  width: min(100%, 300px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ededed;
  color: #111;
  font-size: clamp(2.4rem, 4vw, 4rem);
  text-align: center;
  line-height: 1.1;
}

.qr-box-large {
  max-width: 260px;
}

.totem-products-grid {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1.5rem 1.8rem;
}

.products-summary-bar {
  width: min(1100px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: #f3f3f3;
  border: 3px solid #c9e04b;
}

.products-summary-label,
.products-summary-value {
  margin: 0;
}

.products-summary-label {
  font-size: 1.2rem;
}

.products-summary-value {
  font-size: 2rem;
}

.product-card {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  text-align: center;
}

.product-card-image {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.product-card-name {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 400;
}

.product-card-description {
  margin: 0;
  font-size: 1.1rem;
}

.product-card-price {
  margin: 0;
  font-size: 1.8rem;
}

.quantity-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.quantity-button {
  min-width: 54px;
  min-height: 54px;
  border: 3px solid #c9e04b;
  background: #ececec;
  font-size: 2rem;
  cursor: pointer;
}

.quantity-value {
  min-width: 34px;
  font-size: 1.5rem;
}

.lock-stage {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 320px;
  gap: 2.2rem;
  align-items: center;
}

.lock-product {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 2rem;
  align-items: center;
}

.lock-product-image {
  width: min(100%, 220px);
  height: auto;
  object-fit: contain;
  justify-self: center;
}

.lock-product-copy {
  display: grid;
  gap: 0.8rem;
  text-align: center;
}

.lock-product-name,
.lock-product-description,
.lock-product-price,
.lock-payment-note {
  margin: 0;
}

.lock-product-name {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 400;
}

.lock-product-description {
  font-size: clamp(1.5rem, 2.4vw, 2.5rem);
}

.lock-product-price {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.lock-payment {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.lock-payment-note {
  max-width: 280px;
  text-align: center;
  color: #444;
  line-height: 1.4;
}

.content-stage-checkout {
  padding-top: 0.8rem;
}

.checkout-panel {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1.2fr 360px;
  gap: 2rem;
  align-items: start;
}

.checkout-items {
  display: grid;
  gap: 1rem;
}

.checkout-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  background: #f3f3f3;
}

.checkout-item-image {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.checkout-item-name,
.checkout-item-description,
.checkout-item-meta,
.checkout-total-label,
.checkout-total-value,
.checkout-note {
  margin: 0;
}

.checkout-item-name {
  font-size: 1.4rem;
}

.checkout-item-description,
.checkout-item-meta,
.checkout-note {
  color: #444;
}

.checkout-item-meta {
  font-size: 1rem;
}

.checkout-summary {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 1.4rem;
  background: #f3f3f3;
  text-align: center;
}

.checkout-total-label {
  font-size: 1.3rem;
}

.checkout-total-value {
  font-size: 2.8rem;
}

.checkout-empty {
  padding: 1.5rem;
  background: #f3f3f3;
  text-align: center;
}

.bottom-bar {
  padding: 1rem 2rem;
  text-align: center;
}

.message-label {
  font-size: clamp(2.6rem, 4.2vw, 4.6rem);
  font-weight: 400;
}

.message-title {
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  font-weight: 700;
}

.message-text {
  margin-top: 0.75rem;
  max-width: 1020px;
  font-size: clamp(1rem, 1.7vw, 1.8rem);
  line-height: 1.35;
  color: var(--text-muted);
}

body[data-state="idle"] .screen,
body[data-state="calling"] .screen,
body[data-state="connected"] .screen,
body[data-state="unavailable"] .screen {
  opacity: 1;
  visibility: visible;
}

body[data-state="idle"] .screen,
body[data-state="connected"] .screen,
body[data-state="unavailable"] .screen {
  grid-template-rows: 1fr;
}

body[data-state="idle"] .hero {
  padding: 0;
}

body[data-state="calling"] .top-bar {
  display: flex;
}

body[data-state="calling"] .bottom-bar {
  display: flex;
}

body[data-state="connected"] .top-bar,
body[data-state="connected"] .bottom-bar,
body[data-state="idle"] .top-bar,
body[data-state="idle"] .bottom-bar,
body[data-state="unavailable"] .top-bar,
body[data-state="unavailable"] .bottom-bar {
  display: none;
}

body[data-state="idle"] .hero-idle,
body[data-state="calling"] .hero-calling,
body[data-state="calling"] .message-calling,
body[data-state="unavailable"] .hero-unavailable {
  display: block;
}

body[data-state="connected"] .hero-connected {
  display: block;
}

body[data-state="connected"][data-mode="full"] .hero {
  padding: 0;
  background: #000;
}

body[data-state="connected"][data-mode="full"] .hero-connected,
body[data-state="connected"][data-mode="full"] .connected-full,
body[data-state="connected"][data-mode="full"] .video-panel-fullscreen {
  width: 100%;
  height: 100%;
}

body[data-state="connected"][data-mode="full"] .video-panel-fullscreen {
  min-height: 100vh;
}

body[data-state="connected"][data-mode="full"] .connected-full .video-caption {
  display: none;
}

body[data-state="connected"][data-mode="standard"] .connected-standard,
body[data-state="connected"][data-mode="full"] .connected-full,
body[data-state="connected"][data-mode="map"] .connected-map,
body[data-state="connected"][data-mode="lock"] .connected-lock,
body[data-state="connected"][data-mode="products"] .connected-products,
body[data-state="connected"][data-mode="checkout"] .connected-checkout {
  display: block;
}

@media (max-width: 900px) {
  .screen {
    grid-template-rows: 18vh 1fr 18vh;
  }

  .top-bar,
  .hero,
  .bottom-bar {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .brand-logo {
    width: min(42vw, 180px);
  }

  .hero-subtitle {
    margin-top: 0.9rem;
  }

  .call-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .info-panel,
  .video-panel {
    max-width: 100%;
  }

  .video-pip {
    width: 24%;
    min-width: 96px;
    right: 0.9rem;
    bottom: 0.9rem;
  }

  .video-panel-fullscreen {
    height: 56vh;
  }

  body[data-state="connected"] .screen,
  body[data-state="unavailable"] .screen {
    grid-template-rows: 1fr;
  }

  .assist-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }

  .assist-header,
  .assist-video-panel,
  .content-stage {
    grid-column: 1;
  }

  .assist-video-panel {
    grid-row: 2;
    max-width: 360px;
    justify-self: end;
  }

  .assist-header {
    gap: 1rem;
    align-items: center;
  }

  .assist-title,
  .assist-unit {
    text-align: left;
  }

  .content-stage {
    grid-row: 3;
  }

  .map-stage {
    grid-template-columns: 1fr;
  }

  .map-side {
    grid-template-columns: 48px 1fr;
    min-height: 120px;
  }

  .product-showcase {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .qr-box {
    margin: 0 auto;
    max-width: 260px;
  }

  .totem-products-grid,
  .lock-stage,
  .lock-product,
  .checkout-panel {
    grid-template-columns: 1fr;
  }
}

/* TBB HUB visual refinement - phase 1 */

:root {
  --hub-page: #f2f3ef;
  --hub-surface: rgba(255, 253, 247, 0.96);
  --hub-soft: #eef2cf;
  --hub-line: rgba(60, 60, 60, 0.12);
  --hub-brand: #d1dc7f;
  --hub-brand-strong: #b7c86a;
  --hub-brand-deep: #a2b55c;
  --hub-ink: #3c3c3c;
  --hub-ink-muted: #666666;
  --hub-shadow: 0 28px 70px rgba(48, 57, 43, 0.10);
}

html,
body {
  background:
    radial-gradient(circle at top, rgba(209, 220, 127, 0.32), transparent 24%),
    linear-gradient(180deg, #f8faf0 0%, var(--hub-page) 100%);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.top-bar {
  padding: 1.3rem 2rem;
  background: transparent;
}

.top-brand {
  width: min(1120px, 100%);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  border: 1px solid var(--hub-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 36px rgba(70, 80, 55, 0.08);
  backdrop-filter: blur(16px);
}

.top-brand-copy {
  display: grid;
  gap: 0.15rem;
}

.top-brand-title,
.top-brand-subtitle {
  margin: 0;
}

.top-brand-title {
  color: #4b5b4f;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-brand-subtitle {
  color: var(--hub-ink-muted);
  font-size: 0.95rem;
}

.brand-logo {
  width: min(12vw, 140px);
  min-width: 88px;
}

.hero {
  background: transparent;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(162, 181, 92, 0.42);
  border-radius: 999px;
  background: rgba(238, 242, 207, 0.92);
  color: #56634b;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title,
.hero-subtitle,
.hero-text {
  color: var(--hub-ink);
}

.hero-title {
  font-weight: 700;
  letter-spacing: -0.05em;
}

.hero-subtitle {
  color: #5a6754;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.hero-text {
  color: var(--hub-ink-muted);
}

.hero-calling,
.hero-unavailable {
  width: min(1120px, 100%);
  padding: 3rem 2rem;
  border: 1px solid var(--hub-line);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.84) 0%, rgba(238,242,207,0.76) 100%);
  box-shadow: var(--hub-shadow);
}

.idle-media {
  background:
    radial-gradient(circle at top, rgba(209, 220, 127, 0.20), transparent 28%),
    linear-gradient(180deg, #f8faf0 0%, #eff1ea 100%);
}

.idle-top-band {
  top: 1.4rem;
  left: 1.6rem;
  right: 1.6rem;
  height: auto;
  min-height: 0;
  justify-content: flex-start;
  padding: 0.95rem 1.25rem;
  border: 1px solid var(--hub-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 36px rgba(70, 80, 55, 0.08);
  backdrop-filter: blur(16px);
}

.idle-band-logo {
  width: min(10vw, 124px);
  min-width: 74px;
}

.idle-video-frame {
  inset: 2.1rem 2rem 2rem;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--hub-shadow);
}

.idle-video {
  filter: saturate(0.92) contrast(1.01);
}

.idle-overlay {
  padding: 2.6rem;
}

.idle-overlay-text {
  bottom: 8.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(44, 51, 43, 0.62);
  backdrop-filter: blur(8px);
  font-size: clamp(0.95rem, 1.25vw, 1.18rem);
}

.idle-overlay-callout {
  padding: 1.15rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(44, 51, 43, 0.58);
  backdrop-filter: blur(8px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.call-layout {
  width: min(95vw, 1700px);
  gap: 1.8rem;
  align-items: stretch;
}

.info-panel {
  border: 1px solid var(--hub-line);
  border-radius: 32px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: var(--hub-shadow);
}

.video-panel,
.assist-video-panel,
.video-panel-fullscreen {
  border: 1px solid rgba(60, 60, 60, 0.14);
  border-radius: 32px;
  background: linear-gradient(180deg, #dfe4d9 0%, #b9c0b2 100%);
  box-shadow: var(--hub-shadow);
}

.video-panel-fullscreen {
  border-radius: 0;
}

.video-placeholder {
  width: min(58%, 480px);
}

.avatar-head,
.avatar-body {
  background: rgba(34, 44, 37, 0.78);
}

.video-caption {
  color: #fbfaf6;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.32);
}

.video-remote-off {
  background: linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(238,242,207,0.84) 100%);
}

.video-remote-off-logo {
  width: min(48%, 300px);
}

body[data-state="calling"] .screen {
  grid-template-rows: 122px 1fr;
}

body[data-state="calling"] .hero {
  padding: 2rem;
}

body[data-state="calling"] .bottom-bar {
  display: none;
}

body[data-state="idle"] .screen {
  grid-template-rows: 1fr;
}

body[data-state="idle"] .hero {
  background: transparent;
}

body[data-state="idle"] .hero-idle {
  height: 100vh;
}

body[data-state="connected"][data-mode="standard"] .hero,
body[data-state="connected"][data-mode="map"] .hero,
body[data-state="connected"][data-mode="products"] .hero,
body[data-state="connected"][data-mode="lock"] .hero,
body[data-state="connected"][data-mode="checkout"] .hero {
  padding: 1.8rem;
}

@media (max-width: 900px) {
  .top-bar {
    padding: 1rem;
  }

  .top-brand {
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 20px;
  }

  .top-brand-title {
    font-size: 0.92rem;
  }

  .top-brand-subtitle {
    font-size: 0.82rem;
  }

  .idle-top-band {
    top: 1rem;
    left: 1rem;
    right: 1rem;
  }

  .idle-video-frame {
    inset: 1.3rem 1rem 1rem;
    border-radius: 28px;
  }

  .hero-calling,
  .hero-unavailable {
    padding: 2rem 1.2rem;
    border-radius: 26px;
  }
}
