body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #171d2a 0%, #0f1115 45%, #0b0d12 100%);
  color: #f3f4f6;
}
.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 18px 48px;
}
.panel {
  background: linear-gradient(180deg, rgba(23,26,33,0.96) 0%, rgba(17,20,27,0.98) 100%);
  border: 1px solid #2a2f3a;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #93c5fd;
  margin-bottom: 8px;
}
h1 { margin: 0 0 8px; }
.sub { margin: 0; color: #9ca3af; }
.hero-note {
  font-size: 12px;
  color: #93a2b7;
  text-align: right;
}
.badge {
  border-radius: 999px;
  background: linear-gradient(90deg, #4338ca 0%, #4f46e5 100%);
  padding: 6px 12px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.28);
}
.nav-row-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.refresh-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 2px;
}

.refresh-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.refresh-button {
  border: 1px solid rgba(129, 140, 248, 0.38);
  background: linear-gradient(135deg, rgba(79,70,229,0.22), rgba(17,24,39,0.95));
  color: #eef2ff;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, opacity 120ms ease;
}

.refresh-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(165, 180, 252, 0.62);
}

.refresh-button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.refresh-status,
.last-updated {
  font-size: 12px;
}

.refresh-status {
  color: #dbe4f0;
}

.last-updated {
  color: #93a2b7;
}

.refresh-status.is-error {
  color: #fda4af;
}

.refresh-status.is-loading {
  color: #c7d2fe;
}

.codex-strip-panel {
  padding-top: 14px;
  padding-bottom: 14px;
}

.codex-strip-head,
.action-launcher-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.codex-strip-badge,
.action-lane-badge {
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.34);
  background: rgba(15, 23, 42, 0.76);
  color: #dbeafe;
  padding: 6px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.codex-meter-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.codex-meter-card {
  border: 1px solid rgba(71, 85, 105, 0.72);
  border-radius: 12px;
  background: #0f1115;
  padding: 12px;
}

.codex-meter-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 8px;
}

.codex-meter-value {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 8px;
}

.codex-meter-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #1f2937;
  border: 1px solid rgba(71, 85, 105, 0.68);
}

.codex-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e 0%, #84cc16 45%, #f59e0b 78%, #ef4444 100%);
}

.codex-meter-sub {
  margin-top: 8px;
  font-size: 12px;
  color: #93a2b7;
}

.action-launcher-panel {
  border-color: rgba(96, 165, 250, 0.28);
  background: linear-gradient(180deg, rgba(16, 22, 33, 0.98), rgba(13, 18, 27, 0.98));
}

.home-action-card {
  margin-top: 12px;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.95));
}

.home-action-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #93c5fd;
  margin-bottom: 8px;
}

.home-action-title {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 8px;
}

.home-action-reason,
.home-action-unlock,
.home-action-note {
  font-size: 13px;
  line-height: 1.55;
  color: #d7e2f0;
}

.home-action-note {
  color: #9fb1c9;
  margin-top: 10px;
}

.action-launcher-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.codex-detail-panel {
  opacity: 0.92;
}

.decision-action-panel {
  width: 100%;
}

.decision-action-scroll {
  margin-top: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 8px;
}

.decision-action-scroll::-webkit-scrollbar {
  width: 10px;
}

.decision-action-scroll::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 999px;
}

.decision-action-scroll::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, 0.45);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  width: min(900px, 100%);
  max-height: 85vh;
  overflow: auto;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.modal-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.project-prompt-textarea {
  width: 100%;
  min-height: 320px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid #2b3240;
  background: #0d1118;
  color: #e5e7eb;
  padding: 12px;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  box-sizing: border-box;
}

.season-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.season-summary-card {
  border: 1px solid rgba(129, 140, 248, 0.24);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.86));
  border-radius: 14px;
  padding: 14px;
}

.season-summary-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 8px;
}

.season-summary-value {
  font-weight: 700;
  line-height: 1.4;
  color: #f8fafc;
}

.season-latest-spotlight {
  display: grid;
}

.season-latest-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.26);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.94));
}

.season-latest-kicker {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #93c5fd;
}

.season-latest-title {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: #f8fafc;
}

.season-latest-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: #cbd5e1;
  font-size: 13px;
}

.season-latest-notes {
  color: #dbe4f0;
  line-height: 1.6;
  font-size: 13px;
}

.season-count-grid {
  display: grid;
  gap: 10px;
}

.season-count-group {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.36);
  overflow: hidden;
}

.season-count-group summary {
  list-style: none;
}

.season-count-group summary::-webkit-details-marker {
  display: none;
}

.season-count-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid transparent;
  color: #dbe4f0;
  cursor: pointer;
}

.season-count-group[open] .season-count-pill {
  border-bottom-color: rgba(148, 163, 184, 0.18);
}

.season-count-pill strong {
  color: #93c5fd;
}

.season-count-episodes {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.season-count-episode {
  display: grid;
  gap: 4px;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(2, 6, 23, 0.38);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: inherit;
  text-decoration: none;
}

a.season-count-episode:hover {
  border-color: rgba(147, 197, 253, 0.45);
  background: rgba(15, 23, 42, 0.62);
}

.season-count-episode-number {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
}

.season-count-episode-title {
  color: #f8fafc;
  font-weight: 600;
  line-height: 1.4;
}

.season-count-episode-meta {
  color: #94a3b8;
  font-size: 12px;
}

.season-section-panel {
  display: flex;
  flex-direction: column;
}

.season-section-scroll {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
}

.season-lane-list {
  display: grid;
  gap: 10px;
}

.season-lane-list li {
  line-height: 1.5;
}

.season-insight-item {
  display: grid;
  gap: 8px;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.58);
}

.season-insight-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.season-insight-value {
  font-size: 13px;
  line-height: 1.55;
  color: #dbe4f0;
}

.season-item-strong {
  border-color: rgba(96, 165, 250, 0.28);
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.18), rgba(15, 23, 42, 0.76));
}

.season-item-strong .season-insight-label {
  color: #93c5fd;
}

.season-item-opportunity {
  border-color: rgba(52, 211, 153, 0.28);
  background: linear-gradient(180deg, rgba(6, 95, 70, 0.18), rgba(15, 23, 42, 0.76));
}

.season-item-opportunity .season-insight-label {
  color: #6ee7b7;
}

.season-item-warning {
  border-color: rgba(251, 191, 36, 0.3);
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.18), rgba(15, 23, 42, 0.76));
}

.season-item-warning .season-insight-label {
  color: #fbbf24;
}

.season-item-neutral .season-insight-label {
  color: #c4b5fd;
}

.season-episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.season-episode-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

a.season-episode-card {
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

a.season-episode-card:hover {
  transform: translateY(-2px);
  border-color: rgba(147, 197, 253, 0.55);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.28);
}

.season-episode-number {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
}

.season-episode-title {
  font-weight: 700;
  line-height: 1.35;
  color: #f8fafc;
}

.season-episode-lane,
.season-episode-notes {
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e1;
}
.tab {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: #2f3746;
  color: #fff;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tab:hover {
  background: #3b4557;
  transform: translateY(-1px);
}
.tab.active { background: #4f46e5; }
.page { display: none; }
.page.active { display: block; }
#page-upcoming .panel {
  min-height: 280px;
}
.next-event-card {
  background: linear-gradient(135deg, rgba(79,70,229,0.24) 0%, rgba(30,41,59,0.65) 100%);
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: 14px;
  padding: 14px;
}
.next-event-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c7d2fe;
  margin-bottom: 6px;
}
.next-event-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.next-event-meta {
  font-size: 13px;
  color: #cbd5e1;
}
.next-event-countdown {
  margin-top: 10px;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}
.status-list {
  list-style: none;
  padding-left: 0;
}
.status-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #10141b;
  border: 1px solid #2b3240;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 5px;
  flex: 0 0 10px;
}
.status-item.active .status-dot { background: #60a5fa; }
.status-item.waiting .status-dot { background: #f59e0b; }
.status-item.done .status-dot { background: #34d399; }
.rhythm-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.rhythm-card {
  background: #10141b;
  border: 1px solid #2b3240;
  border-radius: 12px;
  padding: 12px;
}
.rhythm-time {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #93c5fd;
  margin-bottom: 6px;
}
.rhythm-text {
  color: #e5e7eb;
  font-weight: 600;
}
.grid-home {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 8px;
}
.section-sub {
  font-size: 13px;
  color: #97a3b6;
  margin: -2px 0 10px;
}
.top-gap { margin-top: 18px; }
.list {
  margin: 0;
  padding-left: 18px;
  color: #e5e7eb;
}

.projects-section-panel {
  display: flex;
  flex-direction: column;
}

.projects-section-scroll {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
}

.projects-list {
  padding-left: 0;
  list-style: none;
}

.project-row {
  list-style: none;
}

.project-card-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.project-row-main {
  min-width: 0;
  flex: 1 1 auto;
}

.project-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

.focus-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.proof-card {
  border-radius: 14px;
  padding: 14px;
  border: 1px solid #2b3240;
  background: #10141b;
}

.proof-live {
  border-color: rgba(96, 165, 250, 0.38);
  background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(16,20,27,0.95));
}

.proof-motion {
  border-color: rgba(139, 92, 246, 0.32);
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(16,20,27,0.95));
}

.proof-artifact {
  border-color: rgba(245, 158, 11, 0.32);
  background: linear-gradient(135deg, rgba(245,158,11,0.10), rgba(16,20,27,0.95));
}

.proof-good {
  border-color: rgba(16, 185, 129, 0.32);
  background: linear-gradient(135deg, rgba(16,185,129,0.10), rgba(16,20,27,0.95));
}

.proof-title {
  font-size: 13px;
  font-weight: 700;
  color: #f3f4f6;
  margin-bottom: 6px;
}

.proof-detail {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.45;
}

.todo-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inline-task-form {
  display: flex;
  gap: 10px;
  margin: 12px 0 16px;
  flex-wrap: wrap;
}

.inline-task-input {
  flex: 1 1 320px;
  min-width: 220px;
  border-radius: 12px;
  border: 1px solid #2b3240;
  background: #0f131a;
  color: #e5e7eb;
  padding: 10px 12px;
  font: inherit;
}

.inline-task-input:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.todo-grid {
  align-items: start;
}

.todo-group {
  padding: 12px;
  border-radius: 12px;
  background: #10141b;
  border: 1px solid #2b3240;
}

.todo-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c7d2fe;
  margin-bottom: 8px;
}

.project-link {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 700;
}

.project-link:hover {
  text-decoration: underline;
}

.project-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.project-card-row {
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.project-card-row:last-child {
  border-bottom: 0;
}

.project-row-main {
  min-width: 0;
}

.project-meta-stack {
  display: grid;
  gap: 5px;
  margin-top: 6px;
}

.project-summary,
.project-rationale,
.project-last-touched,
.project-missing-note {
  font-size: 12px;
  line-height: 1.45;
}

.project-inferred-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(96,165,250,0.28);
  background: rgba(59,130,246,0.12);
  color: #bfdbfe;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-summary {
  color: #dbe4f0;
}

.project-rationale {
  color: #a5b4fc;
}

.project-last-touched {
  color: #94a3b8;
}

.project-missing-note {
  color: #fda4af;
}

.projects-manifest-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.projects-refresh-button {
  padding: 8px 12px;
}

.projects-registry-status,
.projects-registry-notes {
  font-size: 13px;
  line-height: 1.5;
}

.projects-registry-status {
  color: #dbe4f0;
  margin-bottom: 6px;
}

.projects-registry-notes {
  color: #94a3b8;
}

.projects-list {
  list-style: none;
  padding-left: 0;
}

.project-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.todo-row-text {
  flex: 1 1 auto;
  min-width: 0;
}

.suggestion-body {
  flex: 1 1 auto;
  min-width: 0;
}

.suggestion-title {
  color: #f3f4f6;
  font-size: 13px;
}

.suggestion-reason {
  color: #94a3b8;
  font-size: 12px;
  margin-top: 3px;
}

.mini-action {
  border: 1px solid #374151;
  background: #111827;
  color: #e5e7eb;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  cursor: pointer;
}

.mini-action:hover:not(:disabled) {
  border-color: #60a5fa;
  color: #93c5fd;
}

.mini-action:disabled {
  opacity: 0.6;
  cursor: wait;
}

.focus-card {
  border-radius: 14px;
  padding: 14px;
  border: 1px solid #2b3240;
  background: #10141b;
}

.focus-card.focus-primary {
  background: linear-gradient(135deg, rgba(79,70,229,0.26), rgba(15,17,21,0.9));
  border-color: rgba(129,140,248,0.45);
  box-shadow: 0 10px 24px rgba(79,70,229,0.14);
}

.focus-card.focus-active {
  background: linear-gradient(135deg, rgba(59,130,246,0.16), rgba(15,17,21,0.9));
  border-color: rgba(96,165,250,0.28);
}

.focus-card.focus-background {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-color: rgba(255,255,255,0.08);
}

.focus-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.focus-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  font-size: 12px;
  font-weight: 700;
}

.focus-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c7d2fe;
}

.focus-text {
  color: #f3f4f6;
  line-height: 1.45;
}

.focus-primary .focus-text {
  font-size: 16px;
  font-weight: 700;
}

.focus-active .focus-text {
  font-size: 14px;
  font-weight: 600;
}

.focus-background .focus-text {
  font-size: 13px;
  color: rgba(255,255,255,0.82);
}
.list li { margin-bottom: 8px; }
.static-list { padding-left: 18px; }
.button-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.link-button {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: #4f46e5;
  padding: 12px 14px;
  border-radius: 12px;
}
.link-button.ghost { background: #374151; }
.pre {
  white-space: pre-wrap;
  background: #0f1115;
  border: 1px solid #374151;
  border-radius: 10px;
  padding: 12px;
  max-height: 520px;
  overflow: auto;
}
.output-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.output-card {
  background: #0f1115;
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 12px;
}
.output-name {
  font-weight: 600;
  margin-bottom: 8px;
  color: #f3f4f6;
  word-break: break-word;
}
.output-meta {
  font-size: 13px;
  color: #d1d5db;
  margin-bottom: 6px;
}
.output-path {
  font-size: 12px;
  color: #9ca3af;
  word-break: break-word;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}
.stat-card {
  background: #0f1115;
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 12px;
}
.stat-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 6px;
}
.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #f3f4f6;
  word-break: break-word;
}
.stat-sub {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
}
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.quick-action {
  border: 1px solid #334155;
  background: #111827;
  color: #e5e7eb;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.chat-thread {
  min-height: 320px;
  max-height: 520px;
  overflow: auto;
  background: #0d1117;
  border: 1px solid #2b3240;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}
.chat-empty {
  color: #94a3b8;
  font-size: 14px;
}
.chat-message {
  margin-bottom: 12px;
}
.chat-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 6px;
}
.chat-bubble {
  background: #121826;
  border: 1px solid #2f3a4f;
  border-radius: 12px;
  padding: 12px;
  white-space: pre-wrap;
}
.chat-message.user .chat-bubble {
  border-color: #3b82f6;
}
.chat-message.assistant .chat-bubble {
  border-color: #8b5cf6;
}
.chat-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-input {
  min-height: 100px;
  resize: vertical;
  background: #0d1117;
  color: #f3f4f6;
  border: 1px solid #2b3240;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
}
.chat-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.chat-status {
  font-size: 13px;
  color: #94a3b8;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.achievement-card {
  border-radius: 16px;
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.achievement-card.tier-normal {
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 215, 0, 0.22);
}

.achievement-card.tier-landmark {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.16), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(168, 85, 247, 0.28);
}

.achievement-card.tier-rare {
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.18), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(249, 115, 22, 0.28);
}

.achievement-badge {
  font-size: 22px;
  margin-bottom: 8px;
}

.achievement-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tier-normal .achievement-title,
.tier-normal .achievement-history-title {
  color: #ffe082;
}

.tier-landmark .achievement-title,
.tier-landmark .achievement-history-title {
  color: #d8b4fe;
}

.tier-rare .achievement-title,
.tier-rare .achievement-history-title {
  color: #fdba74;
}

.achievement-text {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,0.88);
}

.achievement-date {
  margin-top: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
}

.achievements-actions {
  margin-top: 12px;
}

.achievements-history {
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
}

.achievements-history-page {
  margin-top: 18px;
}

.achievement-history-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.achievement-history-date {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
}

.achievement-history-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.achievement-history-text {
  font-size: 13px;
  color: rgba(255,255,255,0.86);
  line-height: 1.45;
}

.hidden {
  display: none;
}

.graph-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 16px;
  align-items: start;
}

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

.graph-stage-wrap {
  width: 100%;
}

.graph-notes {
  width: 100%;
}

.slider-stack {
  display: grid;
  gap: 14px;
}

.slider-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 16px;
  align-items: center;
}

.daily-value-slider {
  width: 100%;
  accent-color: #4f46e5;
}

.growth-mode-select {
  width: 100%;
  background: #111827;
  color: #f3f4f6;
  border: 1px solid #374151;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.slider-readout {
  text-align: right;
}

.slider-amount {
  font-size: 24px;
  font-weight: 800;
  color: #f8fafc;
}

.slider-sub {
  font-size: 13px;
  color: #a5b4fc;
}

.escape-velocity-canvas {
  width: 100%;
  max-width: 100%;
  min-height: 640px;
  background: linear-gradient(180deg, #07101d 0%, #050816 100%);
  border: 1px solid #2b3240;
  border-radius: 16px;
  display: block;
}

.escape-velocity-caption {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.78);
  color: #dbeafe;
  font-size: 14px;
  line-height: 1.5;
}

.panel-subtle {
  background: #0f1115;
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 12px;
}

.game-shell {
  display: grid;
  gap: 16px;
  align-items: start;
}

.game-shell-full {
  grid-template-columns: 1fr;
}

.game-stage {
  width: 100%;
  position: relative;
}

.signal-runner-code-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 7, 18, 0.76);
  z-index: 6;
}

.signal-runner-code-overlay.hidden {
  display: none;
}

.signal-runner-code-card {
  width: min(88%, 420px);
  padding: 20px 18px;
  border-radius: 16px;
  border: 1px solid rgba(147, 197, 253, 0.45);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.signal-runner-code-title {
  color: #f8fafc;
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.signal-runner-code-input {
  width: 100%;
  padding: 14px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(2, 6, 23, 0.88);
  color: #f8fafc;
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 14px;
  text-align: center;
  caret-color: #67e8f9;
  animation: signalRunnerCodeBlink 1s step-end infinite;
}

.signal-runner-code-input:focus {
  outline: 2px solid #67e8f9;
  outline-offset: 2px;
}

@keyframes signalRunnerCodeBlink {
  50% {
    border-color: rgba(103, 232, 249, 0.95);
    box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.3);
  }
}

@media (max-width: 760px) {
  .signal-runner-code-card {
    width: min(92%, 360px);
    padding: 18px 14px;
  }

  .signal-runner-code-title {
    font-size: 13px;
  }

  .signal-runner-code-input {
    font-size: 12px;
    padding: 12px 10px;
  }
}

.signal-runner-canvas {
  width: 100%;
  max-width: 100%;
  background: #050816;
  border: 1px solid #2b3240;
  border-radius: 16px;
  display: block;
  image-rendering: pixelated;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}

.signal-runner-wrap {
  max-width: 1200px;
}

.signal-runner-panel {
  overflow: hidden;
}

.signal-runner-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 14px;
}

.signal-runner-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#page-game,
#page-game *,
.signal-runner-standalone,
.signal-runner-standalone * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

#page-game button,
#page-game canvas,
#page-game .mobile-controls-shell,
#page-game .mobile-controls-grid,
#page-game .mobile-control-btn,
.signal-runner-standalone button,
.signal-runner-standalone canvas,
.signal-runner-standalone .mobile-controls-shell,
.signal-runner-standalone .mobile-controls-grid,
.signal-runner-standalone .mobile-control-btn {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

#page-game .mobile-control-btn,
#page-game #gameStartBtn,
#page-game #gameResetBtn,
.signal-runner-standalone .mobile-control-btn,
.signal-runner-standalone #gameStartBtn,
.signal-runner-standalone #gameResetBtn {
  -webkit-tap-highlight-color: transparent;
}

#page-game .mobile-controls-shell,
#page-game .mobile-controls-grid,
#page-game .mobile-control-btn,
.signal-runner-standalone .mobile-controls-shell,
.signal-runner-standalone .mobile-controls-grid,
.signal-runner-standalone .mobile-control-btn {
  touch-action: none;
}

#page-game .mobile-control-btn,
.signal-runner-standalone .mobile-control-btn {
  cursor: pointer;
}

#page-game .mobile-control-btn:focus,
.signal-runner-standalone .mobile-control-btn:focus {
  outline: none;
}

#page-game .mobile-control-btn:focus-visible,
#page-game #gameStartBtn:focus-visible,
#page-game #gameResetBtn:focus-visible,
.signal-runner-standalone .mobile-control-btn:focus-visible,
.signal-runner-standalone #gameStartBtn:focus-visible,
.signal-runner-standalone #gameResetBtn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.game-controls-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.game-controls-notes {
  background: #0f1115;
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 12px;
}

.game-danger-zone {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 12px;
}

.leaderboard-zone {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  margin-top: 4px;
}

.leaderboard-status,
.leaderboard-empty {
  font-size: 11px;
  line-height: 1.6;
  color: #cbd5e1;
}

.leaderboard-status {
  display: none;
}

.leaderboard-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.44);
  font-size: 11px;
  line-height: 1.4;
}

.leaderboard-rank {
  color: #facc15;
}

.leaderboard-name {
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-score {
  color: #93c5fd;
  text-align: right;
}

.leaderboard-submit {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(3, 7, 18, 0.7);
  z-index: 7;
}

.leaderboard-submit.hidden {
  display: none;
}

.leaderboard-submit-card {
  width: min(88%, 360px);
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 20px 18px;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.48);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.97), rgba(2, 6, 23, 0.98));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.48), 0 0 26px rgba(248, 113, 113, 0.16);
  text-align: center;
}

.leaderboard-submit-title {
  font-size: 20px;
  line-height: 1.4;
  color: #facc15;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 2px 0 rgba(120, 53, 15, 0.9), 0 0 18px rgba(250, 204, 21, 0.6);
}

.leaderboard-submit-copy {
  font-size: 12px;
  line-height: 1.5;
  color: #cbd5e1;
}

.leaderboard-name-input {
  width: 150px;
  border: 0;
  border-bottom: 2px solid rgba(250, 204, 21, 0.56);
  border-radius: 0;
  background: transparent;
  color: #f8fafc;
  padding: 8px 4px 10px;
  font: 800 24px "Press Start 2P", "VT323", "Courier New", monospace;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  caret-color: #facc15;
}

.leaderboard-name-input:focus {
  outline: 0;
  border-bottom-color: #facc15;
}

.leaderboard-name-input::placeholder {
  color: rgba(248, 250, 252, 0.62);
  opacity: 1;
}

.mobile-controls-shell {
  display: none;
  margin-top: 14px;
  gap: 12px;
}

.mobile-controls-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mobile-control-btn {
  min-height: 56px;
  border-radius: 14px;
  border: 1px solid #4b5563;
  background: linear-gradient(180deg, rgba(17,24,39,0.98), rgba(15,23,42,0.98));
  color: #f8fafc;
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.2;
  touch-action: manipulation;
}

.mobile-control-btn:active,
.mobile-control-btn.is-active {
  transform: translateY(1px);
  background: linear-gradient(180deg, rgba(59,130,246,0.32), rgba(30,64,175,0.34));
  border-color: #93c5fd;
}

.mobile-control-btn.bomb-ready,
#page-game .link-button.bomb-ready,
.signal-runner-standalone .link-button.bomb-ready {
  border-color: #f87171;
  box-shadow: 0 0 0 1px rgba(248,113,113,0.35), 0 0 18px rgba(248,113,113,0.38);
  animation: bomb-ready-pulse 0.9s ease-in-out infinite;
}

@keyframes bomb-ready-pulse {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(248,113,113,0.28), 0 0 12px rgba(248,113,113,0.18);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(248,113,113,0.5), 0 0 24px rgba(248,113,113,0.46);
  }
}

.mobile-controls-caption {
  font-size: 10px;
  line-height: 1.6;
  color: #93a2b7;
}

#page-game .label,
#page-game .section-sub,
#page-game .game-controls-notes,
#page-game .game-danger-zone,
#page-game .link-button,
.signal-runner-standalone .label,
.signal-runner-standalone .section-sub,
.signal-runner-standalone .game-controls-notes,
.signal-runner-standalone .game-danger-zone,
.signal-runner-standalone .link-button {
  font-family: "Press Start 2P", "Courier New", monospace;
}

#page-game .label,
.signal-runner-standalone .label {
  font-size: 11px;
  letter-spacing: 0.12em;
}

#page-game .section-sub,
#page-game .game-controls-notes,
#page-game .game-danger-zone,
.signal-runner-standalone .section-sub,
.signal-runner-standalone .game-controls-notes,
.signal-runner-standalone .game-danger-zone {
  font-size: 11px;
  line-height: 1.75;
}

#page-game .link-button,
.signal-runner-standalone .link-button {
  font-size: 11px;
  line-height: 1.4;
}

#page-game .game-controls-notes strong,
.signal-runner-standalone .game-controls-notes strong {
  color: #fef08a;
}

.control-arrow {
  display: inline-flex;
  width: 1.45em;
  height: 1.45em;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.28em;
  line-height: 1;
  font-weight: 800;
  vertical-align: -0.16em;
}

@media (max-width: 900px) {
  .projects-section-scroll {
    max-height: 360px;
  }

  .signal-runner-header {
    flex-direction: column;
    align-items: stretch;
  }

  .game-controls-row {
    grid-template-columns: 1fr;
  }

  .game-danger-zone {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 12px;
  }
}

@media (max-width: 760px) {
  #page-game.active,
  .signal-runner-standalone {
    min-height: auto;
  }

  #page-game.active .panel,
  .signal-runner-standalone .panel {
    min-height: auto;
    display: block;
    overflow: visible;
    padding: 10px 10px max(14px, env(safe-area-inset-bottom));
  }

  #page-game .section-sub,
  .signal-runner-standalone .section-sub {
    margin-bottom: 10px;
  }

  #page-game .game-stage,
  .signal-runner-standalone .game-stage {
    display: flex;
    align-items: stretch;
    height: min(52dvh, 440px);
    overscroll-behavior: contain;
    overflow: hidden;
  }

  .desktop-controls-list {
    display: none;
  }

  .game-controls-row > .button-stack {
    display: none;
  }

  .mobile-controls-shell {
    display: grid;
    gap: 14px;
    overscroll-behavior: contain;
  }

  .mobile-controls-topbar {
    display: flex;
    justify-content: center;
    gap: 12px;
  }

  .mobile-controls-handheld {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
  }

  .mobile-dpad {
    display: grid;
    gap: 8px;
    justify-items: center;
    align-items: center;
  }

  .mobile-dpad-row {
    display: grid;
    width: 100%;
    justify-items: center;
    align-items: center;
  }

  .mobile-dpad-row-middle {
    grid-template-columns: minmax(68px, 84px) 18px minmax(68px, 84px);
    gap: 8px;
  }

  .mobile-dpad-center {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.2);
  }

  .mobile-action-cluster {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: center;
  }

  .signal-runner-canvas {
    border-radius: 12px;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: fill;
    background: #050816;
    max-height: none;
  }

  .mobile-control-btn {
    min-height: 68px;
    min-width: 68px;
    font-size: 12px;
    line-height: 1.25;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .mobile-control-start,
  .mobile-control-pause {
    min-width: 132px;
    min-height: 52px;
  }

  .mobile-control-up,
  .mobile-control-down,
  .mobile-control-left,
  .mobile-control-right {
    font-size: 18px;
    line-height: 1;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
  }

  .mobile-control-a,
  .mobile-control-b {
    min-height: 82px;
    border-radius: 999px;
  }

  .game-controls-notes {
    padding: 12px 10px;
  }

  .game-danger-zone {
    display: block;
  }

  .leaderboard-zone {
    display: grid;
  }

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

.office-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.office-summary-card {
  background: linear-gradient(180deg, rgba(15,17,21,0.98), rgba(17,24,39,0.96));
  border: 1px solid #374151;
  border-radius: 14px;
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.office-summary-value {
  font-size: 30px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1;
}

.office-summary-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-top: 6px;
}

.office-summary-sub {
  font-size: 12px;
  color: #93a2b7;
  margin-top: 6px;
  line-height: 1.45;
}

.office-vnext-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 320px;
  gap: 16px;
  align-items: start;
}

.office-world-canvas {
  position: relative;
  min-height: 760px;
  background:
    linear-gradient(180deg, rgba(9,17,28,0.96) 0%, rgba(6,11,20,0.98) 100%),
    repeating-linear-gradient(0deg, rgba(148,163,184,0.05) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(148,163,184,0.05) 0 1px, transparent 1px 40px);
  border: 1px solid #2b3240;
  border-radius: 18px;
  padding: 14px;
  overflow: hidden;
}

.office-world-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.office-world-paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.office-world-path {
  fill: none;
  stroke: rgba(148,163,184,0.22);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 12 18;
  filter: drop-shadow(0 0 12px rgba(15,23,42,0.5));
  animation: officeRouteDrift 8s linear infinite;
}

.office-world-path.active {
  stroke: rgba(129,140,248,0.72);
  stroke-width: 16;
  stroke-dasharray: 18 14;
  filter: drop-shadow(0 0 10px rgba(129,140,248,0.45));
  animation-duration: 2.8s;
}

.office-world-node {
  fill: rgba(129,140,248,0.2);
  stroke: rgba(196,181,253,0.5);
  stroke-width: 2;
  filter: drop-shadow(0 0 14px rgba(129,140,248,0.35));
  animation: officeNodePulse 2.8s ease-in-out infinite;
}

.office-world-node.destination {
  fill: rgba(45,212,191,0.2);
  stroke: rgba(94,234,212,0.66);
  filter: drop-shadow(0 0 18px rgba(45,212,191,0.4));
}

.office-world-room {
  --room-accent-x: 50%;
  --room-accent-y: 50%;
  --room-activity-delay: 0s;
  z-index: 1;
  border: 2px solid #334155;
  border-radius: 18px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(15,17,21,0.96), rgba(18,24,38,0.96));
  position: absolute;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 12px 28px rgba(0,0,0,0.18);
}

.office-world-room.pressure-high { box-shadow: inset 0 0 0 1px rgba(248,113,113,0.16), 0 16px 28px rgba(127,29,29,0.24); }
.office-world-room.pressure-medium { box-shadow: inset 0 0 0 1px rgba(250,204,21,0.16), 0 16px 28px rgba(113,63,18,0.22); }
.office-world-room.pressure-low { box-shadow: inset 0 0 0 1px rgba(96,165,250,0.12), 0 16px 28px rgba(30,64,175,0.16); }
.office-world-room.is-linked::after,
.office-world-room.is-selected::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  pointer-events: none;
  background: radial-gradient(circle at var(--room-accent-x) var(--room-accent-y), rgba(129,140,248,0.18), transparent 38%);
}

.office-world-room.is-linked {
  border-color: rgba(129,140,248,0.34);
}

.office-world-room.is-selected {
  border-color: rgba(196,181,253,0.7);
  box-shadow: inset 0 0 0 1px rgba(196,181,253,0.12), 0 18px 32px rgba(76,29,149,0.24), 0 0 0 1px rgba(196,181,253,0.18);
}

.office-world-room.is-selected::before,
.office-world-room.is-destination::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 14px;
  border: 1px solid rgba(196,181,253,0.22);
  pointer-events: none;
  opacity: 0.9;
}

.office-world-room.is-destination {
  border-color: rgba(94,234,212,0.62);
  box-shadow: inset 0 0 0 1px rgba(94,234,212,0.1), 0 18px 32px rgba(15,118,110,0.22);
}

.office-room-strategy.x1.y1.w5.h4 { left: 18px; top: 18px; width: 350px; height: 278px; }
.office-room-council.x6.y1.w7.h4 { left: 382px; top: 18px; width: 498px; height: 278px; }
.office-room-recon.x1.y5.w4.h4 { left: 18px; top: 316px; width: 278px; height: 278px; }
.office-room-routing.x5.y5.w4.h4 { left: 310px; top: 316px; width: 278px; height: 278px; }
.office-room-archive.x9.y5.w4.h4 { left: 602px; top: 316px; width: 278px; height: 278px; }

.office-room-strategy { border-color: rgba(96,165,250,0.34); }
.office-room-council { border-color: rgba(168,85,247,0.34); }
.office-room-recon { border-color: rgba(45,212,191,0.3); }
.office-room-routing { border-color: rgba(245,158,11,0.3); }
.office-room-archive { border-color: rgba(148,163,184,0.24); }

.office-world-room-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  position: relative;
  z-index: 3;
}

.office-world-room-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.office-room-focus-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #e9d5ff;
  background: rgba(91,33,182,0.28);
  border: 1px solid rgba(196,181,253,0.26);
  box-shadow: 0 0 18px rgba(91,33,182,0.22);
}

.office-room-focus-badge.destination {
  color: #ccfbf1;
  background: rgba(15,118,110,0.24);
  border-color: rgba(94,234,212,0.26);
  box-shadow: 0 0 18px rgba(20,184,166,0.18);
}

.office-room-floor {
  position: relative;
  height: calc(100% - 44px);
  border-radius: 14px;
  background: rgba(2,6,23,0.55);
  border: 1px solid rgba(148,163,184,0.12);
  overflow: hidden;
}

.office-room-floor-pattern {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(148,163,184,0.05) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, rgba(148,163,184,0.05) 0 1px, transparent 1px 36px);
  opacity: 0.7;
}

.office-room-ambient-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 28%, rgba(96,165,250,0.08), transparent 24%),
    radial-gradient(circle at 72% 66%, rgba(129,140,248,0.08), transparent 26%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.04), transparent 40%);
  opacity: 0.85;
  animation: officeRoomBreathe 12s ease-in-out infinite;
  animation-delay: var(--room-activity-delay);
}

.office-room-landmarks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.office-room-flow {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(148,163,184,0.14), rgba(255,255,255,0.03));
  opacity: 0.9;
  animation: officeFlowSweep 7s ease-in-out infinite;
  animation-delay: var(--room-activity-delay);
}

.office-room-flow-a { left: 20px; right: 20px; top: 50%; height: 10px; transform: translateY(-50%); }
.office-room-flow-b { top: 20px; bottom: 20px; left: 50%; width: 10px; transform: translateX(-50%); opacity: 0.35; }

.office-landmark {
  position: absolute;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(15,23,42,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.office-landmark.accent {
  border-style: dashed;
  opacity: 0.45;
}

.office-room-strategy .office-landmark.primary { left: 26px; top: 22px; width: 128px; height: 52px; border-radius: 18px; }
.office-room-strategy .office-landmark.secondary { right: 28px; top: 26px; width: 64px; height: 64px; border-radius: 999px; }
.office-room-strategy .office-landmark.tertiary { left: 170px; bottom: 32px; width: 42px; height: 68px; border-radius: 16px; }
.office-room-strategy .office-landmark.accent { left: 22px; bottom: 24px; width: 102px; height: 24px; border-radius: 999px; }

.office-room-council .office-landmark.primary { left: 116px; top: 38px; width: 170px; height: 72px; border-radius: 999px; }
.office-room-council .office-landmark.secondary { right: 52px; top: 32px; width: 108px; height: 28px; border-radius: 999px; }
.office-room-council .office-landmark.tertiary { left: 44px; bottom: 30px; width: 116px; height: 20px; border-radius: 999px; }
.office-room-council .office-landmark.accent { left: 302px; top: 54px; width: 72px; height: 72px; border-radius: 999px; }

.office-room-recon .office-landmark.primary { left: 24px; top: 22px; width: 96px; height: 54px; clip-path: polygon(0 10%, 90% 10%, 100% 50%, 90% 90%, 0 90%); }
.office-room-recon .office-landmark.secondary { right: 22px; top: 26px; width: 84px; height: 32px; border-radius: 999px; }
.office-room-recon .office-landmark.tertiary { left: 34px; bottom: 26px; width: 78px; height: 28px; border-radius: 999px; }
.office-room-recon .office-landmark.accent { right: 28px; bottom: 26px; width: 44px; height: 44px; transform: rotate(45deg); border-radius: 12px; }

.office-room-routing .office-landmark.primary { left: 40px; top: 114px; width: 194px; height: 20px; border-radius: 999px; background: rgba(245,158,11,0.14); }
.office-room-routing .office-landmark.secondary { left: 116px; top: 34px; width: 46px; height: 46px; border-radius: 999px; }
.office-room-routing .office-landmark.tertiary { left: 116px; bottom: 34px; width: 46px; height: 46px; border-radius: 999px; }
.office-room-routing .office-landmark.accent { right: 40px; top: 110px; width: 32px; height: 32px; transform: rotate(45deg); }

.office-room-archive .office-landmark.primary { left: 22px; top: 20px; width: 28px; height: 154px; }
.office-room-archive .office-landmark.secondary { left: 58px; top: 20px; width: 28px; height: 154px; }
.office-room-archive .office-landmark.tertiary { left: 94px; top: 20px; width: 28px; height: 154px; }
.office-room-archive .office-landmark.accent { right: 26px; bottom: 24px; width: 94px; height: 24px; border-radius: 999px; }

.office-door {
  position: absolute;
  background: rgba(226,232,240,0.2);
  border-radius: 999px;
}

.office-door-top { top: 6px; left: calc(50% - 18px); width: 36px; height: 6px; }
.office-door-right { right: 6px; top: calc(50% - 18px); width: 6px; height: 36px; }
.office-door-bottom { bottom: 6px; left: calc(50% - 18px); width: 36px; height: 6px; }

.office-world-entities {
  position: absolute;
  inset: 0;
}

.office-entity {
  position: absolute;
}

.office-world-room-label {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
}

.office-world-room-note {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
  line-height: 1.4;
}

.office-world-sprite-row,
.office-world-marker-strip,
.office-world-task-strip {
  position: absolute;
  inset: 0;
}

.office-marker {
  display: grid;
  place-items: center;
  gap: 2px;
  width: 50px;
  min-height: 50px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(15,23,42,0.82);
  color: #f8fafc;
  text-align: center;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.office-marker:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}

.office-marker-glyph {
  position: relative;
  width: 18px;
  height: 18px;
}

.office-marker-icon-core,
.office-marker-icon-accent {
  position: absolute;
  display: block;
}

.office-marker-glyph.blocker .office-marker-icon-core {
  inset: 1px 1px 3px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #fecaca;
}

.office-marker-glyph.blocker .office-marker-icon-accent {
  left: 8px;
  top: 5px;
  width: 2px;
  height: 7px;
  border-radius: 999px;
  background: #7f1d1d;
  box-shadow: 0 9px 0 0 #7f1d1d;
}

.office-marker-glyph.waiting .office-marker-icon-core {
  inset: 1px 3px;
  border-radius: 999px;
  border: 2px solid #fde68a;
}

.office-marker-glyph.waiting .office-marker-icon-accent {
  left: 6px;
  top: 4px;
  width: 6px;
  height: 10px;
  border-radius: 999px;
  border-top: 4px solid #fde68a;
  border-bottom: 4px solid #f59e0b;
  border-left: 2px solid transparent;
  border-right: 2px solid transparent;
}

.office-marker-glyph.handoff .office-marker-icon-core {
  left: 2px;
  top: 7px;
  width: 14px;
  height: 4px;
  border-radius: 999px;
  background: #93c5fd;
}

.office-marker-glyph.handoff .office-marker-icon-accent {
  inset: 4px 1px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #dbeafe;
  transform: translateX(9px);
  box-shadow: -16px 0 0 -2px rgba(0,0,0,0), -16px 0 0 0 #dbeafe;
}

.office-marker-glyph.note .office-marker-icon-core,
.office-marker-glyph .office-marker-icon-core {
  inset: 2px;
  border-radius: 6px;
  transform: rotate(45deg);
  background: #c4b5fd;
}

.office-marker-glyph.note .office-marker-icon-accent,
.office-marker-glyph .office-marker-icon-accent {
  inset: 7px;
  border-radius: 999px;
  background: #312e81;
}

.office-marker-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f8fafc;
  line-height: 1.15;
}

.office-marker-count {
  font-size: 10px;
  color: #94a3b8;
}

.office-marker.blocker,
.office-marker.high {
  border-color: rgba(248,113,113,0.35);
  background: rgba(127,29,29,0.24);
}

.office-marker.waiting,
.office-marker.medium {
  border-color: rgba(250,204,21,0.35);
  background: rgba(113,63,18,0.22);
}

.office-marker.handoff,
.office-marker.low {
  border-color: rgba(96,165,250,0.28);
  background: rgba(30,64,175,0.18);
}

.office-task-card {
  position: absolute;
  width: 54px;
  min-height: 54px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(15,23,42,0.9);
  color: #f8fafc;
  border-radius: 16px;
  padding: 6px;
  cursor: pointer;
  text-align: center;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  overflow: visible;
}

.office-task-card:hover,
.office-task-card.selected {
  transform: translateY(-1px);
  border-color: rgba(196,181,253,0.5);
  box-shadow: 0 10px 20px rgba(0,0,0,0.18), 0 0 0 1px rgba(196,181,253,0.18);
}

.office-task-card.selected {
  border-color: rgba(196,181,253,0.72);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22), 0 0 0 1px rgba(196,181,253,0.2), 0 0 24px rgba(129,140,248,0.2);
}

.office-task-ping {
  position: absolute;
  inset: -7px;
  border-radius: 20px;
  border: 1px solid rgba(196,181,253,0.32);
  opacity: 0;
  pointer-events: none;
}

.office-task-card.selected .office-task-ping {
  opacity: 1;
  animation: officeTaskPulse 1.8s ease-out infinite;
}

.office-task-glyph {
  position: relative;
  display: block;
  width: 18px;
  height: 16px;
  margin: 0 auto 4px;
}

.office-task-glyph-core,
.office-task-glyph-accent {
  position: absolute;
  display: block;
}

.office-task-glyph-core {
  inset: 2px 1px 1px;
  border-radius: 4px;
  border: 2px solid #c4b5fd;
  background: rgba(15,23,42,0.6);
}

.office-task-glyph-accent {
  left: 4px;
  right: 4px;
  top: 0;
  height: 4px;
  border-radius: 999px;
  background: #c4b5fd;
}

.office-task-glyph.band-working .office-task-glyph-accent { background: #60a5fa; }
.office-task-glyph.band-coordinating .office-task-glyph-accent { background: #c084fc; }
.office-task-glyph.band-consulting .office-task-glyph-accent { background: #5eead4; }
.office-task-glyph.band-transitioning .office-task-glyph-accent { background: #fbbf24; }
.office-task-glyph.band-done .office-task-glyph-accent { background: #34d399; }
.office-task-glyph.band-idle .office-task-glyph-accent { background: #94a3b8; }

.office-task-title {
  display: block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #f8fafc;
  line-height: 1.15;
}

.office-task-meta {
  display: block;
  font-size: 8px;
  color: #94a3b8;
  margin-top: 3px;
}

.office-task-actions-inline,
.office-task-action-row,
.office-marker-actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.office-task-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(99,102,241,0.14);
  color: #c7d2fe;
  border: 1px solid rgba(129,140,248,0.2);
}

.office-world-task-empty {
  position: absolute;
  font-size: 12px;
  color: #6b7280;
}

.office-sprite {
  position: absolute;
  width: 50px;
  min-height: 50px;
  border: 1px solid #334155;
  background: #111827;
  color: #f8fafc;
  border-radius: 16px;
  padding: 5px;
  cursor: pointer;
  text-align: center;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  overflow: visible;
}

.office-sprite:hover,
.office-sprite.selected {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.28);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.office-sprite.selected {
  border-color: rgba(196,181,253,0.7);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22), 0 0 0 1px rgba(196,181,253,0.16);
}

.office-sprite.has-task-focus {
  box-shadow: 0 10px 24px rgba(0,0,0,0.22), 0 0 0 1px rgba(129,140,248,0.14);
}

.office-sprite-aura {
  position: absolute;
  inset: -8px;
  border-radius: 20px;
  background: radial-gradient(circle, rgba(196,181,253,0.22), transparent 68%);
  opacity: 0;
  transition: opacity 120ms ease;
  pointer-events: none;
}

.office-sprite.selected .office-sprite-aura,
.office-sprite:hover .office-sprite-aura {
  opacity: 1;
}

.office-sprite-orbit {
  position: absolute;
  inset: -5px;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,0.14);
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

.office-sprite.selected .office-sprite-orbit {
  opacity: 1;
  animation: officeLaneOrbit 4s linear infinite;
}

.office-sprite-core {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto 3px;
}

.office-sprite-head,
.office-sprite-body,
.office-sprite-arm,
.office-sprite-pulse {
  position: absolute;
  display: block;
}

.office-sprite-head {
  left: 6px;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f8fafc;
}

.office-sprite-body {
  left: 7px;
  top: 8px;
  width: 6px;
  height: 9px;
  border-radius: 999px 999px 6px 6px;
  background: #f8fafc;
}

.office-sprite-arm {
  top: 9px;
  width: 6px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.office-sprite-arm.left { left: 2px; transform: rotate(20deg); }
.office-sprite-arm.right { right: 2px; transform: rotate(-20deg); }

.office-sprite-pulse {
  inset: -1px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.26;
}

.office-sprite-core.band-working { color: #60a5fa; }
.office-sprite-core.band-coordinating { color: #c084fc; }
.office-sprite-core.band-consulting { color: #5eead4; }
.office-sprite-core.band-transitioning { color: #fbbf24; }
.office-sprite-core.band-done { color: #34d399; }
.office-sprite-core.band-idle { color: #94a3b8; }

.office-sprite-name {
  display: block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 1px;
}

.office-sprite-meta {
  display: block;
  font-size: 8px;
  color: #cbd5e1;
}

.office-sprite.working { background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(17,24,39,0.95)); }
.office-sprite.coordinating { background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(17,24,39,0.95)); }
.office-sprite.consulting { background: linear-gradient(135deg, rgba(45,212,191,0.16), rgba(17,24,39,0.95)); }
.office-sprite.transitioning { background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(17,24,39,0.95)); }
.office-sprite.done { background: linear-gradient(135deg, rgba(52,211,153,0.18), rgba(17,24,39,0.95)); }
.office-sprite.idle { background: linear-gradient(135deg, rgba(148,163,184,0.18), rgba(17,24,39,0.95)); }

.office-world-empty {
  position: absolute;
  font-size: 12px;
  color: #6b7280;
}

.office-zone-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.office-zone-label {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
}

.office-zone-caption {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

.office-zone-count {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(79,70,229,0.2);
  color: #c7d2fe;
  font-weight: 700;
}

.office-token-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.office-token {
  border: 1px solid #334155;
  background: #111827;
  color: #f8fafc;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  min-width: 128px;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.office-token:hover,
.office-token.selected {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.28);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.office-token-name {
  display: block;
  font-weight: 700;
  margin-bottom: 5px;
}

.office-token-meta {
  display: block;
  font-size: 12px;
  color: #cbd5e1;
}

.office-token-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.office-inline-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #dbe4f0;
}

.truth-live {
  border-color: rgba(34,197,94,0.34) !important;
}

.truth-derived {
  border-color: rgba(96,165,250,0.28) !important;
}

.truth-seeded {
  border-color: rgba(148,163,184,0.2) !important;
  opacity: 0.94;
}

.office-inline-badge.truth-live {
  background: rgba(34,197,94,0.14);
  color: #bbf7d0;
}

.office-inline-badge.truth-derived {
  background: rgba(96,165,250,0.14);
  color: #bfdbfe;
}

.office-inline-badge.truth-seeded {
  background: rgba(148,163,184,0.12);
  color: #cbd5e1;
}

.confidence-high {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.confidence-medium {
  opacity: 0.95;
}

.confidence-low {
  opacity: 0.82;
}

.office-inline-badge.confidence-high {
  background: rgba(250,204,21,0.12);
  color: #fde68a;
}

.office-inline-badge.confidence-medium {
  background: rgba(251,191,36,0.1);
  color: #fcd34d;
}

.office-inline-badge.confidence-low {
  background: rgba(148,163,184,0.12);
  color: #cbd5e1;
}

.office-inline-badge.freshness-hot {
  background: rgba(34,197,94,0.14);
  color: #86efac;
}

.office-inline-badge.freshness-warm {
  background: rgba(96,165,250,0.14);
  color: #bfdbfe;
}

.office-inline-badge.freshness-recent {
  background: rgba(245,158,11,0.14);
  color: #fcd34d;
}

.office-inline-badge.freshness-stale,
.office-inline-badge.freshness-unknown {
  background: rgba(148,163,184,0.12);
  color: #cbd5e1;
}

.office-token.working { background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(17,24,39,0.95)); }
.office-token.coordinating { background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(17,24,39,0.95)); }
.office-token.consulting { background: linear-gradient(135deg, rgba(45,212,191,0.16), rgba(17,24,39,0.95)); }
.office-token.transitioning { background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(17,24,39,0.95)); }
.office-token.done { background: linear-gradient(135deg, rgba(52,211,153,0.18), rgba(17,24,39,0.95)); }
.office-token.idle { background: linear-gradient(135deg, rgba(148,163,184,0.18), rgba(17,24,39,0.95)); }

.office-zone-empty {
  font-size: 12px;
  color: #6b7280;
}

.office-side-stack {
  display: grid;
  gap: 16px;
}

.office-detail-card {
  min-height: 180px;
}

.office-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.office-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.office-detail-name {
  font-size: 22px;
  font-weight: 800;
  color: #f8fafc;
}

.office-detail-role {
  color: #94a3b8;
  font-size: 13px;
  margin-top: 4px;
}

.office-detail-state,
.office-feed-state {
  text-transform: capitalize;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
}

.office-detail-state.working,
.office-feed-state.working { color: #93c5fd; background: rgba(59,130,246,0.12); }
.office-detail-state.coordinating,
.office-feed-state.coordinating { color: #d8b4fe; background: rgba(168,85,247,0.14); }
.office-detail-state.consulting,
.office-feed-state.consulting { color: #99f6e4; background: rgba(45,212,191,0.14); }
.office-detail-state.transitioning,
.office-feed-state.transitioning { color: #fcd34d; background: rgba(245,158,11,0.14); }
.office-detail-state.done,
.office-feed-state.done { color: #86efac; background: rgba(52,211,153,0.14); }
.office-detail-state.idle,
.office-feed-state.idle { color: #cbd5e1; background: rgba(148,163,184,0.12); }

.office-detail-grid {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px 12px;
  margin-bottom: 12px;
}

.office-detail-why {
  color: #f8fafc;
  line-height: 1.55;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(129,140,248,0.16);
}

.office-detail-note {
  color: #dbe4f0;
  line-height: 1.45;
}

.office-detail-reason {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15,23,42,0.66);
  border: 1px solid rgba(148,163,184,0.16);
}

.office-detail-signals {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.office-signal-list {
  margin: 0;
  padding-left: 18px;
  color: #cbd5e1;
}

.office-signal-list li {
  margin-bottom: 6px;
  line-height: 1.45;
}

.office-roster-feed {
  display: grid;
  gap: 8px;
}

.office-feed-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  background: #0b1220;
  color: #f8fafc;
  border: 1px solid #243041;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
}

.office-feed-row.selected,
.office-feed-row:hover {
  background: rgba(30,41,59,0.86);
  border-color: rgba(129,140,248,0.28);
}

.office-feed-name {
  font-weight: 700;
}

.office-feed-zone {
  font-size: 12px;
  color: #94a3b8;
}

.office-feed-meta {
  grid-column: 1 / -1;
  font-size: 11px;
  color: #94a3b8;
}

.distribution-hero-panel {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.distribution-mode-badge,
.distribution-loop-note,
.distribution-filter-chip,
.distribution-confidence,
.timeline-status,
.platform-monitor-coverage {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
}

.distribution-mode-badge {
  display: inline-flex;
  background: rgba(79,70,229,0.22);
  border: 1px solid rgba(129,140,248,0.34);
  color: #e0e7ff;
}

.distribution-focus-title {
  margin: 0;
  font-size: 24px;
}

.distribution-sub {
  max-width: 760px;
}

.distribution-loop-note {
  background: rgba(15,23,42,0.86);
  border: 1px solid rgba(96,165,250,0.2);
  color: #bfdbfe;
}

.distribution-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: start;
}

.distribution-main-column,
.distribution-side-column {
  min-width: 0;
}

.distribution-toolbar,
.distribution-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.distribution-toolbar { margin: 8px 0 14px; }

.distribution-filter-chip {
  background: #10141b;
  border: 1px solid #2b3240;
  color: #cbd5e1;
}

.distribution-card-stack,
.draft-workspace-grid,
.source-moment-stack,
.timeline-shell {
  display: grid;
  gap: 12px;
}

.distribution-card,
.draft-workspace-card,
.platform-monitor-card,
.timeline-row,
.source-moment-row {
  background: #10141b;
  border: 1px solid #2b3240;
  border-radius: 14px;
  padding: 14px;
}

.distribution-card-top,
.draft-workspace-top,
.platform-monitor-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.distribution-card-title,
.draft-workspace-title,
.platform-monitor-name,
.timeline-title,
.source-moment-label {
  font-weight: 700;
  color: #f8fafc;
}

.distribution-card-meta,
.draft-workspace-meta,
.timeline-meta,
.source-moment-note {
  margin-top: 4px;
  font-size: 12px;
  color: #94a3b8;
}

.distribution-card-grid,
.draft-footnotes,
.platform-monitor-line {
  display: grid;
  gap: 10px;
}

.distribution-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 14px 0;
}

.distribution-card-grid div,
.draft-footnotes div,
.platform-monitor-line,
.source-meta-row {
  color: #dbe4f0;
  font-size: 13px;
  line-height: 1.45;
}

.distribution-card-grid span,
.draft-footnotes span,
.platform-monitor-line span,
.source-meta-row span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
  margin-bottom: 4px;
}

.confidence-high,
.timeline-status {
  background: rgba(16,185,129,0.16);
  border: 1px solid rgba(16,185,129,0.28);
  color: #bbf7d0;
}

.confidence-medium,
.platform-monitor-coverage {
  background: rgba(96,165,250,0.14);
  border: 1px solid rgba(96,165,250,0.24);
  color: #bfdbfe;
}

.confidence-low {
  background: rgba(245,158,11,0.14);
  border: 1px solid rgba(245,158,11,0.24);
  color: #fde68a;
}

.distribution-list-tight li { margin-bottom: 8px; }

.distribution-placeholder-note,
.platform-monitor-note {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

.timeline-row {
  display: grid;
  grid-template-columns: 56px 90px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.timeline-day,
.timeline-slot,
.source-moment-time {
  font-size: 12px;
  color: #93c5fd;
  font-weight: 700;
}

.platform-monitor-grid,
.draft-workspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.draft-copy {
  margin: 12px 0;
  padding: 12px;
  border-radius: 12px;
  background: #0b1220;
  border: 1px solid #243041;
  color: #e5e7eb;
  white-space: pre-wrap;
  font: inherit;
}

.source-meta-stack { display: grid; gap: 8px; }

@media (max-width: 1100px) {
  .grid-home, .grid-two, .grid-three, .graph-grid, .office-grid, .distribution-layout, .platform-monitor-grid, .draft-workspace-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .game-controls-row { grid-template-columns: 1fr; }
  .game-danger-zone { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 12px; }
  .office-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .office-world-canvas { min-height: auto; padding: 10px; }
  .office-world-grid,
  .office-world-paths { display: none; }
  .office-world-room { position: relative; left: auto !important; top: auto !important; width: auto !important; height: auto !important; margin-bottom: 12px; }
  .office-room-floor { min-height: 240px; }
  .office-feed-row { grid-template-columns: 1fr; }
  .refresh-strip,
  .refresh-meta {
    align-items: flex-start;
    text-align: left;
  }
  .refresh-strip {
    flex-direction: column;
  }
  .distribution-hero-panel,
  .distribution-card-top,
  .draft-workspace-top,
  .platform-monitor-top,
  .projects-manifest-head {
    flex-direction: column;
  }
  .distribution-card-grid,
  .timeline-row {
    grid-template-columns: 1fr;
  }
}

@keyframes officeRouteDrift {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -64; }
}

@keyframes officeNodePulse {
  0%, 100% { transform: scale(1); opacity: 0.72; }
  50% { transform: scale(1.18); opacity: 1; }
}

@keyframes officeRoomBreathe {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.72; }
  50% { transform: translate3d(1.5%, -1%, 0) scale(1.04); opacity: 1; }
}

@keyframes officeFlowSweep {
  0%, 100% { opacity: 0.3; filter: brightness(0.92); }
  50% { opacity: 0.9; filter: brightness(1.18); }
}

@keyframes officeLaneOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes officeTaskPulse {
  0% { transform: scale(0.94); opacity: 0.7; }
  70% { transform: scale(1.16); opacity: 0; }
  100% { transform: scale(1.16); opacity: 0; }
}

.distribution-summary-panel {
  padding-top: 12px;
}

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

.distribution-summary-grid .stat-card {
  padding: 10px 12px;
  background: rgba(15,17,21,0.9);
}

.distribution-summary-grid .stat-value {
  font-size: 16px;
}

.distribution-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
}

.distribution-queue-header,
.distribution-context-head,
.distribution-selected-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.distribution-context-head {
  margin-bottom: 12px;
}

.distribution-selection-meta {
  font-size: 12px;
  color: #c7d2fe;
  text-align: right;
}

.distribution-context-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.distribution-context-tab {
  border: 1px solid #2b3240;
  background: #0f131a;
  color: #cbd5e1;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.distribution-context-tab.active {
  background: rgba(79,70,229,0.2);
  border-color: rgba(129,140,248,0.4);
  color: #eef2ff;
}

.distribution-tab-panel {
  display: none;
}

.distribution-tab-panel.active {
  display: block;
}

.distribution-selected-card,
.distribution-empty,
.distribution-details {
  background: #10141b;
  border: 1px solid #2b3240;
  border-radius: 14px;
}

.distribution-selected-card,
.distribution-empty {
  padding: 14px;
}

.distribution-selected-grid {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.distribution-selected-grid span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
  margin-bottom: 4px;
}

.distribution-details {
  padding: 10px 12px;
}

.distribution-details summary {
  cursor: pointer;
  font-weight: 600;
}

.distribution-details[open] summary {
  margin-bottom: 10px;
}

.distribution-inline-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #dbe4f0;
  font-size: 11px;
}

.distribution-card-reason {
  color: #dbe4f0;
  font-size: 13px;
  line-height: 1.45;
  margin: 12px 0;
}

.distribution-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.distribution-card {
  transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.distribution-card:hover {
  transform: translateY(-1px);
  border-color: rgba(96,165,250,0.35);
  cursor: pointer;
}

.distribution-card.selected {
  border-color: rgba(129,140,248,0.5);
  box-shadow: 0 0 0 1px rgba(129,140,248,0.18), 0 12px 28px rgba(79,70,229,0.12);
}

.distribution-actions.compact {
  justify-content: flex-start;
}

.distribution-side-column {
  position: sticky;
  top: 18px;
}
