:root {
  color-scheme: light;
  font:
    16px/1.5 'PingFang SC',
    'Helvetica Neue',
    'Microsoft YaHei',
    sans-serif;
  color: #192823;
  background: #f7f8f5;
  --line: #d9dfd9;
  --muted: #52635a;
  --green: #126343;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden],
.symbols {
  display: none !important;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
button,
select {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
select:disabled {
  cursor: default;
  opacity: 0.7;
}
button {
  border: 0;
  background: transparent;
}
button,
a,
select {
  touch-action: manipulation;
}
:focus-visible {
  outline: 3px solid #168461;
  outline-offset: 3px;
}
::selection {
  background: #c8edd6;
}
svg {
  display: inline-block;
  flex: none;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
p,
h1,
h2 {
  margin: 0;
}
.topbar {
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.bar-inner,
main {
  width: min(1360px, 100%);
  margin: auto;
  padding-left: max(clamp(18px, 4vw, 68px), env(safe-area-inset-left));
  padding-right: max(clamp(18px, 4vw, 68px), env(safe-area-inset-right));
}
.bar-inner,
nav,
nav a,
.brand,
.brand span,
.meeting-head,
.pick,
.log-head,
.log-head h2,
.actions,
.actions button,
.stage-label {
  display: flex;
  align-items: center;
}
.bar-inner {
  justify-content: space-between;
  min-height: 68px;
}
.brand {
  gap: 10px;
  font-size: 20px;
  letter-spacing: -0.035em;
}
.brand span {
  background: #18583f;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  justify-content: center;
}
nav {
  gap: clamp(12px, 2vw, 28px);
}
nav a {
  color: var(--muted);
  min-height: 44px;
  text-decoration: none;
  font-size: 14px;
}
nav a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.meeting-head {
  justify-content: space-between;
  gap: 10px;
  padding-block: clamp(16px, 3.4vh, 34px);
}
h1 {
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -0.035em;
  line-height: 1.2;
}
.pick {
  padding-inline: 12px 6px;
  gap: 4px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #34473d;
}
.pick svg {
  width: 16px;
}
.pick select {
  min-height: 44px;
  border: 0;
  background: transparent;
  font-size: 14px;
  max-width: 100%;
}
.meeting {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(270px, 27%, 360px);
  gap: 14px;
  height: clamp(340px, calc(100dvh - 245px), 760px);
}
.meeting:has(#captions[hidden]) {
  grid-template-columns: 1fr;
}
.stage {
  min-width: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  border-radius: 16px;
  background: #192622;
}
.stage img,
.stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.stage img {
  object-fit: cover;
  object-position: 50% 37%;
}
.stage video {
  object-fit: contain;
  opacity: 0;
}
.stage.connected video {
  opacity: 1;
}
.stage.connected img {
  visibility: hidden;
}
.stage::after {
  content: '';
  position: absolute;
  inset: 54% 0 0;
  pointer-events: none;
  background: linear-gradient(transparent, rgb(7 18 14 / 80%));
}
.stage-label,
#timer {
  position: absolute;
  top: 16px;
  padding: 5px 11px;
  border-radius: 7px;
  background: #16211e;
  color: #fff;
  font-size: 13px;
}
.stage-label {
  gap: 7px;
  left: 16px;
}
.stage-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bec8bf;
}
.connected .stage-label i {
  background: #85e6ab;
}
#timer {
  right: 16px;
  font-variant-numeric: tabular-nums;
}
.identity {
  position: absolute;
  bottom: clamp(16px, 3.2vw, 40px);
  left: clamp(18px, 3.2vw, 40px);
  z-index: 1;
}
.identity h2 {
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.035em;
}
.identity p {
  margin-top: 6px;
  font-size: 13px;
}
#unmute {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-height: 44px;
  border-radius: 9px;
  background: white;
  color: var(--green);
  padding-inline: 16px;
}
#captions {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.log-head {
  flex: none;
  justify-content: space-between;
  padding: 8px 10px 8px 18px;
  border-bottom: 1px solid var(--line);
}
.log-head h2 {
  gap: 8px;
  font-size: 17px;
}
.log-head h2 svg {
  color: var(--green);
}
#hide-captions {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--muted);
}
#log {
  overflow-y: auto;
  min-height: 0;
  padding: 15px;
  scrollbar-color: #a4b5aa transparent;
}
#log:empty {
  padding: 0;
}
.empty {
  margin: auto;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.empty svg {
  width: 34px;
  height: 34px;
  margin-bottom: 7px;
  color: #637e6d;
}
#log:not(:empty) + .empty {
  display: none;
}
.utterance {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.utterance strong {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}
.utterance p {
  padding: 9px 13px;
  max-width: 92%;
  background: #eef1ed;
  line-height: 1.65;
  overflow-wrap: anywhere;
  border-radius: 3px 13px 13px;
}
.utterance.user {
  align-items: flex-end;
}
.utterance.user p {
  background: #d7efdf;
  border-radius: 13px 3px 13px 13px;
}
.console {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px max(18px, env(safe-area-inset-bottom));
}
.notices {
  max-width: 65ch;
}
#info {
  font-size: 14px;
}
.note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.actions {
  flex: none;
  gap: 10px;
}
.actions button {
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 17px;
  border-radius: 10px;
  font-weight: 600;
}
#toggle-captions {
  background: white;
  border: 1px solid var(--line);
}
#toggle-captions[aria-expanded='true'] {
  color: var(--green);
  background: #e2eee5;
}
#call {
  background: var(--green);
  color: white;
  padding-inline: 25px;
}
#call.on {
  background: #a53c39;
}
#call.on svg {
  transform: rotate(135deg);
}
@media (hover: hover) {
  button:hover {
    filter: brightness(0.94);
  }
}
@media (max-width: 720px) {
  body {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
  }
  .bar-inner {
    min-height: 52px;
  }
  .brand {
    font-size: 17px;
    gap: 7px;
  }
  .brand span {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
  nav {
    gap: 12px;
  }
  nav a {
    font-size: 13px;
  }
  main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .meeting-head {
    padding-block: 10px;
  }
  .pick {
    padding-left: 8px;
  }
  .pick select {
    font-size: 13px;
  }
  .meeting {
    display: flex;
    flex: 1;
    min-height: 215px;
    height: auto;
  }
  .stage {
    flex: 1;
    border-radius: 12px;
  }
  #captions {
    position: absolute;
    z-index: 3;
    inset: auto 0 0;
    height: min(70%, 430px);
    border-radius: 14px 14px 10px 10px;
  }
  .log-head {
    padding-block: 0;
  }
  #log {
    overscroll-behavior: contain;
  }
  .console {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 10px;
  }
  #info {
    line-height: 1.4;
  }
  .actions button {
    flex: 1;
  }
  .actions #call {
    flex: 2;
  }
}
@media (max-height: 540px) and (orientation: landscape) {
  .bar-inner {
    min-height: 44px;
  }
  .meeting-head {
    padding-block: 6px;
  }
  .meeting {
    height: max(160px, calc(100dvh - 175px));
    min-height: 160px;
  }
  .console {
    flex-direction: row;
    padding-block: 6px;
    align-items: center;
  }
}
