/* ===========================
   Spiral Constellation View
   DecentCanopy — v0.1
   Extracted from TheJollyLaMa/TheGreenTeaParty
   =========================== */

.map-identity { margin-bottom: 16px; overflow-wrap: anywhere; }
.map-identity > a { color: #7dd3fc; }
.map-identity-banner { display: block; width: 100%; height: 132px; object-fit: cover; border-radius: 12px; }
.map-identity-avatar { display: block; width: 88px; height: 88px; object-fit: cover; border-radius: 50%; border: 3px solid #34d399; margin: 12px 0; }
.map-identity-banner + .map-identity-avatar { position: relative; margin-top: -35px; margin-left: 12px; background: #0f172a; }
.details-group > summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.details-group details > summary { cursor: pointer; color: #cbd5e1; font-size: .85rem; }
#agency-graph-status { color: #a7f3d0; }

:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --surface: #1f2937;
  --surface-raised: #263244;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #22c55e;
  --accent-dark: #16a34a;
  --border: #374151;
  --danger: #ef4444;
  --prototype-note-top: 9rem;
}

:root.light {
  --bg: #f8fafc;
  --bg-soft: #ffffff;
  --surface: #f1f5f9;
  --surface-raised: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --accent: #15803d;
  --accent-dark: #166534;
  --border: #cbd5e1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ---- Layout shell ---- */
.spiral-shell {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Top toolbar ---- */
.spiral-toolbar {
  position: absolute;
  top: 5.9rem;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0) 100%);
  flex-wrap: wrap;
}

.canopy-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  background: rgba(31, 41, 55, 0.82);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--muted);
  font-size: 0.76rem;
  padding: 0.28rem 0.48rem;
  max-width: 100%;
}

.canopy-switch select {
  color: var(--text);
  background: var(--surface-raised);
  font: inherit;
  border-radius: 0.34rem;
  padding: 0.28rem 0.48rem;
  border: 1px solid var(--border);
  min-width: 0;
  max-width: 100%;
}

.canopy-switch select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mode-badge--artizen {
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.48);
}

.fund-canopy-explore,
.fund-canopy-return {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  width: 100%;
  margin: 0.8rem 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(52, 211, 153, 0.38);
  border-radius: 0.7rem;
  color: #d1fae5;
  background: linear-gradient(110deg, rgba(6, 78, 59, 0.46), rgba(15, 23, 42, 0.8));
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.fund-canopy-explore:hover,
.fund-canopy-explore:focus-visible,
.fund-canopy-return:hover,
.fund-canopy-return:focus-visible {
  outline: none;
  border-color: rgba(110, 231, 183, 0.82);
  background: linear-gradient(110deg, rgba(6, 95, 70, 0.62), rgba(15, 23, 42, 0.9));
  transform: translateY(-1px);
}

.fund-canopy-explore small {
  color: #9fb9ae;
  font-size: 0.7rem;
  font-weight: 400;
}

.fund-canopy-return {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 0.35rem 0.6rem;
  color: #a7f3d0;
  background: rgba(6, 78, 59, 0.3);
  font-size: 0.73rem;
}

/* Separator */
.toolbar-sep {
  width: 1px;
  height: 1.4rem;
  background: var(--border);
  flex-shrink: 0;
}

/* Filter labels */
.toolbar-filter {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.toolbar-filter[hidden] {
  display: none;
}

.toolbar-filter label {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.toolbar-filter select {
  font: inherit;
  font-size: 0.8rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  min-width: 120px;
}

.toolbar-filter select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

#agency-index {
  max-width: min(22rem, 58vw);
}

.agency-mode .details-content {
  overflow-wrap: anywhere;
}

.agency-mode .spiral-toolbar :is(#tour-open, #participation-open, #participation-replay, #globe-open, [data-creator-open], #creator-service-status) {
  display: none;
}

.agency-mode .spiral-hint {
  width: max-content;
  max-width: calc(100% - 2rem);
  white-space: normal;
  text-align: center;
}

.canopy-switch {
  flex-wrap: wrap;
}

.toolbar-search input {
  width: min(16rem, 30vw);
  font: inherit;
  font-size: 0.8rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  padding: 0.34rem 0.55rem;
}

.toolbar-search input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

/* Toolbar buttons */
.toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font: inherit;
  font-size: 0.8rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.toolbar-btn:hover {
  background: var(--surface-raised);
  border-color: var(--accent);
}

.toolbar-btn.active {
  background: rgba(34, 197, 94, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.toolbar-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.toolbar-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: var(--border);
}

/* Back link */
.toolbar-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.3rem 0.5rem;
  border-radius: 0.4rem;
  transition: color 0.15s;
  margin-left: auto;
}

.toolbar-back:hover {
  color: var(--text);
}

.spiral-breadcrumbs {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.1rem;
  min-height: 2rem;
}

/* ---- Data notes drawer: docks to the right edge, or to the details sidebar when it is open ---- */
.data-notes {
  position: absolute;
  right: 0;
  bottom: 5.5rem;
  z-index: 24;
  display: flex;
  align-items: flex-end;
  transition: right 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.spiral-shell:has(#details-panel.open) .data-notes {
  right: 340px;
}

.data-notes-tab {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  writing-mode: vertical-rl;
  padding: 0.7rem 0.4rem;
  color: #d1fae5;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.95), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(34, 197, 94, 0.55);
  border-right: 0;
  border-radius: 0.6rem 0 0 0.6rem;
  cursor: pointer;
  box-shadow: -4px 0 14px rgba(0, 0, 0, 0.35);
}

.data-notes-tab span[aria-hidden] {
  writing-mode: horizontal-tb;
}

.data-notes-tab:hover,
.data-notes-tab:focus-visible {
  color: #fff;
  border-color: #34d399;
}

.data-notes-panel {
  width: min(360px, calc(100vw - 3rem));
  max-height: min(48vh, 420px);
  overflow: auto;
  padding: 0.6rem 0.75rem 0.7rem;
  border: 1px solid rgba(34, 197, 94, 0.45);
  border-right: 0;
  border-radius: 0.6rem 0 0 0.6rem;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: -6px 0 22px rgba(0, 0, 0, 0.4);
  animation: data-notes-in 0.2s ease-out;
}

.data-notes[data-open="true"] .data-notes-tab {
  display: none;
}

.data-notes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  color: #a7f3d0;
  font-size: 0.8rem;
}

.data-notes-stash {
  padding: 0.2rem 0.5rem;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  cursor: pointer;
}

.data-notes-stash:hover,
.data-notes-stash:focus-visible {
  color: var(--text);
  border-color: #34d399;
}

@keyframes data-notes-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .data-notes, .data-notes-panel { transition: none; animation: none; }
}

@media (max-width: 720px) {
  .spiral-shell:has(#details-panel.open) .data-notes {
    right: 0;
  }
}

.prototype-vision-note {
  position: static;
}

.repository-activity-controls {
  margin-top: 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  line-height: 1.45;
}

.repository-activity-controls[hidden] { display: none; }
.repository-activity-controls label { display: block; margin: 0.5rem 0; }
.repository-activity-controls p { overflow-wrap: anywhere; }

.prototype-vision-note p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--muted);
}

.prototype-vision-note a {
  color: var(--accent);
}

.prototype-vision-note .fund-canopy-return {
  margin-top: 0.55rem;
}

.data-provenance {
  margin: 0.4rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.data-provenance--curated {
  color: #fcd34d;
}

.details-muted {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.details-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
}

.details-tags span {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  padding: 0.18rem 0.48rem;
}

.crumb-btn {
  --crumb-color: var(--border);
  border: 1px solid color-mix(in srgb, var(--crumb-color) 48%, var(--border));
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.crumb-btn:hover {
  border-color: var(--accent);
  background: var(--surface-raised);
}

.crumb-btn.active {
  background: color-mix(in srgb, var(--crumb-color) 16%, var(--surface));
  border-color: var(--crumb-color);
  color: #f8fafc;
}

.crumb-sep {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---- Canvas ---- */
.spiral-canvas-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: grab;
}

.spiral-canvas-wrap:active {
  cursor: grabbing;
}

#spiral-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

/* ---- Hint bar (bottom) ---- */
.spiral-hint {
  position: absolute;
  bottom: 0.65rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.75);
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
}

/* ---- Tooltip ---- */
#spiral-tooltip {
  position: absolute;
  z-index: 30;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 220px;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

#spiral-tooltip.visible {
  display: flex;
}

#spiral-tooltip strong {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
}

#spiral-tooltip span {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
}

#spiral-tooltip .tip-track {
  font-weight: 600;
  font-size: 0.75rem;
}

/* ---- Details panel ---- */
#details-panel {
  position: absolute;
  top: var(--decent-head-height, 94px);
  right: 0;
  bottom: 0;
  width: 340px;
  max-width: 100vw;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 25;
  transform: translateX(100%);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#details-panel.open {
  transform: translateX(0);
}

.details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.details-header h3 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 0.3rem;
  font-family: inherit;
  transition: color 0.15s, background 0.15s;
}

.close-btn:hover {
  color: var(--text);
  background: var(--surface-raised);
}

.details-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.details-content {
  padding: 1rem;
}

.details-track {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.details-title {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.details-desc {
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.details-priority {
  margin: 0 0 0.95rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 0.7rem;
  background: rgba(34, 197, 94, 0.08);
}

.details-priority h3 {
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.details-priority p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
}

.details-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  align-items: center;
}

.details-meta span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Status badges */
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-active {
  background: rgba(34, 197, 94, 0.18);
  color: #22c55e;
}

.badge-curation {
  background: rgba(59, 130, 246, 0.18);
  color: #3b82f6;
}

.badge-competition {
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
}

.badge-funded {
  background: rgba(34, 197, 94, 0.18);
  color: #22c55e;
}

.badge-archived {
  background: rgba(148, 163, 184, 0.18);
  color: #94a3b8;
}

/* Funding bar */
.details-funding {
  margin-bottom: 1rem;
}

.funding-bar-track {
  background: var(--border);
  border-radius: 2rem;
  height: 6px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.funding-bar-fill {
  height: 100%;
  border-radius: 2rem;
  transition: width 0.4s ease;
}

.details-funding p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Relationship lists */
.details-group {
  margin-bottom: 1rem;
}
.agency-updates { display: grid; gap: 14px; margin: 20px 0; }
.agency-update { padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.agency-update h3 { font-size: .95rem; line-height: 1.5; margin: 10px 0; }
.agency-update p { font-size: .85rem; line-height: 1.75; margin: 10px 0; }
.agency-update ul { padding-left: 18px; font-size: .8rem; line-height: 1.7; }
.agency-update a { color: #93c5fd; text-underline-offset: 3px; overflow-wrap: anywhere; }
.agency-update a:focus-visible { outline: 2px solid #fcd34d; outline-offset: 3px; }
.agency-state { display: inline-block; padding: 4px 8px; border: 1px solid #60a5fa; border-radius: 6px; color: #93c5fd; font-size: .68rem; letter-spacing: .04em; }
.agency-state[data-state="in-flight"] { color: #fcd34d; border-color: #b48b36; }
.agency-state[data-state="planned"] { color: #d8b4fe; border-color: #a777cd; }
.details-group p, .details-desc { line-height: 1.75; }
.details-group > summary { min-height: 36px; }

.details-group h3 {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.details-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.details-group li {
  font-size: 0.82rem;
  color: var(--text);
  padding: 0.3rem 0.5rem;
  background: var(--bg);
  border-radius: 0.35rem;
  border: 1px solid var(--border);
}

.details-group li:has(.related-entity) {
  padding: 0;
  overflow: hidden;
}

.details-group .related-entity {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.42rem 0.55rem;
  color: var(--text);
  background: transparent;
  border: 0;
  border-left: 3px solid var(--entity-color, var(--border));
  text-align: left;
  cursor: pointer;
}

.related-entity:hover,
.related-entity:focus-visible {
  background: var(--surface-raised);
  outline: none;
}

.related-entity small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.details-group small {
  color: var(--muted);
}

/* External links */
.details-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.details-links a {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
}

.details-links a:hover {
  text-decoration: underline;
}

/* ---- Legend ---- */
.spiral-legend {
  position: absolute;
  bottom: 2.5rem;
  left: 0.85rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.55rem 0.7rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- Status legend ---- */
.spiral-status-legend {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.4rem 0.75rem;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- Empty state ---- */
.spiral-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 5;
}

.spiral-empty p {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
}

/* ---- Loading spinner ---- */
.spiral-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 40;
  color: var(--muted);
  font-size: 0.88rem;
}

.spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin-bottom: 0.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  :root {
    --prototype-note-top: 14.5rem;
  }

  .spiral-toolbar {
    top: 5.45rem;
    padding: 0.5rem 0.6rem;
    gap: 0.45rem;
  }

  .toolbar-sep {
    display: none;
  }

  .toolbar-filter select {
    min-width: 90px;
  }

  .canopy-switch {
    flex: 1 1 auto;
  }

  .toolbar-search,
  .toolbar-search input {
    width: 100%;
  }

  .spiral-breadcrumbs {
    gap: 0.25rem;
  }

  .crumb-btn {
    font-size: 0.72rem;
  }

  #details-panel {
    width: 100vw;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60vh;
    max-height: calc(100vh - var(--decent-head-height, 82px));
    border-left: none;
    border-top: 1px solid var(--border);
    transform: translateY(100%);
  }

  #details-panel.open {
    transform: translateY(0);
  }

  .spiral-legend {
    display: none;
  }

  .spiral-status-legend {
    display: none;
  }
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.75);
}

.mode-badge--prototype {
  border-color: #22c55e;
  color: #22c55e;
}

.mode-badge--app {
  border-color: #3b82f6;
  color: #3b82f6;
}

.public-sources {
  overflow-wrap: anywhere;
}

.public-sources dd {
  margin: 0 0 0.6rem 0.8rem;
}

.artizen-mode .spiral-status-legend {
  display: none;
}

.artizen-mode {
  --prototype-note-top: 9.7rem;
}

@media (max-width: 720px) {
  .artizen-mode {
    --prototype-note-top: 15.5rem;
  }
}
