:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #f4f4f4;
  background: #080808;
  color-scheme: dark;
  font-synthesis: none;
  --muted: #909090;
  --surface: #151515;
  --raised: #242424;
  --shadow: 0 8px 32px #0006;
  --header: 64px;
  --footer: 96px;
  --gutter: 16px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body {
  height: 100dvh;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--raised);
  color: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
button:hover:not(:disabled) {
  background: #383838;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button.primary,
.leave {
  color: #111;
  background: #f4f4f4;
}
button.primary:hover:not(:disabled),
.leave:hover {
  background: #d8d8d8;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.wide {
  width: 100%;
}
.icon {
  width: 20px;
  height: 20px;
  display: block;
  stroke-width: 1.7;
  flex-shrink: 0;
}
i[data-icon] {
  display: inline-flex;
  align-items: center;
  font-style: normal;
}
.icon-only {
  padding: 10px;
  background: transparent;
  flex-shrink: 0;
}
.topbar {
  height: var(--header);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  font-size: 14px;
  letter-spacing: -0.3px;
}
.brand strong {
  font-weight: 550;
}
.brand .icon {
  width: 23px;
  height: 23px;
}
.host-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
}
.host-controls select {
  width: auto;
  max-width: 220px;
  background: transparent;
  padding: 10px 26px 10px 8px;
  font-size: 12px;
  min-width: 0;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  margin-left: auto;
}
body.in-call .header-right {
  margin-left: 0;
}
.header-right #session-status {
  font-size: 11px;
  color: #a0a0a0;
}
#clock {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.4px;
}
#guest-note {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
body:not(.in-call) .header-right,
body:not(.in-call) #host,
body:not(.in-call) #guest-note {
  display: none;
}
.end-interview:disabled {
  display: none;
}
body.interview-active #start {
  display: none;
}
main {
  height: calc(100dvh - var(--header));
  min-height: 0;
}
.welcome {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 20px 20px 70px;
  overflow: auto;
}
.entry-card {
  width: min(100%, 380px);
}
h1 {
  font-size: 25px;
  letter-spacing: -0.7px;
  font-weight: 500;
  margin: 0 0 15px;
}
p {
  font-size: 13px;
  line-height: 1.6;
  color: #a5a5a5;
}
.entry-card p {
  margin-bottom: 26px;
}
.entry-card small {
  display: block;
  font-size: 11px;
  color: #858585;
  text-align: center;
  margin: 16px 0;
}
.entry-card button + button {
  margin-top: 10px;
}
label {
  display: block;
  font-size: 12px;
  color: #b8b8b8;
  margin: 20px 0 8px;
}
input:not([type="checkbox"]),
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background: #222;
  color: #eee;
  font-size: 13px;
}
textarea {
  resize: vertical;
  line-height: 1.7;
}
input::placeholder {
  color: #777;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 24px;
  font-size: 11px;
  line-height: 1.7;
}
.check input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #fff;
  margin: 2px 0;
}
.notice {
  position: fixed;
  z-index: 20;
  bottom: calc(var(--footer) + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 18px;
  background: #f1f1f1;
  color: #171717;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 12px;
  line-height: 1.5;
  max-width: min(620px, calc(100% - 32px));
  width: max-content;
}
.notice.error {
  font-weight: 600;
}
.notice:empty {
  display: none;
}
#call {
  height: 100%;
  padding: 0 var(--gutter) var(--footer);
  min-height: 0;
}
.workspace {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 16px;
}
.stage {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  flex: 1;
}
#tiles:has(.tile:only-child) {
  grid-template-columns: 1fr;
}
.tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #202020;
  box-shadow: 0 2px 16px #0003;
}
.tile:nth-child(even) {
  background: #252525;
}
.tile video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.tile.local video {
  transform: scaleX(-1);
}
.tile.camera-muted video {
  visibility: hidden;
}
.tile .participant-name {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  background: #111a;
  color: #fff;
  border-radius: 6px;
  font-size: 11px;
  z-index: 3;
  max-width: calc(100% - 24px);
  backdrop-filter: blur(12px);
}
.participant-name > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.participant-name .icon {
  width: 13px;
  height: 13px;
}
.tile.speaking::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px #fff;
  pointer-events: none;
  z-index: 2;
}
.avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #3b3b3b;
  color: #efefef;
  font-size: 26px;
  font-weight: 400;
}
.ai-tile .avatar {
  background: #e5e5e5;
  color: #151515;
}
.ai-tile .avatar .icon {
  width: 30px;
  height: 30px;
}
.stage-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #888;
  font-size: 10px;
  flex-shrink: 0;
  padding: 0 3px;
  height: 14px;
}
.side-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-right: 10px;
}
.panel-tabs {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  flex-shrink: 0;
}
.panel-tabs [role="tab"] {
  background: transparent;
  padding: 8px 10px;
  min-height: 34px;
  color: #858585;
  border-radius: 7px;
  font-size: 12px;
}
.panel-tabs [role="tab"][aria-selected="true"] {
  color: #fff;
  background: #2a2a2a;
}
.panel-header .icon-only {
  margin-left: auto;
  padding: 6px;
  min-height: 32px;
  color: #999;
}
.panel-header .icon {
  width: 17px;
  height: 17px;
}
#transcript-panel,
#scorecard-panel {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#transcript,
#scorecard {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
  padding: 12px 24px 24px;
  overflow-wrap: anywhere;
}
.empty {
  font-size: 12px;
  color: #777;
  line-height: 1.7;
  margin-top: 5px;
}
.transcript-turn {
  margin: 0 0 23px;
}
.transcript-turn header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 11px;
  color: #e2e2e2;
  font-weight: 550;
}
.transcript-turn time {
  font-size: 10px;
  color: #777;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.transcript-turn p {
  font-size: 12px;
  color: #bdbdbd;
  line-height: 1.8;
  margin: 7px 0 0;
  white-space: pre-wrap;
}
.transcript-turn.partner p {
  color: #eee;
}
.warning {
  margin: 0 14px 8px;
  background: #eee;
  color: #111;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.6;
  max-height: 100px;
  overflow: auto;
  flex-shrink: 0;
}
#scorecard {
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  color: #bebebe;
}
#scorecard h3 {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 14px;
}
#score {
  margin: 0 14px 14px;
  min-height: 40px;
  font-size: 11px;
  flex-shrink: 0;
}
.call-controls {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  background: #1e1e1e;
  box-shadow: 0 8px 40px #000a;
  z-index: 10;
  width: max-content;
  max-width: calc(100% - 24px);
}
.control {
  width: 44px;
  height: 44px;
  padding: 12px;
  background: #303030;
  border-radius: 10px;
  position: relative;
}
.control > span {
  display: none;
}
.control[aria-pressed="true"] {
  background: #f2f2f2;
  color: #171717;
}
.control[aria-expanded="true"] {
  background: #3d3d3d;
}
.leave {
  height: 44px;
  padding: 12px 17px;
  border-radius: 10px;
  margin-left: 12px;
}
.leave .icon {
  transform: rotate(135deg);
  width: 19px;
}
.leave span {
  font-size: 12px;
}
.panel-hidden .workspace {
  grid-template-columns: 1fr;
}
.panel-hidden .side-panel {
  display: none;
}
dialog {
  color: inherit;
  background: #181818;
  border: 0;
  border-radius: 16px;
  padding: 26px;
  width: min(620px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  box-shadow: 0 30px 100px #000b;
  overflow: auto;
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(6px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.dialog-heading h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
  font-weight: 500;
  margin: 0;
}
.muted {
  font-size: 11px;
  color: #888;
}
dialog details {
  padding: 18px 0;
}
summary {
  cursor: pointer;
  font-size: 12px;
  color: #aaa;
}
#context-status {
  font-size: 12px;
  color: #ddd;
  margin-bottom: 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .topbar {
    padding: 0 16px;
    gap: 12px;
  }
  .header-right #session-status {
    display: none;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 12px;
  }
  .host-controls select {
    max-width: 175px;
  }
  .brand {
    font-size: 13px;
  }
  .header-right {
    gap: 8px;
  }
  .host-controls {
    gap: 5px;
  }
  .host-controls button {
    font-size: 11px;
  }
}
@media (max-width: 680px) {
  :root {
    --header: 106px;
    --footer: 88px;
    --gutter: 10px;
  }
  .topbar {
    height: var(--header);
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 44px 52px;
    gap: 0 12px;
    padding: 0 14px;
  }
  .brand {
    grid-column: 1;
    grid-row: 1;
  }
  .header-right {
    grid-column: 2;
    grid-row: 1;
    margin: 0 !important;
  }
  .host-controls {
    grid-column: 1/-1;
    grid-row: 2;
    margin: 0;
    justify-content: flex-end;
  }
  .host-controls select {
    margin-right: auto;
    max-width: 180px;
    flex: 1;
  }
  .host-controls button {
    min-height: 38px;
  }
  .host-controls #background-open {
    padding: 8px;
  }
  .host-controls .primary {
    padding: 9px 12px;
  }
  #guest-note {
    grid-column: 1/-1;
    grid-row: 2;
    margin: 0;
  }
  body:not(.in-call) {
    --header: 56px;
  }
  .topbar:has(#host[hidden]) {
    grid-template-rows: 44px 42px;
  }
  .workspace,
  .panel-hidden .workspace {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .side-panel {
    display: none;
  }
  .mobile-panel-open .side-panel {
    display: flex;
  }
  .mobile-panel-open .stage {
    display: none;
  }
  .mobile-panel-open.panel-hidden .side-panel {
    display: flex;
  }
  .stage {
    gap: 8px;
  }
  #tiles {
    gap: 8px;
  }
  .tile {
    border-radius: 9px;
  }
  .tile .participant-name {
    font-size: 10px;
    left: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    padding: 5px 7px;
  }
  .avatar {
    width: 52px;
    height: 52px;
    font-size: 21px;
  }
  .call-controls {
    bottom: max(16px, env(safe-area-inset-bottom));
    padding: 7px;
    gap: 6px;
    border-radius: 14px;
  }
  .control {
    width: 40px;
    height: 42px;
    padding: 10px;
  }
  .leave {
    height: 42px;
    padding: 10px 13px;
    margin-left: 6px;
  }
  .leave span {
    display: none;
  }
  .stage-status {
    font-size: 9px;
  }
  #transcript,
  #scorecard {
    padding: 12px 20px 20px;
  }
  .welcome {
    padding-bottom: 40px;
  }
}
@media (max-height: 500px) and (min-width: 681px) {
  :root {
    --header: 48px;
    --footer: 72px;
  }
  .call-controls {
    bottom: 10px;
  }
  .control,
  .leave {
    height: 40px;
  }
  .panel-header {
    display: flex;
    align-items: center;
    padding-right: 10px;
  }
  .panel-tabs {
    flex: 1;
    padding: 7px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
body.in-call .welcome {
  display: none;
}
