:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #f4f5f3;
  background: #101312;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --muted: #9aa39e;
  --line: #2b3330;
  --accent: #b5f28d;
  --panel: #171c1a;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  background: radial-gradient(ellipse at 12% 0%, rgba(73, 109, 74, .14), transparent 35%), #101312;
}
button, input, select { font: inherit; }
.shell { max-width: 1190px; margin: 0 auto; padding: 0 46px 28px; }
.topbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand { display: flex; gap: 11px; align-items: center; color: #f7f8f5; text-decoration: none; font-family: inherit; font-size: 16px; font-weight: 800; letter-spacing: -.5px; }
.brand-light { color: #aab2ad; font-weight: 500; }
.brand-mark { display: flex; gap: 3px; align-items: center; height: 22px; }
.brand-mark span { display: block; width: 4px; border-radius: 4px; background: var(--accent); }
.brand-mark span:nth-child(1) { height: 11px; opacity: .7; }
.brand-mark span:nth-child(2) { height: 20px; }
.brand-mark span:nth-child(3) { height: 14px; opacity: .82; }
.topbar-meta { display: flex; gap: 26px; align-items: center; }
.environment, .connection, .panel-kicker, .required, .optional, .record-indicator, .flow-state, .event-heading, .footer { font: 500 10px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 1.15px; }
.environment { color: #8c9891; }
.connection { color: #f2be74; letter-spacing: .35px; font-size: 11px; text-transform: none; display: flex; gap: 8px; align-items: center; }
.connection.connected { color: var(--accent); }
.status-dot, .environment-dot { display: inline-block; width: 7px; height: 7px; border-radius: 99px; background: #dfab60; box-shadow: 0 0 12px rgba(223,171,96,.3); }
.connection.connected .status-dot { background: var(--accent); box-shadow: 0 0 12px rgba(181,242,141,.55); }
.environment-dot { width: 6px; height: 6px; background: #83918a; box-shadow: none; }
.hero { padding: 66px 0 45px; }
.eyebrow { display: flex; gap: 10px; align-items: center; color: var(--accent); font: 500 10px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 1.7px; }
.eyebrow-line { width: 23px; height: 1px; background: var(--accent); }
h1, h2, p { margin: 0; }
h1 { margin-top: 19px; color: #f5f6f3; font-family: inherit; font-size: clamp(43px, 6vw, 68px); font-weight: 600; line-height: 1.06; letter-spacing: -3.7px; }
h1 em { color: var(--accent); font-style: normal; }
.hero-copy { max-width: 595px; color: #aab1ac; margin-top: 19px; font-size: 14px; line-height: 1.75; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.44fr) minmax(305px, .85fr); gap: 16px; align-items: stretch; }
.panel { border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg, rgba(27,33,30,.97), rgba(21,26,24,.97)); }
.gateway-panel { padding: 27px 29px 22px; }
.endpoint-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 22px; }
.endpoint-card { min-width: 0; padding: 16px; border: 1px solid #313a35; border-radius: 6px; background: rgba(0,0,0,.14); }
.endpoint-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.endpoint-heading strong { color: #e8ede8; font-size: 12px; }
.endpoint-badge { padding: 5px 7px; border: 1px solid #3b493e; border-radius: 3px; color: #b5d99a; font: 500 8px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .8px; }
.endpoint-help { margin-top: 12px; color: #9aa59d; font-size: 10px; line-height: 1.5; }
.endpoint-uri-label { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; color: #9aa59d; font-size: 9px; }
.sip-uri-input { width: 100%; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid #343d38; border-radius: 4px; outline: none; color: #c6d2c8; background: #101513; font: 10px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sip-uri-input:focus { border-color: #91c16f; box-shadow: 0 0 0 2px rgba(181,242,141,.09); }
.probe-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.probe-result { color: #828e86; font-size: 10px; line-height: 1.5; }
.probe-result.success { color: #b9dd9d; }
.probe-result.failure { color: #efa093; }
.probe-button { flex: 0 0 auto; min-height: 32px; padding: 0 10px; border: 1px solid #45534a; border-radius: 4px; color: #dce7d8; background: #222c25; font-size: 10px; font-weight: 600; cursor: pointer; }
.probe-button:hover { border-color: #8ea87b; background: #29352c; }
.probe-button:disabled { color: #748078; cursor: not-allowed; opacity: .65; }
.endpoint-placeholder { grid-column: 1 / -1; padding: 15px; color: var(--muted); font-size: 12px; }
.gateway-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 15px; padding-top: 15px; border-top: 1px solid #303834; }
.gateway-meta div { display: flex; flex-direction: column; gap: 6px; }
.gateway-meta span { color: #7f8b83; font: 500 8px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 1px; text-transform: uppercase; }
.gateway-meta strong { color: #dce5dc; font-size: 11px; font-weight: 500; }
.media-panel { margin-top: 16px; padding: 27px 29px 24px; }
.media-copy { max-width: 740px; margin-top: 13px; color: #a3ada6; font-size: 11px; line-height: 1.7; }
.media-form { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 13px; margin-top: 19px; }
.media-form label { display: flex; flex-direction: column; gap: 7px; margin: 0; color: #dfe6df; font-size: 10px; }
.media-form input, .media-form select { width: 100%; min-width: 0; height: 39px; padding: 0 10px; border: 1px solid #343d38; border-radius: 4px; outline: none; color: #e9eee8; background: #111614; font-size: 10px; }
.media-form input:focus, .media-form select:focus { border-color: #91c16f; box-shadow: 0 0 0 2px rgba(181,242,141,.09); }
.media-controls { display: flex; align-items: center; gap: 10px; margin-top: 17px; }
.start-button, .stop-button { min-height: 37px; padding: 0 13px; border: 1px solid #526346; border-radius: 4px; color: #192116; background: var(--accent); font-size: 10px; font-weight: 700; cursor: pointer; }
.start-button:hover { background: #c4f5a4; }
.start-button:disabled { color: #748078; background: #303732; border-color: #3c4540; cursor: not-allowed; }
.media-controls .stop-button { color: #e9a097; border-color: #64403c; background: transparent; }
.media-controls .stop-button:hover { background: rgba(233,160,151,.08); }
.media-controls .stop-button:disabled { opacity: .55; cursor: not-allowed; }
.media-status { color: #89968e; font-size: 10px; line-height: 1.5; }
.media-status.success { color: #b9dd9d; }
.media-status.failure { color: #efa093; }
.media-callout { margin-top: 16px; }
.explanation-grid { margin-top: 16px; }
.explanation-panel { padding: 24px 25px; }
.explanation-panel h2 { max-width: 420px; margin-bottom: 12px; }
.explanation-panel > p { color: #a3ada6; font-size: 11px; line-height: 1.75; }
.callout { display: flex; align-items: flex-start; gap: 10px; margin-top: 17px; padding: 12px; border: 1px solid #4a4030; border-radius: 5px; background: rgba(197,152,75,.06); color: #c7b594; font-size: 10px; line-height: 1.6; }
.callout-mark { flex: 0 0 15px; width: 15px; height: 15px; border: 1px solid #b89d69; border-radius: 50%; color: #d1ba8d; text-align: center; font-size: 10px; line-height: 14px; }
.voice-panel { border-color: #4c3735; }
.voice-requirement { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding-top: 15px; border-top: 1px solid #463432; }
.requirement-dot { flex: 0 0 7px; width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: #e29386; }
.voice-requirement div { display: flex; flex-direction: column; gap: 5px; }
.voice-requirement strong { color: #efb0a6; font-size: 10px; }
.voice-requirement small { color: #99817d; font-size: 10px; line-height: 1.5; }
.next-panel { display: grid; grid-template-columns: minmax(190px, .55fr) 1fr; gap: 25px; align-items: start; margin-top: 16px; padding: 22px 25px; }
.next-panel h2 { max-width: 260px; }
.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.next-steps div { display: flex; gap: 9px; }
.next-steps span { color: var(--accent); font: 500 9px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.next-steps p { color: #98a39b; font-size: 10px; line-height: 1.6; }
.session-panel { padding: 27px 29px 25px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.panel-kicker { color: #7f8a83; font-size: 9px; letter-spacing: 1.4px; }
h2 { margin-top: 8px; font-family: inherit; font-size: 22px; font-weight: 600; letter-spacing: -.6px; }
.record-indicator { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid #483131; border-radius: 4px; color: #e19486; font-size: 9px; letter-spacing: .9px; }
.record-indicator span { display: inline-block; width: 6px; height: 6px; background: #eb7969; border-radius: 50%; box-shadow: 0 0 8px rgba(235,121,105,.4); }
.notice { display: flex; gap: 10px; margin: 22px 0 23px; padding: 12px 13px; border: 1px solid #333c37; border-radius: 5px; background: rgba(255,255,255,.025); }
.notice-icon { flex: 0 0 15px; width: 15px; height: 15px; border: 1px solid #8cae78; color: #b4d69c; text-align: center; border-radius: 50%; font-family: inherit; font-size: 10px; font-weight: 500; line-height: 14px; }
.notice p { color: #a6afa9; font-size: 11px; line-height: 1.6; }
.notice strong { color: #e1e8e2; font-weight: 600; }
label { display: flex; justify-content: space-between; margin-bottom: 8px; color: #e3e7e2; font-size: 11px; font-weight: 600; }
.required, .optional { color: #83918a; font-size: 8px; letter-spacing: .7px; }
.required { color: #b4d69c; }
input { width: 100%; height: 42px; padding: 0 12px; color: #f1f4ef; background: #111614; border: 1px solid #343d38; border-radius: 4px; outline: none; font-size: 12px; transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: #66716a; }
input:focus { border-color: #91c16f; box-shadow: 0 0 0 2px rgba(181,242,141,.09); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 17px; }
.primary-button { display: flex; gap: 10px; align-items: center; justify-content: center; width: 100%; height: 47px; margin-top: 24px; padding: 0 15px; border: 0; border-radius: 4px; color: #162016; background: var(--accent); font-size: 12px; font-weight: 700; cursor: pointer; transition: background .15s, transform .15s, opacity .15s; }
.primary-button:hover { background: #c4f5a4; transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .65; }
.button-icon { font-size: 17px; }
.button-arrow { margin-left: auto; font-size: 16px; }
.form-error { margin-top: 11px; color: #f1a095; font-size: 11px; line-height: 1.5; }
.flow-panel { padding: 27px 25px 21px; }
.flow-panel h2 { margin-bottom: 25px; }
.flow-list { display: flex; flex-direction: column; }
.flow-step { display: flex; align-items: center; gap: 12px; min-height: 51px; }
.flow-number { color: #657068; font: 500 10px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.flow-step > div { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.flow-step strong { color: #e7ebe6; font-size: 11px; font-weight: 600; }
.flow-step small { color: #78837c; font-size: 10px; }
.flow-state { color: #b6d995; font-size: 8px; letter-spacing: .9px; }
.flow-state.muted { color: #727e76; }
.flow-connector { width: 1px; height: 13px; margin-left: 4px; background: #3c4b41; }
.flow-step.active .flow-number { color: var(--accent); }
.flow-footnote { display: flex; align-items: center; gap: 8px; margin-top: 23px; padding-top: 15px; border-top: 1px solid #303834; color: #818c85; font-size: 10px; }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px rgba(181,242,141,.45); }
.live-panel { margin-top: 16px; padding: 25px 29px; scroll-margin-top: 20px; }
[hidden] { display: none !important; }
.live-heading { align-items: center; }
.live-state { display: inline-block; margin-left: 8px; color: #d5ad74; }
.stop-button { display: flex; align-items: center; gap: 8px; min-height: 35px; padding: 0 12px; border: 1px solid #64403c; border-radius: 4px; color: #e9a097; background: transparent; font-size: 10px; cursor: pointer; }
.stop-button:hover { background: rgba(233,160,151,.08); }
.stop-button:disabled { opacity: .6; cursor: wait; }
.stop-square { width: 8px; height: 8px; background: #e28a7d; border-radius: 1px; }
.session-details { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 16px; margin: 21px 0 25px; padding: 14px; border: 1px solid #2f3933; border-radius: 5px; background: rgba(0,0,0,.13); }
.session-details div { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.session-details span, .event-heading { color: #7f8b83; font: 500 8px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 1px; }
.session-details strong { overflow: hidden; color: #dbe2dc; font-size: 11px; text-overflow: ellipsis; }
.session-details .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9px; font-weight: 400; }
.event-heading { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid #303834; }
.event-list { display: flex; flex-direction: column; gap: 0; max-height: 245px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.empty-event { padding: 18px 0 3px; color: #77827b; font-size: 11px; }
.event-item { display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.055); }
.event-item time { padding-top: 1px; color: #79847d; font: 10px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.event-item strong { color: #badd9e; font-size: 10px; text-transform: capitalize; }
.event-item p { margin-top: 4px; color: #a7b0aa; font-size: 11px; line-height: 1.5; }
.footer { display: flex; justify-content: space-between; margin-top: 25px; color: #66716b; font-size: 8px; letter-spacing: 1px; }
.footer-divider { padding: 0 8px; color: #a7ba97; }

@media (max-width: 780px) {
  .shell { padding: 0 22px 24px; }
  .topbar-meta { gap: 14px; }
  .environment { display: none; }
  .hero { padding-top: 51px; }
  .workspace { grid-template-columns: 1fr; }
  .media-form { grid-template-columns: 1fr 1fr; }
  .media-form label:nth-child(2) { grid-column: span 2; }
  .flow-panel { min-height: 0; }
  .next-panel { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 520px) {
  .shell { padding: 0 15px 20px; }
  .topbar { min-height: 66px; }
  .connection { font-size: 10px; }
  .hero { padding: 43px 0 30px; }
  h1 { letter-spacing: -2.4px; }
  .hero-copy { font-size: 13px; }
  .session-panel, .flow-panel, .live-panel { padding: 21px 18px; }
  .gateway-panel, .explanation-panel, .next-panel { padding: 20px 17px; }
  .endpoint-grid, .next-steps { grid-template-columns: 1fr; }
  .media-panel { padding: 20px 17px; }
  .media-form { grid-template-columns: 1fr; }
  .media-form label:nth-child(2) { grid-column: auto; }
  .media-controls { align-items: stretch; flex-direction: column; }
  .media-controls button { width: 100%; }
  .gateway-meta { grid-template-columns: 1fr 1fr; }
  .probe-row { align-items: flex-start; flex-direction: column; }
  .probe-button { width: 100%; }
  .field-row { grid-template-columns: 1fr; gap: 17px; }
  .session-details { grid-template-columns: 1fr 1fr; }
  .session-details div:last-child { grid-column: span 2; }
  .live-heading { align-items: flex-start; flex-direction: column; }
  .footer { gap: 12px; flex-direction: column; }
}
