/* Draft without direction. Same sheet as bench/: paper, ink, one rust rule.
   Dial ENERGY 1 / RHYTHM 2 / MOTION 1.
   The code they read is the focal point. The session frame stays empty until a screen is shared. */
:root {
  --paper: #f4f1ea;
  --ink: #1c1915;
  --quiet: #3d3832;
  --line: #d9d2c5;
  --rust: #8a3e22;
  --wash: #e8dfd2;
  --slip: #fffdf8;
  --sans: "Avenir Next", "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
}
* { box-sizing: border-box; }
html { color: var(--ink); background: var(--paper); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.45;
}
.sheet {
  width: min(68rem, calc(100% - 2rem));
  margin: 1.25rem auto 3rem;
}
.draft { margin: 0 0 0.75rem; color: var(--quiet); }
header {
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--rust);
  padding: 0.85rem 0 0.7rem;
}
.title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
}
button[hidden] { display: none; }
h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.status { margin: 0.45rem 0 0; font-weight: 650; }
.where {
  max-width: 40rem;
  margin: 1rem 0 0;
  color: var(--quiet);
}
.panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.4rem;
}
.pane {
  padding: 0.9rem;
  border: 1px solid var(--ink);
  background: var(--slip);
}
h2 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
}
.row { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: end; }
.row > div { flex: 1 1 12rem; min-width: 0; }
label { display: block; font-weight: 650; margin-bottom: 0.25rem; }
input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
button {
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
button:hover { background: var(--wash); }
.actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
button:disabled { cursor: default; background: var(--wash); }
#link-out { margin-bottom: 0.7rem; }
:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}
.feedback { min-height: 2.8rem; margin: 0.7rem 0 0; }
.code-out {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
}
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.sheet:has(.files:not([hidden])) .stage {
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
}
.frame {
  margin-top: 1rem;
  min-height: 9rem;
  padding: 0.9rem;
  border: 1px dashed var(--quiet);
}
.files {
  margin-top: 1rem;
  max-height: 32rem;
  overflow: auto;
  padding: 0.9rem;
  border: 1px solid var(--ink);
  background: var(--slip);
}
.files .where { margin-top: 0.35rem; }
.files ul {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
}
.files li button,
.files li span {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0.35rem 0.2rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}
.files li button { font-weight: 650; }
.frame p { margin: 0; }
#remote {
  display: none;
  width: 100%;
  max-height: 28rem;
  margin-top: 0.7rem;
  background: var(--ink);
  object-fit: contain;
}
#remote.live { display: block; }
#hear { margin-top: 0.7rem; }
@media (max-width: 640px) {
  .panes,
  .sheet:has(.files:not([hidden])) .stage { grid-template-columns: 1fr; }
  .sheet { width: min(68rem, calc(100% - 1.25rem)); }
}
