.cb-client-zones[hidden] {
  display: none !important;
}

.cb-client-zones {
  box-sizing: border-box;
  margin: 0 0 24px;
  padding: 18px 20px 20px;
  border: 1px solid #d7e0e5;
  border-top: 4px solid #c89a48;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(20, 42, 55, 0.07);
  color: #263d49;
}

.cb-client-zones *,
.cb-client-zones *::before,
.cb-client-zones *::after,
.cb-client-zone-field,
.cb-client-zone-field * {
  box-sizing: border-box;
}

.cb-client-zones__heading h2 {
  margin: 0;
  color: #183848;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}

.cb-client-zones__heading p {
  margin: 5px 0 0;
  color: #61727b;
  font-size: 0.9rem;
}

.cb-client-zones__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.cb-client-zones__tabs button {
  display: flex;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #d4dde2;
  border-radius: 7px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f8fafb;
  color: #38505c;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.cb-client-zones__tabs button:hover {
  border-color: #c89a48;
  background: #fffaf0;
}

.cb-client-zones__tabs button:focus-visible {
  outline: 3px solid rgba(200, 154, 72, 0.3);
  outline-offset: 2px;
}

.cb-client-zones__tabs button.is-selected {
  border-color: #c89a48;
  background: #fff8e8;
  color: #173746;
  box-shadow: inset 0 0 0 1px #c89a48;
}

.cb-client-zones__tabs button span {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}

.cb-client-zones__tabs button strong {
  display: inline-grid;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border-radius: 999px;
  place-items: center;
  background: #e8eef1;
  color: #28434f;
  font-size: 0.78rem;
}

.cb-client-zones__tabs button.is-selected strong {
  background: #d5ad61;
  color: #102f3e;
}

.cb-audience-roster[hidden] {
  display: none !important;
}

.cb-audience-roster {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e1e7ea;
}

.cb-audience-roster__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.cb-audience-roster__heading h3 {
  margin: 0;
  color: #183848;
  font-size: 1rem;
}

.cb-audience-roster__heading p {
  margin: 4px 0 0;
  color: #61727b;
  font-size: 0.84rem;
}

.cb-audience-roster__heading input {
  width: min(300px, 100%);
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #ccd7dd;
  border-radius: 6px;
  color: #263d49;
  font: inherit;
}

.cb-audience-roster__heading input:focus {
  border-color: #c89a48;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(200, 154, 72, 0.18);
}

.cb-audience-roster__summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(115px, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.cb-audience-roster__summary div {
  min-height: 66px;
  padding: 10px;
  border: 1px solid #dde5e8;
  border-radius: 7px;
  background: #f8fafb;
}

.cb-audience-roster__summary strong,
.cb-audience-roster__summary span {
  display: block;
}

.cb-audience-roster__summary strong {
  color: #183848;
  font-size: 1.08rem;
}

.cb-audience-roster__summary span {
  margin-top: 3px;
  color: #61727b;
  font-size: 0.75rem;
  line-height: 1.25;
}

.cb-audience-roster__table-wrap {
  max-height: 440px;
  overflow: auto;
  border: 1px solid #dce4e8;
  border-radius: 7px;
}

.cb-audience-roster table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.83rem;
}

.cb-audience-roster th,
.cb-audience-roster td {
  padding: 10px 11px;
  border-bottom: 1px solid #e6ecef;
  color: #314a56;
  text-align: left;
  vertical-align: middle;
}

.cb-audience-roster th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #edf2f4;
  color: #29434f;
  font-weight: 700;
}

.cb-audience-stage {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f2e5fa;
  color: #6f287a;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
}

.cb-audience-stage.is-voting {
  background: #e5f2df;
  color: #356b2d;
}

.cb-audience-stage.is-pending {
  background: #eceeef;
  color: #565f64;
}

.cb-client-zone-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 42px 0 13px;
  border: 1px solid #ccd7dd;
  border-radius: 6px;
  background-color: #fff;
  color: #263d49;
  font: inherit;
}

.cb-client-zone-field select:focus {
  border-color: #c89a48;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(200, 154, 72, 0.18);
}

@media (max-width: 1050px) {
  .cb-client-zones__tabs {
    grid-template-columns: repeat(2, minmax(145px, 1fr));
  }

  .cb-audience-roster__summary {
    grid-template-columns: repeat(3, minmax(115px, 1fr));
  }
}

@media (max-width: 620px) {
  .cb-client-zones {
    padding: 16px;
  }

  .cb-client-zones__tabs {
    grid-template-columns: 1fr;
  }

  .cb-audience-roster__heading {
    align-items: stretch;
    flex-direction: column;
  }

  .cb-audience-roster__heading input {
    width: 100%;
  }

  .cb-audience-roster__summary {
    grid-template-columns: repeat(2, minmax(105px, 1fr));
  }

  .cb-audience-roster table {
    min-width: 650px;
  }
}
