:root {
  color-scheme: light;
  --page: #f7f7f8;
  --page-soft: #fbfbfc;
  --page-deep: #ececf1;
  --card: rgba(255, 255, 255, 0.94);
  --card-muted: #f3f4f6;
  --ink: #202123;
  --muted: #6e6e80;
  --line: #ececf1;
  --line-strong: #d9d9e3;
  --accent: #10a37f;
  --accent-ink: #0f513f;
  --accent-soft: #e8faf4;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(16, 163, 127, 0.12) 0%, rgba(16, 163, 127, 0) 30%),
    linear-gradient(180deg, var(--page-soft) 0%, var(--page) 24%, #f3f4f6 100%);
  color: var(--ink);
  font-family: "Sohne", "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
  line-height: 1.5;
}

html.page-fade-enter body {
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(78, 252, 235, 0.08) 0%, rgba(78, 252, 235, 0) 30%),
    linear-gradient(180deg, #030408 0%, #060a13 100%);
  transition: background 460ms ease;
}

html.page-fade-enter .app-shell {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  filter: blur(10px);
}

html.page-fade-enter.page-fade-enter-active .app-shell {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition:
    opacity 460ms ease,
    transform 460ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 460ms ease;
}

html.page-fade-enter.page-fade-enter-active body {
  background:
    radial-gradient(circle at top, rgba(16, 163, 127, 0.12) 0%, rgba(16, 163, 127, 0) 30%),
    linear-gradient(180deg, var(--page-soft) 0%, var(--page) 24%, #f3f4f6 100%);
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 140ms ease;
}

a:hover {
  color: var(--accent);
}

button {
  appearance: none;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  border-radius: 999px;
  padding: 0.72rem 1.08rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 20px rgba(16, 163, 127, 0.18);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(16, 163, 127, 0.22);
}

button.secondary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

button.secondary:hover {
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.subtle-button {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.34rem 0.72rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: none;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.subtle-button:hover {
  transform: none;
  box-shadow: none;
  background: white;
  border-color: var(--muted);
  color: var(--ink);
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

code,
pre,
.mono {
  font-family: "Sohne Mono", "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", monospace;
}

.mono,
.numeric {
  font-variant-numeric: tabular-nums slashed-zero;
  font-feature-settings: "tnum" 1, "zero" 1;
}

.app-shell {
  max-width: 1980px;
  margin: 0 auto;
  padding: 2rem 1rem 3.5rem;
}

.app-toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: grid;
  gap: 12px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.app-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 14px 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(24, 32, 24, 0.12);
  background: rgba(255, 252, 245, 0.96);
  box-shadow: 0 18px 40px rgba(59, 46, 28, 0.16);
  backdrop-filter: blur(14px);
  animation: app-toast-in 180ms ease-out;
}

.app-toast-info {
  border-color: rgba(63, 92, 71, 0.2);
  background: rgba(243, 248, 242, 0.97);
}

.app-toast-error {
  border-color: rgba(185, 86, 63, 0.26);
  background: rgba(255, 246, 243, 0.98);
}

.app-toast-body {
  min-width: 0;
}

.app-toast-title {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(40, 46, 38, 0.72);
}

.app-toast-message {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #2b241c;
  word-break: break-word;
}

.app-toast-error .app-toast-title,
.app-toast-error .app-toast-message {
  color: #6d2b1c;
}

.app-toast-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(44, 51, 42, 0.56);
  width: 28px;
  height: 28px;
  margin: -2px -2px 0 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.app-toast-close:hover {
  background: rgba(44, 51, 42, 0.08);
  color: rgba(44, 51, 42, 0.84);
  transform: scale(1.04);
}

.app-toast-error .app-toast-close {
  color: rgba(109, 43, 28, 0.56);
}

.app-toast-error .app-toast-close:hover {
  background: rgba(109, 43, 28, 0.08);
  color: rgba(109, 43, 28, 0.88);
}

@keyframes app-toast-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dashboard-shell {
  display: grid;
  gap: 1rem;
}

.hero-card,
.section-card,
.metric-card,
.error-card {
  background: var(--card);
  border: 1px solid rgba(217, 217, 227, 0.82);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.hero-card {
  border-radius: 28px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: start;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 600;
}

.hero-title {
  margin: 0.35rem 0 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-copy {
  margin: 0.75rem 0 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 1rem;
}

.status-stack {
  display: grid;
  justify-items: end;
  align-content: start;
  min-width: min(100%, 9rem);
  gap: 0.75rem;
}

.status-stack-inner {
  display: grid;
  justify-items: end;
  gap: 0.5rem;
}

.hero-actions {
  display: inline-flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.88rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-sm);
}

.pill-link:hover {
  color: var(--ink);
  border-color: rgba(16, 163, 127, 0.28);
  background: white;
}

.pill-link-active {
  border-color: rgba(16, 163, 127, 0.18);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.pill-link-inline {
  align-self: start;
  margin-top: 0.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0.35rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-muted);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.status-badge-dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
}

.status-badge-live {
  display: none;
  background: var(--accent-soft);
  border-color: rgba(16, 163, 127, 0.18);
  color: var(--accent-ink);
}

.status-badge-offline {
  background: #f5f5f7;
  border-color: var(--line-strong);
  color: var(--muted);
}

[data-phx-main].phx-connected .status-badge-live {
  display: inline-flex;
}

[data-phx-main].phx-connected .status-badge-offline {
  display: none;
}

.metric-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.board-shell {
  display: grid;
  gap: 1rem;
}

.board-flash-stack {
  display: grid;
  gap: 0.65rem;
}

.board-flash {
  margin: 0;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.board-flash-info {
  background: #eef6ff;
  border-color: #c8dbf7;
  color: #1f4d8f;
}

.board-flash-error {
  background: var(--danger-soft);
  border-color: #f6d3cf;
  color: var(--danger);
}

.board-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.board-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.26);
  backdrop-filter: blur(8px);
}

.board-modal {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(85vh, 920px);
  overflow: auto;
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 28px;
  border: 1px solid rgba(217, 217, 227, 0.82);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
}

.board-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.board-modal-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board-modal-title {
  margin: 0.3rem 0 0;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.board-modal-meta {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.board-modal-close {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  min-height: auto;
  box-shadow: none;
}

.board-modal-close:hover {
  transform: none;
  box-shadow: none;
  color: var(--ink);
}

.board-modal-actions {
  display: inline-flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.board-modal-inline-button {
  min-height: 2.25rem;
  padding: 0.45rem 0.88rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.board-modal-inline-button:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  border-color: rgba(16, 163, 127, 0.28);
}

.board-modal-sections {
  display: grid;
  gap: 1rem;
}

.board-modal-section {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fafafc;
}

.board-modal-section-title {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.board-action-form {
  display: grid;
  gap: 0.8rem;
}

.board-action-textarea {
  width: 100%;
  min-height: 7.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: white;
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
  resize: vertical;
}

.board-action-textarea:focus {
  outline: 2px solid rgba(16, 163, 127, 0.22);
  outline-offset: 2px;
  border-color: rgba(16, 163, 127, 0.4);
}

.board-action-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.board-markdown-content {
  color: #353740;
  font-size: 0.92rem;
  line-height: 1.64;
}

.board-markdown-content > :first-child {
  margin-top: 0;
}

.board-markdown-content > :last-child {
  margin-bottom: 0;
}

.board-markdown-content p,
.board-markdown-content ul,
.board-markdown-content ol,
.board-markdown-content blockquote,
.board-markdown-content pre,
.board-markdown-content table {
  margin: 0.7rem 0;
}

.board-markdown-content h1,
.board-markdown-content h2,
.board-markdown-content h3,
.board-markdown-content h4 {
  margin: 1rem 0 0.55rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.board-markdown-content h1 {
  font-size: 1.45rem;
}

.board-markdown-content h2 {
  font-size: 1.2rem;
}

.board-markdown-content h3 {
  font-size: 1.02rem;
}

.board-markdown-content ul,
.board-markdown-content ol {
  padding-left: 1.2rem;
}

.board-markdown-content li + li {
  margin-top: 0.35rem;
}

.board-markdown-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.board-markdown-content blockquote {
  padding: 0.8rem 0.95rem;
  border-left: 3px solid rgba(16, 163, 127, 0.35);
  background: rgba(16, 163, 127, 0.06);
  border-radius: 0 16px 16px 0;
  color: #405066;
}

.board-markdown-content code {
  padding: 0.12rem 0.32rem;
  border-radius: 8px;
  background: #f3f4f7;
  color: #223;
  font-size: 0.84em;
}

.board-markdown-content pre {
  padding: 0.9rem 1rem;
  overflow: auto;
  border-radius: 16px;
  background: #141821;
  color: #eef2ff;
}

.board-markdown-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.board-markdown-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.85rem 0;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.board-markdown-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.board-markdown-content th,
.board-markdown-content td {
  padding: 0.65rem 0.75rem;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.board-markdown-content thead th {
  border-top: 0;
  background: #f4f6f8;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-card-board {
  position: sticky;
  top: 0.75rem;
  z-index: 2;
}

.board-summary-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-value-small {
  font-size: 1.2rem;
  line-height: 1.2;
}

.board-columns {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  align-items: stretch;
}

.board-column {
  flex: 1 0 225px;
  min-width: 225px;
  display: grid;
  grid-template-rows: auto minmax(14rem, 1fr);
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(217, 217, 227, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.board-column-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.board-column-label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.board-column-meta {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.board-column-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: var(--card-muted);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.board-column-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.board-column-action {
  min-height: auto;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.board-column-action:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  border-color: rgba(16, 163, 127, 0.28);
}

.board-card-stack,
.board-secondary-stack {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.board-card {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(217, 217, 227, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 248, 0.92));
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.board-card-compact {
  padding: 0.8rem;
}

.board-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.board-card-badges {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.board-inline-action {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  min-height: auto;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: none;
  cursor: pointer;
}

.board-inline-action:hover {
  transform: none;
  box-shadow: none;
  color: var(--accent);
  text-decoration: underline;
}

.board-card-id {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.board-card-title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.board-card-title-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  min-height: auto;
  color: inherit;
}

.board-card-title-button:hover .board-card-title {
  color: var(--accent);
  text-decoration: underline;
}

.board-card-title-button:hover {
  transform: none;
  box-shadow: none;
}

.board-card-meta,
.board-card-live-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.board-live-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.board-phase-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.board-card-actions {
  display: inline-flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.board-empty {
  display: grid;
  place-items: center;
  min-height: 9rem;
  padding: 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.board-runtime-card {
  margin-top: 0.25rem;
}

.runtime-pulse-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.metric-card {
  border-radius: 22px;
  padding: 1rem 1.05rem 1.1rem;
}

.metric-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.metric-value {
  margin: 0.35rem 0 0;
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.metric-detail {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.section-card {
  border-radius: 24px;
  padding: 1.15rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-copy {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.data-table-running {
  table-layout: fixed;
  min-width: 980px;
}

.data-table th {
  padding: 0 0.5rem 0.75rem 0;
  text-align: left;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table td {
  padding: 0.9rem 0.5rem 0.9rem 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.94rem;
}

.issue-stack,
.session-stack,
.detail-stack,
.token-stack {
  display: grid;
  gap: 0.24rem;
  min-width: 0;
}

.event-text {
  font-weight: 500;
  line-height: 1.45;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-meta {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.state-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.3rem 0.68rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-muted);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
}

.state-badge-active {
  background: var(--accent-soft);
  border-color: rgba(16, 163, 127, 0.18);
  color: var(--accent-ink);
}

.state-badge-warning {
  background: #fff7e8;
  border-color: #f1d8a6;
  color: #8a5a00;
}

.state-badge-danger {
  background: var(--danger-soft);
  border-color: #f6d3cf;
  color: var(--danger);
}

.issue-id {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.issue-link {
  color: var(--muted);
  font-size: 0.86rem;
}

.muted {
  color: var(--muted);
}

.code-panel {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: #f5f5f7;
  border: 1px solid var(--line);
  color: #353740;
  font-size: 0.9rem;
}

.empty-state {
  margin: 1rem 0 0;
  color: var(--muted);
}

.error-card {
  border-radius: 24px;
  padding: 1.25rem;
  background: linear-gradient(180deg, #fff8f7 0%, var(--danger-soft) 100%);
  border-color: #f6d3cf;
}

.error-title {
  margin: 0;
  color: var(--danger);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.error-copy {
  margin: 0.45rem 0 0;
  color: var(--danger);
}

/* ── Arcade: Curator tone (matches Board) ─────────────────────── */
.arcade-shell {
  --curator-page: #f7f3ea;
  --curator-page-grain: rgba(30, 27, 22, 0.018);
  --curator-surface: #fcfaf5;
  --curator-card: #fcfaf5;
  --curator-card-hover: #fffdf7;
  --curator-ink: #1e1b16;
  --curator-ink-secondary: #332f28;
  --curator-ink-muted: #7a726a;
  --curator-ink-faint: #b5ada3;
  --curator-hairline: #e5dfd0;
  --curator-hairline-soft: #ece6d7;
  --curator-accent: #3f5c47;
  --curator-accent-soft: #e4eade;
  --curator-accent-ink: #2d4233;
  --curator-shadow-soft: 0 1px 2px rgba(30, 27, 22, 0.04), 0 2px 6px rgba(30, 27, 22, 0.04);
  --curator-shadow-lift: 0 2px 4px rgba(30, 27, 22, 0.05), 0 8px 20px rgba(30, 27, 22, 0.06);
  --curator-sans: "Inter", "Pretendard", -apple-system, BlinkMacSystemFont, "Sohne", sans-serif;
  --curator-serif: "Fraunces", "Pretendard", Georgia, serif;
  --curator-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  display: grid;
  gap: 0;
  font-family: var(--curator-sans);
  color: var(--curator-ink);
  font-size: 13.5px;
  letter-spacing: -0.003em;
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 28px 20px;
}

/* Warm paper background when Arcade is shown */
body:has(.arcade-shell) {
  background: var(--curator-page, #f7f3ea) !important;
  background-image:
    radial-gradient(rgba(30, 27, 22, 0.018) 1px, transparent 1px),
    radial-gradient(rgba(30, 27, 22, 0.018) 1px, transparent 1px) !important;
  background-size: 3px 3px, 5px 5px !important;
  background-position: 0 0, 1px 2px !important;
  color: #1e1b16;
}
body:has(.arcade-shell) .app-shell {
  padding: 0;
  margin: 0;
  max-width: none;
}

/* ── Arcade hero card ── */
.hero-card-arcade {
  background: var(--curator-surface);
  border: 1px solid var(--curator-hairline);
  box-shadow: var(--curator-shadow-soft);
  backdrop-filter: none;
  border-radius: 9px;
  padding: 18px 22px;
}
.hero-card-arcade .eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--curator-ink-muted);
  font-weight: 500;
}
.hero-card-arcade .hero-title {
  font-family: var(--curator-serif);
  font-size: 34px;
  font-weight: 500;
  color: var(--curator-ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero-card-arcade .hero-copy {
  font-family: var(--curator-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--curator-ink-muted);
  margin-top: 6px;
}
.hero-card-arcade .pill-link {
  border-color: var(--curator-hairline);
  background: var(--curator-surface);
  color: var(--curator-ink-muted);
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
}
.hero-card-arcade .pill-link:hover {
  color: var(--curator-ink);
  border-color: var(--curator-accent);
  background: var(--curator-card-hover);
}
.hero-card-arcade .pill-link-active {
  border-color: var(--curator-accent);
  background: var(--curator-accent-soft);
  color: var(--curator-accent-ink);
}
.hero-card-arcade .status-badge {
  border-color: var(--curator-hairline);
  background: var(--curator-surface);
  color: var(--curator-ink-muted);
  font-size: 11px;
}
.hero-card-arcade .status-badge-live .status-badge-dot {
  background: var(--curator-accent);
  box-shadow: 0 0 0 3px var(--curator-accent-soft);
}

/* ── Arcade summary grid (Board-style 1px gap grid) ── */
.arcade-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--curator-hairline);
  border: 1px solid var(--curator-hairline);
  border-radius: 9px;
  overflow: hidden;
  margin-top: 18px;
}
.arcade-summary-grid .metric-card {
  background: var(--curator-surface);
  border: 0;
  border-radius: 0;
  padding: 14px 18px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  backdrop-filter: none;
}
.arcade-summary-grid .metric-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--curator-ink-muted);
  font-weight: 500;
  margin: 0 0 4px;
}
.arcade-summary-grid .metric-value {
  font-family: var(--curator-serif);
  font-weight: 500;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  color: var(--curator-ink);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}
.arcade-summary-grid .metric-detail {
  font-size: 11.5px;
  color: var(--curator-ink-faint);
  margin: 2px 0 0;
}

/* ── Arcade section cards ── */
.arcade-stage-card {
  display: grid;
  gap: 1rem;
  background: var(--curator-surface);
  border: 1px solid var(--curator-hairline);
  box-shadow: var(--curator-shadow-soft);
  border-radius: 9px;
  padding: 18px 22px;
  margin-top: 18px;
  backdrop-filter: none;
}
.arcade-stage-card .section-title {
  font-family: var(--curator-serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--curator-ink);
  letter-spacing: -0.01em;
}
.arcade-stage-card .section-copy {
  font-size: 12px;
  color: var(--curator-ink-muted);
  margin-top: 3px;
}

.arcade-canvas-wrap {
  aspect-ratio: 42 / 22;
  min-height: 300px;
  border-radius: 8px;
  overflow: hidden;
  background: #2a3040;
}

.arcade-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.arcade-stage-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  color: var(--curator-ink-faint);
  font-size: 12px;
  font-family: var(--curator-mono);
}

.arcade-stage-scroll {
  overflow-x: auto;
  padding-bottom: 0.4rem;
}

/* ── Stage: the office building ───────────────────────────────── */
.arcade-stage {
  position: relative;
  min-width: 1040px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  border: 3px solid #252d3c;
  box-shadow: 0 16px 48px rgba(10, 14, 24, 0.28);
  background:
    url("/pixel-assets/assets/floors/floor_6.png") 0 0 / 32px 32px repeat,
    #343c4c;
  image-rendering: pixelated;
}

.arcade-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(255, 220, 140, 0.05), transparent 40%),
    radial-gradient(ellipse at 75% 60%, rgba(140, 200, 255, 0.04), transparent 35%);
}

/* ── Rooms: shared base ──────────────────────────────────────── */
.arcade-room {
  position: absolute;
  overflow: hidden;
  border-radius: 10px;
  border: 2px solid rgba(200, 210, 230, 0.2);
  box-shadow:
    0 4px 12px rgba(8, 12, 20, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  image-rendering: pixelated;
  /* default floor — overridden per room */
  background: url("/pixel-assets/assets/floors/floor_3.png") 0 0 / 32px 32px repeat, #3a4050;
}

.arcade-room::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 40%);
}

.arcade-room-live {
  border-color: rgba(99, 250, 202, 0.45);
  box-shadow:
    0 0 0 2px rgba(99, 250, 202, 0.15),
    0 4px 12px rgba(8, 12, 20, 0.2),
    inset 0 1px 0 rgba(99, 250, 202, 0.1);
}

/* ── Room themes (NO checkerboard tiles: avoid floor_7/8) ──── */
.arcade-room-backlog {
  background: url("/pixel-assets/assets/floors/floor_4.png") 0 0 / 32px 32px repeat, #3c3654;
  border-color: rgba(160, 140, 200, 0.25);
}

.arcade-room-todo {
  background: url("/pixel-assets/assets/floors/floor_5.png") 0 0 / 32px 32px repeat, #44381e;
  border-color: rgba(220, 180, 100, 0.2);
}

.arcade-room-implementing {
  background: url("/pixel-assets/assets/floors/floor_1.png") 0 0 / 32px 32px repeat, #2a3c3e;
  border-color: rgba(100, 210, 190, 0.2);
}

.arcade-room-ready {
  background: url("/pixel-assets/assets/floors/floor_5.png") 0 0 / 32px 32px repeat, #2c3e38;
  border-color: rgba(120, 210, 180, 0.2);
}

.arcade-room-review {
  background: url("/pixel-assets/assets/floors/floor_2.png") 0 0 / 32px 32px repeat, #2a3048;
  border-color: rgba(120, 160, 230, 0.2);
}

.arcade-room-lounge {
  background: url("/pixel-assets/assets/floors/floor_0.png") 0 0 / 32px 32px repeat, #3e3428;
  border-style: dashed;
  border-color: rgba(200, 180, 140, 0.22);
}

.arcade-room-pr {
  background: url("/pixel-assets/assets/floors/floor_6.png") 0 0 / 32px 32px repeat, #382e3c;
  border-color: rgba(200, 150, 180, 0.2);
}

.arcade-room-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.35rem;
  padding: 0.55rem 0.6rem 0;
}

.arcade-room-title {
  margin: 0;
  color: #f6f8ff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.arcade-room-subtitle {
  margin: 0.18rem 0 0;
  color: rgba(223, 229, 255, 0.72);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
}

.arcade-room-counts {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.arcade-room-count,
.arcade-room-live-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.7rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.arcade-room-count {
  background: rgba(10, 14, 22, 0.54);
  border: 1px solid rgba(220, 228, 255, 0.14);
  color: #f7f9ff;
}

.arcade-room-live-pill {
  background: rgba(99, 250, 202, 0.16);
  border: 1px solid rgba(99, 250, 202, 0.3);
  color: #b9fff0;
}

.arcade-prop {
  position: absolute;
  z-index: 1;
  image-rendering: pixelated;
  pointer-events: none;
}

.arcade-issue-stack {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.8rem;
  z-index: 2;
  display: grid;
  gap: 0.35rem;
}

.arcade-issue-chip,
.arcade-issue-overflow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.3rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(223, 229, 255, 0.18);
  background: rgba(9, 13, 20, 0.62);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  color: #f7f9ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.arcade-issue-chip:hover {
  color: white;
  border-color: rgba(99, 250, 202, 0.42);
  background: rgba(13, 18, 27, 0.82);
}

.arcade-issue-chip-live {
  border-color: rgba(99, 250, 202, 0.34);
  color: #bffcef;
}

.arcade-issue-phase {
  color: rgba(189, 250, 246, 0.74);
  font-size: 0.68rem;
}

.arcade-issue-overflow {
  color: rgba(223, 229, 255, 0.76);
}

.pixel-agent {
  position: absolute;
  z-index: 4;
  width: 32px;
  transform: translate(-50%, -84%);
  transition:
    left 820ms linear,
    top 820ms linear;
  will-change: left, top;
}

.pixel-agent-tag {
  width: max-content;
  max-width: 7rem;
  margin: 0 auto 0.15rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.88);
  border: 1px solid rgba(99, 250, 202, 0.24);
  color: #f7f9ff;
  font-size: 0.6rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.pixel-agent-emote {
  position: absolute;
  top: -4px;
  right: 0;
  z-index: 5;
  font-size: 11px;
  line-height: 1;
  pointer-events: none;
  animation: emote-bounce 2s ease-in-out infinite;
}

@keyframes emote-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.pixel-agent-bubble {
  width: max-content;
  max-width: 12rem;
  margin: 0 auto 0.15rem;
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
  background: rgba(246, 248, 255, 0.96);
  border: 1px solid rgba(226, 232, 255, 0.74);
  color: #1d2536;
  font-size: 0.6rem;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 6px 16px rgba(8, 14, 24, 0.14);
}

.pixel-agent-bubble-streaming::after {
  content: " ···";
  animation: bubble-dots 1.4s steps(3) infinite;
  color: rgba(29, 37, 54, 0.45);
}

@keyframes bubble-dots {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

.pixel-agent-bubble-lounge {
  background: rgba(255, 240, 200, 0.92);
  border-color: rgba(220, 200, 160, 0.6);
  color: #3d3020;
  font-style: italic;
}

.pixel-agent-lounge {
  opacity: 0.78;
}

.pixel-agent-sprite {
  width: 32px;
  height: 64px;
  margin: 0 auto;
  background-repeat: no-repeat;
  background-size: 224px 192px;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 12px rgba(5, 8, 14, 0.3));
  --row: 0px;
}

.pixel-agent-sprite-down {
  --row: 0px;
}

.pixel-agent-sprite-up {
  --row: -64px;
}

.pixel-agent-sprite-right {
  --row: -128px;
}

.pixel-agent-sprite-left {
  --row: -128px;
  transform: scaleX(-1);
}

.pixel-agent-sprite-idle {
  background-position: -32px var(--row);
}

.pixel-agent-sprite-walking {
  animation: pixel-agent-walk 660ms steps(1) infinite;
}

.pixel-agent-sprite-typing {
  animation: pixel-agent-type 440ms steps(1) infinite;
}

.pixel-agent-sprite-reading {
  animation: pixel-agent-read 840ms steps(1) infinite;
}

.arcade-idle-callout {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 5;
  max-width: 16rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(223, 229, 255, 0.16);
  background: rgba(9, 13, 20, 0.82);
  color: rgba(247, 249, 255, 0.86);
  font-size: 0.82rem;
  line-height: 1.45;
}

.arcade-feed-card {
  display: grid;
  gap: 1rem;
  background: var(--curator-surface);
  border: 1px solid var(--curator-hairline);
  box-shadow: var(--curator-shadow-soft);
  border-radius: 9px;
  padding: 18px 22px;
  margin-top: 18px;
  backdrop-filter: none;
}
.arcade-feed-card .section-title {
  font-family: var(--curator-serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--curator-ink);
  letter-spacing: -0.01em;
}
.arcade-feed-card .section-copy {
  font-size: 12px;
  color: var(--curator-ink-muted);
  margin-top: 3px;
}

.arcade-feed-grid {
  display: grid;
  gap: 1px;
  background: var(--curator-hairline);
  border: 1px solid var(--curator-hairline);
  border-radius: 9px;
  overflow: hidden;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.arcade-feed-panel {
  border: 0;
  border-radius: 0;
  padding: 14px 18px;
  background: var(--curator-surface);
}

.arcade-feed-title {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--curator-ink-muted);
  font-weight: 500;
}

.arcade-feed-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.arcade-feed-item {
  display: grid;
  gap: 2px;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--curator-hairline);
  background: var(--curator-card);
  box-shadow: var(--curator-shadow-soft);
}

.arcade-feed-item:hover {
  border-color: var(--curator-hairline-soft);
  background: var(--curator-card-hover);
  box-shadow: var(--curator-shadow-lift);
  transform: translateY(-1px);
}

.arcade-feed-item-static:hover {
  border-color: var(--curator-hairline);
  background: var(--curator-card);
  box-shadow: var(--curator-shadow-soft);
  transform: none;
}

.arcade-feed-item-id {
  font-family: var(--curator-mono);
  font-size: 10.5px;
  font-weight: 400;
  color: var(--curator-ink-muted);
  letter-spacing: 0.02em;
}

.arcade-feed-item-copy {
  color: var(--curator-ink-secondary);
  font-size: 13px;
}

@keyframes pixel-agent-walk {
  0% {
    background-position: 0 var(--row);
  }

  33% {
    background-position: -32px var(--row);
  }

  66% {
    background-position: -64px var(--row);
  }

  100% {
    background-position: -32px var(--row);
  }
}

@keyframes pixel-agent-type {
  0% {
    background-position: -96px var(--row);
  }

  100% {
    background-position: -128px var(--row);
  }
}

@keyframes pixel-agent-read {
  0% {
    background-position: -160px var(--row);
  }

  100% {
    background-position: -192px var(--row);
  }
}

@media (max-width: 860px) {
  .app-shell {
    padding: 1rem 0.85rem 2rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .status-stack {
    justify-items: start;
  }

  .status-stack-inner {
    justify-items: start;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .board-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arcade-summary-grid,
  .arcade-feed-grid {
    grid-template-columns: 1fr;
  }

  .board-modal {
    padding: 1rem;
    border-radius: 22px;
  }
}

@media (max-width: 560px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .board-summary-grid {
    grid-template-columns: 1fr;
  }

  .arcade-stage {
    min-width: 920px;
  }

  .board-columns {
    gap: 0.75rem;
  }

  .board-modal-backdrop {
    padding: 0.75rem;
  }

  .board-modal-header {
    grid-template-columns: 1fr;
  }

  .section-card,
  .hero-card,
  .error-card {
    border-radius: 20px;
    padding: 1rem;
  }
}

/* ============================================================== */
/* ==========  Curator's Desk — Board tab only  ================= */
/* ============================================================== */
/* Scoped under .board-shell-curator to avoid bleeding into        */
/* Operations / Arcade. Existing .board-* styles are overridden    */
/* by higher specificity (.board-shell-curator .board-*).          */

.board-shell-curator {
  --curator-page: #f7f3ea;
  --curator-page-grain: rgba(30, 27, 22, 0.018);
  --curator-surface: #fcfaf5;
  --curator-card: #fcfaf5;
  --curator-card-hover: #fffdf7;
  --curator-ink: #1e1b16;
  --curator-ink-secondary: #332f28;
  --curator-ink-muted: #7a726a;
  --curator-ink-faint: #b5ada3;
  --curator-hairline: #e5dfd0;
  --curator-hairline-soft: #ece6d7;
  --curator-accent: #3f5c47;
  --curator-accent-soft: #e4eade;
  --curator-accent-ink: #2d4233;

  --curator-s-todo: #9aa39a;
  --curator-s-inprog: #c7984a;
  --curator-s-review: #a86b4c;
  --curator-s-ready: #5b6b85;
  --curator-s-pr: #3f5c47;
  --curator-s-rework: #b9563f;
  --curator-s-done: #4e6b55;
  --curator-s-cancel: #8a8478;

  --curator-shadow-soft: 0 1px 2px rgba(30, 27, 22, 0.04), 0 2px 6px rgba(30, 27, 22, 0.04);
  --curator-shadow-lift: 0 2px 4px rgba(30, 27, 22, 0.05), 0 8px 20px rgba(30, 27, 22, 0.06);
  --curator-shadow-modal: 0 4px 12px rgba(30, 27, 22, 0.08), 0 32px 80px rgba(30, 27, 22, 0.16);

  --curator-sans: "Inter", "Pretendard", -apple-system, BlinkMacSystemFont, "Sohne", sans-serif;
  --curator-serif: "Fraunces", "Pretendard", Georgia, serif;
  --curator-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  font-family: var(--curator-sans);
  color: var(--curator-ink);
  font-size: 13.5px;
  letter-spacing: -0.003em;
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 28px 20px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

/* Warm paper background on body when Board is shown */
body:has(.board-shell-curator) {
  background: var(--curator-page, #f7f3ea) !important;
  background-image:
    radial-gradient(rgba(30, 27, 22, 0.018) 1px, transparent 1px),
    radial-gradient(rgba(30, 27, 22, 0.018) 1px, transparent 1px) !important;
  background-size: 3px 3px, 5px 5px !important;
  background-position: 0 0, 1px 2px !important;
  color: #1e1b16;
  overflow: hidden;
  height: 100vh;
}
body:has(.board-shell-curator) .app-shell {
  height: 100vh;
  overflow: hidden;
  padding: 0;
  margin: 0;
  max-width: none;
}

/* --- Slim top bar --- */
.board-shell-curator .board-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  margin-bottom: 26px;
}
.board-shell-curator .board-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.board-shell-curator .board-topbar-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--curator-ink);
  position: relative;
  display: inline-block;
}
.board-shell-curator .board-topbar-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--curator-page);
}
.board-shell-curator .board-topbar-name {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.008em;
  color: var(--curator-ink);
}
.board-shell-curator .board-topbar-sep {
  width: 1px;
  height: 16px;
  background: var(--curator-hairline);
  display: inline-block;
}
.board-shell-curator .board-topbar-section {
  font-family: var(--curator-mono);
  font-size: 11px;
  color: var(--curator-ink-muted);
  letter-spacing: 0.02em;
}

.board-shell-curator .board-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.board-shell-curator .board-tabs {
  display: inline-flex;
  gap: 2px;
}
.board-shell-curator .board-tab {
  font-family: var(--curator-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--curator-ink-muted);
  transition: background 140ms ease, color 140ms ease;
  letter-spacing: -0.005em;
  text-decoration: none;
}
.board-shell-curator .board-tab:hover {
  color: var(--curator-ink);
  background: var(--curator-hairline-soft);
}
.board-shell-curator .board-tab-active {
  background: var(--curator-accent-soft);
  color: var(--curator-accent-ink);
}
.board-shell-curator .board-tab-active:hover {
  color: var(--curator-accent-ink);
  background: var(--curator-accent-soft);
}

.board-shell-curator .board-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--curator-ink-muted);
  padding: 0 10px 0 9px;
  height: 26px;
  border: 1px solid var(--curator-hairline);
  border-radius: 999px;
  background: var(--curator-surface);
}
.board-shell-curator .board-live-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--curator-accent);
  box-shadow: 0 0 0 3px rgba(63, 92, 71, 0.14);
  animation: curator-pulse 2.2s ease-in-out infinite;
}
@keyframes curator-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(63, 92, 71, 0.14); }
  50%      { box-shadow: 0 0 0 5px rgba(63, 92, 71, 0.06); }
}

/* --- Page head --- */
.board-shell-curator .board-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}
.board-shell-curator .board-eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--curator-ink-muted);
  font-weight: 500;
  margin: 0 0 8px;
}
.board-shell-curator .board-page-title {
  font-family: var(--curator-serif);
  font-weight: 500;
  font-size: 34px;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--curator-ink);
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.board-shell-curator .board-page-title-sub {
  font-family: var(--curator-serif);
  font-style: italic;
  font-size: 14px;
  font-weight: 400;
  color: var(--curator-ink-muted);
  letter-spacing: -0.005em;
}
.board-shell-curator .board-page-updated {
  font-family: var(--curator-mono);
  font-size: 11px;
  color: var(--curator-ink-faint);
  white-space: nowrap;
  text-align: right;
}
.board-shell-curator .board-page-updated-label {
  display: block;
  font-family: var(--curator-sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--curator-ink-muted);
  margin-bottom: 4px;
}
.board-shell-curator .board-page-updated-time {
  font-family: var(--curator-mono);
  color: var(--curator-ink);
}

/* --- Stats row (reuses .board-summary-grid / .metric-card) --- */
.board-shell-curator .board-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--curator-hairline);
  border: 1px solid var(--curator-hairline);
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 0;
}
.board-shell-curator .board-summary-grid .metric-card {
  background: var(--curator-surface);
  border: 0;
  border-radius: 0;
  padding: 14px 18px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
}
.board-shell-curator .board-summary-grid .metric-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--curator-ink-muted);
  font-weight: 500;
  margin: 0 0 4px;
}
.board-shell-curator .board-summary-grid .metric-value {
  font-family: var(--curator-serif);
  font-weight: 500;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  color: var(--curator-ink);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}
.board-shell-curator .board-summary-grid .metric-value-small {
  font-family: var(--curator-mono);
  font-size: 12px;
  color: var(--curator-ink);
  letter-spacing: 0;
  line-height: 1.3;
  font-weight: 400;
}
.board-shell-curator .board-summary-grid .metric-detail {
  font-size: 11.5px;
  color: var(--curator-ink-faint);
  margin: 2px 0 0;
}

/* --- Board columns --- */
.board-shell-curator .board-columns {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 10px;
  margin: 0 -12px;
  padding: 0 12px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  flex: 1;
  min-height: 0;
}
.board-shell-curator .board-columns::-webkit-scrollbar { height: 6px; }
.board-shell-curator .board-columns::-webkit-scrollbar-track { background: transparent; }
.board-shell-curator .board-columns::-webkit-scrollbar-thumb {
  background: var(--curator-hairline);
  border-radius: 999px;
}

.board-shell-curator .board-column {
  min-width: 190px;
  height: 100%;
  min-height: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.board-shell-curator .board-column .section-header {
  padding: 0 4px 10px;
  border-bottom: 1px solid var(--curator-hairline);
  margin-bottom: 12px;
  margin-top: 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}
.board-shell-curator .board-column .section-header::before {
  content: none;
}

.board-shell-curator .board-column-label {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--curator-ink);
  font-weight: 600;
  margin: 0;
}
.board-shell-curator .board-column-meta {
  display: none;
}

.board-shell-curator .board-hint-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--curator-serif);
  font-style: italic;
  font-size: 12px;
  color: var(--curator-ink-faint);
  letter-spacing: 0;
}
.board-shell-curator .board-hint-dash {
  width: 18px;
  height: 1px;
  background: var(--curator-hairline);
  display: inline-block;
  flex-shrink: 0;
}
.board-shell-curator .board-column-count {
  font-family: var(--curator-mono);
  font-size: 11px;
  color: var(--curator-ink-muted);
  font-variant-numeric: tabular-nums;
  background: transparent;
  border: 0;
  padding: 0;
  min-width: 0;
}
.board-shell-curator .board-column-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.board-shell-curator .board-column-action {
  font-family: var(--curator-sans);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--curator-accent-soft);
  color: var(--curator-accent-ink);
  border: 1px solid rgba(63, 92, 71, 0.18);
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
}
.board-shell-curator .board-column-action:hover {
  transform: none;
  background: rgba(63, 92, 71, 0.16);
  box-shadow: none;
}
.board-shell-curator .board-card-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  padding-right: 4px;
}
.board-shell-curator .board-card-stack::-webkit-scrollbar { width: 5px; }
.board-shell-curator .board-card-stack::-webkit-scrollbar-track { background: transparent; }
.board-shell-curator .board-card-stack::-webkit-scrollbar-thumb {
  background: var(--curator-hairline);
  border-radius: 999px;
}

/* --- Cards --- */
.board-shell-curator .board-card {
  background: var(--curator-card);
  border: 1px solid var(--curator-hairline);
  border-radius: 9px;
  padding: 11px 12px 10px;
  box-shadow: var(--curator-shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--curator-ink);
}
.board-shell-curator .board-card:hover {
  transform: translateY(-1px);
  background: var(--curator-card-hover);
  box-shadow: var(--curator-shadow-lift);
  border-color: #d9d1bd;
}
.board-shell-curator .board-card.board-card-live {
  border-color: var(--curator-accent);
  box-shadow: 0 0 0 3px rgba(63, 92, 71, 0.08), var(--curator-shadow-soft);
}
.board-shell-curator .board-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  margin: 0;
  border: 0;
}
.board-shell-curator .board-card-id {
  font-family: var(--curator-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--curator-ink-muted);
  letter-spacing: 0.02em;
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.board-shell-curator .board-card-source {
  display: inline-flex;
  align-items: center;
  color: var(--curator-ink-muted);
  opacity: 0.5;
  transition: opacity 150ms ease, color 150ms ease;
  padding: 2px;
  border-radius: 4px;
}
.board-shell-curator .board-card-source:hover {
  opacity: 1;
  color: var(--curator-accent);
  background: transparent;
}
.board-shell-curator .board-card:hover .board-card-source { opacity: 0.85; }
.board-shell-curator .board-card-source svg {
  width: 12px;
  height: 12px;
  display: block;
}

.board-shell-curator .board-card-title {
  font-family: var(--curator-sans);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.43;
  color: var(--curator-ink);
  letter-spacing: -0.005em;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.board-shell-curator .board-card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--curator-ink-muted);
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 400;
}
.board-shell-curator .board-card-priority {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--curator-ink-muted);
}
.board-shell-curator .board-card-priority-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #d5cfc2;
}
.board-shell-curator .board-card-priority-dot.prio-none { background: #d5cfc2; }
.board-shell-curator .board-card-priority-dot.prio-low { background: #9aa39a; }
.board-shell-curator .board-card-priority-dot.prio-med { background: #c7984a; }
.board-shell-curator .board-card-priority-dot.prio-high { background: #a86b4c; }
.board-shell-curator .board-card-priority-dot.prio-urgent { background: #b9563f; }
.board-shell-curator .board-card-meta-sep { color: var(--curator-ink-faint); }
.board-shell-curator .board-card-time { color: var(--curator-ink-muted); }

/* Phase line (live agent state) */
.board-shell-curator .board-card-phase {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 7px;
  margin-top: 1px;
  border-top: 1px dashed var(--curator-hairline-soft);
  font-family: var(--curator-serif);
  font-style: italic;
  font-size: 11.5px;
  color: var(--curator-ink-muted);
  letter-spacing: 0;
}
.board-shell-curator .board-card-phase-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--curator-ink-faint);
  box-shadow: 0 0 0 3px rgba(122, 114, 106, 0.1);
}
.board-shell-curator .board-card-phase.running .board-card-phase-dot {
  background: var(--curator-accent);
  box-shadow: 0 0 0 3px rgba(63, 92, 71, 0.14);
  animation: curator-pulse 2.2s ease-in-out infinite;
}
.board-shell-curator .board-card-phase-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card inline actions (move to todo) */
.board-shell-curator .board-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 3px;
}
.board-shell-curator .board-inline-action {
  appearance: none;
  border: 1px solid var(--curator-hairline);
  background: var(--curator-surface);
  color: var(--curator-ink-muted);
  border-radius: 4px;
  padding: 4px 9px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: none;
  cursor: pointer;
  font-family: var(--curator-sans);
  transition: all 140ms ease;
}
.board-shell-curator .board-inline-action:hover {
  transform: none;
  color: var(--curator-ink);
  border-color: #d9d1bd;
  background: var(--curator-card-hover);
  box-shadow: none;
}

/* Empty columns */
.board-shell-curator .board-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 8px;
  font-family: var(--curator-serif);
  font-style: italic;
  font-size: 12px;
  color: var(--curator-ink-faint);
  background: transparent;
  border: 1px dashed var(--curator-hairline-soft);
  border-radius: 9px;
  min-height: 60px;
  text-align: center;
  letter-spacing: 0;
}

/* Flash messages in Curator tone */
.board-shell-curator .board-flash-stack {
  margin-bottom: 18px;
}
.board-shell-curator .board-flash {
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 13px;
  border: 1px solid var(--curator-hairline);
  background: var(--curator-surface);
  color: var(--curator-ink);
}
.board-shell-curator .board-flash-info {
  background: var(--curator-accent-soft);
  border-color: rgba(63, 92, 71, 0.22);
  color: var(--curator-accent-ink);
}
.board-shell-curator .board-flash-error {
  background: rgba(185, 86, 63, 0.08);
  border-color: rgba(185, 86, 63, 0.25);
  color: #6d2b1c;
}

/* Runtime pulse card — tone down to match */
.board-shell-curator .board-runtime-card {
  margin-top: 28px;
  background: var(--curator-surface);
  border: 1px solid var(--curator-hairline);
  border-radius: 9px;
  box-shadow: none;
  padding: 18px 22px;
}
.board-shell-curator .board-runtime-card .section-title {
  font-family: var(--curator-serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--curator-ink);
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.board-shell-curator .board-runtime-card .section-copy {
  font-family: var(--curator-serif);
  font-style: italic;
  font-size: 12px;
  color: var(--curator-ink-muted);
  margin: 0;
}
.board-shell-curator .board-runtime-card .section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  border: 0;
}
.board-shell-curator .board-runtime-card .hero-actions {
  display: flex;
  gap: 8px;
}
.board-shell-curator .board-runtime-card .pill-link {
  font-family: var(--curator-sans);
  font-size: 11.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--curator-hairline);
  background: var(--curator-surface);
  color: var(--curator-ink-muted);
  box-shadow: none;
  letter-spacing: 0;
}
.board-shell-curator .board-runtime-card .pill-link:hover {
  color: var(--curator-ink);
  background: var(--curator-card-hover);
  border-color: #d9d1bd;
  box-shadow: none;
}
.board-shell-curator .runtime-pulse-grid {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
  color: var(--curator-ink-muted);
}
.board-shell-curator .runtime-pulse-grid strong {
  font-family: var(--curator-mono);
  color: var(--curator-ink);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* =====  Detail modal (Curator)  ===== */
.board-shell-curator .board-modal-backdrop {
  background: rgba(30, 27, 22, 0.28);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.board-shell-curator .board-modal-overlay {
  background: transparent;
}
.board-shell-curator .board-modal {
  background: var(--curator-surface);
  border: 1px solid var(--curator-hairline);
  border-radius: 14px;
  box-shadow: var(--curator-shadow-modal);
  max-width: 780px;
  width: min(780px, 100%);
  max-height: min(85vh, 920px);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.board-shell-curator .board-modal-header {
  flex-shrink: 0;
}
.board-shell-curator .board-modal-actions {
  flex-shrink: 0;
}
.board-shell-curator .board-modal-sections {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  background: #ffffff;
  border-top: 1px solid var(--curator-hairline);
}
.board-shell-curator .board-modal-sections::-webkit-scrollbar { width: 6px; }
.board-shell-curator .board-modal-sections::-webkit-scrollbar-thumb {
  background: var(--curator-hairline);
  border-radius: 999px;
}
.board-shell-curator .board-modal-sections::-webkit-scrollbar-track {
  background: transparent;
}
.board-shell-curator .board-modal-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--curator-hairline);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: transparent;
}
.board-shell-curator .board-modal-eyebrow {
  font-family: var(--curator-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--curator-ink);
  letter-spacing: 0.02em;
  margin: 0 0 6px;
  text-transform: none;
}
.board-shell-curator .board-modal-title {
  font-family: var(--curator-serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  color: var(--curator-ink);
  letter-spacing: -0.015em;
  margin: 0;
}
.board-shell-curator .board-modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--curator-ink-muted);
  margin: 8px 0 0;
  flex-wrap: wrap;
}
.board-shell-curator .board-modal-meta span {
  display: inline-flex;
  align-items: center;
}
.board-shell-curator .board-modal-close {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  height: 28px;
  line-height: 1;
  font-size: 11.5px;
  color: var(--curator-ink-muted);
  background: transparent;
  border: 1px solid var(--curator-hairline);
  border-radius: 6px;
  letter-spacing: -0.003em;
  font-family: var(--curator-sans);
  font-weight: 500;
  box-shadow: none;
  cursor: pointer;
}
.board-shell-curator .board-modal-close:hover {
  color: var(--curator-ink);
  border-color: #d9d1bd;
  background: var(--curator-card-hover);
  transform: none;
  box-shadow: none;
}
.board-shell-curator .board-modal-close-back {
  color: var(--curator-accent-ink);
  background: var(--curator-accent-soft);
  border-color: rgba(63, 92, 71, 0.22);
}
.board-shell-curator .board-modal-close-back:hover {
  background: rgba(63, 92, 71, 0.16);
  color: var(--curator-accent-ink);
  border-color: rgba(63, 92, 71, 0.32);
}
.board-shell-curator .board-modal-close-back-icon {
  width: 11px;
  height: 11px;
  display: block;
}

/* Header-right actions cluster (Linear, JSON, Go to Todo, Close) */
.board-shell-curator .board-modal-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.board-shell-curator .board-modal-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-family: var(--curator-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--curator-ink-muted);
  background: transparent;
  border: 1px solid var(--curator-hairline);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: -0.003em;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
  box-shadow: none;
  height: 28px;
  line-height: 1;
}
.board-shell-curator .board-modal-chip:hover {
  color: var(--curator-ink);
  border-color: #d9d1bd;
  background: var(--curator-card-hover);
  transform: none;
  box-shadow: none;
}
.board-shell-curator .board-modal-chip-icon {
  width: 12px;
  height: 12px;
  display: block;
  color: var(--curator-ink-muted);
}
.board-shell-curator .board-modal-chip:hover .board-modal-chip-icon {
  color: var(--curator-accent);
}
.board-shell-curator .board-modal-chip-mono {
  font-family: var(--curator-mono);
  font-size: 10.5px;
  color: var(--curator-ink-faint);
  letter-spacing: 0;
}
.board-shell-curator .board-modal-chip-ghost {
  color: var(--curator-ink-faint);
}
.board-shell-curator .board-modal-chip-accent {
  color: var(--curator-accent-ink);
  background: var(--curator-accent-soft);
  border-color: rgba(63, 92, 71, 0.22);
}
.board-shell-curator .board-modal-chip-accent:hover {
  background: rgba(63, 92, 71, 0.16);
  color: var(--curator-accent-ink);
  border-color: rgba(63, 92, 71, 0.32);
}
.board-shell-curator .board-modal-actions {
  padding: 12px 22px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: transparent;
  border: 0;
}
.board-shell-curator .board-modal-actions .pill-link {
  font-family: var(--curator-sans);
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--curator-hairline);
  background: var(--curator-surface);
  color: var(--curator-ink-muted);
  letter-spacing: 0;
  box-shadow: none;
}
.board-shell-curator .board-modal-actions .pill-link:hover {
  color: var(--curator-ink);
  background: var(--curator-card-hover);
  border-color: #d9d1bd;
  box-shadow: none;
}
.board-shell-curator .board-modal-inline-button {
  font-family: var(--curator-sans);
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(63, 92, 71, 0.22);
  background: var(--curator-accent-soft);
  color: var(--curator-accent-ink);
  letter-spacing: 0;
  box-shadow: none;
  cursor: pointer;
}
.board-shell-curator .board-modal-inline-button:hover {
  background: rgba(63, 92, 71, 0.16);
  transform: none;
  box-shadow: none;
}
.board-shell-curator .board-modal-sections {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.board-shell-curator .board-modal-section {
  padding: 0;
  background: transparent;
  border: 0;
}
.board-shell-curator .board-modal-section-title {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--curator-ink-muted);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.board-shell-curator .board-modal-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--curator-hairline-soft);
}
.board-shell-curator .board-markdown-content {
  font-family: var(--curator-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--curator-ink-secondary);
}
.board-shell-curator .board-markdown-content a {
  color: var(--curator-accent-ink);
  text-decoration: underline;
  text-decoration-color: rgba(63, 92, 71, 0.3);
  text-underline-offset: 2px;
}
.board-shell-curator .board-markdown-content a:hover {
  color: var(--curator-accent);
}
.board-shell-curator .board-markdown-content blockquote {
  font-family: var(--curator-serif);
  font-style: italic;
  font-size: 14.5px;
  color: var(--curator-ink-muted);
  padding: 6px 14px;
  border-left: 2px solid var(--curator-hairline);
  background: transparent;
  margin: 10px 0;
}
.board-shell-curator .board-markdown-content code {
  font-family: var(--curator-mono);
  font-size: 13px;
  background: #f2efe7;
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--curator-accent-ink);
}
.board-shell-curator .board-markdown-content pre {
  background: #faf8f1;
  border: 1px solid var(--curator-hairline);
  border-radius: 9px;
  padding: 12px 14px;
  color: var(--curator-ink);
}
.board-shell-curator .board-markdown-content pre code {
  background: transparent;
  padding: 0;
  color: var(--curator-ink);
}
.board-shell-curator .board-markdown-content table {
  border: 1px solid var(--curator-hairline);
  border-radius: 9px;
  overflow: hidden;
}
.board-shell-curator .board-markdown-content th,
.board-shell-curator .board-markdown-content td {
  border-bottom: 1px solid var(--curator-hairline-soft);
  padding: 8px 12px;
  font-size: 13.5px;
}
.board-shell-curator .board-markdown-content thead th {
  background: #f7f4eb;
  color: var(--curator-ink-muted);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.board-shell-curator .board-action-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.board-shell-curator .board-action-textarea {
  background: var(--curator-card);
  border: 1px solid var(--curator-hairline);
  border-radius: 9px;
  padding: 10px 12px;
  font-family: var(--curator-sans);
  font-size: 13px;
  color: var(--curator-ink);
  line-height: 1.5;
  resize: vertical;
  min-height: 100px;
}
.board-shell-curator .board-action-textarea:focus {
  outline: none;
  border-color: var(--curator-accent);
  box-shadow: 0 0 0 3px rgba(63, 92, 71, 0.12);
}
.board-shell-curator .board-action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.board-shell-curator .board-action-row button {
  font-family: var(--curator-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(63, 92, 71, 0.25);
  background: var(--curator-accent);
  color: #ffffff;
  box-shadow: none;
  letter-spacing: 0;
}
.board-shell-curator .board-action-row button:hover {
  background: #324a39;
  transform: none;
  box-shadow: none;
}
.board-shell-curator .board-action-row button.secondary {
  background: var(--curator-surface);
  color: var(--curator-ink);
  border-color: var(--curator-hairline);
  box-shadow: none;
}
.board-shell-curator .board-action-row button.secondary:hover {
  background: var(--curator-card-hover);
  border-color: #d9d1bd;
  color: var(--curator-ink);
}

/* =====  Archive slot (end of board row)  ===== */
.board-shell-curator .board-archive-slot {
  appearance: none;
  background: rgba(30, 27, 22, 0.03);
  border: 1px dashed var(--curator-hairline);
  border-radius: 9px;
  padding: 18px 14px 16px;
  min-width: 156px;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-family: var(--curator-sans);
  color: var(--curator-ink-muted);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
  box-shadow: none;
  letter-spacing: 0;
  text-align: left;
}
.board-shell-curator .board-archive-slot:hover {
  background: rgba(63, 92, 71, 0.04);
  border-color: rgba(63, 92, 71, 0.3);
  border-style: solid;
  transform: none;
}
.board-shell-curator .board-archive-slot-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--curator-surface);
  border: 1px solid var(--curator-hairline);
  color: var(--curator-ink-muted);
}
.board-shell-curator .board-archive-slot-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.board-shell-curator .board-archive-slot:hover .board-archive-slot-icon {
  color: var(--curator-accent);
  border-color: rgba(63, 92, 71, 0.3);
}
.board-shell-curator .board-archive-slot-label {
  font-family: var(--curator-serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--curator-ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.board-shell-curator .board-archive-slot-caption {
  font-family: var(--curator-serif);
  font-style: italic;
  font-size: 12px;
  color: var(--curator-ink-faint);
  line-height: 1.45;
}
.board-shell-curator .board-archive-slot-counts {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding-top: 12px;
  border-top: 1px dashed var(--curator-hairline-soft);
}
.board-shell-curator .board-archive-slot-count {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}
.board-shell-curator .board-archive-slot-count-label {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--curator-ink-muted);
  font-weight: 500;
}
.board-shell-curator .board-archive-slot-count-value {
  font-family: var(--curator-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--curator-ink);
  font-weight: 500;
}

/* =====  Archive modal  ===== */
.board-shell-curator .board-archive-modal {
  max-width: 900px;
  width: 90vw;
}
.board-shell-curator .board-archive-modal-header {
  align-items: flex-start;
  padding: 18px 22px 14px;
}
.board-shell-curator .board-archive-modal-subtitle {
  font-family: var(--curator-serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--curator-ink-muted);
  margin: 6px 0 0;
}
.board-shell-curator .board-archive-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 22px 0;
  border-bottom: 1px solid var(--curator-hairline);
  background: transparent;
}
.board-shell-curator .board-archive-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 6px 11px;
  margin-right: 12px;
  font-family: var(--curator-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--curator-ink-muted);
  cursor: pointer;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 0;
  box-shadow: none;
  transition: color 140ms ease, border-color 140ms ease;
}
.board-shell-curator .board-archive-tab:hover {
  color: var(--curator-ink);
  transform: none;
  box-shadow: none;
  background: transparent;
}
.board-shell-curator .board-archive-tab.is-active {
  color: var(--curator-ink);
  border-bottom-color: var(--curator-accent);
}
.board-shell-curator .board-archive-tab-count {
  font-family: var(--curator-mono);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  color: var(--curator-ink-faint);
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--curator-hairline-soft);
}
.board-shell-curator .board-archive-tab.is-active .board-archive-tab-count {
  color: var(--curator-accent-ink);
  background: var(--curator-accent-soft);
}
.board-shell-curator .board-archive-body {
  padding: 18px 22px 22px;
  overflow-y: auto;
  max-height: 62vh;
}
.board-shell-curator .board-archive-body::-webkit-scrollbar { width: 6px; }
.board-shell-curator .board-archive-body::-webkit-scrollbar-thumb {
  background: var(--curator-hairline);
  border-radius: 999px;
}
.board-shell-curator .board-archive-empty {
  font-family: var(--curator-serif);
  font-style: italic;
  color: var(--curator-ink-faint);
  text-align: center;
  padding: 32px 0;
  margin: 0;
}
.board-shell-curator .board-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.board-shell-curator .board-archive-card {
  background: var(--curator-card);
  border: 1px solid var(--curator-hairline);
  border-radius: 8px;
  padding: 11px 13px 12px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.board-shell-curator .board-archive-card:hover {
  transform: translateY(-1px);
  background: var(--curator-card-hover);
  border-color: #d9d1bd;
  box-shadow: var(--curator-shadow-soft);
}
.board-shell-curator .board-archive-card-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.board-shell-curator .board-archive-card-id {
  font-family: var(--curator-mono);
  font-size: 10.5px;
  color: var(--curator-ink-muted);
  letter-spacing: 0.02em;
}
.board-shell-curator .board-archive-card-time {
  font-size: 10.5px;
  color: var(--curator-ink-faint);
}
.board-shell-curator .board-archive-card-title {
  font-family: var(--curator-sans);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--curator-ink);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.003em;
}

/* Narrow viewport tweaks */
@media (max-width: 1100px) {
  .board-shell-curator .board-page-title { font-size: 28px; }
  .board-shell-curator .board-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .board-shell-curator .board-archive-slot { min-width: 140px; }
}

/* Ensure top-of-page blocks don't stretch when shell is flex column */
.board-shell-curator > .board-topbar,
.board-shell-curator > .board-page-head,
.board-shell-curator > .board-summary-grid,
.board-shell-curator > .board-hint-row,
.board-shell-curator > .board-flash-stack {
  flex-shrink: 0;
}

/* Reduce stats + hint bottom margins for tighter viewport fit */
.board-shell-curator .board-summary-grid { margin-bottom: 18px; }
.board-shell-curator .board-hint-row { margin-bottom: 8px; }
.board-shell-curator .board-page-head { margin-bottom: 18px; }
.board-shell-curator .board-topbar { margin-bottom: 18px; }
@media (max-width: 720px) {
  .board-shell-curator { padding: 16px 18px 36px; }
  .board-shell-curator .board-topbar { flex-wrap: wrap; gap: 10px; height: auto; }
  .board-shell-curator .board-page-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .board-shell-curator .board-summary-grid { grid-template-columns: 1fr; }
  .board-shell-curator .board-topbar-section { display: none; }
}

/* ============================================================== */
/* ==========  Operations · Mission Control (dark + city bg)  === */
/* ============================================================== */
/* Scoped under .dashboard-shell-mc so existing dashboard-shell  */
/* styles for other uses remain intact.                           */

.dashboard-shell-mc {
  --mc-bg: #0a0b0d;
  --mc-bg-panel: #12141a;
  --mc-bg-deep: #06070a;
  --mc-bezel: #1c1f28;
  --mc-hairline: #232631;
  --mc-hairline-dim: #1a1c24;
  --mc-ink: #c5cbd6;
  --mc-ink-dim: #6e7585;
  --mc-ink-faint: #3e434f;
  --mc-phos-green: #7be995;
  --mc-phos-green-glow: rgba(123, 233, 149, 0.45);
  --mc-phos-cyan: #5fc8e2;
  --mc-phos-cyan-glow: rgba(95, 200, 226, 0.4);
  --mc-phos-amber: #f5a623;
  --mc-phos-amber-glow: rgba(245, 166, 35, 0.45);
  --mc-phos-red: #e2524a;
  --mc-phos-red-glow: rgba(226, 82, 74, 0.5);
  --mc-phos-white: #e5ebf0;

  --mc-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --mc-sans: "Inter", "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;

  height: 100vh;
  padding: 14px 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 1720px;
  margin: 0 auto;
  color: var(--mc-ink);
  font-family: var(--mc-mono);
  font-size: 12.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  z-index: 2;
}

/* Body paints deep black + city image behind the shell */
body:has(.dashboard-shell-mc) {
  background: #050608 !important;
  color: var(--mc-ink);
  overflow: hidden !important;
  height: 100vh;
}
body:has(.dashboard-shell-mc) .app-shell {
  height: 100vh;
  padding: 0;
  margin: 0;
  max-width: none;
  overflow: hidden;
}

.dashboard-shell-mc .ops-bg {
  position: fixed;
  inset: 0;
  background-image: url("/aerial-city-night.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
  filter: brightness(0.92) contrast(1.08) saturate(1.10);
}
.dashboard-shell-mc .ops-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(5,6,8,0.20) 0%, rgba(5,6,8,0.08) 40%, rgba(5,6,8,0) 70%, rgba(5,6,8,0.40) 100%);
}

/* Ambient scanlines + CRT flicker */
body:has(.dashboard-shell-mc)::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(255,255,255,0.012) 2px 3px);
  pointer-events: none;
  z-index: 100;
}
@keyframes mc-crt-flicker {
  0%, 100% { opacity: 1; }
  48% { opacity: 0.98; }
  52% { opacity: 1; }
  85% { opacity: 0.992; }
}
body:has(.dashboard-shell-mc)::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  animation: mc-crt-flicker 6s infinite;
  background: transparent;
}

/* --- Header (slim) --- */
.dashboard-shell-mc .mc-header {
  height: 52px;
  min-height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 12px;
  border-bottom: 1px solid var(--mc-hairline);
  position: relative;
  z-index: 2;
}
.dashboard-shell-mc .mc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dashboard-shell-mc .mc-led {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mc-phos-green);
  box-shadow: 0 0 8px var(--mc-phos-green-glow), 0 0 0 2px rgba(123,233,149,0.18);
  animation: mc-pulse 2.4s ease-in-out infinite;
}
@keyframes mc-pulse {
  0%,100% { box-shadow: 0 0 8px var(--mc-phos-green-glow), 0 0 0 2px rgba(123,233,149,0.18); }
  50%     { box-shadow: 0 0 14px var(--mc-phos-green-glow), 0 0 0 4px rgba(123,233,149,0.08); }
}
.dashboard-shell-mc .mc-brand-name {
  font-family: var(--mc-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--mc-phos-white);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dashboard-shell-mc .mc-brand-divider { color: var(--mc-ink-faint); }
.dashboard-shell-mc .mc-brand-sub {
  font-size: 11px;
  color: var(--mc-ink-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dashboard-shell-mc .mc-status {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 11px;
  color: var(--mc-ink-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dashboard-shell-mc .mc-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--mc-hairline);
  border-radius: 3px;
  background: rgba(123,233,149,0.05);
  color: var(--mc-phos-green);
  font-weight: 500;
}
.dashboard-shell-mc .mc-agent-dots {
  display: inline-flex;
  gap: 5px;
}
.dashboard-shell-mc .mc-agent-dots .d { width: 6px; height: 6px; border-radius: 50%; }
.dashboard-shell-mc .mc-agent-dots .d.a { background: var(--mc-phos-green); box-shadow: 0 0 6px var(--mc-phos-green-glow); }
.dashboard-shell-mc .mc-agent-dots .d.b { background: var(--mc-phos-cyan);  box-shadow: 0 0 6px var(--mc-phos-cyan-glow); }
.dashboard-shell-mc .mc-agent-dots .d.c { background: var(--mc-phos-amber); box-shadow: 0 0 6px var(--mc-phos-amber-glow); }

.dashboard-shell-mc .mc-right {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.dashboard-shell-mc .mc-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--mc-hairline);
  border-radius: 999px;
}
.dashboard-shell-mc .mc-tab {
  font-family: var(--mc-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--mc-ink-dim);
  text-decoration: none;
  transition: color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
  cursor: pointer;
  line-height: 1;
  border: none;
  background: transparent;
}
.dashboard-shell-mc .mc-tab:hover { color: var(--mc-phos-white); background: rgba(255,255,255,0.04); }
.dashboard-shell-mc .mc-tab.is-active {
  background: rgba(123,233,149,0.08);
  color: var(--mc-phos-green);
  text-shadow: 0 0 6px var(--mc-phos-green-glow);
  box-shadow: inset 0 0 0 1px rgba(123,233,149,0.22);
}
.dashboard-shell-mc .mc-clock {
  font-family: var(--mc-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--mc-phos-white);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.dashboard-shell-mc .mc-clock .t-label {
  font-size: 10px;
  color: var(--mc-ink-dim);
  letter-spacing: 0.16em;
  margin-right: 8px;
  font-weight: 400;
}

/* --- Main stage --- */
.dashboard-shell-mc .mc-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
}

/* --- Gauges --- */
.dashboard-shell-mc .mc-gauges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  height: 172px;
  flex-shrink: 0;
}
.dashboard-shell-mc .mc-gauge {
  background: rgba(18, 20, 26, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--mc-hairline);
  border-radius: 4px;
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  position: relative;
}
.dashboard-shell-mc .mc-gauge::before {
  content: attr(data-label);
  position: absolute;
  top: -8px;
  left: 12px;
  background: #050608;
  padding: 0 8px;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mc-ink-dim);
}
.dashboard-shell-mc .mc-gauge-svg {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}
.dashboard-shell-mc .mc-gauge-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.dashboard-shell-mc .mc-gauge-value {
  font-size: 22px;
  font-weight: 600;
  color: var(--mc-phos-white);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.dashboard-shell-mc .mc-gauge-unit {
  font-size: 9.5px;
  color: var(--mc-ink-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.dashboard-shell-mc .mc-gauge-contrib {
  display: flex;
  width: 100%;
  gap: 4px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--mc-hairline-dim);
}
.dashboard-shell-mc .mc-contrib-slot {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  color: var(--mc-ink-dim);
  letter-spacing: 0.08em;
}
.dashboard-shell-mc .mc-contrib-bar {
  width: 100%;
  height: 3px;
  background: var(--mc-hairline-dim);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}
.dashboard-shell-mc .mc-contrib-bar i {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  border-radius: 1px;
}
.dashboard-shell-mc .mc-contrib-slot.a i { background: var(--mc-phos-green); box-shadow: 0 0 4px var(--mc-phos-green-glow); }
.dashboard-shell-mc .mc-contrib-slot.b i { background: var(--mc-phos-cyan);  box-shadow: 0 0 4px var(--mc-phos-cyan-glow); }
.dashboard-shell-mc .mc-contrib-slot.c i { background: var(--mc-phos-amber); box-shadow: 0 0 4px var(--mc-phos-amber-glow); }

.dashboard-shell-mc .mc-gauge-track { stroke: var(--mc-hairline); stroke-width: 2; fill: none; }
.dashboard-shell-mc .mc-gauge-fill { stroke: var(--mc-phos-green); stroke-width: 2; fill: none; filter: drop-shadow(0 0 4px var(--mc-phos-green-glow)); }
.dashboard-shell-mc .mc-gauge-fill.cyan { stroke: var(--mc-phos-cyan); filter: drop-shadow(0 0 4px var(--mc-phos-cyan-glow)); }
.dashboard-shell-mc .mc-gauge-fill.amber { stroke: var(--mc-phos-amber); filter: drop-shadow(0 0 4px var(--mc-phos-amber-glow)); }
.dashboard-shell-mc .mc-gauge-tick { stroke: var(--mc-ink-faint); stroke-width: 1; }
.dashboard-shell-mc .mc-gauge-tick.major { stroke: var(--mc-ink-dim); stroke-width: 1.5; }
.dashboard-shell-mc .mc-gauge-needle {
  stroke: var(--mc-phos-white);
  stroke-width: 2;
  stroke-linecap: round;
  transform-origin: 70px 60px;
  filter: drop-shadow(0 0 3px rgba(229,235,240,0.5));
  transition: transform 520ms cubic-bezier(0.4, 0, 0.2, 1);
}
.dashboard-shell-mc .mc-gauge-hub { fill: var(--mc-phos-white); }

/* --- Monitors --- */
.dashboard-shell-mc .mc-monitors {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dashboard-shell-mc .mc-monitor {
  position: relative;
  background: linear-gradient(180deg, rgba(13,16,20,0.74) 0%, rgba(10,12,16,0.78) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--mc-bezel);
  border-radius: 8px;
  padding: 14px 16px 14px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.02),
    inset 0 20px 30px rgba(0,0,0,0.6),
    inset 0 -6px 12px rgba(0,0,0,0.4),
    0 0 0 1px rgba(123,233,149,0.03);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.dashboard-shell-mc .mc-monitor::before {
  content: "";
  position: absolute;
  inset: 8px;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
  border-radius: 4px;
}
.dashboard-shell-mc .mc-monitor::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,0.15) 2px 3px);
  pointer-events: none;
  border-radius: 8px;
  opacity: 0.5;
}
.dashboard-shell-mc .mc-monitor-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mc-ink-dim);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--mc-hairline-dim);
  margin-bottom: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.dashboard-shell-mc .mc-monitor-label .rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mc-phos-green);
}
.dashboard-shell-mc .mc-monitor-label .rec-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--mc-phos-green);
  box-shadow: 0 0 5px var(--mc-phos-green-glow);
  animation: mc-pulse 1.8s infinite;
}

/* Event stream */
.dashboard-shell-mc .mc-event-stream {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.dashboard-shell-mc .mc-event-stream::-webkit-scrollbar { width: 4px; }
.dashboard-shell-mc .mc-event-stream::-webkit-scrollbar-thumb { background: var(--mc-hairline); border-radius: 999px; }
.dashboard-shell-mc .mc-event-stream::-webkit-scrollbar-track { background: transparent; }
.dashboard-shell-mc .mc-evt-section {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 0 6px;
  border-top: 1px dashed var(--mc-hairline-dim);
}
.dashboard-shell-mc .mc-evt-section:first-child { border-top: 0; padding-top: 0; }
.dashboard-shell-mc .mc-evt-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.dashboard-shell-mc .mc-evt-name {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 13px;
}
.dashboard-shell-mc .mc-evt-name.a { color: var(--mc-phos-green); text-shadow: 0 0 6px var(--mc-phos-green-glow); }
.dashboard-shell-mc .mc-evt-name.b { color: var(--mc-phos-cyan);  text-shadow: 0 0 6px var(--mc-phos-cyan-glow); }
.dashboard-shell-mc .mc-evt-name.c { color: var(--mc-phos-amber); text-shadow: 0 0 6px var(--mc-phos-amber-glow); }
.dashboard-shell-mc .mc-evt-count {
  font-size: 10.5px;
  color: var(--mc-ink-dim);
  font-variant-numeric: tabular-nums;
}
.dashboard-shell-mc .mc-evt-row {
  display: grid;
  grid-template-columns: 72px 18px 1fr;
  gap: 8px;
  align-items: start;
  padding: 1px 0;
}
.dashboard-shell-mc .mc-evt-time { color: var(--mc-ink-dim); font-size: 11px; }
.dashboard-shell-mc .mc-evt-arrow { color: var(--mc-ink-faint); padding-top: 1px; }
.dashboard-shell-mc .mc-evt-msg {
  color: var(--mc-ink);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.dashboard-shell-mc .mc-evt-msg .cat {
  display: inline-flex;
  padding: 1px 5px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--mc-hairline);
  border-radius: 2px;
  color: var(--mc-ink-dim);
  flex-shrink: 0;
  margin-top: 1px;
}
.dashboard-shell-mc .mc-evt-msg-text {
  display: block;
  min-width: 0;
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.dashboard-shell-mc .mc-evt-msg .cat.turn { color: var(--mc-phos-cyan);  border-color: rgba(95,200,226,0.35); }
.dashboard-shell-mc .mc-evt-msg .cat.exec { color: var(--mc-phos-amber); border-color: rgba(245,166,35,0.35); }
.dashboard-shell-mc .mc-evt-msg .cat.tool { color: #c89af5;              border-color: rgba(200,154,245,0.35); }
.dashboard-shell-mc .mc-evt-msg .cat.reason { color: var(--mc-phos-green); border-color: rgba(123,233,149,0.35); }
.dashboard-shell-mc .mc-evt-msg .cat.message { color: #d4a5ff; border-color: rgba(212,165,255,0.35); }
.dashboard-shell-mc .mc-evt-msg .cat.life { color: var(--mc-ink);        border-color: var(--mc-hairline); }
.dashboard-shell-mc .mc-evt-msg .cat.error { color: var(--mc-phos-red);  border-color: rgba(226,82,74,0.4); }
.dashboard-shell-mc .mc-evt-empty {
  color: var(--mc-ink-faint);
  font-size: 11.5px;
  font-style: italic;
  padding: 2px 0;
}

/* Agent mind */
.dashboard-shell-mc .mc-agent-mind {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}
.dashboard-shell-mc .mc-agent-mind::-webkit-scrollbar { width: 4px; }
.dashboard-shell-mc .mc-agent-mind::-webkit-scrollbar-thumb { background: var(--mc-hairline); border-radius: 999px; }
.dashboard-shell-mc .mc-mind-panel {
  flex: 1;
  padding: 12px 2px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-top: 1px dashed var(--mc-hairline-dim);
  min-height: 0;
  min-width: 0;
  -webkit-font-smoothing: subpixel-antialiased;
  font-weight: normal;
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
}
.dashboard-shell-mc .mc-mind-panel:first-child { border-top: 0; padding-top: 2px; }
.dashboard-shell-mc .mc-mind-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
  min-width: 0;
  flex-wrap: wrap;
}
.dashboard-shell-mc .mc-mind-identity {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}
.dashboard-shell-mc .mc-mind-name {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 13px;
}
.dashboard-shell-mc .mc-mind-name.a { color: var(--mc-phos-green); text-shadow: 0 0 6px var(--mc-phos-green-glow); }
.dashboard-shell-mc .mc-mind-name.b { color: var(--mc-phos-cyan);  text-shadow: 0 0 6px var(--mc-phos-cyan-glow); }
.dashboard-shell-mc .mc-mind-name.c { color: var(--mc-phos-amber); text-shadow: 0 0 6px var(--mc-phos-amber-glow); }
.dashboard-shell-mc .mc-mind-activity {
  font-size: 11px;
  color: var(--mc-ink-dim);
  font-style: italic;
  font-family: var(--mc-sans);
}
.dashboard-shell-mc .mc-mind-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--mc-hairline);
  border-radius: 999px;
  color: var(--mc-ink-dim);
  flex-shrink: 0;
}
.dashboard-shell-mc .mc-mind-badge.reason {
  color: var(--mc-phos-green);
  border-color: rgba(123,233,149,0.35);
  box-shadow: 0 0 6px rgba(123,233,149,0.12);
}
.dashboard-shell-mc .mc-mind-badge.message {
  color: #d4a5ff;
  border-color: rgba(212,165,255,0.35);
  box-shadow: 0 0 6px rgba(212,165,255,0.12);
}
.dashboard-shell-mc .mc-mind-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
  align-self: center;
  margin-left: 2px;
  background: var(--mc-ink-faint);
}
.dashboard-shell-mc .mc-mind-pulse.typing  { background: var(--mc-phos-cyan);  box-shadow: 0 0 5px var(--mc-phos-cyan-glow);  animation: mc-pulse 0.9s infinite; }
.dashboard-shell-mc .mc-mind-pulse.active  { background: var(--mc-phos-green); box-shadow: 0 0 5px var(--mc-phos-green-glow); animation: mc-pulse 1.6s infinite; }
.dashboard-shell-mc .mc-mind-pulse.standby { background: var(--mc-ink-faint); }
.dashboard-shell-mc .mc-mind-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 10.5px;
  color: var(--mc-ink-dim);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  min-width: 0;
  flex-wrap: wrap;
}
.dashboard-shell-mc .mc-mind-meta .meta-id { font-weight: 600; color: var(--mc-phos-white); letter-spacing: 0.04em; }
.dashboard-shell-mc .mc-mind-meta .sep { color: var(--mc-ink-faint); }
.dashboard-shell-mc .mc-mind-meta .num { color: var(--mc-phos-white); }
.dashboard-shell-mc .mc-mind-body {
  flex: 1;
  font-size: 13px;
  line-height: 1.6;
  color: chartreuse;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: var(--mc-mono);
  white-space: pre-line;
  word-break: break-all;
  overflow-wrap: break-word;
  padding-right: 4px;
  min-width: 0;
  max-width: 100%;
  scrollbar-gutter: stable;
}
.dashboard-shell-mc .mc-mind-body::-webkit-scrollbar { width: 4px; }
.dashboard-shell-mc .mc-mind-body::-webkit-scrollbar-thumb { background: var(--mc-hairline); border-radius: 999px; }
.dashboard-shell-mc .mc-mind-body::-webkit-scrollbar-track { background: transparent; }
.dashboard-shell-mc .mc-mind-body.dim {
  color: var(--mc-ink-dim);
  font-style: italic;
  font-family: var(--mc-sans);
  font-size: 13px;
}
.dashboard-shell-mc .mc-mind-cursor {
  display: inline-block;
  width: 7px; height: 14px;
  background: currentColor;
  vertical-align: -2px;
  margin-left: 2px;
  animation: mc-cursor-blink 1s steps(2) infinite;
}
@keyframes mc-cursor-blink { 50% { opacity: 0; } }

.dashboard-shell-mc .mc-idle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mc-ink-faint);
  font-style: italic;
  font-family: var(--mc-sans);
  font-size: 13px;
}

.settings-shell {
  padding: 0 0 3rem;
}

.settings-topbar {
  margin-bottom: 2.25rem;
}

.settings-hero {
  padding: 0.35rem 0 1.65rem;
  border-bottom: 1px solid rgba(106, 98, 87, 0.14);
  margin-bottom: 1.65rem;
}

.settings-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(72, 68, 60, 0.56);
  font-weight: 700;
}

.settings-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.4rem, 3vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #2e2b26;
}

.settings-copy {
  margin: 0.85rem 0 0;
  max-width: 760px;
  font-size: 1rem;
  color: rgba(63, 58, 51, 0.72);
}

.settings-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.settings-summary-card,
.settings-panel {
  border: 1px solid rgba(109, 98, 80, 0.14);
  border-radius: 22px;
  background: rgba(255, 251, 245, 0.9);
  box-shadow: 0 12px 30px rgba(82, 67, 44, 0.06);
}

.settings-summary-card {
  padding: 1.15rem 1.2rem;
}

.settings-summary-label {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(72, 68, 60, 0.58);
}

.settings-summary-value {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.25rem;
  line-height: 1;
  color: #2f2b25;
}

.settings-summary-value-small {
  font-size: 1.45rem;
  line-height: 1.15;
}

.settings-summary-note {
  margin: 0.55rem 0 0;
  color: rgba(76, 70, 62, 0.7);
  font-size: 0.95rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 320px;
  gap: 1rem;
  align-items: start;
}

.settings-panel {
  padding: 1.15rem 1.2rem 1.25rem;
}

.settings-panel-head {
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(106, 98, 87, 0.14);
  margin-bottom: 1rem;
}

.settings-panel-head h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: #2e2b26;
}

.settings-panel-head p {
  margin: 0.45rem 0 0;
  color: rgba(76, 70, 62, 0.72);
  font-size: 0.95rem;
}

.settings-panel-head-detail {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

button.settings-profile-card,
button.settings-segment {
  box-shadow: none;
  transform: none;
}

button.settings-profile-card:hover,
button.settings-segment:hover {
  transform: none;
}

button.settings-profile-card {
  width: 100%;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(109, 98, 80, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: #2f2b25;
  margin-bottom: 0.85rem;
  text-align: left;
}

button.settings-profile-card.is-selected {
  border-color: rgba(72, 104, 79, 0.34);
  background: rgba(246, 249, 243, 0.98);
}

button.settings-profile-card.is-active {
  box-shadow: inset 0 0 0 1px rgba(72, 104, 79, 0.12);
}

.settings-profile-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.settings-profile-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.05;
}

.settings-profile-scope,
.settings-profile-meta,
.settings-profile-active {
  margin: 0.3rem 0 0;
  color: rgba(68, 64, 57, 0.72);
  font-size: 0.96rem;
}

.settings-profile-active {
  color: #496c53;
  font-weight: 600;
}

.settings-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(82, 73, 58, 0.12);
  background: rgba(251, 247, 240, 0.92);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-badge.is-central {
  color: #51644d;
  background: rgba(233, 240, 230, 0.96);
}

.settings-badge.is-local {
  color: #7f6242;
  background: rgba(249, 240, 228, 0.96);
}

.settings-badge.is-neutral {
  color: rgba(82, 73, 58, 0.7);
}

.settings-detail-list {
  display: grid;
  gap: 0.25rem;
  margin: 0;
}

.settings-detail-list-compact {
  margin-top: 1rem;
}

.settings-detail-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 0;
  border-bottom: 1px dashed rgba(109, 98, 80, 0.16);
}

.settings-detail-row:last-child {
  border-bottom: 0;
}

.settings-detail-row dt {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.02rem;
  color: rgba(61, 56, 49, 0.9);
}

.settings-detail-row dd {
  margin: 0;
  color: rgba(52, 49, 44, 0.86);
  font-size: 1rem;
  word-break: break-word;
}

.settings-segmented {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.settings-segmented-wide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-runtime-form {
  display: grid;
  gap: 0;
}

.settings-create-form {
  margin-top: 1.1rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(106, 98, 87, 0.14);
  display: grid;
  gap: 0.85rem;
}

.settings-create-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.settings-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.settings-field {
  display: grid;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: rgba(68, 63, 55, 0.82);
}

.settings-field span {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.settings-field-wide {
  grid-column: span 2;
}

.settings-input {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(110, 101, 88, 0.18);
  background: rgba(255, 255, 255, 0.88);
  padding: 0.75rem 0.9rem;
  color: rgba(52, 49, 44, 0.92);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.settings-input:focus {
  outline: none;
  border-color: rgba(72, 104, 79, 0.34);
  box-shadow: 0 0 0 4px rgba(72, 104, 79, 0.08);
}

.settings-input-small {
  max-width: 132px;
}

.settings-select {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(110, 101, 88, 0.18);
  background: rgba(255, 255, 255, 0.88);
  padding: 0.75rem 0.9rem;
  color: rgba(52, 49, 44, 0.92);
  font: inherit;
}

.settings-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(52, 49, 44, 0.92);
  font-size: 0.98rem;
}

.settings-checkbox input {
  width: 16px;
  height: 16px;
}

button.settings-segment {
  min-width: 88px;
  padding: 0.64rem 0.92rem;
  border-radius: 12px;
  border: 1px solid rgba(110, 101, 88, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: rgba(58, 53, 47, 0.8);
  font-weight: 600;
}

button.settings-segment.is-active,
.settings-active-chip,
button.settings-activate-button {
  border-color: #67835f;
  background: #6e8d66;
  color: white;
}

button.settings-segment.is-active:hover,
button.settings-activate-button:hover {
  background: #617f59;
}

button.settings-activate-button {
  padding: 0.72rem 1rem;
  border-radius: 12px;
}

button.settings-activate-button-secondary {
  border-color: rgba(107, 131, 95, 0.2);
  background: rgba(255, 255, 255, 0.92);
  color: #58714f;
}

button.settings-activate-button-secondary:hover {
  background: rgba(242, 248, 238, 0.96);
}

.settings-active-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.82rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.settings-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.64rem;
  border-radius: 999px;
  background: rgba(236, 241, 231, 0.92);
  border: 1px solid rgba(98, 122, 92, 0.16);
  color: #53654d;
  font-size: 0.84rem;
  font-weight: 600;
}

.settings-flow {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(106, 98, 87, 0.14);
}

.settings-flow-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
}

.settings-flow-stage {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 0.5rem 0.6rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(92, 92, 92, 0.9), rgba(64, 64, 64, 0.92));
  color: white;
  font-size: 0.84rem;
  text-align: center;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.settings-flow-copy {
  margin: 0.8rem 0 0;
  color: rgba(76, 70, 62, 0.72);
}

.settings-status {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.64rem;
  border-radius: 999px;
  background: rgba(248, 234, 228, 0.9);
  color: #9a4b3d;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.settings-status.is-good {
  background: rgba(233, 240, 230, 0.96);
  color: #4d6a4b;
}

.settings-status.is-warn {
  background: rgba(252, 241, 219, 0.96);
  color: #8a6418;
}

.settings-status.is-info {
  background: rgba(227, 237, 248, 0.96);
  color: #3f5e8d;
}

.settings-status.is-error {
  background: rgba(248, 228, 224, 0.96);
  color: #9a4b3d;
}

.settings-status.is-neutral {
  background: rgba(234, 232, 228, 0.96);
  color: #69625a;
}

.settings-status-stack {
  display: grid;
  gap: 0.55rem;
  justify-items: start;
}

.settings-status-note {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(73, 68, 60, 0.74);
}

.settings-status-link {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.settings-status-link a {
  color: #4f5e86;
  text-decoration: none;
}

.settings-status-link a:hover {
  text-decoration: underline;
}

.settings-status-link-muted {
  color: rgba(91, 85, 75, 0.72);
}

.settings-callout {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(113, 102, 82, 0.16);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.settings-callout-good {
  background: linear-gradient(180deg, rgba(236, 243, 232, 0.95), rgba(246, 249, 243, 0.95));
}

.settings-callout-warn {
  background: linear-gradient(180deg, rgba(253, 244, 224, 0.95), rgba(255, 249, 240, 0.95));
}

.settings-callout-info {
  background: linear-gradient(180deg, rgba(232, 239, 248, 0.95), rgba(245, 248, 252, 0.95));
}

.settings-callout-error {
  background: linear-gradient(180deg, rgba(249, 232, 227, 0.95), rgba(252, 245, 243, 0.95));
}

.settings-callout-neutral {
  background: linear-gradient(180deg, rgba(239, 236, 231, 0.95), rgba(248, 246, 243, 0.95));
}

.settings-callout-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(77, 70, 61, 0.56);
}

.settings-callout-copy {
  margin: 0.35rem 0 0;
  font-size: 0.97rem;
  line-height: 1.6;
  color: rgba(61, 56, 49, 0.88);
}

.settings-access {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(106, 98, 87, 0.14);
}

.settings-access-label {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(72, 68, 60, 0.58);
}

.settings-form-actions {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.6rem;
}

.settings-save-button {
  justify-self: start;
  padding: 0.78rem 1.08rem;
  border-radius: 12px;
}

.settings-save-button-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: #58714f;
  border: 1px solid rgba(107, 131, 95, 0.2);
}

.settings-save-button-secondary:hover {
  background: rgba(242, 248, 238, 0.96);
}

.settings-update-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.settings-help {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(76, 70, 62, 0.72);
}

@media (max-width: 1240px) {
  .settings-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-create-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-field-wide {
    grid-column: auto;
  }

  .settings-panel-head-detail {
    flex-direction: column;
    align-items: flex-start;
  }

  .settings-flow-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .settings-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-detail-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
  }

  .settings-flow-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
