@font-face {
  font-family: "Exo 2";
  src: url("/fonts/exo-2-cyrillic-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Russo One";
  src: url("/fonts/russo-one-cyrillic-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-deep: #010101;
  --surface: #090909;
  --surface-raised: #0e0e0d;
  --ink: #f2f2ec;
  --ink-inverse: #050505;
  --muted: #72726d;
  --muted-bright: #adada5;
  --line: rgba(242, 242, 236, 0.14);
  --line-strong: rgba(242, 242, 236, 0.38);
  --accent: #d7ff63;
  --accent-soft: rgba(215, 255, 99, 0.12);
  --warn: #e9bb58;
  --error: #e27878;
  --clip-sm: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  --clip-md: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  --ease: cubic-bezier(0.22, 0.82, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg-deep);
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.055), transparent 24rem),
    radial-gradient(circle at 83% 58%, rgba(215, 255, 99, 0.035), transparent 25rem),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-size: auto, auto, 76px 76px, 76px 76px, auto;
  color: var(--ink);
  font-family: "Exo 2", system-ui, sans-serif;
  font-weight: 620;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 42px 0 auto;
  z-index: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(215, 255, 99, 0.24), transparent);
  opacity: 0.7;
  pointer-events: none;
}

body::after {
  position: fixed;
  right: max(20px, calc(50% - 740px));
  bottom: -3rem;
  z-index: 0;
  content: "02";
  color: rgba(255, 255, 255, 0.025);
  font-family: "Russo One", sans-serif;
  font-size: clamp(11rem, 25vw, 27rem);
  line-height: 0.8;
  letter-spacing: -0.08em;
  pointer-events: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

svg {
  display: block;
}

.system-chrome {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  min-height: 42px;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 0 28px;
  background: rgba(2, 2, 2, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-family: "Russo One", sans-serif;
  font-size: 9px;
  text-transform: uppercase;
}

.system-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.system-brand-mark {
  width: 18px;
  height: 18px;
}

.system-chrome-center {
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
}

.system-network {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.system-chrome-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.voice-accessibility-toggle {
  display: inline-flex;
  min-width: 52px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted-bright);
  cursor: pointer;
}

.voice-accessibility-toggle svg {
  width: 16px;
  height: 16px;
}

.voice-accessibility-toggle span {
  font-family: "Russo One", sans-serif;
  font-size: 8px;
}

.voice-accessibility-toggle:hover,
.voice-accessibility-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
  color: var(--ink);
}

.voice-accessibility-toggle.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ink-inverse);
}

.system-network i,
.module-state i,
.module-index i,
.room-status-strip i:first-child {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(215, 255, 99, 0.65);
}

.system-network[data-state="error"] i,
.system-network[data-state="offline"] i,
.room-status-strip [data-state="error"] i,
.room-status-strip [data-state="offline"] i {
  background: var(--error);
  box-shadow: 0 0 14px rgba(226, 120, 120, 0.45);
}

.system-network[data-state="reconnecting"] i,
.room-status-strip [data-state="reconnecting"] i {
  background: var(--warn);
  box-shadow: 0 0 14px rgba(233, 187, 88, 0.45);
}

.voice-shell {
  position: relative;
  z-index: 1;
  width: min(1260px, calc(100% - 72px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: 72px 0 70px;
}

.service-switcher {
  display: flex;
  width: fit-content;
  margin: 0 0 22px auto;
  padding: 5px;
  background: rgba(6, 6, 6, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.26);
}

.service-switcher a {
  position: relative;
  display: grid;
  width: 172px;
  min-height: 58px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: var(--muted);
  text-decoration: none;
  transition: transform 180ms var(--ease);
}

.service-switcher a + a {
  border-left: 1px solid var(--line);
}

.service-switcher a::after {
  position: absolute;
  inset: auto 12px 0;
  height: 2px;
  content: "";
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms var(--ease);
}

.service-switcher a:hover,
.service-switcher a:focus-visible {
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
}

.service-switcher a:hover::after,
.service-switcher a:focus-visible::after,
.service-switcher a.is-current::after {
  opacity: 1;
  transform: scaleX(1);
}

.service-switcher a.is-current {
  background: var(--ink);
  color: var(--ink-inverse);
}

.service-index {
  font-family: "Russo One", sans-serif;
  font-size: 9px;
}

.service-copy {
  display: grid;
  gap: 3px;
}

.service-copy strong {
  font-family: "Russo One", sans-serif;
  font-size: 12px;
}

.service-copy small {
  color: currentColor;
  font-size: 8px;
  font-weight: 750;
  opacity: 0.58;
  text-transform: uppercase;
}

.service-switcher svg {
  width: 16px;
  height: 16px;
}

.service-switcher a:focus-visible,
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.voice-entry {
  position: relative;
  isolation: isolate;
}

.voice-lobby {
  position: relative;
  display: grid;
  min-height: 530px;
  grid-template-columns: minmax(0, 1.16fr) minmax(390px, 0.84fr);
  overflow: hidden;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.036), transparent 38%),
    rgba(5, 5, 5, 0.84);
  border: 1px solid var(--line);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
  clip-path: var(--clip-md);
}

.voice-lobby::before {
  position: absolute;
  inset: 0 auto 0 calc(58% - 1px);
  width: 1px;
  content: "";
  background: var(--line);
}

.voice-lobby::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 128px;
  height: 4px;
  content: "";
  background: var(--accent);
}

.voice-intro {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 34px 42px 32px;
}

.voice-intro::before {
  position: absolute;
  right: -28px;
  bottom: -38px;
  width: 350px;
  height: 350px;
  content: "";
  background: url("/brand/rondonhashi-mark.svg") center / contain no-repeat;
  opacity: 0.025;
  pointer-events: none;
}

.module-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.module-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-bright);
}

.voice-brand-lockup {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin: 42px 0 0;
}

.voice-brand-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  animation: mark-in 520ms 80ms var(--ease) both;
}

.voice-brand-mark img {
  width: 64px;
  height: 64px;
}

.voice-brand-lockup h1 {
  margin: 0;
  font-family: "Russo One", sans-serif;
  font-size: clamp(48px, 5.6vw, 78px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.055em;
}

.voice-brand-lockup h1 span,
.voice-brand-lockup h1 strong {
  display: block;
}

.voice-brand-lockup h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 242, 236, 0.7);
}

.voice-brand-lockup h1 strong {
  margin-top: 6px;
  color: var(--ink);
  font-weight: 400;
}

.voice-lede {
  max-width: 580px;
  margin: 25px 0 0 92px;
  color: var(--muted-bright);
  font-size: 15px;
  font-weight: 560;
  line-height: 1.55;
}

.voice-signal {
  display: flex;
  height: 78px;
  align-items: center;
  gap: 7px;
  margin: auto 0 0 92px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.voice-signal span {
  width: 4px;
  height: 42%;
  flex: 1 1 auto;
  max-width: 11px;
  background: linear-gradient(180deg, var(--accent), rgba(242, 242, 236, 0.45));
  transform-origin: center;
  animation: signal-pulse 1.8s var(--ease) infinite alternate;
  backface-visibility: hidden;
}

.voice-signal span:nth-child(2n) {
  height: 72%;
  animation-delay: -0.7s;
}

.voice-signal span:nth-child(3n) {
  height: 28%;
  animation-delay: -1.15s;
}

.voice-signal span:nth-child(5n) {
  height: 94%;
  animation-delay: -0.3s;
}

.voice-promises {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 18px 0 0 92px;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.voice-promises li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.voice-promises svg {
  width: 14px;
  height: 14px;
  color: var(--muted-bright);
}

.join-console {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 22px;
  padding: 34px;
  background:
    linear-gradient(160deg, rgba(215, 255, 99, 0.045), transparent 34%),
    rgba(11, 11, 10, 0.8);
}

.console-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 7px 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.console-heading span,
.room-brief-index,
.module-index,
.room-grid-heading,
.voice-steps > li > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.console-heading strong {
  grid-column: 1 / -1;
  font-family: "Russo One", sans-serif;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.console-heading > svg {
  grid-row: 1;
  grid-column: 2;
  width: 19px;
  height: 19px;
  color: var(--accent);
}

.voice-field {
  display: grid;
  align-content: start;
  gap: 9px;
}

.voice-field > span,
.voice-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-bright);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.voice-field-label {
  cursor: text;
}

.voice-field em {
  color: var(--accent);
  font-size: 8px;
  font-style: normal;
}

.voice-field input {
  width: 100%;
  min-width: 0;
  height: 58px;
  padding: 0 16px;
  background: rgba(2, 2, 2, 0.82);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font-size: 14px;
  outline: 0;
  transition: none;
}

.room-address-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
}

.room-address-control input {
  height: 58px;
  border-right: 0;
}

.room-regenerate-button {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--ink-inverse);
  cursor: pointer;
}

.room-regenerate-button:hover,
.room-regenerate-button:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
}

.room-regenerate-button svg {
  width: 20px;
  height: 20px;
}

.voice-field input:hover,
.voice-field input:focus {
  background: #080808;
  border-color: var(--line-strong);
  box-shadow: inset 3px 0 0 var(--accent);
}

.voice-field input::placeholder {
  color: #53534f;
}

.voice-field small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 560;
  line-height: 1.45;
}

.join-actions {
  display: grid;
  gap: 9px;
  margin-top: auto;
}

.voice-button {
  display: grid;
  min-height: 66px;
  align-items: center;
  padding: 0 17px;
  cursor: pointer;
  clip-path: var(--clip-sm);
  transition: transform 170ms var(--ease);
}

.voice-button:active {
  transform: scale(0.985);
}

.voice-button:disabled,
.room-regenerate-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.voice-button > svg {
  width: 19px;
  height: 19px;
}

.voice-button > span {
  display: grid;
  gap: 3px;
  text-align: left;
}

.voice-button > span strong {
  font-size: 12px;
  font-weight: 850;
}

.voice-button > span small {
  font-size: 8px;
  font-weight: 650;
  opacity: 0.58;
}

.voice-button-primary {
  grid-template-columns: 24px minmax(0, 1fr) 38px;
  gap: 12px;
  background: var(--ink);
  color: var(--ink-inverse);
}

.voice-button-primary:hover {
  background: var(--accent);
}

.voice-button-primary b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(5, 5, 5, 0.28);
}

.voice-button-primary b svg {
  width: 17px;
  height: 17px;
}

.voice-button-secondary {
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.voice-button-secondary:hover {
  background: rgba(255, 255, 255, 0.055);
}

.voice-button-last-room {
  grid-template-columns: 24px minmax(0, 1fr) 38px;
  gap: 12px;
  background:
    linear-gradient(110deg, rgba(215, 255, 99, 0.09), rgba(215, 255, 99, 0.025));
  border: 1px solid rgba(215, 255, 99, 0.46);
  color: var(--ink);
}

.voice-button-last-room:hover,
.voice-button-last-room:focus-visible {
  background: rgba(215, 255, 99, 0.14);
  border-color: var(--accent);
}

.voice-button-last-room > span small {
  overflow: hidden;
  color: var(--accent);
  opacity: 0.82;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-button-last-room b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(215, 255, 99, 0.34);
}

.voice-button-last-room b svg {
  width: 17px;
  height: 17px;
}

.form-error {
  min-height: 14px;
  margin: -11px 0 0;
  color: var(--error);
  font-size: 10px;
}

.room-brief {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.2fr) auto minmax(320px, 0.95fr);
  align-items: center;
  gap: 24px;
  margin-top: 12px;
  padding: 22px 24px;
  background: rgba(7, 7, 7, 0.76);
  border: 1px solid var(--line);
  clip-path: var(--clip-sm);
}

.room-brief-heading {
  display: grid;
  gap: 7px;
}

.room-brief h2 {
  margin: 0;
  font-family: "Russo One", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

.room-brief > p {
  margin: 0;
  color: var(--muted-bright);
  font-size: 11px;
  font-weight: 560;
  line-height: 1.55;
}

.text-button {
  display: grid;
  min-width: 182px;
  min-height: 46px;
  grid-template-columns: 18px 1fr 16px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  text-transform: uppercase;
  transition: none;
}

.text-button:hover {
  background: var(--ink);
  color: var(--ink-inverse);
}

.text-button svg {
  width: 15px;
  height: 15px;
}

.room-brief dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-left: 1px solid var(--line);
}

.room-brief dl div {
  display: grid;
  gap: 5px;
  padding: 4px 13px;
  border-right: 1px solid var(--line);
}

.room-brief dt {
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.room-brief dd {
  margin: 0;
  color: var(--ink);
  font-family: "Russo One", sans-serif;
  font-size: 9px;
}

.voice-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.voice-steps li {
  display: grid;
  min-height: 86px;
  grid-template-columns: 36px minmax(0, 1fr);
  align-content: center;
  gap: 4px 10px;
  padding: 15px 20px;
  border-right: 1px solid var(--line);
}

.voice-steps li:last-child {
  border-right: 0;
}

.voice-steps li > span {
  grid-row: span 2;
  color: var(--accent);
}

.voice-steps strong {
  font-size: 10px;
  text-transform: uppercase;
}

.voice-steps small {
  color: var(--muted);
  font-size: 9px;
}

.room-stage {
  position: relative;
  min-height: calc(100dvh - 160px);
  animation: stage-in 420ms var(--ease) both;
}

.room-stage::before {
  position: absolute;
  top: 84px;
  right: 0;
  z-index: -1;
  width: 360px;
  height: 360px;
  content: "";
  background:
    radial-gradient(circle, transparent 24%, rgba(215, 255, 99, 0.06) 24.5%, transparent 25.5%),
    radial-gradient(circle, transparent 43%, rgba(255, 255, 255, 0.035) 43.5%, transparent 44.5%),
    radial-gradient(circle, transparent 64%, rgba(255, 255, 255, 0.025) 64.5%, transparent 65.5%);
  pointer-events: none;
}

.room-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 22px 0 25px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.module-index {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-bright);
}

.room-header h1 {
  margin: 16px 0 0;
  font-family: "Russo One", sans-serif;
  font-size: clamp(48px, 7vw, 90px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.05em;
}

.room-header p {
  display: flex;
  max-width: 680px;
  align-items: center;
  gap: 12px;
  margin: 16px 0 0;
  overflow: hidden;
  color: var(--muted-bright);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-header p span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-header p b {
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.room-header p time {
  color: var(--accent);
  font-family: "Russo One", sans-serif;
}

.room-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-control,
.room-leave {
  min-height: 50px;
  background: rgba(7, 7, 7, 0.78);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  transition: none;
}

.icon-control {
  display: grid;
  width: 50px;
  place-items: center;
}

.icon-control svg,
.room-leave svg {
  width: 17px;
  height: 17px;
}

.room-leave {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.icon-control:hover,
.room-leave:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ink-inverse);
}

.room-status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 52px;
  align-items: center;
  margin-top: 12px;
  background: rgba(7, 7, 7, 0.68);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.room-status-strip span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border-right: 1px solid var(--line);
}

.room-status-strip span:nth-child(2) {
  justify-content: center;
}

.room-status-strip span:last-child {
  justify-content: flex-end;
  border-right: 0;
}

.room-status-strip b {
  color: var(--ink);
  font-family: "Russo One", sans-serif;
}

.room-status-strip svg {
  width: 14px;
  height: 14px;
}

.room-grid-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.participant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.participant-card {
  --voice-level: 0;
  position: relative;
  display: grid;
  min-height: 156px;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  padding: 28px 20px 23px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 46%),
    rgba(9, 9, 9, 0.9);
  border: 1px solid var(--line);
  clip-path: var(--clip-sm);
  contain: layout paint style;
}

.participant-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 84px;
  height: 3px;
  content: "";
  background: var(--accent);
  transform: scaleX(clamp(0.1667, calc(0.1667 + var(--voice-level)), 1));
  transform-origin: right center;
  transition: none;
}

.participant-sequence {
  position: absolute;
  top: 11px;
  left: 13px;
  color: var(--muted);
  font-family: "Russo One", sans-serif;
  font-size: 8px;
}

.participant-avatar {
  position: relative;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: "Russo One", sans-serif;
  font-size: 17px;
}

.participant-avatar::after {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--accent);
  border: 3px solid var(--surface);
  border-radius: 50%;
}

.participant-copy {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.participant-copy > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.participant-copy strong {
  overflow: hidden;
  font-family: "Russo One", sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.participant-copy em {
  padding: 2px 5px;
  border: 1px solid currentColor;
  font-size: 7px;
  font-style: normal;
  text-transform: uppercase;
}

.participant-copy > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.participant-flags {
  display: flex;
  align-items: center;
  gap: 7px;
}

.participant-flags svg {
  width: 16px;
  height: 16px;
}

.participant-card.has-hand .participant-flags svg:first-child {
  color: var(--warn);
}

.participant-meter {
  position: absolute;
  right: 18px;
  bottom: 12px;
  left: 18px;
  display: flex;
  height: 12px;
  align-items: center;
  gap: 4px;
  opacity: 0.3;
  transform: scaleY(clamp(0.35, calc(0.35 + var(--voice-level)), 1));
  transform-origin: center;
}

.participant-meter i {
  display: block;
  width: 100%;
  height: 3px;
  background: currentColor;
  transform: scaleY(0.55);
  transform-origin: center;
}

.participant-meter i:nth-child(2),
.participant-meter i:nth-child(4) {
  transform: scaleY(0.82);
}

.participant-meter i:nth-child(3) {
  transform: scaleY(1);
}

.room-chat {
  position: fixed;
  right: 22px;
  bottom: 112px;
  z-index: 16;
  display: grid;
  width: min(328px, calc(100vw - 28px));
  height: min(360px, calc(100dvh - 180px));
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(215, 255, 99, 0.045), transparent 42%),
    rgba(5, 5, 5, 0.985);
  border: 1px solid var(--line-strong);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.68);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.room-chat::before {
  position: absolute;
  top: 0;
  right: 16px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--accent);
}

.room-chat-header {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 12px 11px 15px;
  border-bottom: 1px solid var(--line);
}

.room-chat-header > div {
  display: grid;
  gap: 4px;
}

.room-chat-header span {
  color: var(--accent);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.room-chat-header strong {
  font-family: "Russo One", sans-serif;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
}

.room-chat-close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted-bright);
  cursor: pointer;
}

.room-chat-close:hover,
.room-chat-close:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ink-inverse);
}

.room-chat-close svg {
  width: 14px;
  height: 14px;
}

.room-chat-messages {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 14px;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.room-chat-empty {
  display: grid;
  min-height: 100%;
  place-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.room-chat-message {
  display: grid;
  gap: 5px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.room-chat-message:first-child {
  padding-top: 2px;
}

.room-chat-message:last-child {
  border-bottom: 0;
}

.room-chat-message header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.room-chat-message strong {
  overflow: hidden;
  color: var(--muted-bright);
  font-size: 8px;
  font-weight: 850;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.room-chat-message.is-self strong {
  color: var(--accent);
}

.room-chat-message time {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: "Russo One", sans-serif;
  font-size: 7px;
}

.room-chat-message p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.room-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid var(--line);
}

.room-chat-form input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  outline: 0;
}

.room-chat-form input::placeholder {
  color: var(--muted);
}

.room-chat-form input:focus {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}

.room-chat-form button {
  display: grid;
  height: 42px;
  place-items: center;
  background: var(--accent);
  color: var(--ink-inverse);
  cursor: pointer;
}

.room-chat-form button:disabled {
  background: var(--line-strong);
  color: var(--muted);
  cursor: wait;
}

.room-chat-form button svg {
  width: 15px;
  height: 15px;
}

.room-controls {
  position: sticky;
  bottom: 18px;
  z-index: 8;
  display: grid;
  width: min(860px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 34px auto 0;
  padding: 6px;
  background: rgba(3, 3, 3, 0.98);
  border: 1px solid var(--line-strong);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

.control-button {
  display: grid;
  min-height: 66px;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 0 13px;
  background: transparent;
  border-right: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: none;
}

.control-button:last-child {
  border-right: 0;
}

.control-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.control-icon svg {
  width: 16px;
  height: 16px;
}

.control-button > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.control-button strong {
  overflow: hidden;
  font-size: 9px;
  font-weight: 850;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.control-button small {
  color: var(--muted);
  font-size: 8px;
}

.control-button:hover,
.control-button.is-raised {
  background: rgba(255, 255, 255, 0.06);
}

.control-button.is-on .control-icon {
  border-color: var(--accent);
  color: var(--accent);
}

.control-button.is-off {
  color: var(--muted);
}

.control-button.is-raised .control-icon {
  background: var(--warn);
  border-color: var(--warn);
  color: var(--ink-inverse);
}

.chat-toggle-button .control-icon {
  position: relative;
}

.chat-toggle-button.is-open .control-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink-inverse);
}

.chat-unread-badge {
  position: absolute;
  top: -7px;
  right: -8px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  background: var(--warn);
  border: 2px solid #030303;
  border-radius: 9px;
  color: var(--ink-inverse);
  font-family: "Russo One", sans-serif;
  font-size: 7px;
  line-height: 1;
}

.voice-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 18px;
  background: var(--accent);
  color: var(--ink-inverse);
  font-size: 10px;
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 170ms ease, transform 170ms var(--ease);
}

.voice-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.remote-audio {
  display: none;
}

.voice-unavailable .voice-shell::after {
  display: block;
  margin-top: 12px;
  padding: 20px;
  content: "Голосовой модуль не загрузился. Обновите страницу.";
  border: 1px solid var(--error);
  color: var(--error);
}

@keyframes mark-in {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0) rotate(-12deg);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0);
  }
}

@keyframes signal-pulse {
  from {
    transform: scaleY(0.35);
    opacity: 0.45;
  }

  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 1080px) {
  .voice-shell {
    width: min(100% - 44px, 900px);
  }

  .voice-lobby {
    grid-template-columns: minmax(0, 1fr);
  }

  .voice-lobby::before {
    display: none;
  }

  .voice-intro {
    min-height: 460px;
  }

  .join-console {
    border-top: 1px solid var(--line);
  }

  .room-brief {
    grid-template-columns: minmax(200px, 0.9fr) minmax(260px, 1.2fr) auto;
  }

  .room-brief dl {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 15px;
  }
}

@media (max-width: 820px) {
  .voice-intro {
    padding-inline: 30px;
  }

  .voice-lede,
  .voice-signal,
  .voice-promises {
    margin-left: 0;
  }

  .participant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .room-brief {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .room-brief > p {
    grid-column: 1 / -1;
  }

  .room-brief dl {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  body::after {
    display: none;
  }

  .system-chrome {
    min-height: 40px;
    grid-template-columns: 1fr auto;
    padding: 0 14px;
  }

  .system-chrome-center {
    display: none;
  }

  .system-brand span {
    font-size: 8px;
  }

  .voice-shell {
    width: min(100% - 20px, 560px);
    padding: 56px 0 28px;
  }

  .service-switcher {
    width: 100%;
    margin-bottom: 12px;
    padding: 4px;
  }

  .service-switcher a {
    width: 25%;
    min-height: 52px;
    padding-inline: 10px;
  }

  .service-copy small {
    display: none;
  }

  .voice-lobby {
    min-height: 0;
  }

  .voice-lobby::after {
    width: 84px;
  }

  .voice-intro {
    min-height: 450px;
    padding: 24px 20px;
  }

  .module-row {
    font-size: 8px;
  }

  .voice-brand-lockup {
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-top: 30px;
  }

  .voice-brand-mark {
    width: 46px;
    height: 46px;
  }

  .voice-brand-mark img {
    width: 44px;
    height: 44px;
  }

  .voice-brand-lockup h1 {
    font-size: clamp(45px, 14vw, 66px);
  }

  .voice-lede {
    margin-top: 21px;
    font-size: 13px;
  }

  .voice-signal {
    height: 62px;
    margin-top: 28px;
    gap: 5px;
  }

  .voice-promises {
    gap: 8px 14px;
  }

  .voice-promises li {
    font-size: 7px;
  }

  .join-console {
    gap: 20px;
    padding: 24px 20px 20px;
  }

  .console-heading strong {
    font-size: 24px;
  }

  .join-actions {
    margin-top: 4px;
  }

  .room-brief {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
    padding: 20px;
  }

  .room-brief > p,
  .room-brief dl {
    grid-column: auto;
  }

  .text-button {
    width: 100%;
  }

  .room-brief dl {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 8px;
  }

  .room-brief dl div {
    grid-template-columns: 1fr auto;
    padding: 10px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .voice-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .voice-steps li {
    min-height: 70px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .voice-steps li:last-child {
    border-bottom: 0;
  }

  .room-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding-top: 18px;
  }

  .room-stage::before {
    right: 0;
    width: 260px;
    height: 260px;
  }

  .room-header h1 {
    font-size: 46px;
  }

  .room-header-actions {
    width: 100%;
  }

  .room-leave {
    flex: 1 1 auto;
    justify-content: space-between;
  }

  .room-status-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .room-status-strip span {
    padding-inline: 10px;
  }

  .room-status-strip span:last-child {
    display: none;
  }

  .room-grid-heading span:last-child {
    display: none;
  }

  .participant-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .participant-card {
    min-height: 130px;
  }

  .room-controls {
    bottom: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 20px;
  }

  .control-button {
    min-height: 68px;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 4px;
    padding: 7px 4px;
    text-align: center;
  }

  .control-button > span:last-child {
    justify-items: center;
  }

  .control-button strong {
    max-width: 90px;
    font-size: 7px;
  }

  .control-button small {
    display: none;
  }

  .room-chat {
    right: 10px;
    bottom: 90px;
    width: calc(100vw - 20px);
    height: min(330px, calc(100dvh - 150px));
    clip-path: none;
  }

  .voice-toast {
    right: 10px;
    bottom: 10px;
  }
}

@media (max-width: 390px) {
  .voice-shell {
    width: calc(100% - 14px);
  }

  .service-switcher a {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 6px;
  }

  .service-switcher svg {
    width: 14px;
    height: 14px;
  }

  .voice-intro,
  .join-console {
    padding-inline: 16px;
  }

  .voice-brand-lockup h1 {
    font-size: 42px;
  }

  .voice-promises li:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Shared high-visibility mode for every rondonhashi Space service. */
html.a11y-mode {
  color-scheme: dark;
  --bg: #000;
  --bg-deep: #000;
  --surface: #050505;
  --surface-raised: #0a0a0a;
  --ink: #fff;
  --ink-inverse: #000;
  --muted: #d4d4cc;
  --muted-bright: #f4f4ec;
  --line: rgba(255, 255, 255, 0.48);
  --line-strong: rgba(255, 255, 255, 0.82);
  --accent: #e6ff52;
  --accent-soft: rgba(230, 255, 82, 0.18);
}

html.a11y-mode body {
  background: #000;
  font-weight: 720;
}

html.a11y-mode *,
html.a11y-mode *::before,
html.a11y-mode *::after {
  animation: none !important;
  transition-duration: 0.01ms !important;
}

html.a11y-mode body::before,
html.a11y-mode body::after,
html.a11y-mode .voice-intro::before,
html.a11y-mode .room-stage::before,
html.a11y-mode .voice-signal {
  display: none;
}

html.a11y-mode :is(button, input, a):focus-visible {
  outline: 4px solid var(--accent);
  outline-offset: 4px;
}

html.a11y-mode .system-chrome {
  min-height: 58px;
  padding-inline: 24px;
  border-bottom-color: var(--line-strong);
  font-size: 12px;
}

html.a11y-mode .system-brand-mark {
  width: 26px;
  height: 26px;
}

html.a11y-mode .system-chrome-center {
  color: var(--muted-bright);
}

html.a11y-mode .system-chrome-actions {
  gap: 16px;
}

html.a11y-mode .voice-accessibility-toggle {
  min-width: 92px;
  min-height: 46px;
  gap: 10px;
  border-width: 2px;
}

html.a11y-mode .voice-accessibility-toggle svg {
  width: 22px;
  height: 22px;
}

html.a11y-mode .voice-accessibility-toggle span {
  font-size: 12px;
}

html.a11y-mode .system-network {
  font-size: 12px;
}

html.a11y-mode .voice-shell {
  width: min(1180px, calc(100% - 48px));
  padding-top: 86px;
}

html.a11y-mode .service-switcher {
  border-width: 2px;
}

html.a11y-mode .service-switcher a {
  width: 210px;
  min-height: 70px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

html.a11y-mode .service-index {
  font-size: 13px;
}

html.a11y-mode .service-copy strong {
  font-size: 17px;
}

html.a11y-mode .service-copy small {
  font-size: 12px;
  opacity: 0.9;
}

html.a11y-mode .service-switcher svg {
  width: 22px;
  height: 22px;
}

html.a11y-mode .voice-lobby {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  border-width: 2px;
  clip-path: none;
}

html.a11y-mode .voice-lobby::before {
  display: none;
}

html.a11y-mode .voice-intro {
  min-height: 0;
  padding: 42px;
}

html.a11y-mode .module-row,
html.a11y-mode .console-heading span,
html.a11y-mode .room-brief-index,
html.a11y-mode .module-index,
html.a11y-mode .room-grid-heading,
html.a11y-mode .voice-steps > li > span {
  color: var(--muted-bright);
  font-size: 14px;
  line-height: 1.45;
}

html.a11y-mode .voice-brand-lockup {
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 26px;
  margin-top: 38px;
}

html.a11y-mode .voice-brand-mark {
  width: 88px;
  height: 88px;
}

html.a11y-mode .voice-brand-mark img {
  width: 78px;
  height: 78px;
}

html.a11y-mode .voice-brand-lockup h1 {
  font-size: clamp(58px, 7.4vw, 92px);
  line-height: 0.92;
}

html.a11y-mode .voice-brand-lockup h1 span {
  color: var(--ink);
  -webkit-text-stroke: 0;
}

html.a11y-mode .voice-lede {
  max-width: 760px;
  margin: 28px 0 0 114px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.65;
}

html.a11y-mode .voice-promises {
  margin: 30px 0 0 114px;
  gap: 14px 26px;
  color: var(--muted-bright);
}

html.a11y-mode .voice-promises li {
  gap: 10px;
  font-size: 14px;
}

html.a11y-mode .voice-promises svg {
  width: 21px;
  height: 21px;
  color: var(--accent);
}

html.a11y-mode .join-console {
  gap: 26px;
  padding: 42px;
  background: #070707;
  border-top: 2px solid var(--line-strong);
}

html.a11y-mode .console-heading strong {
  font-size: 36px;
  line-height: 1.15;
}

html.a11y-mode .console-heading > svg {
  width: 26px;
  height: 26px;
}

html.a11y-mode .voice-field {
  gap: 12px;
}

html.a11y-mode .voice-field > span,
html.a11y-mode .voice-field-label {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

html.a11y-mode .voice-field em {
  font-size: 14px;
}

html.a11y-mode .voice-field input {
  min-height: 68px;
  padding-inline: 20px;
  background: #000;
  border-width: 2px;
  color: var(--ink);
  font-size: 21px;
}

html.a11y-mode .room-address-control {
  grid-template-columns: minmax(0, 1fr) 68px;
}

html.a11y-mode .room-regenerate-button {
  width: 68px;
  height: 68px;
  border-width: 2px;
}

html.a11y-mode .room-regenerate-button svg {
  width: 26px;
  height: 26px;
}

html.a11y-mode .voice-field input::placeholder {
  color: #b8b8b0;
}

html.a11y-mode .voice-field small {
  color: var(--muted-bright);
  font-size: 15px;
  line-height: 1.55;
}

html.a11y-mode .voice-button {
  min-height: 82px;
  border-width: 2px;
  clip-path: none;
}

html.a11y-mode .voice-button > svg {
  width: 25px;
  height: 25px;
}

html.a11y-mode .voice-button > span strong {
  font-size: 18px;
}

html.a11y-mode .voice-button > span small {
  font-size: 14px;
  opacity: 0.85;
}

html.a11y-mode .form-error {
  min-height: 24px;
  font-size: 16px;
}

html.a11y-mode .room-brief {
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 24px 34px;
  padding: 30px;
  background: #050505;
  border-width: 2px;
  clip-path: none;
}

html.a11y-mode .room-brief h2 {
  font-size: 27px;
  line-height: 1.3;
}

html.a11y-mode .room-brief > p {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.65;
}

html.a11y-mode .text-button {
  min-height: 60px;
  font-size: 15px;
  border-width: 2px;
}

html.a11y-mode .text-button svg {
  width: 21px;
  height: 21px;
}

html.a11y-mode .room-brief dl {
  border-left: 0;
}

html.a11y-mode .room-brief dl div {
  padding: 10px 16px;
}

html.a11y-mode .room-brief dt {
  color: var(--muted-bright);
  font-size: 13px;
}

html.a11y-mode .room-brief dd {
  font-size: 15px;
}

html.a11y-mode .voice-steps {
  border-color: var(--line-strong);
}

html.a11y-mode .voice-steps li {
  min-height: 112px;
  padding: 22px 26px;
}

html.a11y-mode .voice-steps strong {
  font-size: 17px;
}

html.a11y-mode .voice-steps small {
  color: var(--muted-bright);
  font-size: 15px;
}

html.a11y-mode .room-header h1 {
  font-size: clamp(58px, 8vw, 98px);
  line-height: 0.92;
}

html.a11y-mode .room-header p {
  color: var(--ink);
  font-size: 17px;
}

html.a11y-mode .room-header p b {
  color: var(--muted-bright);
  font-size: 14px;
}

html.a11y-mode .icon-control,
html.a11y-mode .room-leave {
  min-height: 62px;
  border-width: 2px;
}

html.a11y-mode .icon-control {
  width: 62px;
}

html.a11y-mode .room-leave {
  font-size: 15px;
}

html.a11y-mode .room-status-strip {
  min-height: 68px;
  border-width: 2px;
  color: var(--ink);
  font-size: 14px;
}

html.a11y-mode .participant-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

html.a11y-mode .participant-card {
  min-height: 184px;
  padding: 34px 24px 28px;
  background: #070707;
  border-width: 2px;
  clip-path: none;
}

html.a11y-mode .participant-sequence,
html.a11y-mode .participant-copy > span {
  color: var(--muted-bright);
  font-size: 13px;
}

html.a11y-mode .participant-avatar {
  width: 72px;
  height: 72px;
  font-size: 21px;
}

html.a11y-mode .participant-copy strong {
  font-size: 20px;
}

html.a11y-mode .participant-copy em {
  font-size: 12px;
}

html.a11y-mode .room-controls {
  border-width: 2px;
}

html.a11y-mode .control-button {
  min-height: 84px;
  gap: 14px;
  border-color: var(--line-strong);
}

html.a11y-mode .control-icon {
  width: 46px;
  height: 46px;
  border-width: 2px;
}

html.a11y-mode .control-icon svg {
  width: 22px;
  height: 22px;
}

html.a11y-mode .control-button strong {
  font-size: 15px;
}

html.a11y-mode .control-button small {
  color: var(--muted-bright);
  font-size: 13px;
}

html.a11y-mode .room-chat {
  width: min(420px, calc(100vw - 28px));
  height: min(440px, calc(100dvh - 180px));
  border-width: 2px;
  clip-path: none;
}

html.a11y-mode .room-chat-header {
  min-height: 76px;
  border-width: 2px;
}

html.a11y-mode .room-chat-header span,
html.a11y-mode .room-chat-message time {
  font-size: 12px;
}

html.a11y-mode .room-chat-header strong {
  font-size: 18px;
}

html.a11y-mode .room-chat-close {
  width: 46px;
  height: 46px;
  border-width: 2px;
}

html.a11y-mode .room-chat-message strong {
  font-size: 14px;
}

html.a11y-mode .room-chat-message p,
html.a11y-mode .room-chat-form input {
  font-size: 17px;
}

html.a11y-mode .room-chat-form {
  grid-template-columns: minmax(0, 1fr) 58px;
}

html.a11y-mode .room-chat-form input,
html.a11y-mode .room-chat-form button {
  height: 56px;
}

html.a11y-mode .voice-toast {
  padding: 18px 22px;
  font-size: 16px;
}

@media (max-width: 680px) {
  html.a11y-mode .system-chrome {
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-inline: 10px;
  }

  html.a11y-mode .system-brand span,
  html.a11y-mode .system-network b {
    display: none;
  }

  html.a11y-mode .system-chrome-actions {
    gap: 8px;
  }

  html.a11y-mode .voice-accessibility-toggle {
    min-width: 54px;
    min-height: 46px;
    padding-inline: 8px;
  }

  html.a11y-mode .voice-accessibility-toggle span {
    display: none;
  }

  html.a11y-mode .voice-shell {
    width: calc(100% - 18px);
    padding-top: 72px;
  }

  html.a11y-mode .service-switcher a {
    width: 33.333%;
    min-height: 66px;
    padding-inline: 9px;
  }

  html.a11y-mode .service-copy strong {
    font-size: 15px;
  }

  html.a11y-mode .voice-intro,
  html.a11y-mode .join-console {
    padding: 28px 20px;
  }

  html.a11y-mode .voice-brand-lockup {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-top: 30px;
  }

  html.a11y-mode .voice-brand-mark {
    width: 48px;
    height: 48px;
  }

  html.a11y-mode .voice-brand-mark img {
    width: 46px;
    height: 46px;
  }

  html.a11y-mode .voice-brand-lockup h1 {
    margin-top: 0;
    font-size: clamp(48px, 13vw, 56px);
  }

  html.a11y-mode .voice-lede,
  html.a11y-mode .voice-promises {
    margin-left: 0;
  }

  html.a11y-mode .voice-lede {
    font-size: 19px;
  }

  html.a11y-mode .voice-field > span,
  html.a11y-mode .voice-field-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  html.a11y-mode .room-brief,
  html.a11y-mode .voice-steps,
  html.a11y-mode .participant-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  html.a11y-mode .room-brief {
    padding: 24px 20px;
  }

  html.a11y-mode .room-brief dl {
    grid-template-columns: minmax(0, 1fr);
  }

  html.a11y-mode .voice-steps li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  html.a11y-mode .room-status-strip {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 8px;
  }

  html.a11y-mode .room-status-strip span {
    min-height: 46px;
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  html.a11y-mode .room-status-strip span:nth-child(2),
  html.a11y-mode .room-status-strip span:last-child {
    display: inline-flex;
    justify-content: flex-start;
  }

  html.a11y-mode .room-status-strip span:last-child {
    border-bottom: 0;
  }

  html.a11y-mode .room-controls {
    position: static;
    grid-template-columns: minmax(0, 1fr);
  }

  html.a11y-mode .room-chat {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    height: min(460px, calc(100dvh - 88px));
  }

  html.a11y-mode .control-button {
    min-height: 72px;
    grid-template-columns: 52px minmax(0, 1fr);
    justify-items: stretch;
    padding-inline: 14px;
    text-align: left;
  }

  html.a11y-mode .control-button > span:last-child {
    justify-items: start;
  }

  html.a11y-mode .control-button strong {
    max-width: none;
  }

  html.a11y-mode .control-button small {
    display: block;
  }
}

.custom-cursor,
.custom-cursor-layer {
  display: none;
}

@media (pointer: fine) {
  body.has-custom-cursor.cursor-ready,
  body.has-custom-cursor.cursor-ready * {
    cursor: none !important;
  }

  .custom-cursor-layer {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
    border: 0;
    color: inherit;
  }

  .custom-cursor-layer::backdrop {
    display: none;
    background: transparent;
  }

  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2147483647;
    display: block;
    width: 34px;
    height: 34px;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-80px, -80px, 0);
    transition: opacity 120ms ease;
    will-change: transform, opacity;
    contain: strict;
    isolation: isolate;
  }

  body.cursor-ready .custom-cursor {
    opacity: 0.96;
  }

  .custom-cursor::before {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    width: 14px;
    height: 14px;
    content: "";
    background: rgba(4, 4, 4, 0.9);
    border: 1px solid rgba(215, 255, 99, 0.62);
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.46);
    opacity: 0.94;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 150ms var(--ease), opacity 120ms ease;
  }

  .custom-cursor.is-interactive::before {
    transform: translate(-50%, -50%) scale(1.75);
  }

  .custom-cursor.is-media::before {
    transform: translate(-50%, -50%) scale(3.2);
  }

  .custom-cursor-mark {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 34px;
    height: 34px;
    opacity: 0.96;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.76));
    transition: opacity 150ms ease, transform 150ms var(--ease);
  }

  .custom-cursor.is-pressing::before {
    transform: translate(-50%, -50%) scale(0.72);
  }

  .custom-cursor.is-pressing .custom-cursor-mark {
    opacity: 0.72;
    transform: scale(0.68);
  }
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .custom-cursor-layer,
  .custom-cursor {
    display: none !important;
  }
}

html.a11y-mode .custom-cursor-layer,
html.a11y-mode .custom-cursor {
  display: none !important;
}
