/* Intent: invited tester checks real goals and decisions in a quiet reading view.
   Domain: dots, goals, conversation, decisions, allowance, waking. Color world:
   paper, graphite, sage, amber, red. Signature: one static goal circle paired
   with the server's presence label. Native labelled controls replace prototype
   icon-only composer, animated avatars and simulated progress. Hierarchy: selected
   goal then decisions, conversation, input. Borders-only depth, 4px spacing grid,
   16px controls and a 1.25 type scale. */
:root {
  color-scheme: light;
  --paper: #f4f5f1;
  --surface: #fff;
  --input: #eef0eb;
  --ink: #202a26;
  --secondary: #4b5b53;
  --muted: #65756c;
  --border: #d4dbd3;
  --dot: #4e7660;
  --focus: #175b3b;
  --danger: #a32725;
  --notice: #fff4da;
  --radius: 8px;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  touch-action: manipulation;
}
button {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
}
button:hover {
  background: var(--input);
  border-color: var(--secondary);
}
button:active {
  background: var(--border);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.primary {
  background: var(--focus);
  border-color: var(--focus);
  color: white;
}
button.primary:hover {
  background: #10482e;
}
.danger {
  color: var(--danger);
}
a {
  color: var(--focus);
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--input);
  color: var(--ink);
}
textarea {
  resize: vertical;
  min-height: 92px;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
p {
  line-height: 1.6;
  margin: 8px 0;
  color: var(--secondary);
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  text-wrap: balance;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.025em;
}
h2 {
  font-size: 20px;
  margin-bottom: 16px;
}
h3 {
  font-size: 18px;
}
header {
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--ink);
}
.brand span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 500;
}
.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}
#message {
  padding: 12px 32px;
  background: var(--notice);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.login {
  max-width: 496px;
  margin: 80px auto;
  padding: 24px;
}
.login form {
  margin-top: 32px;
}
.login button {
  width: 100%;
  margin-top: 16px;
}
.error {
  color: var(--danger);
  min-height: 24px;
}
.workspace {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  max-width: 1320px;
  margin: auto;
  min-height: calc(100vh - 88px);
}
aside {
  padding: 24px;
  border-right: 1px solid var(--border);
  min-width: 0;
}
nav {
  display: grid;
  gap: 8px;
}
.dot-select {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  background: transparent;
  border-color: transparent;
}
.dot-select[aria-current="true"] {
  background: var(--input);
  border-color: var(--border);
}
.dot-select span:last-child {
  min-width: 0;
}
.dot-select strong {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.dot-select small {
  display: block;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.5;
}
.mini-circle {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--dot);
}
#account {
  margin-top: 32px;
  font-size: 14px;
}
.audio-controls {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}
.audio-controls span {
  font-size: 12px;
  color: var(--secondary);
  line-height: 1.5;
}
main {
  min-width: 0;
  padding: 40px;
  max-width: 920px;
}
.selected {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}
.circle {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--dot);
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}
#work-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
#progress {
  margin-bottom: 24px;
  font-size: 14px;
}
progress {
  width: 100%;
  height: 12px;
  accent-color: var(--dot);
}
.tasks {
  padding-left: 20px;
}
.tasks li {
  padding: 4px 0;
  overflow-wrap: anywhere;
}
.card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.card[data-urgency="urgent"] {
  border-color: var(--danger);
}
.card .kind {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.card pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  color: var(--secondary);
  background: var(--input);
  padding: 12px;
  border-radius: 4px;
  line-height: 1.5;
}
.card-actions,
.artifact-actions,
.options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.card label {
  margin-top: 16px;
}
.recommended {
  font-weight: 600;
}
.device-code {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  user-select: all;
}
.card ul,
.card ol {
  padding-left: 20px;
}
.conversation {
  margin-top: 32px;
}
#entries {
  padding: 0;
  list-style: none;
  max-height: 640px;
  overflow: auto;
  overflow-wrap: anywhere;
}
#entries li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.entry-meta {
  font-size: 12px;
  color: var(--muted);
}
.entry-text {
  white-space: pre-wrap;
  color: var(--ink);
  margin-top: 8px;
}
.empty {
  color: var(--muted);
  font-size: 14px;
}
#composer {
  margin-top: 32px;
}
.composer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
#pending {
  font-size: 12px;
  color: var(--secondary);
  margin-right: auto;
}
.numbers {
  font-variant-numeric: tabular-nums;
}
.skip {
  position: absolute;
  top: -100px;
  background: white;
  padding: 12px;
  z-index: 2;
}
.skip:focus {
  top: 8px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 720px) {
  header {
    padding: 16px;
  }
  .workspace {
    display: block;
  }
  aside {
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  nav {
    display: flex;
    overflow-x: auto;
    padding: 4px 0;
  }
  .dot-select {
    width: 200px;
    min-width: 200px;
    min-height: 72px;
    flex-shrink: 0;
  }
  .audio-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 16px;
  }
  .audio-controls span {
    width: 100%;
  }
  #account {
    margin-top: 16px;
  }
  main {
    padding: 24px 16px 40px;
  }
  .selected {
    gap: 16px;
  }
  .circle {
    width: 56px;
    height: 56px;
  }
  h1 {
    font-size: 24px;
  }
  .card {
    padding: 16px;
  }
  #message {
    padding: 12px 16px;
  }
  .login {
    margin: 32px auto;
  }
  .header-controls {
    gap: 8px;
    font-size: 12px;
  }
}
