/* Founder Live Control + Hey Pete. Overlay only — does not change desktop layout tokens. */

.founder-live-strip {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2400;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 10px 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  background: linear-gradient(180deg, rgba(16, 24, 36, 0.96) 0%, rgba(6, 10, 16, 0.96) 100%);
  color: #f0e6c8;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  font-family: Inter, system-ui, sans-serif;
}

.founder-live-motor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 8px;
  margin: 8px 0;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 39, 0.22);
  background: rgba(8, 12, 18, 0.55);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.founder-live-motor p {
  margin: 0;
  color: #d7cba8;
}

.founder-live-motor-flags {
  grid-column: 1 / -1;
  color: #ffe9a8 !important;
  margin-top: 4px !important;
}

.founder-live-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.founder-live-head h2 {
  margin: 0 0 4px;
  font-family: Cinzel, "Times New Roman", serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #ffe9a8;
}

.founder-live-sub,
.founder-live-not {
  margin: 0 0 8px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #b8d0c8;
}

.founder-live-not {
  color: #9ab0a8;
}

.founder-live-head-actions {
  display: flex;
  gap: 4px;
}

.founder-live-collapse,
#founderLiveExpandBtn {
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: #101820;
  color: #ffe9a8;
  border-radius: 8px;
  min-width: 32px;
  min-height: 28px;
  cursor: pointer;
}

#founderLiveExpandBtn {
  width: 100%;
  text-align: left;
  padding: 6px 8px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.founder-live-strip.is-collapsed {
  width: min(420px, calc(100vw - 24px));
}

.founder-live-strip.is-collapsed .founder-live-head h2 {
  font-size: 0.7rem;
}

.founder-live-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
}

.founder-live-strip label {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #c9b888;
}

.founder-live-strip input[type="number"] {
  width: 56px;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: #0b1118;
  color: #f6edd4;
}

.founder-live-active {
  font-size: 0.78rem;
  color: #e8d7a0;
}

.founder-live-proposed {
  font-size: 0.7rem;
  color: #f0c36a;
}

.founder-live-ack {
  margin: 8px 0 0;
  font-size: 0.7rem;
  line-height: 1.35;
  color: #b8d4a8;
}

.founder-live-ack.is-error {
  color: #f0a0a0;
}

.founder-live-heard {
  margin: 6px 0 0;
  font-size: 0.7rem;
  color: #d8c89a;
}

.founder-live-strip .btn-close-all {
  background: #6b1c1c;
  border-color: #c45a5a;
  color: #ffe8e8;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.founder-hey-pete-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: #101820;
  font-size: 0.72rem;
}

.founder-hey-pete-toggle[data-state="listening"] {
  border-color: #7dcea0;
  color: #b8f0cc;
}

.founder-hey-pete-toggle[data-state="capturing"] {
  border-color: #f0c36a;
  color: #ffe9a8;
}

.founder-live-messenger-mount {
  padding: 6px 10px 0;
}

html.waypoint-fold-tablet .founder-live-strip,
[data-device-mode="fold-tablet"] .founder-live-strip {
  left: 8px;
  bottom: 8px;
  width: min(300px, calc(100vw - 16px));
}

html.waypoint-fold-tablet .founder-live-strip.is-collapsed,
[data-device-mode="fold-tablet"] .founder-live-strip.is-collapsed {
  width: min(280px, calc(100vw - 16px));
}
