/*
  Booking panel, setup chips, channel pills, call bar, and phone row.
  Layout chrome (sidebar, thread column, mobile head) stays in demo.css.
*/

.booking-card {
  overflow: hidden;
  border: 1px solid var(--gsu-navy);
  border-radius: var(--gsu-r-panel);
  background: var(--gsu-white);
}

.booking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gsu-s-3);
  padding: 10px 14px;
  background: var(--gsu-navy);
  color: var(--gsu-white);
}

.booking-title {
  font-family: var(--gsu-font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.booking-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gsu-lime);
  font-family: var(--gsu-font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.booking-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: var(--gsu-r-pill);
  background: var(--gsu-lime);
}

.booking-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gsu-s-3);
  min-height: 22px;
  padding: var(--gsu-s-3) 14px;
  border-top: 1px solid var(--gsu-rule-soft);
}

.booking-key {
  color: var(--gsu-gray);
  font-family: var(--gsu-font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.booking-value {
  color: var(--gsu-navy);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
}

.booking-skel {
  display: block;
  flex: 0 0 auto;
  width: 64px;
  height: 8px;
  border-radius: 4px;
  background: var(--gsu-skeleton);
}

.setup-block {
  display: flex;
  flex-direction: column;
  gap: var(--gsu-s-2);
}

.setup-label {
  color: var(--gsu-gray);
  font-family: var(--gsu-font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.setup-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.setup-chip {
  display: inline-flex;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--gsu-r-pill);
  background: var(--gsu-ice);
  color: var(--gsu-navy);
  font-size: 12px;
  line-height: 1.3;
}

.setup-chip-k {
  color: var(--gsu-body);
}

.setup-chip-v {
  font-weight: 600;
}

.booking-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  padding: 0 14px;
  overflow-x: auto;
  background: var(--gsu-white);
  border-bottom: 1px solid var(--gsu-navy);
  -webkit-overflow-scrolling: touch;
}

.booking-strip-label {
  flex: 0 0 auto;
  margin-right: 2px;
  color: var(--gsu-gray);
  font-family: var(--gsu-font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.booking-strip-empty {
  flex: 0 0 auto;
  color: var(--gsu-gray);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

.booking-strip-pill,
.booking-strip-held {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: var(--gsu-r-pill);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.booking-strip-pill {
  border: 1px solid var(--gsu-rule-soft);
  background: var(--gsu-ice);
  color: var(--gsu-navy);
  font-weight: 600;
}

.booking-strip-held {
  background: var(--gsu-lime);
  color: var(--gsu-navy);
  font-weight: 700;
}

.channel-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gsu-s-2);
  justify-content: flex-end;
}

.channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-sizing: border-box;
  height: 30px;
  padding: 0 var(--gsu-s-3);
  border-radius: var(--gsu-r-pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.channel-pill.is-on {
  border: 1px solid var(--gsu-navy);
  background: var(--gsu-navy);
  color: var(--gsu-white);
}

.channel-pill.is-off {
  border: 1px solid var(--gsu-rule-soft);
  background: var(--gsu-white);
  color: var(--gsu-gray);
}

.channel-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: var(--gsu-r-pill);
  background: var(--gsu-rule-soft);
}

.channel-pill.is-on .channel-dot {
  background: var(--gsu-lime);
}

.btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--gsu-cobalt);
  border-radius: var(--gsu-r-pill);
  background: transparent;
  color: var(--gsu-cobalt);
  font-family: var(--gsu-font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.btn-call:hover {
  background: var(--gsu-cobalt);
  color: var(--gsu-white);
}

.btn-call-mobile {
  height: 36px;
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.call-error {
  margin: 0 0 var(--gsu-s-2);
  padding: var(--gsu-s-2) var(--gsu-s-3);
  border: 1px solid var(--gsu-navy);
  border-radius: var(--gsu-r-panel);
  background: var(--gsu-ice);
  color: var(--gsu-navy);
  font-size: 13px;
  line-height: 1.4;
}

.call-bar {
  display: flex;
  align-items: center;
  gap: var(--gsu-s-4);
  min-width: 0;
  padding: 10px 10px 10px var(--gsu-s-3);
  border-radius: var(--gsu-r-pill);
  background: var(--gsu-navy);
  color: var(--gsu-white);
}

.call-disc {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: var(--gsu-r-pill);
  background: var(--gsu-cobalt);
  color: var(--gsu-white);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.call-meta {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.call-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.call-hint {
  color: var(--gsu-on-navy);
  font-family: var(--gsu-font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.call-hint.is-caption {
  color: var(--gsu-white);
  font-family: var(--gsu-font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
  max-width: 36ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.call-wave {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.call-wave .wave {
  color: var(--gsu-lime);
}

.call-end {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--gsu-r-pill);
  background: var(--gsu-lime);
  color: var(--gsu-navy);
  font-family: var(--gsu-font-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.call-end:hover {
  background: var(--gsu-white);
  color: var(--gsu-navy);
}

.phone-row {
  display: flex;
  align-items: center;
  gap: var(--gsu-s-3);
  padding-left: 20px;
  color: var(--gsu-gray);
  font-size: 12px;
  line-height: 1.3;
}

.phone-number {
  color: var(--gsu-navy);
  font-family: var(--gsu-font-mono);
  font-weight: 500;
}

.phone-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gsu-cobalt);
  font: inherit;
  font-weight: 600;
  line-height: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.phone-link:hover {
  color: var(--gsu-cobalt);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gsu-in {
  animation: gsu-in 0.4s ease both;
}

.setup-chip.gsu-in,
.booking-strip-pill.gsu-in,
.call-bar.gsu-in {
  animation-duration: 0.3s;
}

.call-name-short,
.call-wave-short,
.call-end-short,
.phone-row-short {
  display: none;
}

#booking-panel[hidden],
#booking-strip[hidden],
#setup-chips[hidden],
#channel-pills[hidden],
#call-bar[hidden],
#composer-call-slot[hidden],
#phone-row[hidden],
#mobile-call[hidden] {
  display: none !important;
}

@media (min-width: 1024px) {
  #mobile-call {
    display: none;
  }
}

@media (max-width: 1023px) {
  #composer-call-slot {
    display: none;
  }

  .call-name-long,
  .call-wave-long,
  .call-end-long,
  .call-disc,
  .call-hint,
  .phone-row-long {
    display: none;
  }

  .call-hint.is-caption {
    display: block;
  }

  .call-name-short,
  .call-wave-short,
  .call-end-short,
  .phone-row-short {
    display: flex;
  }

  .call-name-short,
  .call-end-short {
    display: inline;
  }

  .call-bar {
    gap: 10px;
    padding: 6px 6px 6px 14px;
  }

  .call-title {
    font-size: 13px;
  }

  .call-end {
    height: 32px;
    padding: 0 14px;
    font-size: 12px;
  }

  .phone-row-short {
    justify-content: center;
    gap: 10px;
    padding-left: 0;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gsu-in,
  .booking-value,
  .setup-chip,
  .booking-strip-pill,
  .call-bar {
    animation: none;
  }
}
