:root {
  color-scheme: dark;
  --bg: #05070d;
  --panel: rgba(10, 14, 24, 0.82);
  --panel-strong: rgba(16, 20, 34, 0.94);
  --line: rgba(238, 244, 255, 0.16);
  --text: #f5f7fb;
  --muted: #aeb8c9;
  --cyan: #7dd3fc;
  --pink: #f0abfc;
  --amber: #fcd34d;
  --green: #86efac;
  --danger: #fb7185;
  --shadow: rgba(0, 0, 0, 0.36);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(125, 211, 252, 0.18), transparent 30%),
    radial-gradient(circle at 80% 78%, rgba(252, 211, 77, 0.12), transparent 28%),
    linear-gradient(145deg, #05070d 0%, #100d1c 46%, #07131b 100%);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.app-shell,
.space,
.scene-host {
  min-height: 100vh;
}

.lobby {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.lobby-panel {
  width: min(420px, 100%);
  --field-gap: 16px;
  --label-gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: 0 24px 70px var(--shadow);
  backdrop-filter: blur(18px);
}

.brand-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background:
    radial-gradient(circle, #ffffff 0%, #f0abfc 20%, rgba(125, 211, 252, 0.34) 44%, transparent 70%),
    #0c1320;
  box-shadow: 0 0 28px rgba(125, 211, 252, 0.72);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand-row p,
.lobby-note,
.eyebrow {
  color: var(--muted);
}

label,
legend {
  display: block;
  margin: 16px 0 8px;
  color: #dbe5f3;
  font-size: 0.88rem;
  font-weight: 700;
}

.lobby-panel label,
.lobby-panel legend {
  margin: 0 0 var(--label-gap);
}

.lobby-panel > .color-field,
.lobby-panel > .color-field + label,
.lobby-panel > .primary-button {
  margin-top: var(--field-gap);
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

input:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.color-field {
  padding: 0;
  border: 0;
  margin: 0;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.color-choice {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: var(--choice-color);
}

.color-choice[aria-pressed="true"]::after {
  position: absolute;
  inset: 7px;
  border: 2px solid rgba(5, 7, 13, 0.84);
  border-radius: 5px;
  content: "";
}

.input-action-row {
  position: relative;
}

.input-action-row input {
  padding-right: 52px;
}

.input-icon-button {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  width: 32px;
  height: 32px;
  min-height: 32px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
}

.input-icon-button span {
  transform: translateY(-1px);
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 800;
}

.primary-button {
  color: #041016;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 12px 30px rgba(125, 211, 252, 0.22);
}

.secondary-button {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.1);
}

.ghost-button {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.lobby-panel > .primary-button {
  width: 100%;
}

.lobby-note {
  min-height: 20px;
  margin-top: 14px;
  font-size: 0.9rem;
}

.space {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.scene-host {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.edge-flash {
  position: absolute;
  z-index: 1;
  width: 116px;
  height: 2px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--edge-flash-color) 24%, transparent) 18%, var(--edge-flash-color) 50%, color-mix(in srgb, var(--edge-flash-color) 24%, transparent) 82%, transparent 100%);
  filter: saturate(1.35) brightness(1.08);
  mix-blend-mode: screen;
  pointer-events: none;
  transition:
    opacity 70ms linear,
    transform 70ms linear;
  animation: edge-flash-line 520ms ease-out infinite;
}

.edge-flash--left,
.edge-flash--right {
  width: 2px;
  height: 116px;
  background:
    linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--edge-flash-color) 24%, transparent) 18%, var(--edge-flash-color) 50%, color-mix(in srgb, var(--edge-flash-color) 24%, transparent) 82%, transparent 100%);
}

.constellation-reveal-flash {
  --constellation-reveal-color: #f8d76d;
  position: absolute;
  inset: 0;
  z-index: 1;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--constellation-reveal-color) 64%, transparent);
  background:
    linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--constellation-reveal-color) 44%, transparent) 28%, var(--constellation-reveal-color) 50%, color-mix(in srgb, var(--constellation-reveal-color) 44%, transparent) 72%, transparent 100%) top / 100% 3px no-repeat,
    linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--constellation-reveal-color) 44%, transparent) 28%, var(--constellation-reveal-color) 50%, color-mix(in srgb, var(--constellation-reveal-color) 44%, transparent) 72%, transparent 100%) bottom / 100% 3px no-repeat,
    linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--constellation-reveal-color) 44%, transparent) 28%, var(--constellation-reveal-color) 50%, color-mix(in srgb, var(--constellation-reveal-color) 44%, transparent) 72%, transparent 100%) left / 3px 100% no-repeat,
    linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--constellation-reveal-color) 44%, transparent) 28%, var(--constellation-reveal-color) 50%, color-mix(in srgb, var(--constellation-reveal-color) 44%, transparent) 72%, transparent 100%) right / 3px 100% no-repeat;
  opacity: 0;
  filter: saturate(1.28) brightness(1.1);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: constellation-reveal-border-flash 1280ms ease-out forwards;
}

@keyframes edge-flash-line {
  0% {
    filter:
      drop-shadow(0 0 2px var(--edge-flash-color))
      saturate(1.05)
      brightness(0.82);
  }

  28% {
    filter:
      drop-shadow(0 0 7px var(--edge-flash-color))
      saturate(1.7)
      brightness(1.42);
  }

  100% {
    filter:
      drop-shadow(0 0 4px var(--edge-flash-color))
      saturate(1.16)
      brightness(0.94);
  }
}

@keyframes constellation-reveal-border-flash {
  0% {
    opacity: 0;
    box-shadow:
      inset 0 0 0 color-mix(in srgb, var(--constellation-reveal-color) 0%, transparent),
      inset 0 0 0 color-mix(in srgb, var(--constellation-reveal-color) 0%, transparent);
  }

  16% {
    opacity: 0.95;
    box-shadow:
      inset 0 0 0 2px color-mix(in srgb, var(--constellation-reveal-color) 56%, transparent),
      inset 0 0 42px color-mix(in srgb, var(--constellation-reveal-color) 36%, transparent);
  }

  48% {
    opacity: 0.38;
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--constellation-reveal-color) 28%, transparent),
      inset 0 0 30px color-mix(in srgb, var(--constellation-reveal-color) 18%, transparent);
  }

  100% {
    opacity: 0;
    box-shadow:
      inset 0 0 0 color-mix(in srgb, var(--constellation-reveal-color) 0%, transparent),
      inset 0 0 12px color-mix(in srgb, var(--constellation-reveal-color) 0%, transparent);
  }
}

.top-bar,
.objective-panel,
.people-panel,
.completion-overlay,
.action-bar,
.toast {
  position: relative;
  z-index: 2;
}

.space[data-complete="true"] .top-bar,
.space[data-complete="true"] .objective-panel,
.space[data-complete="true"] .people-panel,
.space[data-complete="true"] .action-bar {
  display: none;
}

.completion-overlay {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(430px, calc(100vw - 40px));
  border: 1px solid rgba(238, 244, 255, 0.22);
  border-radius: 8px;
  padding: 16px;
  background: rgba(5, 10, 18, 0.76);
  box-shadow:
    0 18px 52px var(--shadow),
    0 0 34px rgba(125, 211, 252, 0.12);
  backdrop-filter: blur(18px);
}

.completion-heading {
  margin-bottom: 12px;
}

.completion-kicker {
  margin-bottom: 4px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.completion-heading h3 {
  color: #f8fbff;
  font-size: 1.18rem;
  line-height: 1.1;
}

.completion-heading p:last-child {
  margin-top: 7px;
  color: #c8d5e8;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.38;
}

.objective-panel {
  position: fixed;
  top: 92px;
  left: 20px;
  width: min(324px, calc(100vw - 40px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(5, 7, 13, 0.7);
  box-shadow: 0 18px 48px var(--shadow);
  backdrop-filter: blur(16px);
}

.objective-panel[data-complete="true"] {
  border-color: rgba(134, 239, 172, 0.34);
  background: rgba(5, 12, 18, 0.78);
  box-shadow:
    0 18px 48px var(--shadow),
    0 0 26px rgba(134, 239, 172, 0.12);
}

.objective-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.objective-kicker {
  margin-bottom: 3px;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.objective-title-row h3 {
  color: #f8fbff;
  font-size: 1rem;
  line-height: 1.16;
}

.objective-text {
  color: #c8d5e8;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.42;
}

.objective-progress {
  height: 4px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.objective-progress span {
  display: block;
  width: var(--objective-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--amber), var(--green));
  box-shadow: 0 0 16px rgba(125, 211, 252, 0.42);
  transition: width 180ms ease;
}

.objective-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.objective-stats span {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px;
  overflow: hidden;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.objective-stats b {
  display: block;
  margin-bottom: 2px;
  color: #f8fbff;
  font-size: 0.94rem;
  line-height: 1.08;
}

.completion-scoreboard {
  margin-top: 12px;
  border: 1px solid rgba(134, 239, 172, 0.2);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.completion-scoreboard h4 {
  margin: 0 0 8px;
  color: #ecfdf5;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.completion-scoreboard ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.completion-leader {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.06);
}

.completion-leader-empty {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.leader-rank,
.leader-score,
.leader-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-rank {
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 900;
}

.leader-swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--leader-color);
  box-shadow: 0 0 16px var(--leader-color);
}

.leader-name {
  color: #f8fbff;
  font-size: 0.86rem;
  font-weight: 800;
}

.leader-score {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-align: right;
}

.completion-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 0;
}

.completion-stats div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.completion-stats dt,
.completion-stats dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.completion-stats dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.completion-stats dd {
  margin-top: 3px;
  color: #f8fbff;
  font-size: 0.88rem;
  font-weight: 900;
}

.completion-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

.completion-button {
  display: inline-flex;
  min-width: 92px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(134, 239, 172, 0.28);
  border-radius: 8px;
  padding: 0 13px;
  color: #ecfdf5;
  background: rgba(134, 239, 172, 0.1);
  font-weight: 900;
}

.completion-button:hover {
  background: rgba(134, 239, 172, 0.16);
}

.completion-button-danger {
  border-color: rgba(251, 113, 133, 0.36);
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.1);
}

.completion-button-danger:hover {
  background: rgba(251, 113, 133, 0.16);
}

.completion-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  pointer-events: none;
}

.top-bar h2 {
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  line-height: 1.04;
}

.top-bar > div:first-child {
  min-width: 0;
}

#room-label,
#room-title {
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: none;
  white-space: nowrap;
}

.eyebrow {
  margin-bottom: 4px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-pill {
  max-width: 280px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  color: #dce7f7;
  background: rgba(3, 8, 15, 0.72);
  box-shadow: 0 12px 32px var(--shadow);
  font-size: 0.84rem;
  font-weight: 800;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill[data-state="pending"] {
  border-color: rgba(252, 211, 77, 0.45);
  color: #fde68a;
}

.status-pill[data-state="error"] {
  border-color: rgba(251, 113, 133, 0.55);
  color: #fecdd3;
}

.people-panel {
  position: fixed;
  top: 92px;
  right: 20px;
  width: min(280px, calc(100vw - 40px));
  max-height: calc(100vh - 188px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  overflow: auto;
  background: var(--panel);
  box-shadow: 0 18px 48px var(--shadow);
  backdrop-filter: blur(16px);
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.panel-title-row h3 {
  font-size: 0.92rem;
}

.panel-title-row span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

#people-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.person-row {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.person-swatch {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--person-color);
  box-shadow: 0 0 18px var(--person-color);
}

.person-name {
  min-width: 0;
  overflow: hidden;
  color: #e8eef8;
  font-size: 0.9rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.74rem;
}

.action-bar {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: rgba(5, 7, 13, 0.74);
  box-shadow: 0 18px 52px var(--shadow);
  backdrop-filter: blur(16px);
}

.icon-action-button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: #eff6ff;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.icon-action-button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.icon-action-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon-action-button-danger {
  color: #fecdd3;
  border-color: rgba(251, 113, 133, 0.36);
  background: rgba(251, 113, 133, 0.1);
}

.icon-action-button-danger:hover {
  background: rgba(251, 113, 133, 0.16);
}

#sound-button[aria-pressed="true"] .sound-icon-off,
#sound-button[aria-pressed="false"] .sound-icon-on {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  max-width: min(420px, calc(100vw - 40px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  transform: translateX(-50%);
  color: #eff6ff;
  background: rgba(4, 8, 16, 0.88);
  box-shadow: 0 16px 40px var(--shadow);
  font-size: 0.9rem;
}

.space-label {
  position: fixed;
  z-index: 1;
  max-width: 132px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  overflow: hidden;
  transform: translate(-50%, -50%);
  color: #f8fbff;
  background: rgba(5, 7, 13, 0.62);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  font-size: 0.76rem;
  font-weight: 800;
  pointer-events: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.constellation-label {
  position: fixed;
  z-index: 1;
  max-width: 176px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
  transform: translate(-50%, -50%);
  color: #eaf2ff;
  background: rgba(5, 7, 13, 0.46);
  box-shadow: 0 0 18px rgba(125, 211, 252, 0.16);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  pointer-events: none;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .top-bar {
    gap: 10px;
    padding: 12px;
  }

  .top-bar h2 {
    max-width: calc(100vw - 158px);
    font-size: clamp(1.05rem, 6.2vw, 1.45rem);
  }

  #room-label {
    max-width: calc(100vw - 158px);
  }

  .status-pill {
    max-width: 138px;
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .people-panel {
    top: 78px;
    right: 12px;
    bottom: auto;
    left: 12px;
    width: auto;
    max-height: 104px;
    padding: 10px;
    overflow: hidden;
    background: rgba(5, 7, 13, 0.66);
  }

  .objective-panel {
    top: 194px;
    right: 12px;
    left: 12px;
    width: auto;
    padding: 10px;
  }

  .completion-overlay {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    padding: 12px;
  }

  .completion-heading h3 {
    font-size: 1rem;
  }

  .completion-heading p:last-child {
    font-size: 0.76rem;
  }

  .objective-title-row {
    margin-bottom: 6px;
  }

  .objective-title-row h3 {
    font-size: 0.9rem;
  }

  .objective-text {
    font-size: 0.78rem;
    line-height: 1.34;
  }

  .objective-progress {
    margin-top: 8px;
  }

  .objective-stats {
    gap: 6px;
    margin-top: 8px;
  }

  .objective-stats span {
    padding: 6px 7px;
    font-size: 0.66rem;
  }

  .objective-stats b {
    font-size: 0.8rem;
  }

  .completion-scoreboard {
    margin-top: 8px;
    padding: 8px;
  }

  .completion-scoreboard h4 {
    margin-bottom: 6px;
    font-size: 0.7rem;
  }

  .completion-leader {
    min-height: 32px;
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .leader-score {
    grid-column: 3;
    text-align: left;
  }

  .leader-name {
    font-size: 0.78rem;
  }

  .leader-score,
  .completion-stats dt {
    font-size: 0.68rem;
  }

  .completion-stats {
    gap: 6px;
  }

  .completion-stats dd {
    font-size: 0.78rem;
  }

  .completion-actions {
    justify-content: stretch;
  }

  .completion-button {
    flex: 1;
    min-width: 0;
  }

  .panel-title-row {
    margin-bottom: 8px;
  }

  .panel-title-row h3 {
    font-size: 0.82rem;
  }

  #people-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  #people-list::-webkit-scrollbar {
    display: none;
  }

  .person-row {
    flex: 0 0 auto;
    max-width: 164px;
    min-height: 34px;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0 9px;
    background: rgba(255, 255, 255, 0.07);
  }

  .person-name {
    max-width: 96px;
    font-size: 0.82rem;
  }

  .person-meta {
    margin-left: 0;
    font-size: 0.68rem;
  }

  .action-bar {
    right: 12px;
    bottom: 12px;
    flex-direction: column;
    padding: 8px;
  }

  .icon-action-button {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
  }

  .action-label {
    display: none;
  }

  .toast {
    right: 74px;
    bottom: 12px;
    left: 12px;
    max-width: none;
    transform: none;
  }
}
