:root {
  /* Gravity Care palette, taken from the capability deck. */
  --gc-navy: #0b1b3a;
  --gc-navy-soft: #16305c;
  --gc-sky: #8fd3f0;
  /* Carlisle wordmark sits in near black until their logo file is supplied. */
  --carlisle-ink: #14181f;

  --wall: #e9e5dc;
  --wall-deep: #dcd7cb;
  --wall-line: #b9b2a3;
  --ink: #17213a;
  --ink-soft: #5a6275;
  --ink-faint: #9aa0ad;
  --navy: var(--gc-navy);
  --navy-soft: var(--gc-navy-soft);
  --green: #1e7a4c;
  --green-soft: #2f9a63;
  --orange: #f0a33a;
  --orange-deep: #d98a1e;
  --orange-ink: #3a2a0a;
  --blue: #2563eb;
  --blue-soft: #3b82f6;
  --blue-ink: #1e3a5f;
  --white: #ffffff;
  --danger: #a33a2f;
  --radius: 6px;
  --font: 'Avenir Next', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--wall);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  line-height: 1.2;
  text-decoration: none;
}
.btn:hover { background: #f6f4ef; }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.btn.primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn.primary:hover { background: var(--navy-soft); }
.btn.quiet { border-color: transparent; background: transparent; padding-left: 8px; padding-right: 8px; }
.btn.quiet:hover { background: rgba(0,0,0,0.05); }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn.green { background: var(--green); border-color: var(--green); color: var(--white); }
.btn.green:hover { background: var(--green-soft); }
.btn.orange { background: var(--orange); border-color: var(--orange); color: var(--orange-ink); }
.btn.orange:hover { background: var(--orange-deep); }
.btn.blue { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn.blue:hover { background: var(--blue-soft); }
.btn.small { padding: 6px 10px; font-size: 15px; }

input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--wall-line);
  border-radius: var(--radius);
  background: var(--white);
}
textarea { resize: vertical; min-height: 72px; }
label { display: block; font-size: 15px; color: var(--ink-soft); margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.error { color: var(--danger); font-size: 15px; margin-top: 8px; min-height: 1.3em; }
.muted { color: var(--ink-soft); }
.small { font-size: 15px; }

/* Dots and notes, the physical objects in this tool. */
.dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.18);
  display: inline-block;
}
.dot.blue { background: var(--blue); }
.dot.spent { background: var(--wall-deep); box-shadow: none; }
.note {
  background: var(--orange);
  color: var(--orange-ink);
  padding: 8px 10px;
  border-radius: 2px;
  box-shadow: 1px 2px 0 rgba(0,0,0,0.12);
  font-size: 15px;
  line-height: 1.3;
  word-wrap: break-word;
}
.note-chip {
  width: 22px; height: 22px; border-radius: 2px;
  background: var(--orange);
  box-shadow: 1px 2px 0 rgba(0,0,0,0.12);
  display: inline-block;
}
.note-chip.spent { background: var(--wall-deep); box-shadow: none; }

@keyframes land {
  from { transform: translateY(-14px) scale(0.85); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.land { animation: land 260ms ease-out; }
@media (prefers-reduced-motion: reduce) {
  .land { animation: none; }
}

/* Top bar shared by participant and facilitator */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--wall-line);
}
.bar .who { display: flex; align-items: center; gap: 12px; }
.bar .title { font-weight: 600; }

/* Phase pill */
.phase {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--wall-line);
  font-size: 15px;
}
.phase .time { font-variant-numeric: tabular-nums; font-weight: 600; }
.phase.over .time { color: var(--danger); }

/* The wall itself */
.wall {
  --cols: 7;
  position: relative;
  padding: 24px 24px 12px;
}
.wall-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 0 8px;
}
.wall-col { display: flex; flex-direction: column; min-width: 0; }
.wall-dots {
  display: flex; flex-wrap: wrap-reverse; align-content: flex-start; justify-content: center;
  gap: 6px;
  min-height: 120px;
  padding: 0 6px 12px;
  align-items: flex-end;
}
.wall-dots .dot { width: 26px; height: 26px; }
.wall-label {
  border-top: 3px solid var(--ink);
  padding: 10px 4px 0;
  text-align: center;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
}
.wall-count { display: block; font-weight: 400; color: var(--ink-soft); font-size: 14px; margin-top: 2px; }
.wall-tools {
  font-size: 13px;
  color: var(--ink-faint);
  text-align: center;
  padding: 4px 4px 0;
  line-height: 1.3;
}
.wall-notes {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 4px 0;
  min-height: 60px;
}
.wall-notes .note:nth-child(odd) { transform: rotate(-1.2deg); }
.wall-notes .note:nth-child(even) { transform: rotate(1deg); }
.wall-notes .note .by { display: block; font-size: 12px; opacity: 0.65; margin-top: 3px; }
/* The persona a note is about. This is the point of the orange note, so it
   gets a solid chip and sits above the author rather than beside it. */
.wall-notes .note .persona {
  display: block;
  width: fit-content;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,0.14);
  margin: 6px 0 0;
}
.wall.compact .wall-dots { min-height: 60px; }
.wall.compact .wall-dots .dot { width: 14px; height: 14px; }
.wall.compact .wall-label { font-size: 13px; border-top-width: 2px; }
.wall.compact .note { font-size: 11px; padding: 4px 6px; }
.wall.compact .wall-notes { gap: 4px; }
.wall.compact .wall-tools { font-size: 10px; }

.answers {
  margin: 24px 24px 0;
  padding-top: 18px;
  border-top: 1px dashed var(--wall-line);
}
.answers h2 { font-size: 20px; margin-bottom: 10px; }
.answers ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.answers li {
  background: var(--white);
  padding: 10px 14px;
  border-left: 4px solid var(--ink);
  font-size: 17px;
}

.empty { color: var(--ink-faint); text-align: center; padding: 30px 0; }

/* Utility used by the participant and room screens to hide a whole section. */
.hidden { display: none !important; }

/* Co-brand lockup: client first, agency second, with a hairline between. */
.lockup { display: inline-flex; align-items: center; gap: 14px; }
.lockup .mark { display: inline-flex; align-items: center; }
.lockup .lockup-rule {
  width: 1px; height: 22px; background: currentColor; opacity: 0.28;
}
.lockup .wordmark {
  font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; line-height: 1;
}
.lockup .wordmark.carlisle { font-size: 19px; }
.lockup .wordmark.gravity { font-size: 15px; font-weight: 500; opacity: 0.82; }
.lockup img { display: block; width: auto; }
/* Gravity Care's mark is navy artwork, so on a dark surface both logos sit on
   a white plate rather than disappearing into the background. */
.lockup--plate {
  background: var(--white);
  padding: 12px 20px;
  border-radius: 6px;
  align-self: flex-start;
}
.lockup--plate .lockup-rule { background: var(--wall-line); opacity: 1; }
.bar .lockup { color: var(--white); }
.bar .lockup .wordmark.carlisle { color: var(--white); }
.bar .lockup .wordmark.gravity { color: var(--gc-sky); opacity: 1; }
.on-wall .lockup .wordmark.carlisle { color: var(--carlisle-ink); }
.on-wall .lockup .wordmark.gravity { color: var(--ink-soft); }

/* Session strap under the lockup, used on the room screen and login. */
.strap { font-size: 14px; letter-spacing: 0.04em; opacity: 0.7; }

/* Stats bar */
.stats-bar {
  display: flex;
  gap: 24px;
  justify-content: center;
  padding: 12px 24px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--wall-line);
  flex-wrap: wrap;
}
.stats-bar .stat { text-align: center; }
.stats-bar .stat .num { font-size: 20px; font-weight: 600; color: var(--ink); display: block; }
