:root {
  color-scheme: light;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background: #f6f7fb;
  color: #172033;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
}

.hero {
  margin-bottom: 28px;
}

.eyebrow,
.label {
  color: #667085;
  font-size: 13px;
  letter-spacing: 0;
}

h1 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.05;
}

.sub {
  margin: 0;
  max-width: 620px;
  color: #475467;
  font-size: 18px;
  line-height: 1.6;
}

.panel {
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
}

.actions,
.join-row,
.status-grid {
  display: grid;
  gap: 12px;
}

.actions {
  grid-template-columns: 1fr 1.3fr;
}

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

button,
.file-picker {
  border: 0;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

button {
  background: #eef2ff;
  color: #293056;
}

.primary,
.file-picker {
  background: #175cd3;
  color: #ffffff;
}

input {
  min-width: 0;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 16px;
}

.room-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  margin: 18px 0;
  padding: 16px;
  border-radius: 8px;
  background: #f9fafb;
}

#room-code {
  display: block;
  margin-top: 4px;
  font-size: 42px;
  letter-spacing: 4px;
}

#room-qr {
  width: 132px;
  height: 132px;
}

#share-link {
  grid-column: 1 / -1;
  margin: 0;
  word-break: break-all;
  color: #475467;
}

.status-grid {
  grid-template-columns: repeat(2, 1fr);
  margin: 18px 0;
}

.status-grid > div {
  border: 1px solid #eaecf0;
  border-radius: 8px;
  padding: 14px;
}

.status-grid p {
  margin: 6px 0 0;
}

.file-picker {
  display: block;
  text-align: center;
}

.file-picker input {
  display: none;
}

.file-picker:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}

.progress {
  height: 12px;
  margin-top: 18px;
  border-radius: 999px;
  background: #eef2f6;
  overflow: hidden;
}

#progress-bar {
  width: 0%;
  height: 100%;
  background: #12b76a;
  transition: width 160ms ease;
}

.hidden {
  display: none;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 24px, 920px);
    padding: 24px 0;
  }

  .actions,
  .status-grid,
  .room-card {
    grid-template-columns: 1fr;
  }

  #room-qr {
    justify-self: start;
  }
}
