:root {
  color-scheme: dark;
  --bg: #101418;
  --bg-soft: #171c21;
  --panel: #20262d;
  --panel-soft: #252c34;
  --panel-strong: #2d3540;
  --line: #37414c;
  --line-soft: #2c343d;
  --text: #f4f7fb;
  --text-soft: #c8d0da;
  --text-muted: #87919d;
  --accent: #22a295;
  --accent-dark: #188b80;
  --danger: #e4524f;
  --danger-dark: #c83f3c;
  --warning: #e8b44e;
  --light-bg: #f5f7fa;
  --light-panel: #ffffff;
  --light-line: #d9e1ea;
  --light-text: #101820;
  --light-muted: #647082;
  font-family: Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

svg {
  display: block;
}

.meeting-body {
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.is-hidden {
  display: none !important;
}

.meeting-shell,
.landing-view,
.room-view {
  width: 100%;
  height: 100%;
}

.gear-button {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 2.6rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(32, 38, 45, 0.72);
  color: var(--text-soft);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.gear-button svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.gear-button:hover,
.gear-button:focus-visible {
  border-color: var(--accent);
  background: var(--panel-strong);
  color: #ffffff;
  outline: none;
}

.landing-view {
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.landing-card {
  width: min(38rem, 100%);
  text-align: center;
}

.eyebrow,
.room-kicker {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-card h1 {
  margin: 0.8rem 0 1.45rem;
  color: var(--text);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

.room-form,
.admin-create,
.chat-form,
.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
}

.room-form {
  width: min(31rem, 100%);
  margin: 0 auto;
}

input {
  min-width: 0;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: #ffffff;
  color: #111820;
  padding: 0 0.9rem;
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(34, 162, 149, 0.18);
}

.room-form button,
.admin-create button,
.chat-form button,
.modal-card button[type="submit"],
.admin-login button[type="submit"],
.inline-form button,
.contact-button {
  min-height: 3rem;
  border: 0;
  border-radius: 0.6rem;
  background: var(--accent);
  color: #ffffff;
  padding: 0 1.15rem;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.room-form button:hover,
.admin-create button:hover,
.chat-form button:hover,
.modal-card button[type="submit"]:hover,
.admin-login button[type="submit"]:hover,
.inline-form button:hover,
.contact-button:hover {
  background: var(--accent-dark);
}

.room-view {
  display: grid;
  grid-template-rows: 5.45rem minmax(0, 1fr) 5.2rem;
  padding: 0.85rem;
  gap: 0.8rem;
}

.room-topbar {
  display: grid;
  grid-template-columns: auto minmax(18rem, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  padding: 0 3.1rem 0 0;
}

.room-title-block {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.room-dot {
  width: 0.72rem;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--accent);
}

.room-title-block h2,
.panel-head h3,
.admin-head h2,
.section-title h3,
.panel-card h2 {
  margin: 0.18rem 0 0;
  color: var(--text);
  font-size: 1.28rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.room-title-block h2 {
  max-width: 38vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-status-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.participant-strip-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 0.42rem;
}

.participant-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  gap: 0.42rem;
}

.participant-chip,
.participant-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  height: 2.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  padding: 0 0.52rem 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 820;
}

.participant-chip.is-self,
.participant-chip.is-speaking {
  border-color: var(--accent);
}

.participant-more {
  flex: 0 0 auto;
  min-width: 2.6rem;
  justify-content: center;
  padding: 0 0.65rem;
}

.mini-avatar {
  display: grid;
  place-items: center;
  width: 1.8rem;
  aspect-ratio: 1;
  border-radius: 0.55rem;
  background: #ffffff;
  color: #111820;
  font-size: 0.68rem;
  font-weight: 880;
}

.mini-name {
  max-width: 6.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-icon {
  display: grid;
  place-items: center;
  width: 1.45rem;
  aspect-ratio: 1;
  border-radius: 999px;
  color: var(--text-muted);
}

.mini-icon svg {
  width: 0.82rem;
  height: 0.82rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.mini-icon.is-off {
  background: rgba(228, 82, 79, 0.16);
  color: #ffcbc9;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text-soft);
  padding: 0 0.72rem;
  font-size: 0.74rem;
  font-weight: 760;
}

.status-pill.is-warn {
  border-color: rgba(232, 180, 78, 0.45);
  color: #ffe0a2;
}

.status-pill.is-danger {
  border-color: rgba(228, 82, 79, 0.45);
  color: #ffc4c2;
}

.room-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 24rem);
  gap: 0.8rem;
  min-height: 0;
}

.board-panel,
.chat-panel,
.admin-console,
.modal-card,
.panel-card,
.owner-login-card {
  border: 1px solid var(--line-soft);
  border-radius: 0.85rem;
  background: var(--panel);
}

.board-panel,
.chat-panel {
  min-height: 0;
  overflow: hidden;
}

.board-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.78rem 0.85rem;
  border-bottom: 1px solid var(--line-soft);
}

.board-toolbar h3 {
  margin: 0.16rem 0 0;
  color: var(--text);
  font-size: 1rem;
}

.board-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.tool-button {
  display: grid;
  place-items: center;
  width: 2.25rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text-soft);
}

.tool-button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.tool-button.is-active,
.tool-button:hover {
  border-color: var(--accent);
  color: #dffdfa;
}

.tool-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.whiteboard-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  touch-action: none;
  cursor: crosshair;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #20282f;
  background-size: 2rem 2rem;
}

.whiteboard-canvas.is-locked {
  cursor: default;
}

.participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  grid-auto-rows: minmax(8.25rem, auto);
  align-content: start;
  gap: 0.55rem;
  height: 100%;
  overflow: auto;
  padding: 0.65rem;
}

.participants-grid.compact {
  max-height: min(28rem, calc(100svh - 12rem));
  height: auto;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  padding: 0;
}

.participant-card {
  position: relative;
  display: grid;
  min-height: 8.25rem;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: 0.68rem;
  background: var(--panel-soft);
  padding: 0.72rem;
}

.participant-card.is-self {
  border-color: var(--accent);
}

.participant-card.is-speaking {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(34, 162, 149, 0.25);
}

.participant-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.avatar {
  display: grid;
  place-items: center;
  width: 2.45rem;
  aspect-ratio: 1;
  border-radius: 0.62rem;
  background: #ffffff;
  color: #111820;
  font-size: 0.82rem;
  font-weight: 850;
}

.participant-icon {
  display: grid;
  place-items: center;
  width: 1.7rem;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--text-soft);
}

.participant-icons {
  display: flex;
  align-items: center;
  gap: 0.32rem;
}

.participant-icon svg {
  width: 0.86rem;
  height: 0.86rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.participant-icon.is-off,
.participant-icon.is-force,
.participant-icon.is-silenced {
  background: rgba(228, 82, 79, 0.16);
  color: #ffcbc9;
}

.participant-card h4 {
  margin: 0.62rem 0 0;
  color: var(--text);
  font-size: 0.86rem;
}

.participant-card p {
  margin: 0.16rem 0 0;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.participant-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.55rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.28rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text-soft);
  padding: 0 0.42rem;
  font-size: 0.62rem;
  font-weight: 780;
}

.badge.good {
  border-color: rgba(34, 162, 149, 0.42);
  color: #bdf8f1;
}

.badge.warn {
  border-color: rgba(228, 82, 79, 0.42);
  color: #ffc4c2;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.panel-head,
.panel-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.85rem;
  border-bottom: 1px solid var(--line-soft);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 2rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
}

.chat-list {
  min-height: 0;
  overflow: auto;
  padding: 0.85rem;
}

.chat-empty {
  display: grid;
  min-height: 100%;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

.chat-message {
  margin-bottom: 0.72rem;
  padding: 0.75rem;
  border: 1px solid var(--line-soft);
  border-radius: 0.7rem;
  background: var(--panel-soft);
}

.chat-message strong,
.admin-user strong,
.key-item strong,
.room-item strong,
.active-item strong {
  display: block;
  color: var(--text);
  font-size: 0.86rem;
}

.chat-message span {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.chat-locked-note {
  margin: 0 0.75rem 0.6rem;
  border: 1px solid rgba(232, 180, 78, 0.35);
  border-radius: 0.55rem;
  background: rgba(232, 180, 78, 0.1);
  color: #ffe2a7;
  padding: 0.58rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 760;
}

.chat-form {
  padding: 0.75rem;
  border-top: 1px solid var(--line-soft);
}

.chat-form input,
.chat-form button {
  min-height: 2.8rem;
}

.callbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 5.2rem;
}

.call-timer {
  position: absolute;
  left: 0.35rem;
  bottom: 1.35rem;
  min-width: 5.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text-soft);
  padding: 0.52rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.call-button,
.secondary-button,
.tiny-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  min-height: 2.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  padding: 0 0.95rem;
  font-size: 0.76rem;
  font-weight: 820;
  text-transform: uppercase;
}

.call-button {
  width: 3.1rem;
  min-width: 3.1rem;
  min-height: 3.1rem;
  padding: 0;
}

.tiny-button {
  min-height: 2.15rem;
  padding: 0 0.72rem;
  font-size: 0.68rem;
}

.call-button svg {
  width: 1.14rem;
  height: 1.14rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.call-button:hover,
.secondary-button:hover,
.tiny-button:hover {
  background: var(--panel-strong);
}

.secondary-button.is-active {
  border-color: var(--accent);
  color: #dffdfa;
}

.call-button.is-active {
  border-color: rgba(228, 82, 79, 0.62);
  background: rgba(228, 82, 79, 0.17);
  color: #ffd6d4;
  box-shadow: inset 0 0 0 1px rgba(228, 82, 79, 0.12);
}

.call-button.is-active:hover {
  background: rgba(228, 82, 79, 0.24);
  color: #ffffff;
}

.call-button.danger,
.secondary-button.danger,
.tiny-button.danger {
  border-color: rgba(228, 82, 79, 0.35);
  background: rgba(228, 82, 79, 0.13);
  color: #ffd1cf;
}

.call-button.danger:hover,
.secondary-button.danger:hover,
.tiny-button.danger:hover {
  background: var(--danger-dark);
  color: #ffffff;
}

.participant-menu {
  position: fixed;
  z-index: 80;
  display: grid;
  min-width: 13.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.72rem;
  background: #151b21;
  box-shadow: var(--shadow);
  padding: 0.35rem;
}

.participant-menu button {
  min-height: 2.35rem;
  border: 0;
  border-radius: 0.48rem;
  background: transparent;
  color: var(--text);
  padding: 0 0.72rem;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 760;
}

.participant-menu button:hover {
  background: var(--panel-strong);
}

.participant-menu button.danger {
  color: #ffc8c6;
}

.modal,
.admin-modal,
.participants-modal {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
}

.modal::backdrop,
.admin-modal::backdrop,
.participants-modal::backdrop {
  background: rgba(7, 10, 13, 0.76);
}

.modal-card {
  width: min(25rem, calc(100vw - 2rem));
  padding: 1.2rem;
}

.participant-list-modal {
  position: relative;
  width: min(58rem, calc(100vw - 2rem));
  max-height: min(42rem, calc(100svh - 2rem));
  overflow: hidden;
}

.modal-card h2,
.admin-login h2,
.owner-login-card h2 {
  margin: 0.45rem 0 1rem;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.08;
}

.modal-card input,
.admin-login input {
  width: 100%;
  margin-bottom: 0.72rem;
}

.modal-card button[type="submit"],
.admin-login button[type="submit"] {
  width: 100%;
}

.admin-console {
  position: relative;
  width: min(64rem, calc(100vw - 1.6rem));
  max-height: min(44rem, calc(100svh - 1.6rem));
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  width: 2rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--text-soft);
}

.admin-login {
  width: min(27rem, 100%);
  padding: 1.2rem;
}

.admin-workspace {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  max-height: min(44rem, calc(100svh - 1.6rem));
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 3.4rem 1rem 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.admin-create {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.75fr) minmax(20rem, 1fr);
  min-height: 0;
}

.admin-section {
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--line-soft);
}

.admin-section:last-child {
  border-right: 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.6rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.section-title span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.admin-room-list,
.admin-list {
  max-height: 25rem;
  overflow: auto;
  padding: 0.75rem;
}

.admin-room-item,
.admin-user {
  display: grid;
  gap: 0.5rem;
  border: 1px solid var(--line-soft);
  border-radius: 0.68rem;
  background: var(--panel-soft);
  padding: 0.76rem;
  margin-bottom: 0.6rem;
}

.admin-room-item {
  cursor: pointer;
}

.admin-room-item.is-active {
  border-color: var(--accent);
}

.admin-room-meta,
.admin-user-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-room-controls,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.admin-actions {
  padding: 0;
  border: 0;
}

.audio-stage {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 80;
  max-width: min(32rem, calc(100vw - 2rem));
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #05080b;
  color: var(--text);
  padding: 0.8rem 0.95rem;
  font-size: 0.86rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.5rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.panel-body {
  min-height: 100svh;
  background: var(--light-bg);
  color: var(--light-text);
}

.panel-shell {
  width: min(1220px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.2rem 0 2rem;
}

.panel-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.2rem;
}

.panel-hero h1 {
  margin: 0.38rem 0 0;
  color: var(--light-text);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.panel-hero p:not(.eyebrow) {
  margin: 0.58rem 0 0;
  color: var(--light-muted);
}

.owner-login {
  display: grid;
  min-height: 52svh;
  place-items: center;
}

.owner-login-card,
.panel-card {
  border: 1px solid var(--light-line);
  border-radius: 0.85rem;
  background: var(--light-panel);
}

.owner-login-card {
  width: min(25rem, 100%);
  padding: 1.2rem;
}

.owner-login-card h2,
.panel-card h2 {
  color: var(--light-text);
}

.owner-login-card input,
.inline-form input {
  width: 100%;
  border-color: var(--light-line);
}

.owner-login-card button {
  width: 100%;
  min-height: 3rem;
  border: 0;
  border-radius: 0.6rem;
  background: var(--accent);
  color: #ffffff;
  font-weight: 850;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(22rem, 1.2fr);
  gap: 1rem;
}

.panel-card {
  overflow: hidden;
}

.panel-card.wide {
  grid-column: 1 / -1;
}

.panel-card-head {
  border-color: var(--light-line);
}

.panel-card .room-kicker,
.panel-card .eyebrow,
.panel-hero .eyebrow {
  color: var(--accent-dark);
}

.inline-form {
  padding: 0.85rem;
  border-bottom: 1px solid var(--light-line);
}

.key-list,
.room-list,
.active-list {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
}

.key-item,
.room-item,
.active-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--light-line);
  border-radius: 0.62rem;
  background: #fbfcfe;
  padding: 0.75rem;
}

.key-item strong,
.room-item strong,
.active-item strong {
  color: var(--light-text);
}

.key-item code,
.room-item code,
.active-item code {
  display: block;
  margin-top: 0.25rem;
  color: var(--light-muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.panel-body .secondary-button,
.panel-body .tiny-button {
  border-color: var(--light-line);
  background: #ffffff;
  color: var(--light-text);
}

.panel-body .secondary-button:hover,
.panel-body .tiny-button:hover {
  border-color: var(--accent);
  background: #f6fbfa;
}

.contact-button {
  text-decoration: none;
}

.hint {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.panel-body .hint {
  color: var(--light-muted);
}

@media (max-width: 980px) {
  .room-layout,
  .admin-grid,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .chat-panel {
    position: fixed;
    right: 0.85rem;
    bottom: 6rem;
    z-index: 20;
    width: min(24rem, calc(100vw - 1.7rem));
    height: min(34rem, calc(100svh - 8rem));
  }

  .chat-panel:not(.is-open) {
    display: none;
  }

  .admin-section {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
}

@media (max-width: 680px) {
  .room-view {
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 0.6rem;
  }

  .panel-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .room-topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding-right: 3rem;
  }

  .room-status-row,
  .participant-strip-wrap,
  .participant-strip {
    justify-content: flex-start;
  }

  .room-title-block h2 {
    max-width: calc(100vw - 7rem);
  }

  .room-form,
  .admin-create,
  .chat-form,
  .inline-form,
  .key-item,
  .room-item,
  .active-item {
    grid-template-columns: 1fr;
  }

  .participants-grid {
    grid-template-columns: 1fr;
  }

  .callbar {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0.4rem;
  }

  .call-button {
    width: 3rem;
    min-width: 3rem;
  }

  .call-timer {
    position: static;
    order: -1;
    width: 100%;
  }

  .landing-card h1 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .admin-console {
    max-height: calc(100svh - 1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
  }
}
