:root {
  --bg: #090b0f;
  --panel: rgba(20, 24, 31, 0.86);
  --panel-strong: #171c24;
  --line: rgba(255, 255, 255, 0.09);
  --line-bright: rgba(255, 255, 255, 0.15);
  --text: #f5f7f8;
  --muted: #8f9aa5;
  --subtle: #606b76;
  --accent: #caff39;
  --accent-soft: rgba(202, 255, 57, 0.1);
  --accent-dark: #172108;
  --blue: #65b5ff;
  --danger: #ff847d;
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

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

body {
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 12%, rgba(202, 255, 57, 0.05), transparent 25rem),
    radial-gradient(circle at 16% 92%, rgba(73, 113, 255, 0.08), transparent 24rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

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

.ambient {
  position: fixed;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.17;
}

.ambient-one {
  top: -23rem;
  right: -8rem;
  background: #a3d529;
}

.ambient-two {
  bottom: -25rem;
  left: -13rem;
  background: #23408c;
}

.app-shell {
  width: 100%;
  min-height: 100dvh;
  padding: 28px clamp(18px, 4vw, 70px) 22px;
}

.topbar,
.main-layout,
.site-footer {
  width: min(1280px, 100%);
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-decoration: none;
}

.brand-slash {
  color: var(--accent);
  padding-inline: 1px;
}

.brand-mark {
  display: inline-flex;
  align-items: end;
  gap: 3px;
  width: 21px;
  height: 21px;
}

.brand-mark span {
  display: block;
  width: 5px;
  border-radius: 5px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(202, 255, 57, 0.55);
}

.brand-mark span:nth-child(1) { height: 9px; opacity: 0.55; }
.brand-mark span:nth-child(2) { height: 15px; opacity: 0.78; }
.brand-mark span:nth-child(3) { height: 21px; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.privacy-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.privacy-dot,
.foot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(202, 255, 57, 0.65);
}

.reset-button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.reset-button:hover {
  border-color: var(--line-bright);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  transform: rotate(-20deg);
}

.reset-button svg,
.copy-button svg,
.feature-icon svg,
.role-icon svg,
.dropzone-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.reset-button svg {
  width: 16px;
  height: 16px;
}

.main-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(560px, 1.22fr);
  align-items: center;
  gap: clamp(44px, 7vw, 116px);
  min-height: calc(100dvh - 124px);
  padding-block: clamp(54px, 8vh, 116px) 42px;
}

.intro-panel {
  align-self: center;
  max-width: 480px;
}

.eyebrow {
  margin: 0;
  color: var(--subtle);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  line-height: 1.4;
}

.intro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  letter-spacing: 0.15em;
}

.live-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(202, 255, 57, 0.07), 0 0 17px rgba(202, 255, 57, 0.78);
}

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

h1 {
  margin: 24px 0 25px;
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  font-weight: 640;
  letter-spacing: -0.075em;
  line-height: 0.96;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

.intro-copy {
  max-width: 410px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.feature-strip {
  display: grid;
  gap: 14px;
  max-width: 425px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.feature-item > span:last-child {
  display: grid;
  gap: 2px;
}

.feature-item strong {
  color: #dde2e5;
  font-size: 0.75rem;
  font-weight: 650;
}

.feature-item small {
  color: var(--subtle);
  font-size: 0.69rem;
}

.feature-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--accent);
}

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

.workspace-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(25, 30, 38, 0.93), rgba(13, 16, 21, 0.92));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.workspace-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 32px 27px;
  border-bottom: 1px solid var(--line);
}

.workspace-head h2 {
  margin: 8px 0 0;
  font-size: 1.26rem;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.connection-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--subtle);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.state-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.connection-state.state-connecting {
  border-color: rgba(101, 181, 255, 0.25);
  color: var(--blue);
}

.connection-state.state-connecting .state-dot {
  animation: pulse 1.4s ease-in-out infinite;
}

.connection-state.state-online {
  border-color: rgba(202, 255, 57, 0.25);
  background: rgba(202, 255, 57, 0.05);
  color: var(--accent);
}

.connection-state.state-error {
  border-color: rgba(255, 132, 125, 0.25);
  color: var(--danger);
}

.view {
  padding: 32px;
}

.view:not(.active) {
  display: none;
}

[hidden] {
  display: none !important;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.role-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  min-height: 152px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.role-card:hover {
  border-color: rgba(202, 255, 57, 0.35);
  background: linear-gradient(140deg, rgba(202, 255, 57, 0.1), rgba(255, 255, 255, 0.025));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}

.role-icon {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 11px;
}

.role-icon-sender {
  background: rgba(202, 255, 57, 0.1);
  color: var(--accent);
}

.role-icon-receiver {
  background: rgba(101, 181, 255, 0.1);
  color: var(--blue);
}

.role-icon svg {
  width: 19px;
  height: 19px;
}

.role-card-text {
  display: grid;
  gap: 6px;
}

.role-card-text strong {
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 650;
}

.role-card-text small {
  max-width: 160px;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.5;
}

.role-arrow {
  align-self: start;
  color: var(--subtle);
  font-size: 1rem;
  transition: color 180ms ease, transform 180ms ease;
}

.role-card:hover .role-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.setup-panel {
  animation: enter 300ms ease both;
}

.setup-intro {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 20px;
}

.setup-number {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
}

.setup-intro strong {
  display: block;
  margin: 2px 0 5px;
  font-size: 0.84rem;
  font-weight: 650;
}

.setup-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
}

.room-key {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 101px;
  padding: 14px 17px 14px 25px;
  border: 1px solid rgba(202, 255, 57, 0.22);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(202, 255, 57, 0.1), rgba(202, 255, 57, 0.025));
}

.room-key > span {
  color: var(--accent);
  font-size: clamp(1.6rem, 5vw, 2.15rem);
  font-weight: 760;
  letter-spacing: 0.21em;
  line-height: 1;
}

.copy-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(202, 255, 57, 0.2);
  border-radius: 11px;
  background: rgba(202, 255, 57, 0.08);
  color: var(--accent);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.copy-button:hover {
  background: rgba(202, 255, 57, 0.18);
  transform: translateY(-1px);
}

.copy-button svg {
  width: 17px;
  height: 17px;
}

.key-hint,
.form-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 0;
  color: var(--subtle);
  font-size: 0.69rem;
}

.tiny-lock {
  color: var(--accent);
  font-size: 1rem;
  line-height: 0;
  transform: rotate(90deg);
}

.setup-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 27px;
}

.text-button {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  cursor: pointer;
  transition: color 160ms ease;
}

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

.waiting-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--subtle);
  font-size: 0.69rem;
}

.waiting-spinner {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(202, 255, 57, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.join-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.join-form input {
  min-width: 0;
  height: 51px;
  padding: 0 17px;
  border: 1px solid var(--line-bright);
  border-radius: 12px;
  outline: none;
  background: rgba(0, 0, 0, 0.16);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.join-form input::placeholder {
  color: var(--subtle);
  font-weight: 550;
  letter-spacing: 0.12em;
}

.join-form input:focus {
  border-color: rgba(202, 255, 57, 0.5);
  box-shadow: 0 0 0 4px rgba(202, 255, 57, 0.07);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 51px;
  padding: 0 19px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 750;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.primary-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #111608;
}

.primary-button:hover:not(:disabled) {
  background: #d9ff75;
  transform: translateY(-1px);
}

.secondary-button {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}

.secondary-button:hover:not(:disabled) {
  border-color: var(--line-bright);
  color: var(--text);
}

.connected-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px;
  border: 1px solid rgba(202, 255, 57, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(202, 255, 57, 0.065);
}

.connected-copy,
.connected-copy > span:last-child {
  display: flex;
  align-items: center;
}

.connected-copy {
  gap: 11px;
}

.connected-copy > span:last-child {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}

.connected-copy strong {
  color: #e8f6d3;
  font-size: 0.77rem;
  font-weight: 700;
}

.connected-copy small {
  color: #8ea070;
  font-size: 0.67rem;
}

.connected-check {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(202, 255, 57, 0.16);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
}

.connected-code {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.connected-code span {
  color: #6f8055;
  font-size: 0.57rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.connected-code strong {
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0.15em;
}

.transfer-grid {
  display: grid;
  grid-template-columns: minmax(210px, 0.82fr) minmax(280px, 1.18fr);
  gap: 13px;
  margin-top: 13px;
}

.dropzone {
  display: flex;
  min-height: 275px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px;
  border: 1px dashed rgba(255, 255, 255, 0.17);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.018);
  text-align: center;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.dropzone:hover,
.dropzone.is-dragging {
  border-color: rgba(202, 255, 57, 0.55);
  background: rgba(202, 255, 57, 0.055);
  transform: translateY(-1px);
}

.dropzone-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  place-items: center;
  border: 1px solid rgba(202, 255, 57, 0.2);
  border-radius: 15px;
  background: rgba(202, 255, 57, 0.075);
  color: var(--accent);
}

.dropzone-icon svg {
  width: 24px;
  height: 24px;
}

.dropzone strong {
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 700;
}

.dropzone > span {
  color: var(--muted);
  font-size: 0.7rem;
}

.dropzone > small {
  margin-top: 19px;
  color: var(--subtle);
  font-size: 0.64rem;
}

.queue-panel,
.activity-panel {
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.12);
}

.queue-panel {
  display: flex;
  min-height: 275px;
  flex-direction: column;
}

.queue-heading,
.activity-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.queue-heading h3,
.activity-heading h3 {
  margin: 5px 0 0;
  font-size: 0.87rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.file-count,
.activity-note {
  margin-top: 3px;
  color: var(--subtle);
  font-size: 0.64rem;
}

.file-list {
  display: grid;
  max-height: 150px;
  gap: 7px;
  margin: 17px 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.empty-queue,
.empty-activity {
  display: flex;
  align-items: center;
  color: var(--subtle);
  font-size: 0.67rem;
  line-height: 1.5;
}

.empty-queue {
  gap: 10px;
  min-height: 75px;
  padding: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.09);
  border-radius: 10px;
}

.empty-queue > span {
  color: var(--accent);
  font-size: 1.2rem;
}

.empty-queue p {
  margin: 0;
}

.file-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.file-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: rgba(101, 181, 255, 0.1);
  color: var(--blue);
  font-size: 0.62rem;
  font-weight: 800;
}

.file-meta {
  min-width: 0;
}

.file-meta strong,
.file-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta strong {
  color: #dce1e4;
  font-size: 0.68rem;
  font-weight: 600;
}

.file-meta small {
  margin-top: 3px;
  color: var(--subtle);
  font-size: 0.6rem;
}

.remove-file {
  display: grid;
  width: 24px;
  height: 24px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--subtle);
  cursor: pointer;
}

.remove-file:hover {
  background: rgba(255, 132, 125, 0.1);
  color: var(--danger);
}

.queue-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.send-button {
  width: 100%;
  min-height: 42px;
}

.activity-panel {
  margin-top: 13px;
}

.activity-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.empty-activity {
  min-height: 39px;
  padding: 0 2px;
}

.transfer-row {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.transfer-direction {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 8px;
  background: rgba(202, 255, 57, 0.09);
  color: var(--accent);
  font-size: 0.85rem;
}

.transfer-row[data-direction="in"] .transfer-direction {
  background: rgba(101, 181, 255, 0.09);
  color: var(--blue);
}

.transfer-info {
  min-width: 0;
}

.transfer-topline,
.transfer-bottomline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.transfer-topline strong {
  max-width: 75%;
  overflow: hidden;
  color: #dfe4e7;
  font-size: 0.69rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transfer-percent,
.transfer-bottomline {
  color: var(--subtle);
  font-size: 0.6rem;
}

.transfer-bar {
  height: 4px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
}

.transfer-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(202, 255, 57, 0.35);
  transition: width 100ms linear;
}

.transfer-row[data-direction="in"] .transfer-bar span {
  background: var(--blue);
  box-shadow: 0 0 10px rgba(101, 181, 255, 0.35);
}

.transfer-action {
  align-self: end;
  padding: 5px 0 0;
  color: var(--accent);
  font-size: 0.62rem;
  text-decoration: none;
}

.transfer-action:hover {
  text-decoration: underline;
}

.transfer-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 1px 0;
  color: var(--subtle);
  font-size: 0.63rem;
  line-height: 1.5;
}

.transfer-tip > span:first-child {
  display: inline-grid;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  font-size: 0.59rem;
}

.workspace-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 32px 21px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.62rem;
}

.workspace-foot > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tech-label {
  color: #717d87;
  letter-spacing: 0.08em;
}

.tech-label span {
  color: var(--accent);
  padding-inline: 4px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 3px;
  color: #4d5760;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
}

.site-footer span:first-child {
  color: #68727c;
  font-weight: 750;
  letter-spacing: 0.17em;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  max-width: min(360px, calc(100vw - 48px));
  padding: 12px 15px;
  border: 1px solid rgba(202, 255, 57, 0.26);
  border-radius: 11px;
  background: #18200f;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  color: #dff5ae;
  font-size: 0.72rem;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

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

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.75); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1040px) {
  .main-layout {
    grid-template-columns: minmax(240px, 0.74fr) minmax(510px, 1.26fr);
    gap: 40px;
  }

  h1 {
    font-size: clamp(2.8rem, 5.7vw, 4.4rem);
  }
}

@media (max-width: 860px) {
  .app-shell {
    padding-inline: 22px;
  }

  .main-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-block: 62px 40px;
  }

  .intro-panel {
    max-width: 620px;
  }

  .intro-copy {
    max-width: 530px;
  }

  .feature-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }

  .feature-item {
    align-items: flex-start;
  }

  .feature-item small {
    max-width: 105px;
  }
}

@media (max-width: 610px) {
  .app-shell {
    padding: 20px 14px 16px;
  }

  .topbar-right {
    gap: 9px;
  }

  .privacy-chip {
    font-size: 0.62rem;
  }

  .main-layout {
    gap: 38px;
    min-height: auto;
    padding-block: 48px 28px;
  }

  .intro-panel {
    padding-inline: 4px;
  }

  .intro-eyebrow {
    font-size: 0.57rem;
  }

  h1 {
    margin: 20px 0 20px;
    font-size: clamp(2.65rem, 14vw, 4.1rem);
  }

  .intro-copy {
    margin-bottom: 27px;
    font-size: 0.84rem;
    line-height: 1.7;
  }

  .feature-strip {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .feature-item {
    align-items: center;
  }

  .workspace-card {
    border-radius: 21px;
  }

  .workspace-head {
    align-items: center;
    padding: 23px 20px 21px;
  }

  .workspace-head h2 {
    font-size: 1.08rem;
  }

  .connection-state {
    padding: 7px 9px;
    font-size: 0.56rem;
  }

  .view {
    padding: 20px;
  }

  .role-grid,
  .transfer-grid {
    grid-template-columns: 1fr;
  }

  .role-card {
    min-height: 111px;
  }

  .role-card-text small {
    max-width: none;
  }

  .room-key {
    min-height: 88px;
    padding-left: 18px;
  }

  .room-key > span {
    font-size: 1.42rem;
    letter-spacing: 0.15em;
  }

  .setup-actions {
    align-items: flex-start;
    flex-direction: column-reverse;
  }

  .waiting-indicator {
    align-self: flex-end;
  }

  .join-form {
    grid-template-columns: 1fr;
  }

  .primary-button {
    width: 100%;
  }

  .connected-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .connected-code {
    justify-items: start;
    padding-left: 39px;
  }

  .dropzone {
    min-height: 220px;
  }

  .queue-panel {
    min-height: 250px;
  }

  .workspace-foot {
    align-items: flex-start;
    flex-direction: column;
    padding: 15px 20px 19px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-inline: 4px;
  }
}

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