/* Way-Far design system (assets/brand/DESIGN.md, "Levantine Precision Motion"). */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --primary: #0066ff;
  --primary-press: #0052cc;
  --navy: #0a2540;
  --cyan: #00d2ff;
  --slate: #64748b;
  --canvas: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --stroke: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --critical: #ef4444;
  --shadow-1: 0 2px 8px -2px rgb(10 37 64 / 4%), 0 1px 3px 0 rgb(10 37 64 / 2%);
  --shadow-3: 0 20px 35px -10px rgb(10 37 64 / 16%);
  --ai-glow: inset 0 0 0 1px rgb(0 210 255 / 30%), 0 8px 24px -4px rgb(0 102 255 / 12%);
  font-family:
    'Plus Jakarta Sans',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  font-size: 14px;
  line-height: 20px;
}
h1 {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h2 {
  margin: 0 0 0.5rem;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}
p {
  margin: 0;
}
.product {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--slate);
}
.muted {
  color: var(--slate);
}
.error {
  color: #b91c1c;
  min-height: 1.2em;
}

button,
input,
select,
textarea {
  font: inherit;
}
button {
  border: 0;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  min-height: 44px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease;
}
button:active {
  transform: scale(0.98);
  background: var(--primary-press);
}
button.plain {
  background: var(--surface);
  color: var(--navy);
  border: 1px solid var(--stroke);
}
button.plain:active {
  background: var(--surface-2);
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem;
  border: 1px solid var(--stroke);
  border-radius: 0.5rem;
  background: var(--canvas);
  color: var(--navy);
}
input:focus,
select:focus,
textarea:focus {
  background: var(--surface);
}

.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.login-card {
  width: min(100%, 22rem);
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-shadow: var(--shadow-3);
}
.login-card img {
  width: 11rem;
  height: auto;
  justify-self: center;
}
.login-card .product {
  text-align: center;
}
.login-card label {
  font-weight: 600;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--stroke);
}
.top-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.top-brand img {
  height: 2.5rem;
  width: auto;
  min-width: 96px;
  object-fit: contain;
}
.top-actions {
  display: flex;
  gap: 0.5rem;
}
.status {
  padding: 0.5rem 1rem;
  font-size: 12px;
  line-height: 16px;
  color: var(--slate);
  background: var(--surface);
  border-bottom: 1px solid var(--stroke);
}
.tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--stroke);
  position: sticky;
  top: 0;
  z-index: 2;
}
.tabs button {
  background: transparent;
  color: var(--slate);
  white-space: nowrap;
  border-radius: 9999px;
  padding: 0.5rem 0.9rem;
  font-weight: 600;
}
.tabs button[aria-current='page'] {
  background: rgb(0 102 255 / 8%);
  color: var(--primary);
}
.view {
  padding: 1rem;
  display: grid;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
}

.rooms {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.room,
.card {
  background: var(--surface);
  border: 1px solid rgb(226 232 240 / 80%);
  border-radius: 1rem;
  box-shadow: var(--shadow-1);
}
.room {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.room.meeting {
  box-shadow: var(--ai-glow);
}
.room .empty {
  color: var(--slate);
  font-size: 12px;
}
.person {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  animation: arrive 0.4s ease;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .person {
    animation: none;
  }
  button {
    transition: none;
  }
}
.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  background: var(--navy);
  position: relative;
}
.avatar::after {
  content: '';
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: #cbd5e1;
}
.person[data-status='working'] .avatar {
  background: linear-gradient(135deg, var(--primary), var(--cyan));
}
.person[data-status='working'] .avatar::after,
.person[data-status='listening'] .avatar::after {
  background: var(--success);
}
.person[data-status='waiting'] .avatar::after,
.person[data-status='paused'] .avatar::after {
  background: var(--warning);
}
.person .name {
  font-weight: 600;
}
.person .role {
  color: var(--slate);
  font-size: 12px;
  line-height: 16px;
}
.bubble {
  margin-top: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem 1rem 1rem 1rem;
  background: var(--surface-2);
}

.list {
  display: grid;
  gap: 0.75rem;
}
.card {
  padding: 1rem;
  display: grid;
  gap: 0.4rem;
}
.card .meta {
  color: var(--slate);
  font-size: 12px;
  line-height: 16px;
}
.card .text {
  white-space: pre-wrap;
}
.pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgb(0 102 255 / 8%);
  color: #0050cb;
}
.row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.form {
  display: grid;
  gap: 0.5rem;
}
a {
  color: #0050cb;
  font-weight: 600;
}
