/* The meeting surface. It borrows the board's tokens from shell.css so a
   participant moving between the lobby, the call and the archive sees one
   product, not three. */

@import url('/shell.css');

body.meeting {
  margin: 0;
  font-family: var(--font-ui);
  background: radial-gradient(1200px 600px at 20% -10%, rgba(79, 216, 255, 0.12), transparent 60%),
    var(--paper);
  color: var(--ink);
  min-height: 100vh;
}

[hidden] {
  display: none !important;
}

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

.join__card {
  width: min(480px, 100%);
}

.join__card h1 {
  font-family: var(--font);
  font-size: 32px;
  margin: 18px 0 8px;
}

.join__card p {
  color: var(--ink-soft);
  line-height: 1.5;
}

.join__card code {
  color: var(--accent-strong);
  letter-spacing: 0.12em;
}

.landing {
  max-width: 980px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.landing h1 {
  font-family: var(--font);
  font-size: var(--text-display);
  line-height: 1.02;
  margin: 24px 0 12px;
  letter-spacing: -0.02em;
}

.landing .lede {
  color: var(--ink-soft);
  font-size: var(--text-lead);
  max-width: 62ch;
  margin: 0 0 40px;
}

.landing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-small);
}

.card h2 {
  font-family: var(--font);
  font-size: 22px;
  margin: 0 0 6px;
}

.card p {
  color: var(--ink-soft);
  margin: 0 0 20px;
  line-height: 1.5;
}

label.field {
  display: block;
  margin-bottom: 14px;
}

label.field span {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

input[type='text'],
input[type='search'] {
  width: 100%;
  box-sizing: border-box;
  background: var(--paper-sunken);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  padding: 11px 16px;
  cursor: pointer;
  text-decoration: none;
}

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

.button--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #04121a;
}

.button--danger {
  border-color: var(--bad);
  color: var(--bad);
}

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

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.error {
  color: var(--bad);
  min-height: 1.2em;
  margin: 12px 0 0;
  font-size: 14px;
}

/* ---- room ---- */

.room {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100vh;
  min-height: 0;
}

.room__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 13, 0.82);
  backdrop-filter: blur(8px);
  flex-wrap: wrap;
}

.room__code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 18px;
  letter-spacing: 0.18em;
  color: var(--accent-strong);
  background: var(--accent-wash);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  padding: 6px 10px;
}

.room__spacer {
  flex: 1;
}

.room__body {
  display: grid;
  grid-template-columns: minmax(280px, 34%) 1fr;
  min-height: 0;
}

.room__stage {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.room__stage iframe {
  border: 0;
  width: 100%;
  height: 100%;
  background: var(--paper);
}

.room__notice {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--working);
  background: var(--working-wash);
  border-bottom: 1px solid var(--line);
}

.room__notice[hidden] {
  display: none;
}

.chat {
  border-top: 1px solid var(--line);
  max-height: 34vh;
  display: flex;
  flex-direction: column;
}

.chat__log {
  overflow-y: auto;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.4;
  flex: 1;
  min-height: 60px;
}

.chat__log b {
  color: var(--accent);
  font-weight: 600;
}

.chat form {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
}

.chat input {
  flex: 1;
}

.pill {
  font-size: 12px;
  border-radius: 99px;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
}

.pill--live {
  color: var(--ok);
  border-color: var(--ok);
  background: var(--ok-wash);
}

.pill--done {
  color: var(--quiet);
  background: var(--quiet-wash);
}

.pill--wait {
  color: var(--warn);
  border-color: var(--warn);
  background: var(--warn-wash);
}

/* ---- artifacts ---- */

.artifacts {
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.artifacts h1 {
  font-family: var(--font);
  font-size: clamp(30px, 4vw, 46px);
  margin: 16px 0 8px;
}

.artifacts .meta {
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.artifacts .warn {
  color: var(--warn);
  background: var(--warn-wash);
  border: 1px solid var(--warn);
  border-radius: var(--radius-small);
  padding: 12px 14px;
}

.artifacts__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.artifacts__table th,
.artifacts__table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.artifacts__table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.artifacts__table .size,
.artifacts__table .type {
  color: var(--ink-soft);
  white-space: nowrap;
}

.artifacts__table a {
  color: var(--accent-strong);
}

.artifacts__table .button {
  padding: 6px 10px;
  font-size: 13px;
}

.artifacts .foot {
  margin-top: 24px;
}

@media (max-width: 860px) {
  .room__body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
}
