/* Qittari portal. Same look as the app preview on the landing page: dark bar, three panes, lavender accents. */
:root {
  --bg: #ffffff;
  --text: #1a1919;
  --muted: #847d99;
  --line: #e9e5f5;
  --lav-50: #f6f4ff;
  --lav-100: #eeeafe;
  --lav-200: #ddd5fc;
  --lav-300: #c3b6f7;
  --lav-500: #8c7bef;
  --lav-600: #6c58d8;
  --lav-700: #5845bd;
  --lav-800: #342c5f;
  --lav-900: #1c1736;
  --warn: #b4441b;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Sora", "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--lav-50);
  color: var(--text);
  font: 14px/1.55 var(--sans);
}
a {
  color: var(--lav-700);
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
}
button {
  font: inherit;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.85rem;
}

/* ---------- shell ---------- */
.shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
}
.shell.locked {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  align-items: center;
  background: var(--lav-900);
  color: #d6d0ec;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
}
.bar b {
  color: #fff;
  font-weight: 500;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font: 600 0.95rem var(--display);
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 7px;
  background: var(--lav-600);
  color: #fff;
  font: 600 0.72rem var(--display);
}
.mark.big {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  font-size: 0.95rem;
}
.proj {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--lav-800);
  border-radius: 7px;
  padding: 0.2rem 0.5rem;
  color: #fff;
}
.proj select {
  all: unset;
  cursor: pointer;
  padding-right: 0.9rem;
  background:
    linear-gradient(45deg, transparent 50%, #d6d0ec 50%) right 0.3rem center / 5px 5px no-repeat,
    linear-gradient(135deg, #d6d0ec 50%, transparent 50%) right 0 center / 5px 5px no-repeat;
}
.proj select option {
  color: var(--text);
}
.proj:focus-within {
  outline: 2px solid var(--lav-500);
  outline-offset: 2px;
}
.sq {
  width: 0.6rem;
  height: 0.6rem;
  background: var(--lav-300);
  border-radius: 2px;
}
.live-dot {
  position: relative;
}
.live-dot::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 0.4rem;
}
.live-dot.busy::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.225rem;
  border-radius: 50%;
  background: #22c55e;
  animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}
.stats {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.bar .link {
  all: unset;
  margin-left: auto;
  cursor: pointer;
  color: #d6d0ec;
}
.bar .link:hover,
.bar .link:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 320px;
  background: var(--bg);
}
.pane {
  padding: 1.1rem;
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.pane:last-child {
  border-right: 0;
}
.pane-title {
  font-weight: 600;
  margin: 0.2rem 0 0.55rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.pane-title span {
  color: var(--muted);
  font-weight: 400;
}
.pane .small {
  margin: 0 0 1.1rem;
  color: #5e5873;
}
.mono-label {
  font: 500 0.66rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.4rem 0 0.6rem;
}

/* ---------- left pane ---------- */
.proj-list,
.doc-list,
.run-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
}
.proj-list a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.4rem;
  text-decoration: none;
  color: var(--text);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.proj-list a:hover {
  border-color: var(--lav-300);
  background: var(--lav-50);
}
.proj-list small {
  display: block;
  color: var(--muted);
}
.doc-list button {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.35rem 0.4rem;
  border-radius: 6px;
  cursor: pointer;
  color: #4b4660;
}
.doc-list button:hover,
.doc-list button[aria-current="true"] {
  background: var(--lav-50);
  color: var(--lav-700);
}
.doc-list button:focus-visible {
  outline: 2px solid var(--lav-500);
}
.doc-list i {
  width: 0.55rem;
  height: 0.7rem;
  border: 1px solid #b8b0d0;
  border-radius: 2px;
  flex: none;
}
.doc-list [data-status="ready"] i {
  background: var(--lav-300);
  border-color: var(--lav-500);
}
.doc-list [data-status="running"] i {
  background: #fde68a;
  border-color: #d97706;
}
.doc-list [data-status="failed"] i {
  background: #fecaca;
  border-color: var(--warn);
}
.doc-list em {
  margin-left: auto;
  font: 0.65rem var(--mono);
  font-style: normal;
  color: var(--muted);
  text-transform: uppercase;
}
.run-list li {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.2rem 0;
}
.run-list .failed {
  color: var(--warn);
}

/* ---------- centre ---------- */
.main {
  padding: 1.4rem clamp(1rem, 3vw, 2rem);
}
.welcome {
  font: 600 1.35rem/1.2 var(--display);
  margin: 0 0 0.2rem;
}
.tabs {
  display: flex;
  gap: 0.3rem;
  margin: 1.1rem 0 0.9rem;
  border-bottom: 1px solid var(--line);
}
.tabs a {
  padding: 0.45rem 0.7rem;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs a[aria-current="page"] {
  color: var(--lav-700);
  border-color: var(--lav-600);
  font-weight: 500;
}
.today {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem;
  margin: 0 0 1.4rem;
}
.today-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 0.55rem;
}
.row-item {
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 0.4rem;
  transition:
    border-color 0.2s,
    background 0.3s;
}
.row-item:last-child {
  margin-bottom: 0;
}
.row-item.open {
  border-color: var(--lav-300);
}
.row-head {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
}
.row-head:focus-visible {
  outline: 2px solid var(--lav-500);
  border-radius: 9px;
}
.row-head .title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.row-head .tag {
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 0.45rem;
  white-space: nowrap;
}
.row-head .act {
  margin-left: auto;
  flex: none;
  background: var(--lav-600);
  color: #fff;
  border-radius: 6px;
  padding: 0.12rem 0.55rem;
  font-size: 0.75rem;
}
.row-item.open .act {
  background: #fff;
  color: var(--lav-700);
  border: 1px solid var(--lav-200);
}
.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 3px;
  background: var(--c, var(--lav-500));
  flex: none;
  display: inline-block;
}
.row-detail {
  padding: 0 0.85rem 0.85rem;
  border-top: 1px solid var(--line);
  animation: open 0.3s var(--ease);
}
@keyframes open {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
.row-detail .meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.7rem 0 0;
}
.empty {
  color: var(--muted);
  padding: 1.2rem 0.4rem;
  text-align: center;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}
.btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 7px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  font-size: 0.82rem;
}
.btn:hover {
  border-color: var(--lav-300);
}
.btn.primary {
  background: var(--lav-600);
  border-color: var(--lav-600);
  color: #fff;
}
.btn.primary:hover {
  background: var(--lav-700);
  border-color: var(--lav-700);
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.btn:focus-visible {
  outline: 2px solid var(--lav-500);
  outline-offset: 2px;
}

.agent-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 0.45rem;
}
.agent-tiles .tile {
  all: unset;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.55rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  cursor: pointer;
  transition:
    border-color 0.2s,
    transform 0.2s var(--ease);
}
.agent-tiles .tile:hover:not([aria-disabled="true"]) {
  border-color: var(--lav-300);
  transform: translateY(-1px);
}
.agent-tiles .tile:focus-visible {
  outline: 2px solid var(--lav-500);
}
.agent-tiles .tile b {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}
.agent-tiles small {
  color: var(--muted);
  font-size: 0.72rem;
}
.agent-tiles .tile[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
}
.agent-tiles .tile.working small {
  color: var(--lav-700);
}

/* Rendered documents and drafts */
.doc-body {
  font-size: 0.92rem;
}
.doc-body h2,
.doc-body h3,
.doc-body h4 {
  margin: 1.1rem 0 0.3rem;
  font-size: 1rem;
}
.doc-body h2 {
  font-size: 1.1rem;
}
.doc-body p {
  margin: 0.5rem 0;
}
.doc-body ul {
  margin: 0.4rem 0;
  padding-left: 1.2rem;
}
.paper-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.paper-head h1 {
  margin: 0.2rem 0;
  font-size: 1.4rem;
}
.crumb {
  font-size: 0.8rem;
}
.status {
  font: 0.66rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  color: var(--muted);
}
.status.ready {
  color: var(--lav-700);
  border-color: var(--lav-200);
  background: var(--lav-50);
}
.status.failed {
  color: var(--warn);
}
.error {
  color: var(--warn);
}
.edit input,
.edit textarea {
  width: 100%;
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 0.7rem;
}
.edit textarea {
  min-height: 260px;
  resize: vertical;
}
.edit input:focus,
.edit textarea:focus {
  outline: 2px solid var(--lav-300);
  border-color: var(--lav-500);
}

/* ---------- chat pane (placeholder) ---------- */
.chat-pane {
  display: flex;
  flex-direction: column;
  background: var(--lav-50);
}
.soon {
  font: 0.62rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--lav-200);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  color: var(--lav-700) !important;
}
.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  padding: 1rem 0;
}
.suggest {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
}
.suggest span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  background: #fff;
  color: var(--muted);
}
.ask {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem;
  color: var(--muted);
  background: #fff;
}

/* ---------- sign in (inside the portal) ---------- */
.signin {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgb(28 23 54 / 0.35);
}
.signin[hidden] {
  display: none;
}
.signin-card {
  width: min(380px, 100%);
  background: #fff;
  border: 1px solid var(--lav-200);
  border-radius: 14px;
  padding: 1.6rem;
  box-shadow: 0 40px 90px -40px rgb(70 50 160 / 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  animation: open 0.35s var(--ease);
}
.signin-card h1 {
  font-size: 1.2rem;
  margin: 0.2rem 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.field input {
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--lav-50);
}
.field input:focus {
  outline: 2px solid var(--lav-300);
  border-color: var(--lav-500);
}
.signin-card .btn {
  padding: 0.6rem;
  font-size: 0.9rem;
}
.form-msg {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.82rem;
}
.form-msg.err {
  color: var(--warn);
}

#toast {
  position: fixed;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  background: var(--lav-900);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 9px;
  font-size: 0.85rem;
  z-index: 20;
  animation: open 0.25s var(--ease);
}

/* ---------- small screens ---------- */
@media (max-width: 1100px) {
  .body {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .chat-pane {
    display: none;
  }
}
@media (max-width: 760px) {
  .shell {
    height: auto;
    min-height: 100dvh;
  }
  .body {
    grid-template-columns: 1fr;
  }
  .pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }
  .main {
    order: -1;
  }
  .bar {
    gap: 0.7rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ===================== Okara layout pieces ===================== */
.count {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 0.4rem;
  margin-left: 0.2rem;
}
.pane-title .tools {
  display: flex;
  gap: 0.2rem;
}
.icon {
  all: unset;
  cursor: pointer;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
}
.icon:hover,
.icon:focus-visible {
  background: var(--lav-50);
  color: var(--lav-700);
}
.linkish {
  all: unset;
  cursor: pointer;
  color: var(--lav-700);
  font-size: 0.8rem;
}
.linkish:hover,
.linkish:focus-visible {
  text-decoration: underline;
}
.btn.block {
  width: 100%;
  margin: 0.2rem 0 1.2rem;
}
.btn.dark {
  background: var(--lav-900);
  border-color: var(--lav-900);
  color: #fff;
  min-width: 4.2rem;
}
.btn.dark:hover {
  background: var(--lav-700);
  border-color: var(--lav-700);
}
.btn.on {
  background: var(--lav-100);
  border-color: var(--lav-300);
}
.tag {
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 0.45rem;
  white-space: nowrap;
}

/* Context */
.avatar {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 8px;
  background: var(--lav-100);
  color: var(--lav-700);
  display: inline-grid;
  place-items: center;
  font: 600 0.78rem var(--display);
  flex: none;
}
.avatar.sm {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 5px;
  font-size: 0.62rem;
}
.proj-list a {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.7rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.summary {
  margin-bottom: 0.2rem !important;
}
.summary.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.doc-list {
  margin-top: 0.3rem;
}
.doc-list .new {
  font-size: 0.66rem;
  color: #15803d;
  background: #dcfce7;
  border-radius: 999px;
  padding: 0 0.4rem;
  margin-left: auto;
}
.doc-list em + .chev,
.doc-list .new + .chev {
  margin-left: 0.3rem;
}
.doc-list .chev {
  margin-left: auto;
  color: var(--muted);
}
.doc-list .new ~ .chev,
.doc-list em ~ .chev {
  margin-left: 0.3rem;
}
.doc-list i.cal {
  border-radius: 3px;
  background: var(--lav-50);
}
.comp-grid {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.6rem;
}
.comp-grid li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  font-size: 0.82rem;
}
.comp-grid li.wide {
  grid-column: 1 / -1;
}
.comp-grid a {
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comp-grid a:hover {
  color: var(--lav-700);
  text-decoration: underline;
}
.comp-grid .x {
  all: unset;
  cursor: pointer;
  color: var(--warn);
  margin-left: auto;
  padding: 0 0.25rem;
}
.add-comp {
  display: flex;
  gap: 0.35rem;
  margin: 0.2rem 0 0.6rem;
}
.add-comp[hidden] {
  display: none;
}
.add-comp input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 0.82rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 7px;
}

/* Centre tabs (Agents | Analytics) */
.ctabs {
  display: inline-flex;
  gap: 0.2rem;
  background: var(--lav-50);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.2rem;
  margin-bottom: 1.2rem;
}
.ctabs span {
  padding: 0.3rem 0.75rem;
  border-radius: 7px;
  font-size: 0.84rem;
  color: var(--muted);
}
.ctabs .on {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 3px rgb(28 23 54 / 0.12);
  font-weight: 500;
}
.ctabs .off {
  cursor: not-allowed;
}
.ctabs small.soon {
  font-size: 0.55rem;
  padding: 0.05rem 0.35rem;
}
.welcome-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Today queue */
.progress {
  height: 5px;
  background: var(--lav-100);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.8rem 0 0.25rem;
  max-width: 320px;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--lav-600);
  border-radius: inherit;
  transition: width 0.6s var(--ease);
}
.progress-label {
  margin: 0 0 0.8rem;
  font-size: 0.75rem !important;
}
.queue {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.6rem 0 1.8rem;
}
.q-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.55rem 0.6rem 0.55rem 0.7rem;
  animation: open 0.35s var(--ease) both;
}
.q-row:hover {
  border-color: var(--lav-200);
}
.q-icon {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: none;
  font: 600 0.66rem var(--display);
  color: #fff;
  background: var(--c);
}
.q-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Agent grid as folders */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.7rem;
}
.folders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.9rem 0.6rem;
}
.agent-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
  text-decoration: none;
  color: var(--text);
  padding: 0.4rem 0.2rem;
  border-radius: 10px;
  transition: background 0.2s;
}
a.agent-tile:hover,
a.agent-tile:focus-visible {
  background: var(--lav-50);
}
.agent-tile b {
  font-weight: 500;
  font-size: 0.82rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agent-tile small {
  color: var(--lav-700);
  font-size: 0.72rem;
}
.agent-tile.off {
  opacity: 0.5;
  cursor: default;
}
.agent-tile.off small {
  color: var(--muted);
}
.folder {
  position: relative;
  width: 3.1rem;
  height: 2.5rem;
  border-radius: 4px 8px 8px 8px;
  background: linear-gradient(180deg, var(--lav-200), var(--lav-300));
  display: grid;
  place-items: center;
  margin-top: 0.35rem;
}
.folder::before {
  content: "";
  position: absolute;
  left: 0;
  top: -0.32rem;
  width: 45%;
  height: 0.45rem;
  border-radius: 4px 4px 0 0;
  background: var(--lav-300);
}
.folder .glyph {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  display: grid;
  place-items: center;
  font: 600 0.6rem var(--display);
}
.folder .badge {
  position: absolute;
  top: -0.55rem;
  right: -0.5rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--lav-900);
  color: #fff;
  font-size: 0.66rem;
  display: grid;
  place-items: center;
}
.folder.sm {
  width: 2.3rem;
  height: 1.85rem;
  margin: 0.3rem 0 0;
}
a.agent-tile:hover .folder {
  transform: translateY(-2px);
  transition: transform 0.2s var(--ease);
}

/* Agent board */
.board-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.5rem 0 0.3rem;
}
.board-head h1 {
  margin: 0;
  font-size: 1.35rem;
  flex: 1;
}
.tabs button {
  all: unset;
  cursor: pointer;
  padding: 0.45rem 0.7rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs button[aria-current="true"] {
  color: var(--lav-700);
  border-color: var(--lav-600);
  font-weight: 500;
}
.tabs button:focus-visible {
  outline: 2px solid var(--lav-500);
}
.board {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card-row {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.75rem 0.9rem;
  transition:
    border-color 0.2s,
    transform 0.2s var(--ease);
}
.card-row:hover,
.card-row:focus-visible {
  border-color: var(--lav-300);
  transform: translateY(-1px);
}
.card-title {
  font-weight: 500;
}
.card-snip {
  color: #5e5873;
  font-size: 0.84rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-size: 0.74rem;
  color: var(--muted);
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}
.status.approved {
  color: var(--lav-700);
  border-color: var(--lav-200);
  background: var(--lav-50);
}
.status.skipped {
  color: var(--muted);
}
.status.draft,
.status.empty {
  color: var(--muted);
}

/* Item panel */
.panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgb(28 23 54 / 0.25);
  z-index: 15;
}
.panel-backdrop[hidden],
.panel[hidden],
.logs[hidden] {
  display: none;
}
.panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(620px, 100%);
  background: #fff;
  border-left: 1px solid var(--lav-200);
  box-shadow: -30px 0 80px -40px rgb(70 50 160 / 0.5);
  z-index: 16;
  overflow-y: auto;
  padding: 1rem 1.4rem 1.6rem;
  animation: slide 0.3s var(--ease);
}
@keyframes slide {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.panel-head .close {
  margin-left: auto;
  font-size: 1.2rem;
}
.panel h2 {
  font-size: 1.2rem;
  margin: 1rem 0 0.4rem;
}
.panel .actions {
  position: sticky;
  bottom: -1.6rem;
  background: #fff;
  padding-bottom: 0.4rem;
}
.feedback {
  display: inline-flex;
  gap: 0.3rem;
  margin-right: auto;
}

/* Documents */
.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.doc-body table,
.publish-log table {
  border-collapse: collapse;
  margin: 0.6rem 0;
  font-size: 0.85rem;
  width: 100%;
}
.doc-body th,
.doc-body td,
.publish-log th,
.publish-log td {
  border: 1px solid var(--line);
  padding: 0.35rem 0.55rem;
  text-align: left;
  vertical-align: top;
}
.doc-body th,
.publish-log th {
  background: var(--lav-50);
  font-weight: 600;
}
pre.plain {
  white-space: pre-wrap;
  font: 0.82rem/1.55 var(--mono);
  background: var(--lav-50);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
}

/* Content calendar */
.cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 0.8rem;
}
.cal .dow {
  font: 500 0.66rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0.4rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cal .cell {
  min-height: 92px;
  padding: 0.35rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.cal .cell.blank {
  background: #fcfbff;
}
.cal .day {
  font-size: 0.74rem;
  color: var(--muted);
}
.cal .now .day {
  background: var(--lav-600);
  color: #fff;
  border-radius: 999px;
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
}
.cal-item {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 5px;
  padding: 0.1rem 0.25rem;
  background: var(--lav-50);
}
.cal-item:hover,
.cal-item:focus-visible {
  background: var(--lav-100);
}
.cal .more {
  font-size: 0.7rem;
  color: var(--muted);
}

/* Logs console */
.logs {
  background: #110e22;
  color: #cfc8ea;
  font: 0.76rem/1.6 var(--mono);
  max-height: 220px;
  overflow-y: auto;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--lav-800);
}
.logs ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.logs time {
  color: #8f86b3;
}
.logs .failed {
  color: #fca5a5;
}
.logs .running {
  color: #fde68a;
}

/* Chat quick starts, as on Okara */
.quick {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  max-width: 260px;
}
.quick span {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 0.5rem 0.7rem;
  text-align: left;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ===================== Phase 2: SEO, GEO, Analytics ===================== */
.ctabs a {
  padding: 0.3rem 0.75rem;
  border-radius: 7px;
  font-size: 0.84rem;
  color: var(--muted);
  text-decoration: none;
}
.ctabs a.on {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 3px rgb(28 23 54 / 0.12);
  font-weight: 500;
}
.ctabs a:focus-visible {
  outline: 2px solid var(--lav-500);
}
.doc-body code,
.tag.mono {
  font-family: var(--mono);
  font-size: 0.8em;
}
.doc-body code {
  background: var(--lav-50);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 0.25rem;
  overflow-wrap: anywhere;
}

/* Lighthouse rings */
.ring {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.ring b {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.68rem;
  color: #fff;
  background: radial-gradient(closest-side, var(--lav-900) 76%, transparent 78% 100%), conic-gradient(var(--rc) calc(var(--p) * 1%), rgb(255 255 255 / 0.15) 0);
}
.ring.big b {
  width: 4.2rem;
  height: 4.2rem;
  font-size: 1.15rem;
  color: var(--text);
  background: radial-gradient(closest-side, #fff 80%, transparent 82% 100%), conic-gradient(var(--rc) calc(var(--p) * 1%), var(--lav-100) 0);
}

/* Severity */
.sev {
  font: 500 0.64rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  flex: none;
}
.sev.critical {
  background: #fee2e2;
  color: #b91c1c;
}
.sev.high {
  background: #ffedd5;
  color: #c2410c;
}
.sev.medium {
  background: #fef9c3;
  color: #a16207;
}
.sev.low {
  background: var(--lav-50);
  color: var(--lav-700);
}
.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.8rem;
}
.chip {
  all: unset;
  cursor: pointer;
  font-size: 0.76rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  color: var(--muted);
}
.chip[aria-pressed="true"] {
  border-color: var(--lav-500);
  color: var(--lav-700);
  background: var(--lav-50);
}
.chip:focus-visible {
  outline: 2px solid var(--lav-500);
}

/* Issue rows and GEO groups */
.issue-row {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  transition: border-color 0.2s;
}
.issue-row:hover,
.issue-row:focus-visible {
  border-color: var(--lav-300);
}
.issue-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.new-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #22c55e;
  flex: none;
}
.tag.mono {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prompt-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.prompt-group .small {
  margin: 0 0 0.2rem;
}
.prompt-head {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  justify-content: space-between;
}
.mention {
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  white-space: nowrap;
}
.mention.no {
  background: #fee2e2;
  color: #b91c1c;
}
.mention.yes {
  background: #dcfce7;
  color: #15803d;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.6rem;
}
.prompt-quote {
  font-style: italic;
  color: #5e5873;
  border-left: 3px solid var(--lav-300);
  padding-left: 0.7rem;
  margin: 0 0 0.6rem;
}

/* Analytics */
.an-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
}
.an-card h2 {
  font-size: 1.05rem;
  margin: 0;
  flex: 1;
}
.an-card h3 {
  font-size: 0.9rem;
  margin: 1.1rem 0 0.5rem;
}
.an-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
a.btn {
  text-decoration: none;
  display: inline-block;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.seg button {
  all: unset;
  cursor: pointer;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.seg button[aria-pressed="true"] {
  background: var(--lav-600);
  color: #fff;
}
.scores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin: 0.9rem 0;
}
.score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
.vitals {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.vitals th,
.vitals td {
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.vitals th {
  font: 500 0.66rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.pass {
  color: #15803d;
  font-weight: 500;
}
.fail {
  color: #b91c1c;
  font-weight: 500;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 0.8rem 0 0;
}
.kpis div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
}
.kpis b {
  font: 600 1.4rem var(--display);
}
.kpis span {
  font-size: 0.78rem;
  color: var(--muted);
}
.voice {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.voice li {
  display: grid;
  grid-template-columns: minmax(0, 11rem) 1fr 1.5rem;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.82rem;
}
.voice-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.voice-bar {
  height: 0.5rem;
  background: var(--lav-50);
  border-radius: 999px;
  overflow: hidden;
}
.voice-bar i {
  display: block;
  height: 100%;
  background: var(--lav-500);
  border-radius: inherit;
}
.muted-card {
  background: #fcfbff;
}
@media (max-width: 760px) {
  .scores,
  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Voice settings panel */
.panel .pane-title {
  margin-top: 1.1rem;
}
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.choice {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  cursor: pointer;
}
.choice:has(input:checked) {
  border-color: var(--lav-500);
  background: var(--lav-50);
}
.choice span {
  display: flex;
  flex-direction: column;
}
.choice small {
  color: var(--muted);
  font-size: 0.76rem;
}
.choice input {
  accent-color: var(--lav-600);
  margin-top: 0.2rem;
}
.panel textarea {
  width: 100%;
  font: inherit;
  font-size: 0.86rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
}
.panel textarea:focus {
  outline: 2px solid var(--lav-300);
  border-color: var(--lav-500);
}
.panel textarea.notes {
  min-height: 90px;
}
.panel textarea.add-example {
  min-height: 110px;
  margin: 0.4rem 0;
}
.examples {
  margin: 0.3rem 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.examples li {
  font-size: 0.82rem;
}
.examples li {
  display: list-item;
}
.examples .ex-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
  color: #4b4660;
}
.examples .icon {
  float: right;
}

/* Readability pass: larger text, wider drafts panel, a top bar that stays on one line */
body {
  font-size: 15px;
}
.panel {
  width: min(760px, 100%);
  padding: 1.1rem 1.8rem 1.8rem;
}
.panel .doc-body {
  font-size: 0.98rem;
  line-height: 1.65;
}
.bar {
  flex-wrap: nowrap;
  overflow: hidden;
  white-space: nowrap;
}
.stats {
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}
@media (max-width: 1180px) {
  .ring .rl {
    display: none;
  }
  .stats {
    gap: 0.7rem;
  }
}
@media (max-width: 1180px) {
  .stats > span:not(.ring):nth-last-child(-n + 2) {
    display: none;
  }
}
@media (max-width: 760px) {
  .bar {
    flex-wrap: wrap;
  }
  .stats {
    display: none;
  }
}
.over {
  color: #b91c1c;
  background: #fee2e2;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  font-size: 0.72rem;
}
.panel .over {
  display: inline-block;
  margin: 0 0 0.6rem;
}

/* Settings */
.bar .settings-link {
  margin-left: auto;
  text-decoration: none;
}
.bar #logs-toggle,
.bar #logout {
  margin-left: 1.1rem;
}
.settings-title {
  font-size: 1.35rem;
  margin: 0 0 1rem;
}
.settings {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  position: sticky;
  top: 0;
}
.settings-nav .mono-label {
  margin: 0.9rem 0 0.35rem;
}
.settings-nav .mono-label:first-child {
  margin-top: 0;
}
.settings-nav a {
  padding: 0.35rem 0.6rem;
  border-radius: 7px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
}
.settings-nav a:hover {
  background: var(--lav-50);
}
.settings-nav a[aria-current="page"] {
  background: var(--lav-100);
  color: var(--lav-700);
  font-weight: 500;
}
.conn-group {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.conn-group h2 {
  font-size: 1rem;
  margin: 0 0 0.2rem;
}
.conn-group > .small {
  margin: 0 0 0.6rem;
}
.conn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
}
.conn-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.conn-text small {
  color: var(--muted);
  font-size: 0.8rem;
}
.conn-status {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}
.conn-status.on {
  color: #15803d;
}
.conn-status.on::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 0.35rem;
}
.needs {
  background: var(--lav-50);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 1rem;
}
@media (max-width: 900px) {
  .settings {
    grid-template-columns: 1fr;
  }
  .settings-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Connections */
.conn .btn + .btn,
.conn .btn {
  margin-left: 0.3rem;
}
.code-big {
  font: 600 1.6rem var(--mono);
  letter-spacing: 0.2em;
  text-align: center;
}
.link-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
  margin: 0.6rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.link-row select,
.link-row input {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  width: 100%;
}
.link-row input:disabled {
  background: var(--lav-50);
  color: var(--muted);
}
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.publish-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0.4rem 0 0.8rem;
}
.published {
  font-size: 0.85rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  overflow-wrap: anywhere;
}

/* Publishing switch and log */
.publish-log {
  margin-top: 0.6rem;
  overflow-x: auto;
}
.publish-log summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- calm home (Okara layout) ---------- */
.g-connect {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
}
.g-connect b {
  display: grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font-size: 0.7rem;
}
.g-connect:hover {
  border-color: #fff;
}
#left {
  display: flex;
  flex-direction: column;
}
.doc-list .more {
  margin: 0.15rem 0 0 0.2rem;
  font-size: 0.8rem;
}
.comp-grid .fav {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex: none;
}
.user-box {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.user-box b {
  display: block;
  font-size: 0.85rem;
}
.user-box small {
  color: var(--muted);
}
.today {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem 0.3rem;
  margin: 1rem 0 1.6rem;
  background: #fff;
}
.today-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.today .progress {
  max-width: none;
  margin: 0.55rem 0 0.2rem;
}
.today .queue {
  margin: 0.6rem 0 0.7rem;
}
#setup:empty {
  display: none;
}
.setup-toggle {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  background: #fff;
}
.setup-toggle:focus-visible {
  outline: 2px solid var(--lav-500);
}
.setup-toggle b {
  color: var(--lav-700);
}
.setup-steps {
  margin: 0.4rem 0 0;
  padding: 0 0 0 1.4rem;
  font-size: 0.83rem;
  display: grid;
  gap: 0.3rem;
}
.setup-steps li.ok {
  color: var(--muted);
  text-decoration: line-through;
}

/* ---------- Design Guide: brand board ---------- */
.brand-board {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem;
  margin: 0.4rem 0 1.6rem;
  background: var(--lav-50);
}
.board-head h2 {
  margin: 0;
  font-size: 1.15rem;
}
.board-head p {
  margin: 0.15rem 0 0.9rem;
}
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.bcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  min-width: 0;
}
.bcard .mono-label {
  margin: 0 0 0.55rem;
}
.bcard.b-logo,
.bcard.b-colors {
  grid-column: 1 / -1;
}
.logo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.6rem;
}
.logo-tile {
  margin: 0;
}
.logo-stage {
  display: grid;
  place-items: center;
  height: 92px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0.9rem;
}
.logo-stage {
  overflow: hidden;
}
.logo-stage img {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
}
.logo-tile figcaption {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.3rem;
  text-align: center;
}
.bcard .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
}
.bcard .chip {
  cursor: default;
  color: var(--text);
  display: inline-block;
  max-width: 100%;
}
.bcard.b-headline {
  grid-column: span 2;
}
.b-brand a {
  display: block;
  overflow-wrap: anywhere;
}
.brand-name {
  display: block;
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}
.specimen {
  display: block;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.headline {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.5rem;
}
.swatch {
  all: unset;
  box-sizing: border-box;
  cursor: copy;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 112px;
  padding: 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.swatch:focus-visible {
  outline: 2px solid var(--lav-500);
  outline-offset: 2px;
}
.swatch b {
  font-size: 0.85rem;
}
.swatch span {
  font: 0.75rem var(--mono);
}
.swatch small {
  font-size: 0.7rem;
  opacity: 0.8;
  text-transform: capitalize;
}
.palette-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.7rem;
}
.palette-bar span {
  flex: 1;
}
@media (max-width: 900px) {
  .board-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.setup-steps[hidden] {
  display: none;
}
