/* Shared visual language with growthx-agent/console/public/style.css. */
:root {
  --bg: #0b0e13;
  --surface: #11151c;
  --raised: #171c25;
  --sunken: #0d1016;
  --line: #222a36;
  --line-soft: #1a212b;
  --text: #e4e9f0;
  --text-2: #a8b3c0;
  --muted: #74808e;
  --accent: #5fb3ff;
  --accent-deep: #1f4b7a;
  --ok: #3fd47e;
  --ok-bg: #0f2a1c;
  --ok-line: #1e5a37;
  --call: #4da3ff;
  --call-bg: #0e2740;
  --call-line: #1d5390;
  --warn: #f0b64a;
  --warn-bg: #33270d;
  --warn-line: #6e5216;
  --bad: #ff5c5c;
  --bad-bg: #3a1212;
  --bad-line: #7d2323;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 6px;
  --r-lg: 10px;
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 13.5px/1.45 var(--sans);
  background-image:
    radial-gradient(1200px 400px at 20% -10%, #5fb3ff12, transparent 60%),
    radial-gradient(900px 300px at 90% 0%, #3fd47e0d, transparent 60%);
  background-attachment: fixed;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
summary,
a {
  touch-action: manipulation;
}
button,
.primary {
  background: var(--raised);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 6px 11px;
  cursor: pointer;
  line-height: 1.4;
}
button:hover {
  background: #1f2733;
  border-color: #34404f;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button.primary,
a.primary {
  background: var(--accent-deep);
  border-color: #5fb3ff66;
  color: #fff;
}
button.primary:hover,
a.primary:hover {
  background: #26598f;
}
button.danger {
  background: #3a1616;
  border-color: #6a2626;
  color: #ffb4b4;
}
button.danger:hover {
  background: #572020;
}
:where(button, a, input, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
h1 {
  font-size: 15px;
  margin: 0;
  letter-spacing: 0.02em;
  font-weight: 650;
}
h2 {
  font-size: 13.5px;
  margin: 0;
  font-weight: 600;
}
h3 {
  font-size: 12.5px;
  margin: 0 0 6px;
  font-weight: 600;
}
p {
  margin: 8px 0;
}
header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 8px 16px;
  background: #11151ce6;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 49px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  background: var(--accent);
  box-shadow: 0 0 0 3px #5fb3ff18;
}
.meta,
.header-right {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font: 11.5px var(--mono);
  color: var(--text-2);
}
.header-right {
  margin-left: auto;
}
.private {
  color: var(--muted);
}
.pill,
.chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-2);
  background: var(--surface);
  font: 11px/1.5 var(--mono);
}
.pill.dry {
  border-color: var(--warn-line);
  background: var(--warn-bg);
  color: var(--warn);
}
.workspace {
  padding: 14px 16px 24px;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.intro p {
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0 0;
}
.hint,
.small {
  font-size: 11px;
  font-weight: 400;
}
.hint,
.muted {
  color: var(--muted);
}
.progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.progress li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: var(--text-2);
  font-size: 12px;
}
.progress i {
  color: var(--muted);
  font: 22px var(--mono);
}
.progress small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 11px;
}
.progress .current {
  background: linear-gradient(90deg, #4da3ff12, var(--surface) 80%);
  border-color: var(--call-line);
}
.progress .current i {
  color: var(--call);
}
.progress .done i {
  color: var(--ok);
}
.demo-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(380px, 1.85fr) minmax(
      260px,
      1fr
    );
  gap: 12px;
  align-items: start;
}
.brief,
.call-panel,
.inspector {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  min-width: 0;
  overflow: hidden;
}
.brief,
.inspector {
  padding: 12px 14px;
}
.panel-heading,
.call-top {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}
.brief > p,
.inspector > p {
  font-size: 11px;
}
.customer {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--raised);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  margin: 12px 0 8px;
  padding: 9px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--accent);
  font: 11px var(--mono);
}
.customer strong,
.customer span {
  display: block;
  font-size: 12px;
}
.customer span {
  color: var(--text-2);
  font: 11px var(--mono);
  margin-top: 3px;
}
dl {
  margin: 8px 0;
  font: 11.5px/1.55 var(--mono);
}
dl > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  text-align: right;
  color: var(--text-2);
  overflow-wrap: anywhere;
}
details {
  margin-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  color: var(--text-2);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary > span {
  color: var(--muted);
}
details[open] summary > span {
  transform: rotate(45deg);
}
.practice > div {
  display: block;
}
.practice dd {
  text-align: left;
  margin-top: 2px;
}
.objection-block {
  margin-top: 16px;
}
.suggestion {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  font-size: 12px;
  margin: 6px 0;
  padding: 7px 9px;
}
.suggestion span {
  color: var(--muted);
}
.notice {
  margin-top: 14px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--warn);
  padding: 9px 10px;
  border-radius: var(--r);
  font-size: 11px;
  line-height: 1.6;
}
.call-top {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to right, var(--raised), var(--surface));
}
.call-top h2 .hint {
  margin-left: 8px;
}
#timer {
  font: 12px var(--mono);
  color: var(--text-2);
}
#call-stage {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  column-gap: 10px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.orb {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--raised);
  border-radius: var(--r);
  display: grid;
  place-items: center;
  transition: border-color 0.2s;
}
.orb-inner span {
  font: 16px var(--mono);
  color: var(--text-2);
}
.orb.live {
  border-color: var(--ok-line);
  background: var(--ok-bg);
}
.orb.live span {
  color: var(--ok);
}
.orb.speaking {
  border-color: var(--call);
  background: var(--call-bg);
  box-shadow: 0 0 0 3px #4da3ff12;
}
.orb.speaking span {
  color: var(--call);
}
.agent-name {
  grid-column: 2;
  grid-row: 1;
  font-size: 13px;
  font-weight: 600;
}
.agent-name span {
  font: 10px var(--mono);
  color: var(--muted);
  margin-left: 7px;
}
#status {
  grid-column: 2;
  grid-row: 2;
  margin: 2px 0 0;
  color: var(--text-2);
  font-size: 11px;
}
.start-controls,
.live-controls {
  grid-column: 3;
  grid-row: 1 / 3;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.start-controls button,
.live-controls button {
  font-size: 12px;
}
.primary span {
  margin-left: 6px;
}
#mic-hint {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  font-size: 11px;
}
.transcript {
  height: clamp(340px, 52vh, 700px);
  overflow-y: auto;
  padding: 0 14px;
  background: var(--sunken);
  scroll-behavior: smooth;
}
.transcript-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}
.transcript-empty > span {
  font-size: 24px;
}
.transcript-empty p {
  font-size: 12px;
  line-height: 1.8;
}
.transcript-empty small {
  font-size: 11px;
}
.utterance {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.utterance strong {
  font: 10px var(--mono);
  color: var(--accent);
  letter-spacing: 0.03em;
}
.utterance.user strong {
  color: var(--ok);
}
.utterance p {
  font: 12px/1.7 var(--mono);
  color: var(--text-2);
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.utterance.system p,
.utterance.system strong {
  color: var(--warn);
}
#text-form {
  display: flex;
  gap: 8px;
  margin: 12px 14px 6px;
}
#message {
  flex: 1;
  min-width: 0;
  width: 100%;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--sunken);
  padding: 8px 10px;
  font: 12px var(--mono);
}
#message::placeholder {
  color: var(--muted);
}
#send {
  width: 34px;
  color: var(--accent);
}
.call-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 5px 14px 12px;
  font-size: 11px;
  color: var(--muted);
}
.call-footer .text-button {
  padding: 3px 8px;
  font-size: 11px;
}
.call-footer i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 5px;
}
.quote-card {
  margin: 14px 0 12px;
  padding: 12px;
  border: 1px solid var(--call-line);
  border-radius: var(--r);
  background: var(--call-bg);
}
.eyebrow {
  font: 10px var(--mono);
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 8px;
}
.quote-card .eyebrow {
  color: var(--accent);
}
.quote-card h3 {
  font-size: 13px;
  margin: 0 0 8px;
}
.price > span {
  font: 28px var(--mono);
}
.price small {
  font-size: 11px;
  color: var(--text-2);
  margin-left: 6px;
}
.quote-total {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--call-line);
  margin-top: 10px;
  padding-top: 8px;
  font: 11px var(--mono);
}
.quote-card > p:last-child {
  color: var(--text-2);
  margin-bottom: 0;
  font-size: 11px;
}
.facts {
  color: var(--text-2);
  font: 11px/1.7 var(--mono);
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.facts:empty {
  display: none;
}
.activity-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 14px;
}
.activity-heading > span {
  color: var(--muted);
  font: 11px var(--mono);
}
.activity {
  max-height: 460px;
  overflow-y: auto;
}
.event {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.event-title {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
  font: 11px/1.6 var(--mono);
}
.event-title span {
  flex-shrink: 0;
  font-size: 9px;
  color: var(--ok);
  background: var(--ok-bg);
  border: 1px solid var(--ok-line);
  border-radius: 4px;
  padding: 0 5px;
}
.event p {
  font: 11px/1.6 var(--mono);
  color: var(--muted);
  margin: 5px 0 0;
}
.event.failed .event-title span,
.event.pending .event-title span {
  color: var(--warn);
  background: var(--warn-bg);
  border-color: var(--warn-line);
}
.result {
  margin-top: 14px;
  padding: 10px;
  color: var(--text);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 12px;
  line-height: 1.6;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 10px var(--mono);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.login-card {
  width: 420px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 32px;
}
.wordmark span {
  font: 10px var(--mono);
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.login-card h1 {
  font-size: 26px;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.login-card > p {
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.7;
}
.login-card a.primary {
  display: flex;
  justify-content: space-between;
  margin: 24px 0 12px;
  padding: 10px 12px;
}
.login-foot {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 24px;
  font: 10px/1.8 var(--mono);
  color: var(--muted);
}
@media (max-width: 1250px) {
  #call-stage {
    grid-template-columns: 36px 1fr;
  }
  .start-controls,
  .live-controls {
    grid-row: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: 12px;
  }
}
@media (max-width: 1050px) {
  .demo-grid {
    grid-template-columns: minmax(240px, 0.8fr) minmax(360px, 1.5fr);
  }
  .inspector {
    grid-column: 1 / -1;
  }
  .activity {
    max-height: 280px;
  }
  .progress small {
    display: none;
  }
  .header-right #identity {
    display: none;
  }
}
@media (max-width: 650px) {
  header {
    gap: 8px;
    padding: 8px 12px;
  }
  .meta > span:first-child,
  .private {
    display: none;
  }
  .header-right {
    gap: 6px;
  }
  .workspace {
    padding: 12px;
  }
  .intro {
    align-items: flex-start;
  }
  .intro > .chip {
    display: none;
  }
  .progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .progress li {
    padding: 8px 10px;
    gap: 10px;
  }
  .progress i {
    font-size: 18px;
  }
  .demo-grid {
    display: flex;
    flex-direction: column;
  }
  .brief,
  .call-panel,
  .inspector {
    width: 100%;
  }
  .call-panel {
    order: 0;
  }
  .brief {
    order: 1;
  }
  .inspector {
    order: 2;
  }
  .call-top h2 .hint {
    display: none;
  }
  .transcript {
    height: 320px;
  }
  .event-title {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
