:root {
  --ink-950: #111716;
  --ink-900: #18211f;
  --ink-800: #25312e;
  --ink-700: #3d4b47;
  --ink-600: #586560;
  --ink-500: #74807b;
  --ink-300: #bcc5c0;
  --ink-200: #d7ddda;
  --ink-100: #e9eeeb;
  --ink-50: #f5f7f5;
  --paper: #fffef9;
  --teal-700: #075d57;
  --teal-600: #08766d;
  --teal-500: #0d8b80;
  --teal-100: #d8f1ec;
  --teal-50: #eef9f6;
  --orange-600: #e05f2a;
  --orange-500: #f2763f;
  --orange-100: #ffe4d6;
  --yellow-500: #efc950;
  --yellow-100: #fff2bc;
  --violet-600: #6958b7;
  --violet-100: #ece8ff;
  --blue-600: #3b6fc6;
  --blue-100: #e5edff;
  --red-600: #b84242;
  --red-100: #fde4e2;
  --green-600: #397651;
  --green-100: #e0f2e6;
  --border: rgba(24, 33, 31, 0.12);
  --shadow-sm: 0 2px 8px rgba(6, 20, 18, 0.08);
  --shadow-md: 0 14px 38px rgba(6, 20, 18, 0.15);
  --shadow-lg: 0 28px 80px rgba(4, 16, 14, 0.24);
  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --sidebar-width: 224px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: #0d1211;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink-900);
  background: #0d1211;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select,
summary,
input[type="file"] {
  cursor: pointer;
}

button {
  color: inherit;
}

button,
input,
select,
textarea,
summary {
  outline: none;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  box-shadow: 0 0 0 3px rgba(13, 139, 128, 0.3);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.025em;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: white;
  background: var(--ink-950);
  border-radius: 10px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Simulated source page */

.prototype-stage {
  min-height: 100vh;
  color: #f6f8f6;
  background:
    radial-gradient(circle at 82% 16%, rgba(242, 118, 63, 0.16), transparent 34%),
    radial-gradient(circle at 15% 74%, rgba(13, 139, 128, 0.15), transparent 32%),
    #0e1312;
}

.browser-chrome {
  position: sticky;
  z-index: 3;
  top: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: auto minmax(170px, 250px) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(11, 15, 14, 0.88);
  backdrop-filter: blur(18px);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
}

.browser-dots span:nth-child(1) { background: #ec7056; }
.browser-dots span:nth-child(2) { background: #e9bd51; }
.browser-dots span:nth-child(3) { background: #58b178; }

.source-switcher {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.source-switcher > span {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-switcher select {
  min-width: 0;
  width: 100%;
  padding: 5px 24px 5px 4px;
  color: #f7faf8;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 650;
}

.address-bar {
  min-width: 0;
  overflow: hidden;
  padding: 9px 15px;
  color: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prototype-badge {
  padding: 6px 9px;
  color: #ffdda4;
  border: 1px solid rgba(255, 221, 164, 0.25);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.host-page {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 76px 0 130px;
}

.host-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 36px;
  margin-bottom: 42px;
}

.host-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: #87d8ca;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.host-kicker::before {
  width: 22px;
  height: 1px;
  content: "";
  background: currentColor;
}

.host-title {
  max-width: 720px;
  margin-bottom: 14px;
  color: #fffef9;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 750;
  line-height: 0.97;
}

.host-description {
  max-width: 610px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.57);
  font-size: 16px;
}

.host-stats {
  display: flex;
  gap: 10px;
}

.host-stat {
  min-width: 92px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.host-stat strong,
.host-stat span {
  display: block;
}

.host-stat strong {
  margin-bottom: 3px;
  color: #fff;
  font-size: 18px;
}

.host-stat span {
  color: rgba(255, 255, 255, 0.44);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.host-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.host-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.host-filter,
.host-sort {
  min-height: 38px;
  padding: 8px 13px;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.host-filter.is-active {
  color: #13201d;
  background: #d6f3ed;
}

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

.source-card {
  position: relative;
  min-width: 0;
  padding: 14px;
  overflow: hidden;
  color: #f7faf8;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  transition: 180ms ease;
}

.source-card:hover,
.source-card.is-selected {
  border-color: rgba(116, 224, 206, 0.55);
  background: rgba(255, 255, 255, 0.075);
  transform: translateY(-2px);
}

.source-card.is-selected::after {
  position: absolute;
  top: 11px;
  right: 11px;
  padding: 5px 8px;
  content: "SELECTED";
  color: #0b4d48;
  background: #cdeee8;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.cover-art {
  position: relative;
  height: 170px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(135deg, #ea6b38, #5f4a9b 58%, #113c44);
}

.cover-art::before,
.cover-art::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.cover-art::before {
  width: 132px;
  height: 132px;
  right: -22px;
  bottom: -28px;
  border: 20px solid rgba(255, 255, 255, 0.14);
}

.cover-art::after {
  width: 64px;
  height: 64px;
  top: 22px;
  left: 22px;
  background: rgba(255, 237, 183, 0.84);
  box-shadow: 44px 34px 0 rgba(9, 31, 29, 0.36);
}

.cover-art[data-tone="teal"] { background: linear-gradient(145deg, #0c796f, #122a2d 63%, #eab84c); }
.cover-art[data-tone="violet"] { background: linear-gradient(145deg, #5e4bb6, #202341 58%, #f27945); }
.cover-art[data-tone="blue"] { background: linear-gradient(145deg, #236b8a, #15282f 64%, #89cdbd); }
.cover-art[data-tone="gold"] { background: linear-gradient(145deg, #d3982f, #4b291d 60%, #101817); }

.source-card h2 {
  margin-bottom: 4px;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-card > p {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.47);
  font-size: 12px;
}

.wave-line {
  height: 32px;
  margin-bottom: 11px;
  opacity: 0.62;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent) center / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 2px, transparent 2px 7px) center / 100% 55% no-repeat;
  mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
}

.source-meta-row,
.source-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.source-meta-row span,
.source-tags span {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
}

.source-meta-row span {
  color: rgba(255,255,255,.68);
  background: rgba(255,255,255,.07);
}

.source-tags {
  margin-top: 8px;
}

.source-tags span {
  color: #a9ddd3;
  background: rgba(83, 192, 174, 0.09);
}

.prototype-caption {
  position: fixed;
  z-index: 2;
  left: 22px;
  bottom: 20px;
  max-width: min(520px, calc(100vw - 150px));
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(8, 12, 11, 0.74);
  backdrop-filter: blur(12px);
  font-size: 11px;
}

.caption-dot,
.online-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #55b793;
  box-shadow: 0 0 0 4px rgba(85, 183, 147, 0.12);
}

/* Floating companion */

.companion {
  position: fixed;
  z-index: 40;
  right: 22px;
  bottom: 20px;
  width: 74px;
  height: 270px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.companion::before {
  position: absolute;
  z-index: 0;
  right: 4px;
  bottom: -3px;
  width: 66px;
  height: 262px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(250, 248, 241, 0.94);
  box-shadow: 0 18px 50px rgba(4, 19, 17, 0.3);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: scaleY(.24);
  transform-origin: 50% 100%;
  transition: opacity 160ms ease, transform 210ms cubic-bezier(.2, .75, .18, 1);
  pointer-events: none;
}

.companion:hover,
.companion:focus-within,
.companion[data-expanded="true"] {
  pointer-events: auto;
}

.companion:hover::before,
.companion:focus-within::before,
.companion[data-expanded="true"]::before {
  opacity: 1;
  transform: scaleY(1);
}

.capture-orb {
  position: relative;
  z-index: 3;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  overflow: hidden;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,.48), transparent 18%),
    linear-gradient(145deg, #ff6c82, #e84d6a 58%, #ba3856);
  box-shadow: 0 10px 34px rgba(85, 18, 43, 0.4), inset 0 1px 0 rgba(255,255,255,.45);
  pointer-events: auto;
  transition: 180ms ease;
}

.capture-orb::after {
  position: absolute;
  right: 4px;
  bottom: 6px;
  width: 9px;
  height: 9px;
  content: "";
  border: 2px solid rgba(255,255,255,.94);
  border-radius: 50%;
  background: #65d183;
  box-shadow: 0 2px 7px rgba(15, 74, 36, .35);
}

.capture-orb:hover,
.capture-orb[aria-expanded="true"] {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 42px rgba(85, 18, 43, 0.48), inset 0 1px 0 rgba(255,255,255,.55);
}

.orb-rings {
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
}

.orb-rings::after {
  position: absolute;
  inset: 6px;
  content: "";
  border: 1px dashed rgba(255,255,255,.22);
  border-radius: 50%;
  animation: slow-spin 16s linear infinite;
}

.orb-wave {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.orb-wave i {
  width: 3px;
  height: 15px;
  background: white;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}

.orb-wave i:nth-child(1) { height: 10px; opacity: .75; }
.orb-wave i:nth-child(2) { height: 22px; }
.orb-wave i:nth-child(3) { height: 29px; }
.orb-wave i:nth-child(4) { height: 18px; }
.orb-wave i:nth-child(5) { height: 8px; opacity: .75; }

.capture-orb:hover .orb-wave i:nth-child(odd) {
  animation: tiny-wave .8s ease-in-out infinite alternate;
}

@keyframes slow-spin { to { transform: rotate(360deg); } }
@keyframes tiny-wave { to { transform: scaleY(.6); } }

.orb-hint {
  position: absolute;
  right: 78px;
  bottom: 13px;
  width: max-content;
  padding: 8px 11px;
  color: #0a423e;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
  background: #ddf7f1;
  box-shadow: var(--shadow-md);
  font-size: 11px;
  font-weight: 750;
  opacity: 0;
  transform: translateX(8px);
  transition: 160ms ease;
  pointer-events: none;
}

.companion:hover .orb-hint,
.companion:focus-within .orb-hint {
  opacity: 1;
  transform: translateX(0);
}

.dock-actions {
  position: absolute;
  z-index: 2;
  right: 13px;
  bottom: 76px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(18px) scale(.9);
  transform-origin: bottom;
  transition: opacity 150ms ease, transform 210ms cubic-bezier(.2, .75, .18, 1);
  pointer-events: none;
}

.companion:hover .dock-actions,
.companion:focus-within .dock-actions,
.companion[data-expanded="true"] .dock-actions {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.companion[data-panel-open="true"] .dock-actions,
.companion[data-panel-open="true"] .orb-hint {
  opacity: 0;
  transform: translateY(10px) scale(.94);
  pointer-events: none;
}

.companion[data-panel-open="true"]::before {
  opacity: 0;
  transform: scaleY(.24);
}

.dock-action {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #1f403b;
  border: 1px solid rgba(25, 57, 51, .12);
  border-radius: 50%;
  background: rgba(255, 255, 252, .96);
  box-shadow: 0 7px 18px rgba(12, 39, 34, .14);
  transition: transform 150ms ease, color 150ms ease, background 150ms ease;
}

.dock-action--library {
  color: #124a43;
  background: #dff4ee;
}

.dock-action--resolve {
  color: #7d2944;
  background: #ffe4e9;
}

.dock-action:hover,
.dock-action:focus-visible {
  color: white;
  background: #143f39;
  transform: translateX(-2px);
}

.dock-tooltip {
  position: absolute;
  right: 58px;
  width: max-content;
  padding: 5px 8px;
  color: white;
  border-radius: 7px;
  background: rgba(5, 12, 11, .9);
  font-size: 10px;
  opacity: 0;
  transform: translateX(4px);
  transition: 130ms ease;
  pointer-events: none;
}

.dock-action:hover .dock-tooltip,
.dock-action:focus-visible .dock-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.grid-icon {
  width: 17px;
  height: 17px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.grid-icon i {
  display: block;
  border: 1.7px solid currentColor;
  border-radius: 3px;
}

.revisit-icon {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.resolve-icon {
  position: relative;
  width: 18px;
  height: 15px;
  border: 1.8px solid currentColor;
  border-radius: 6px;
}

.resolve-icon::after {
  position: absolute;
  left: 3px;
  bottom: -4px;
  width: 6px;
  height: 6px;
  content: "";
  border-left: 1.8px solid currentColor;
  transform: skewY(-38deg);
}

/* Capture popover */

.capture-popover {
  position: fixed;
  z-index: 35;
  right: 22px;
  bottom: 96px;
  width: min(396px, calc(100vw - 28px));
  max-height: calc(100vh - 120px);
  overflow: hidden;
  color: var(--ink-900);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 24px;
  background: rgba(255, 254, 249, 0.98);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(22px);
}

.capture-popover[hidden] {
  display: none;
}

.capture-popover.is-opening {
  animation: pop-in 180ms ease-out;
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.capture-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 12px;
}

.eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.capture-header h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--ink-600);
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  font-size: 20px;
  line-height: 1;
}

.icon-button:hover {
  color: var(--ink-900);
  background: white;
}

.mode-row {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 25px;
  align-items: center;
  gap: 4px;
  padding: 0 13px 12px;
}

.mode-arrow {
  height: 32px;
  padding: 0;
  color: var(--ink-500);
  border: 0;
  background: transparent;
  font-size: 22px;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--ink-50);
}

.mode-tab {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
}

.mode-tab.is-active {
  background: white;
  box-shadow: var(--shadow-sm);
}

.mode-tab strong,
.mode-tab small {
  display: block;
}

.mode-tab strong {
  font-size: 12px;
}

.mode-tab small {
  color: var(--ink-500);
  font-size: 9px;
}

.mode-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.mode-dot--build { background: var(--orange-500); box-shadow: 0 0 0 4px var(--orange-100); }
.mode-dot--explore { background: var(--violet-600); box-shadow: 0 0 0 4px var(--violet-100); }

.capture-form {
  max-height: calc(100vh - 236px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 14px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-300) transparent;
}

.detected-card,
.context-card,
.capture-details {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
}

.detected-card {
  padding: 12px;
}

.detected-topline,
.context-heading,
.capture-footer,
.field-heading,
.voice-row,
.evidence-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detected-topline .eyebrow {
  margin: 0;
}

.source-chip {
  padding: 4px 7px;
  color: var(--teal-700);
  border-radius: 999px;
  background: var(--teal-50);
  font-size: 9px;
  font-weight: 800;
}

.detected-main {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
}

.mini-art {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--orange-500), var(--violet-600));
}

.mini-art[data-tone="teal"] { background: linear-gradient(145deg, #0a9c8f, #173b3d); }
.mini-art[data-tone="violet"] { background: linear-gradient(145deg, #705cc9, #ef7842); }
.mini-art[data-tone="blue"] { background: linear-gradient(145deg, #347aa3, #93d7c6); }
.mini-art[data-tone="gold"] { background: linear-gradient(145deg, #d9a03a, #3f2218); }

.detected-copy {
  min-width: 0;
}

.detected-copy strong,
.detected-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detected-copy strong {
  font-size: 12px;
}

.detected-copy span {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 10px;
}

.text-button,
.inline-link {
  padding: 0;
  color: var(--teal-700);
  border: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 750;
}

.text-button:hover,
.inline-link:hover {
  text-decoration: underline;
}

.url-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding-top: 8px;
  color: var(--ink-500);
  border-top: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
}

.url-row span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.context-card {
  margin-top: 9px;
  padding: 11px 12px;
}

.context-card--build {
  border-color: rgba(224, 95, 42, .22);
  background: #fff9f3;
}

.context-card--explore {
  border-color: rgba(105, 88, 183, .2);
  background: #f8f6ff;
}

.context-heading strong,
.context-card--explore strong {
  display: block;
  font-size: 13px;
}

.compact-field select {
  width: 100%;
  margin-top: 7px;
  padding: 8px 10px;
  color: var(--ink-800);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  font-weight: 650;
}

.context-summary,
.context-card p {
  margin: 7px 0 0;
  color: var(--ink-500);
  font-size: 9px;
}

.field {
  display: block;
  margin-top: 11px;
}

.field-heading,
.field > span:first-child {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 750;
}

.optional-label {
  color: var(--ink-500);
  font-size: 8px;
  font-weight: 600;
}

.field textarea,
.field input,
.field select,
.relationship-row select,
.metadata-grid input,
.metadata-grid select {
  width: 100%;
  color: var(--ink-900);
  border: 1px solid var(--border);
  border-radius: 11px;
  background: white;
}

.field textarea,
.field input,
.field select {
  padding: 10px 11px;
}

.field textarea {
  resize: vertical;
}

.field textarea::placeholder,
.field input::placeholder,
.metadata-grid input::placeholder {
  color: #99a29e;
}

.voice-row {
  margin-top: 8px;
  justify-content: flex-start;
}

.voice-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: #523fa1;
  border: 1px solid #d8d0ff;
  border-radius: 999px;
  background: #f3f0ff;
  font-size: 10px;
  font-weight: 750;
}

.voice-button.is-listening {
  color: #8f3131;
  border-color: #f1bcbc;
  background: #fff0ef;
}

.mic-icon {
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: currentColor;
  font-size: 5px;
}

#voice-status {
  color: var(--ink-500);
  font-size: 8px;
}

.prompt-strip {
  display: flex;
  gap: 6px;
  margin-top: 9px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.prompt-strip::-webkit-scrollbar {
  display: none;
}

.prompt-strip button {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: var(--ink-600);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--ink-50);
  font-size: 9px;
}

.prompt-strip button.is-selected {
  color: var(--teal-700);
  border-color: #a4d8cf;
  background: var(--teal-50);
}

.capture-details {
  margin-top: 9px;
  overflow: hidden;
}

.capture-details summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  list-style: none;
  font-size: 11px;
  font-weight: 750;
}

.capture-details summary::-webkit-details-marker {
  display: none;
}

.capture-details summary::after {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  content: "+";
  color: var(--ink-500);
  border-radius: 50%;
  background: var(--ink-50);
}

.capture-details[open] summary::after {
  content: "−";
}

.capture-details summary small {
  margin-left: auto;
  color: var(--ink-500);
  font-size: 8px;
  font-weight: 600;
}

.capture-details[open] > *:not(summary) {
  margin-left: 12px;
  margin-right: 12px;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding-top: 2px;
}

.metadata-grid label span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-500);
  font-size: 8px;
  font-weight: 700;
}

.metadata-grid input,
.metadata-grid select {
  min-width: 0;
  padding: 7px 6px;
  font-size: 9px;
}

.detected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.detected-tags span {
  padding: 4px 6px;
  color: var(--teal-700);
  border-radius: 999px;
  background: var(--teal-50);
  font-size: 8px;
  font-weight: 700;
}

.inline-link {
  margin: 9px 0 10px !important;
}

.more-metadata {
  padding-bottom: 10px;
}

.relationship-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding-top: 2px;
}

.relationship-row select {
  min-width: 0;
  padding: 8px 7px;
  font-size: 9px;
}

.microcopy,
.boundary-note,
.file-note {
  color: var(--ink-500);
  font-size: 8px;
}

.microcopy {
  margin-top: 7px;
  padding-bottom: 2px;
}

.field--compact {
  margin-top: 0 !important;
}

.field--compact select {
  padding: 8px 9px;
  font-size: 9px;
}

.evidence-actions {
  justify-content: flex-start;
  margin-top: 8px !important;
}

.file-button {
  position: relative;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  color: var(--teal-700);
  border: 1px solid #b7ddd6;
  border-radius: 9px;
  background: var(--teal-50);
  font-size: 9px;
  font-weight: 750;
}

.file-button input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
}

.file-note {
  margin-top: 6px !important;
}

.boundary-note {
  margin-top: 7px !important;
  margin-bottom: 10px !important;
  padding: 7px 8px;
  color: #735a22;
  border-radius: 8px;
  background: #fff8db;
}

.form-error {
  margin-top: 9px;
  padding: 8px 10px;
  color: #943d3d;
  border-radius: 10px;
  background: var(--red-100);
  font-size: 10px;
}

.capture-footer {
  position: sticky;
  bottom: -14px;
  margin-top: 10px;
  padding: 10px 0 0;
  background: linear-gradient(transparent, var(--paper) 24%);
}

.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 750;
}

.button--primary {
  color: white;
  background: var(--teal-600);
  box-shadow: var(--shadow-sm);
}

.button--primary:hover {
  background: var(--teal-700);
}

.button--quiet {
  color: var(--ink-700);
  border-color: var(--border);
  background: white;
}

.button--quiet:hover {
  background: var(--ink-50);
}

/* Full personal library */

.workspace-shell {
  position: fixed;
  z-index: 80;
  inset: 14px;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  overflow: hidden;
  color: var(--ink-900);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 26px;
  background: #f4f5f1;
  box-shadow: 0 34px 110px rgba(0,0,0,.42);
}

.workspace-shell[hidden] {
  display: none;
}

.workspace-shell.is-opening {
  animation: workspace-in 220ms ease-out;
}

@keyframes workspace-in {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.workspace-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  color: #eef4f1;
  background:
    radial-gradient(circle at 10% 94%, rgba(242,118,63,.19), transparent 33%),
    #17211f;
}

.workspace-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 8px 22px;
}

.workspace-logo {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--teal-500), var(--orange-500));
}

.workspace-logo i {
  width: 2px;
  background: white;
  border-radius: 99px;
}

.workspace-logo i:nth-child(1) { height: 8px; }
.workspace-logo i:nth-child(2) { height: 17px; }
.workspace-logo i:nth-child(3) { height: 24px; }
.workspace-logo i:nth-child(4) { height: 14px; }
.workspace-logo i:nth-child(5) { height: 7px; }

.workspace-brand strong,
.workspace-brand small {
  display: block;
}

.workspace-brand strong {
  font-size: 16px;
}

.workspace-brand small {
  color: rgba(255,255,255,.45);
  font-size: 9px;
  letter-spacing: .07em;
}

.workspace-nav {
  display: grid;
  gap: 5px;
}

.workspace-nav-item,
.workspace-guide-link {
  width: 100%;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 10px 11px;
  color: rgba(255,255,255,.66);
  border: 0;
  border-radius: 11px;
  background: transparent;
  text-align: left;
  font-size: 12px;
}

.workspace-nav-item:hover,
.workspace-nav-item.is-active,
.workspace-guide-link:hover,
.workspace-guide-link.is-active {
  color: white;
  background: rgba(255,255,255,.08);
}

.workspace-nav-item small {
  padding: 3px 6px;
  color: rgba(255,255,255,.53);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  font-size: 8px;
}

.workspace-sidebar-bottom {
  margin-top: auto;
}

.workspace-guide-link {
  grid-template-columns: 24px 1fr;
  margin-bottom: 12px;
}

.version-note {
  display: grid;
  gap: 4px;
  padding: 11px;
  color: rgba(255,255,255,.44);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  font-size: 8px;
}

.version-note strong {
  color: rgba(255,255,255,.68);
}

.workspace-body {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 62px minmax(0, 1fr);
}

.workspace-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(18px);
}

.workspace-context,
.workspace-top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.workspace-context {
  color: var(--ink-500);
  font-size: 10px;
}

.icon-button--light {
  background: white;
}

.workspace-content {
  min-width: 0;
  overflow-y: auto;
  padding: 30px clamp(20px, 4vw, 52px) 54px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.page-header h1 {
  margin-bottom: 7px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.page-header p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--ink-500);
  font-size: 12px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.summary-card {
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255,255,255,.7);
}

.summary-card strong,
.summary-card span {
  display: block;
}

.summary-card strong {
  margin-bottom: 3px;
  font-size: 20px;
}

.summary-card span {
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.library-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(120px, 170px));
  gap: 8px;
  margin-bottom: 16px;
}

.search-field,
.filter-select {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  color: var(--ink-800);
  border: 1px solid var(--border);
  border-radius: 11px;
  background: white;
  font-size: 10px;
}

.asset-list {
  display: grid;
  gap: 8px;
}

.asset-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(170px, 1.3fr) minmax(150px, 1fr) minmax(145px, .85fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px;
  color: var(--ink-900);
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255,255,255,.78);
  text-align: left;
  transition: 150ms ease;
}

.asset-row:hover {
  border-color: rgba(13,139,128,.3);
  background: white;
  transform: translateY(-1px);
}

.asset-art {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--orange-500), var(--violet-600));
}

.asset-art[data-tone="teal"] { background: linear-gradient(145deg, #0b9b8f, #173d3e); }
.asset-art[data-tone="violet"] { background: linear-gradient(145deg, #705ac6, #ef7741); }
.asset-art[data-tone="blue"] { background: linear-gradient(145deg, #3479a0, #9adbc9); }
.asset-art[data-tone="gold"] { background: linear-gradient(145deg, #d6a03c, #4b251b); }
.asset-art[data-tone="grey"] { background: linear-gradient(145deg, #6e7b77, #25312e); }

.asset-primary,
.asset-secondary,
.asset-evidence {
  min-width: 0;
}

.asset-primary strong,
.asset-primary span,
.asset-secondary strong,
.asset-secondary span,
.asset-evidence strong,
.asset-evidence span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-primary strong {
  margin-bottom: 3px;
  font-size: 12px;
}

.asset-primary span,
.asset-secondary span,
.asset-evidence span {
  color: var(--ink-500);
  font-size: 9px;
}

.asset-secondary strong,
.asset-evidence strong {
  margin-bottom: 3px;
  color: var(--ink-700);
  font-size: 10px;
}

.status-pill {
  width: max-content;
  max-width: 100%;
  padding: 5px 8px;
  overflow: hidden;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill--good { color: var(--green-600); background: var(--green-100); }
.status-pill--warn { color: #795b16; background: var(--yellow-100); }
.status-pill--info { color: var(--blue-600); background: var(--blue-100); }
.status-pill--neutral { color: var(--ink-600); background: var(--ink-100); }
.status-pill--risk { color: var(--red-600); background: var(--red-100); }

.row-arrow {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--ink-500);
  border: 1px solid var(--border);
  border-radius: 50%;
  background: white;
}

.empty-state {
  padding: 34px;
  color: var(--ink-500);
  border: 1px dashed var(--ink-300);
  border-radius: 17px;
  text-align: center;
}

.project-grid,
.resolve-grid,
.guide-grid,
.revisit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.project-card,
.panel-card,
.guide-card,
.revisit-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
}

.project-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.project-topline,
.card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.project-card h2,
.panel-card h2,
.guide-card h2,
.revisit-card h2 {
  margin-bottom: 6px;
  font-size: 18px;
}

.project-card p,
.panel-card > p,
.guide-card p,
.revisit-card p {
  color: var(--ink-500);
  font-size: 10px;
}

.project-properties,
.tag-row,
.evidence-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-properties span,
.tag-row span {
  padding: 5px 7px;
  color: var(--ink-600);
  border-radius: 999px;
  background: var(--ink-50);
  font-size: 8px;
  font-weight: 700;
}

.project-card .button {
  width: max-content;
  margin-top: auto;
}

.relationship-line {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
}

.relationship-node {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: white;
}

.relationship-node strong,
.relationship-node span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.relationship-node strong { font-size: 10px; }
.relationship-node span { margin-top: 2px; color: var(--ink-500); font-size: 8px; }

.relationship-label {
  padding: 5px 7px;
  color: var(--violet-600);
  border-radius: 999px;
  background: var(--violet-100);
  font-size: 8px;
  font-weight: 750;
}

.resolve-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
}

.chat-window {
  min-height: 270px;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  display: grid;
  gap: 9px;
  margin: 12px 0;
}

.chat-bubble {
  max-width: 88%;
  padding: 10px 11px;
  border-radius: 13px;
  font-size: 10px;
}

.chat-bubble--assistant {
  color: var(--ink-700);
  background: var(--teal-50);
  border-bottom-left-radius: 4px;
}

.chat-bubble--user {
  justify-self: end;
  color: white;
  background: var(--ink-800);
  border-bottom-right-radius: 4px;
}

.prompt-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.prompt-suggestions button {
  padding: 6px 8px;
  color: var(--teal-700);
  border: 1px solid #c8e8e2;
  border-radius: 999px;
  background: var(--teal-50);
  font-size: 8px;
}

.chat-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  margin-top: auto;
}

.chat-input-row input {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.thread-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.thread-item {
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
}

.thread-item strong,
.thread-item span {
  display: block;
}

.thread-item strong { font-size: 10px; }
.thread-item span { margin-top: 4px; color: var(--ink-500); font-size: 8px; }

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

.guide-card--wide {
  grid-column: span 2;
}

.guide-step-list,
.rule-list,
.handoff-list,
.detail-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.guide-step,
.rule-list li,
.handoff-list li,
.detail-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  color: var(--ink-600);
  font-size: 9px;
}

.guide-step b,
.rule-list b,
.handoff-list b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--teal-700);
  border-radius: 50%;
  background: var(--teal-50);
  font-size: 8px;
}

.evidence-legend {
  margin-top: 12px;
}

.legend-item {
  min-width: 120px;
  flex: 1 1 140px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: white;
}

.legend-item strong,
.legend-item span { display: block; }
.legend-item strong { font-size: 9px; }
.legend-item span { margin-top: 3px; color: var(--ink-500); font-size: 8px; }

/* Modal */

.modal-backdrop {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 12, 11, .62);
  backdrop-filter: blur(8px);
}

.modal-card {
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 20px;
  color: var(--ink-900);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.modal-card--wide {
  width: min(780px, 100%);
}

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

.modal-header h2 {
  margin-bottom: 4px;
  font-size: 24px;
}

.modal-header p {
  margin-bottom: 0;
  color: var(--ink-500);
  font-size: 10px;
}

.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-form-grid .field {
  margin: 0;
}

.modal-form-grid .field--wide {
  grid-column: 1 / -1;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}

.asset-detail-hero {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.asset-detail-hero .asset-art {
  width: 82px;
  height: 82px;
  border-radius: 18px;
}

.asset-detail-hero h2 { margin-bottom: 5px; font-size: 24px; }
.asset-detail-hero p { margin-bottom: 8px; color: var(--ink-500); font-size: 10px; }

.detail-columns,
.handoff-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.detail-panel,
.handoff-panel {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
}

.detail-panel h3,
.handoff-panel h3 { margin-bottom: 8px; font-size: 13px; }

.detail-pair {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 9px;
}

.detail-pair:last-child { border-bottom: 0; }
.detail-pair span:first-child { color: var(--ink-500); }

.daw-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 12px;
}

.daw-tab {
  padding: 10px;
  color: var(--ink-600);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  font-size: 10px;
  font-weight: 750;
}

.daw-tab.is-active {
  color: var(--teal-700);
  border-color: #a9d8d0;
  background: var(--teal-50);
}

.handoff-boundary {
  margin: 12px 0 0;
  padding: 10px;
  color: #6d5420;
  border-radius: 10px;
  background: #fff6d7;
  font-size: 9px;
}

.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 24px;
  min-width: min(360px, calc(100vw - 30px));
  max-width: 520px;
  padding: 11px 14px;
  color: white;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: rgba(22, 33, 30, .96);
  box-shadow: var(--shadow-lg);
  font-size: 10px;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .host-hero { grid-template-columns: 1fr; }
  .host-stats { justify-content: flex-start; }
  .workspace-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .library-toolbar { grid-template-columns: 1fr 1fr; }
  .asset-row { grid-template-columns: 46px minmax(150px, 1fr) minmax(120px, .8fr) auto; }
  .asset-evidence { display: none; }
  .guide-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .browser-chrome {
    grid-template-columns: auto 1fr auto;
    padding: 9px 12px;
  }
  .source-switcher { grid-column: 2; }
  .address-bar { grid-column: 1 / -1; grid-row: 2; }
  .prototype-badge { grid-column: 3; grid-row: 1; }
  .host-page { width: calc(100% - 28px); padding-top: 44px; }
  .host-title { font-size: 46px; }
  .host-stats { display: none; }
  .host-toolbar { align-items: flex-start; flex-direction: column; }
  .source-grid { grid-template-columns: 1fr; }
  .cover-art { height: 150px; }
  .prototype-caption { display: none; }
  .companion { right: 14px; bottom: 14px; }
  .capture-orb { width: 58px; height: 58px; }
  .capture-popover {
    right: 14px;
    bottom: 84px;
    width: calc(100vw - 28px);
    max-height: calc(100vh - 104px);
  }
  .capture-form { max-height: calc(100vh - 220px); }
  .metadata-grid { grid-template-columns: 1fr 1fr; }
  .workspace-shell {
    inset: 7px;
    grid-template-columns: 1fr;
    border-radius: 20px;
  }
  .workspace-sidebar {
    min-height: 68px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 8px 10px;
  }
  .workspace-brand { padding: 0; }
  .workspace-brand small { display: none; }
  .workspace-nav { display: flex; justify-content: center; overflow-x: auto; }
  .workspace-nav-item { width: auto; grid-template-columns: 18px auto; padding: 8px; }
  .workspace-nav-item small { display: none; }
  .workspace-sidebar-bottom { margin: 0; }
  .workspace-guide-link { width: 36px; height: 36px; display: grid; place-items: center; margin: 0; padding: 0; }
  .workspace-guide-link span:last-child,
  .version-note { display: none; }
  .workspace-body { grid-template-rows: 56px minmax(0, 1fr); min-height: 0; }
  .workspace-topbar { padding: 8px 10px; }
  .workspace-context { display: none; }
  .workspace-top-actions { width: 100%; justify-content: flex-end; }
  .workspace-content { padding: 22px 14px 44px; }
  .page-header { align-items: flex-start; flex-direction: column; }
  .summary-strip { grid-template-columns: 1fr 1fr; }
  .library-toolbar { grid-template-columns: 1fr; }
  .asset-row { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .asset-art { width: 42px; height: 42px; }
  .asset-secondary,
  .asset-evidence { display: none; }
  .project-grid,
  .resolve-grid,
  .guide-grid,
  .revisit-grid,
  .detail-columns,
  .handoff-columns { grid-template-columns: 1fr; }
  .guide-card--wide { grid-column: auto; }
  .modal-form-grid { grid-template-columns: 1fr; }
  .modal-form-grid .field--wide { grid-column: auto; }
}

/* --------------------------------------------------------------------------
   v0.9 — SampleNova: retro-future sample atlas
   Professional labels stay literal; the star system carries hierarchy and mood.
   -------------------------------------------------------------------------- */

:root {
  --nova-night: #08070b;
  --nova-night-2: #0e0c12;
  --nova-panel: #151219;
  --nova-panel-2: #1c1721;
  --nova-paper: #f1ecdf;
  --nova-paper-dim: #c8c0b6;
  --nova-muted: #918a96;
  --nova-violet: #6138ff;
  --nova-violet-soft: #a894ff;
  --nova-pink: #ff4fa3;
  --nova-pink-soft: #ff9cca;
  --nova-acid: #f0ff58;
  --nova-amber: #ffb85a;
  --nova-red: #ff6979;
  --nova-line: rgba(241, 236, 223, .11);
  --nova-line-strong: rgba(241, 236, 223, .22);
  --nova-shadow: 0 28px 90px rgba(0, 0, 0, .62);
}

body,
button,
input,
select,
textarea {
  font-family: Manrope, "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.source-switcher > span,
.prototype-badge,
.eyebrow,
.host-kicker,
.summary-card span {
  font-family: Manrope, "Noto Sans SC", sans-serif;
  font-weight: 500;
}

.host-page {
  background:
    radial-gradient(circle at 9% 18%, rgba(97, 56, 255, .12), transparent 27%),
    radial-gradient(circle at 86% 42%, rgba(255, 79, 163, .075), transparent 25%);
}

.browser-chrome {
  background: rgba(10, 9, 13, .91);
}

.browser-dots span:nth-child(3),
.caption-dot,
.online-dot {
  background: var(--nova-pink) !important;
  box-shadow: 0 0 0 4px rgba(255, 79, 163, .09) !important;
}

.host-kicker {
  color: var(--nova-pink-soft);
}

.host-title {
  max-width: 900px;
  font-weight: 300;
  letter-spacing: -.062em;
}

.host-filter.is-active {
  color: var(--nova-night);
  border-color: var(--nova-paper);
  background: var(--nova-paper);
}

.source-card:hover,
.source-card.is-selected {
  border-color: rgba(255, 79, 163, .48);
  box-shadow: 0 18px 52px rgba(0, 0, 0, .28), 0 0 0 1px rgba(97, 56, 255, .12);
}

.source-card.is-selected::after {
  color: var(--nova-night);
  background: var(--nova-pink);
}

.source-card h2 {
  font-weight: 400;
}

/* Compact floating companion and Loop-S star mark. */

.companion {
  right: 17px;
  bottom: 17px;
  width: 54px;
  height: 210px;
}

.companion::before {
  right: 3px;
  bottom: -3px;
  width: 48px;
  height: 198px;
  border-color: rgba(241, 236, 223, .14);
  border-radius: 27px;
  background: rgba(14, 12, 18, .92);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .54), inset 0 1px 0 rgba(255, 255, 255, .045);
  backdrop-filter: blur(22px) saturate(135%);
}

.capture-orb {
  width: 48px;
  height: 48px;
  border-color: rgba(241, 236, 223, .42);
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 79, 163, .16), transparent 34%),
    #100d15;
  box-shadow: 0 12px 31px rgba(0, 0, 0, .56), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.capture-orb::before {
  inset: 3px;
  border-color: rgba(241, 236, 223, .09);
  border-top-color: rgba(255, 79, 163, .7);
  border-right-color: rgba(97, 56, 255, .7);
}

.capture-orb:hover,
.capture-orb[aria-expanded="true"] {
  border-color: rgba(255, 156, 202, .86);
  box-shadow: 0 17px 42px rgba(0, 0, 0, .64), 0 0 0 4px rgba(255, 79, 163, .11), 0 0 28px rgba(97, 56, 255, .18);
}

.samplepath-mark {
  width: 36px;
  height: 36px;
}

.samplepath-mark .mark-loop {
  fill: none;
  stroke-width: 4.1;
  stroke-linecap: round;
}

.samplepath-mark .mark-loop--pink { stroke: var(--nova-pink); }
.samplepath-mark .mark-loop--violet { stroke: var(--nova-violet-soft); }

.samplepath-mark .mark-s {
  fill: none;
  stroke: var(--nova-paper);
  stroke-width: 6.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.samplepath-mark .mark-star {
  fill: var(--nova-acid);
  stroke: none;
  filter: drop-shadow(0 0 7px rgba(240, 255, 88, .46));
}

.dock-actions {
  right: 9px;
  bottom: 58px;
  gap: 7px;
}

.dock-action,
.dock-action--library,
.dock-action--resolve,
.dock-action--mission {
  width: 36px;
  height: 36px;
  color: var(--nova-paper-dim);
  border-color: rgba(241, 236, 223, .12);
  background: rgba(28, 23, 33, .92);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
}

.dock-action:hover,
.dock-action:focus-visible {
  color: var(--nova-night);
  border-color: var(--nova-pink);
  background: var(--nova-pink);
}

.dock-starfield,
.dock-cluster {
  position: relative;
  display: block;
  width: 19px;
  height: 19px;
}

.dock-starfield i,
.dock-cluster i {
  position: absolute;
  width: 7px;
  height: 7px;
  background: currentColor;
  clip-path: polygon(50% 0, 60% 39%, 100% 50%, 60% 61%, 50% 100%, 40% 61%, 0 50%, 40% 39%);
}

.dock-starfield i:nth-child(1) { left: 0; top: 8px; }
.dock-starfield i:nth-child(2) { left: 8px; top: 0; }
.dock-starfield i:nth-child(3) { right: 0; bottom: 0; }
.dock-cluster i:nth-child(1) { left: 1px; top: 5px; }
.dock-cluster i:nth-child(2) { left: 8px; top: 1px; }
.dock-cluster i:nth-child(3) { right: 0; bottom: 1px; }
.dock-cluster::after {
  position: absolute;
  inset: 2px 0 0 1px;
  content: "";
  border: 1px dashed currentColor;
  border-radius: 50%;
  opacity: .42;
}

.mission-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.mission-icon::before,
.mission-icon::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.mission-icon::before {
  inset: 4px;
  border: 1px solid currentColor;
}

.mission-icon::after {
  right: 1px;
  top: 1px;
  width: 4px;
  height: 4px;
  background: currentColor;
}

.dock-tooltip,
.orb-hint {
  color: var(--nova-paper);
  border-color: rgba(241, 236, 223, .13);
  background: rgba(14, 12, 18, .96);
  font-weight: 400;
}

.orb-hint {
  right: 62px;
  bottom: 8px;
}

/* Capture stays restrained; colour marks mode and status only. */

.capture-popover,
.workspace-shell,
.modal-card {
  --ink-950: var(--nova-paper);
  --ink-900: var(--nova-paper);
  --ink-800: #ddd6cc;
  --ink-700: #c0b8c0;
  --ink-600: #9c94a0;
  --ink-500: #7c7581;
  --ink-300: #49424e;
  --ink-200: #322c37;
  --ink-100: #27222d;
  --ink-50: #1d1921;
  --paper: var(--nova-panel);
  --teal-700: var(--nova-pink);
  --teal-600: var(--nova-pink);
  --teal-500: var(--nova-pink-soft);
  --teal-100: rgba(255, 79, 163, .16);
  --teal-50: rgba(255, 79, 163, .07);
  --violet-600: var(--nova-violet-soft);
  --violet-100: rgba(97, 56, 255, .17);
  --border: var(--nova-line);
}

.capture-popover {
  border-color: rgba(241, 236, 223, .14);
  background: rgba(17, 14, 21, .985);
  box-shadow: var(--nova-shadow), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.capture-header h1,
.page-header h1,
.modal-header h2 {
  font-weight: 300;
}

.capture-header h1 {
  letter-spacing: -.052em;
}

.capture-resize-handle:hover,
.capture-resize-handle:focus-visible {
  color: var(--nova-pink);
  border-color: rgba(255, 79, 163, .24);
  background: rgba(255, 79, 163, .06);
}

.capture-resize-handle small,
.capture-details summary::after {
  color: var(--nova-night);
  background: var(--nova-pink);
}

.mode-dot--build { background: var(--nova-pink); }
.mode-dot--explore { background: var(--nova-violet-soft); }

.capture-popover #mode-build.is-active {
  color: var(--nova-night);
  background: var(--nova-pink);
}

.capture-popover #mode-explore.is-active,
.detected-tags button.is-selected,
.prompt-strip button.is-selected {
  background: var(--nova-violet);
}

.context-card--build {
  border-color: rgba(255, 79, 163, .18) !important;
  background: rgba(255, 79, 163, .035) !important;
}

.source-chip {
  color: var(--nova-pink-soft);
  border-color: rgba(255, 79, 163, .2);
  background: rgba(255, 79, 163, .07);
}

.text-button,
.inline-link,
.voice-button {
  color: var(--nova-pink-soft);
}

.state-choice input:checked + span {
  color: var(--nova-night);
  border-color: var(--nova-pink);
  background: var(--nova-pink) !important;
}

.state-choice--green i,
.file-state--green i {
  background: var(--nova-pink) !important;
}

.file-state--green {
  color: var(--nova-pink-soft) !important;
  border-color: rgba(255, 79, 163, .22) !important;
  background: rgba(255, 79, 163, .07) !important;
}

.capture-popover .button--primary,
.workspace-shell .button--primary,
.modal-card .button--primary {
  color: var(--nova-night);
  background: var(--nova-pink);
  box-shadow: 0 9px 28px rgba(255, 79, 163, .18);
}

.capture-popover .button--primary:hover,
.workspace-shell .button--primary:hover,
.modal-card .button--primary:hover {
  background: #ff78b7;
}

/* Library: a brighter, denser atlas inside the same dark product. */

.workspace-shell {
  background: var(--nova-night-2);
}

.workspace-sidebar {
  background:
    radial-gradient(circle at 20% 102%, rgba(97, 56, 255, .23), transparent 36%),
    radial-gradient(circle at 82% -8%, rgba(255, 79, 163, .11), transparent 29%),
    #0d0b10;
}

.workspace-logo {
  border-color: rgba(255, 156, 202, .36);
  background: #17121d;
  box-shadow: inset 0 0 0 4px #100d14, 0 0 20px rgba(97, 56, 255, .12);
}

.workspace-logo .samplepath-mark {
  width: 31px;
  height: 31px;
}

.workspace-brand strong {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -.025em;
}

.workspace-brand small {
  letter-spacing: .035em;
}

.workspace-nav-item,
.workspace-guide-link {
  font-weight: 400;
}

.workspace-nav-item > span:first-child {
  color: var(--nova-pink-soft);
  font-size: 15px;
}

.workspace-nav-item.is-active {
  box-shadow: inset 2px 0 0 var(--nova-pink);
}

.workspace-body {
  background:
    radial-gradient(circle at 91% -3%, rgba(97, 56, 255, .13), transparent 33%),
    radial-gradient(circle at 9% 100%, rgba(255, 79, 163, .075), transparent 31%),
    var(--nova-panel);
}

.workspace-topbar {
  background: rgba(15, 12, 18, .89);
}

.page-header h1 {
  color: var(--nova-paper);
  font-size: clamp(36px, 4.1vw, 54px);
  letter-spacing: -.06em;
}

.page-header p {
  max-width: 700px;
  color: #a39ca7;
}

.workspace-shell .summary-card,
.workspace-shell .asset-row,
.workspace-shell .project-card,
.workspace-shell .panel-card,
.workspace-shell .guide-card,
.workspace-shell .collection-card,
.workspace-shell .detail-panel,
.workspace-shell .handoff-panel,
.workspace-shell .relationship-node,
.modal-card {
  border-color: var(--nova-line);
  background: rgba(28, 23, 33, .84);
}

.summary-card {
  position: relative;
  overflow: hidden;
}

.summary-card::after {
  position: absolute;
  right: -7px;
  top: -13px;
  content: "✦";
  color: rgba(255, 79, 163, .14);
  font-size: 50px;
  line-height: 1;
}

.summary-card:nth-child(2)::after { color: rgba(97, 56, 255, .22); }
.summary-card:nth-child(3)::after { color: rgba(240, 255, 88, .13); }
.summary-card:nth-child(4)::after { color: rgba(255, 184, 90, .16); }

.summary-card strong {
  position: relative;
  z-index: 1;
  font-family: Manrope, "Noto Sans SC", sans-serif;
  font-weight: 300;
}

/* Interactive sample sky. */

.sample-sky {
  position: relative;
  margin: -2px 0 17px;
  overflow: hidden;
  border: 1px solid rgba(241, 236, 223, .12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 23% 29%, rgba(97, 56, 255, .22), transparent 28%),
    radial-gradient(circle at 78% 69%, rgba(255, 79, 163, .13), transparent 25%),
    repeating-linear-gradient(0deg, rgba(241, 236, 223, .018) 0 1px, transparent 1px 4px),
    #0c0a10;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.sample-sky::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .24;
  background-image:
    radial-gradient(circle, rgba(241, 236, 223, .9) 0 1px, transparent 1.3px),
    radial-gradient(circle, rgba(255, 156, 202, .75) 0 1px, transparent 1.4px);
  background-position: 5px 9px, 25px 22px;
  background-size: 43px 47px, 71px 67px;
}

.sample-sky-head,
.sample-sky-foot {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 19px;
}

.sample-sky-head {
  border-bottom: 1px solid rgba(241, 236, 223, .08);
}

.sample-sky-head h2 {
  margin: 2px 0 0;
  color: var(--nova-paper);
  font-size: 19px;
  font-weight: 300;
  letter-spacing: -.035em;
}

.sky-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.sky-legend span {
  padding: 5px 8px;
  color: #9f98a3;
  border: 1px solid rgba(241, 236, 223, .1);
  border-radius: 999px;
  background: rgba(241, 236, 223, .03);
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
}

.sky-legend b { color: var(--nova-pink-soft); }

.sample-sky-canvas {
  position: relative;
  z-index: 2;
  height: 250px;
}

.sky-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sky-link {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.sky-link--project {
  stroke: rgba(255, 79, 163, .52);
  stroke-width: 1.2;
  stroke-dasharray: 2 2;
}

.sky-link--violet { stroke: rgba(168, 148, 255, .42); }

.sky-link--cluster {
  stroke: rgba(241, 236, 223, .22);
  stroke-width: .8;
  stroke-dasharray: 1.5 3;
}

.sample-star {
  position: absolute;
  left: var(--star-x);
  top: var(--star-y);
  z-index: 3;
  width: var(--star-size);
  height: var(--star-size);
  padding: 0;
  color: var(--nova-paper);
  border: 0;
  background: none;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.sample-star-glyph {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--nova-paper);
  font-size: var(--star-size);
  line-height: 1;
  filter: drop-shadow(0 0 9px rgba(241, 236, 223, .26));
  transition: color 160ms ease, filter 160ms ease, transform 160ms ease;
}

.sample-star--warn .sample-star-glyph,
.sample-star--risk .sample-star-glyph {
  color: var(--nova-amber);
}

.sample-star:hover .sample-star-glyph,
.sample-star:focus-visible .sample-star-glyph {
  color: var(--nova-pink);
  filter: drop-shadow(0 0 13px rgba(255, 79, 163, .58));
  transform: rotate(10deg) scale(1.16);
}

.sample-star:focus-visible { outline: none; }

.sample-star-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 5px);
  display: none;
  width: max-content;
  max-width: 190px;
  padding: 7px 9px;
  text-align: left;
  border: 1px solid rgba(241, 236, 223, .15);
  border-radius: 9px;
  background: rgba(14, 11, 17, .96);
  box-shadow: 0 11px 28px rgba(0, 0, 0, .46);
  transform: translateX(-50%);
}

.sample-star:hover .sample-star-label,
.sample-star:focus-visible .sample-star-label { display: grid; }

.sample-star-label strong {
  overflow: hidden;
  color: var(--nova-paper);
  font-size: 9px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sample-star-label small {
  margin-top: 2px;
  color: #8e8792;
  font-size: 7.5px;
}

.sky-map-label {
  position: absolute;
  z-index: 2;
  padding: 4px 7px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 7.5px;
  letter-spacing: .03em;
}

.sky-map-label--project {
  left: 45%;
  top: 30%;
  color: var(--nova-pink-soft);
  background: rgba(255, 79, 163, .08);
}

.sky-map-label--cluster {
  right: 7%;
  bottom: 7%;
  color: var(--nova-paper-dim);
  background: rgba(241, 236, 223, .055);
}

.sample-sky-foot {
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
  color: #aaa2ad;
  border-top: 1px solid rgba(241, 236, 223, .08);
  font-size: 9px;
}

.sample-sky-foot small {
  color: var(--nova-pink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 7.5px;
}

.library-quickbar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  padding: 9px 11px;
  overflow-x: auto;
  border: 1px solid var(--nova-line);
  border-radius: 13px;
  background: rgba(13, 11, 16, .48);
}

.library-quickbar > span {
  flex: 0 0 auto;
  color: #89828c;
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.library-quickbar > small {
  margin-left: auto;
  color: #756f79;
  font-size: 8px;
  white-space: nowrap;
}

.quick-filter {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: #a49da8;
  border: 1px solid rgba(241, 236, 223, .1);
  border-radius: 999px;
  background: rgba(241, 236, 223, .025);
  font-size: 9px;
  font-weight: 400;
  cursor: pointer;
}

.quick-filter:hover,
.quick-filter.is-active {
  color: var(--nova-night);
  border-color: var(--nova-pink);
  background: var(--nova-pink);
}

.search-field,
.filter-select {
  font-family: Manrope, "Noto Sans SC", sans-serif;
  font-weight: 400;
}

.workspace-shell .asset-row:hover {
  border-color: rgba(255, 79, 163, .38);
  background: #221b27;
}

.asset-art {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(241, 236, 223, .11);
  background: #100d14 !important;
}

.asset-art::after {
  content: "✦";
  color: var(--nova-pink-soft);
  font-size: 25px;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(255, 79, 163, .36));
}

.asset-art[data-tone="gold"]::after { color: var(--nova-amber); }
.asset-art[data-tone="violet"]::after { color: var(--nova-violet-soft); }
.asset-art[data-tone="blue"]::after,
.asset-art[data-tone="teal"]::after { color: var(--nova-pink); }
.asset-art[data-tone="grey"]::after { color: var(--nova-paper-dim); }

.asset-primary strong,
.asset-secondary strong,
.asset-evidence strong {
  font-weight: 500;
}

.status-pill--good {
  color: var(--nova-acid) !important;
  border-color: rgba(240, 255, 88, .22) !important;
  background: rgba(240, 255, 88, .065) !important;
}

.status-pill--warn,
.status-pill--risk {
  color: var(--nova-amber) !important;
  border-color: rgba(255, 184, 90, .22) !important;
  background: rgba(255, 184, 90, .07) !important;
}

.status-pill--info {
  color: var(--nova-violet-soft) !important;
  border-color: rgba(168, 148, 255, .24) !important;
  background: rgba(97, 56, 255, .09) !important;
}

/* Clusters and constellations. */

.collection-card {
  background:
    radial-gradient(circle at 16% 23%, rgba(255, 79, 163, .15), transparent 28%),
    rgba(28, 23, 33, .88) !important;
}

.collection-card[data-collection-tone="violet"] {
  background: radial-gradient(circle at 16% 23%, rgba(97, 56, 255, .22), transparent 30%), rgba(28, 23, 33, .88) !important;
}

.collection-card[data-collection-tone="gold"] {
  background: radial-gradient(circle at 16% 23%, rgba(255, 184, 90, .16), transparent 30%), rgba(28, 23, 33, .88) !important;
}

.collection-art {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 29%, rgba(241, 236, 223, .7) 0 1px, transparent 1.4px),
    radial-gradient(circle at 73% 68%, rgba(255, 156, 202, .6) 0 1px, transparent 1.4px),
    #100d14;
  background-size: 37px 41px, 61px 57px;
}

.collection-art i {
  position: absolute;
  width: 32px !important;
  height: 32px !important;
  border-radius: 0 !important;
  background: var(--nova-pink-soft) !important;
  clip-path: polygon(50% 0, 60% 39%, 100% 50%, 60% 61%, 50% 100%, 40% 61%, 0 50%, 40% 39%);
  transform: none !important;
}

.collection-art i:nth-child(1) { left: 14%; top: 52%; }
.collection-art i:nth-child(2) { left: 47%; top: 20%; width: 42px !important; height: 42px !important; background: var(--nova-paper) !important; }
.collection-art i:nth-child(3) { right: 13%; bottom: 17%; width: 25px !important; height: 25px !important; background: var(--nova-violet-soft) !important; }

.collection-copy h2,
.project-card h2,
.panel-card h2,
.guide-card h2 {
  font-weight: 400;
}

.project-card {
  position: relative;
  overflow: hidden;
}

.constellation-mini {
  position: relative;
  width: 100%;
  height: 74px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid rgba(241, 236, 223, .08);
  border-radius: 13px;
  background:
    radial-gradient(circle at 20% 32%, rgba(241, 236, 223, .58) 0 1px, transparent 1.5px),
    #100d14;
  background-size: 47px 43px;
}

.constellation-mini svg {
  position: absolute;
  inset: 7px 11px;
  width: calc(100% - 22px);
  height: calc(100% - 14px);
}

.constellation-mini path {
  fill: none;
  stroke: rgba(255, 79, 163, .58);
  stroke-width: 1.2;
  stroke-dasharray: 3 3;
}

.constellation-mini i {
  position: absolute;
  width: 13px;
  height: 13px;
  background: var(--nova-paper);
  clip-path: polygon(50% 0, 60% 39%, 100% 50%, 60% 61%, 50% 100%, 40% 61%, 0 50%, 40% 39%);
}

.constellation-mini i:nth-of-type(1) { left: 7%; top: 55%; }
.constellation-mini i:nth-of-type(2) { left: 30%; top: 24%; background: var(--nova-pink); }
.constellation-mini i:nth-of-type(3) { left: 55%; top: 52%; background: var(--nova-violet-soft); }
.constellation-mini i:nth-of-type(4) { right: 6%; top: 14%; background: var(--nova-acid); }

/* Mission Control and The Station. */

.mission-check-list {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.mission-check-list button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  color: var(--nova-paper);
  text-align: left;
  border: 1px solid rgba(241, 236, 223, .09);
  border-radius: 12px;
  background: rgba(13, 11, 16, .56);
  cursor: pointer;
}

.mission-check-list button:hover {
  border-color: rgba(255, 79, 163, .36);
  background: rgba(255, 79, 163, .045);
}

.mission-check-list b {
  display: grid;
  width: 28px;
  height: 28px;
  color: var(--nova-pink-soft);
  place-items: center;
  border: 1px solid rgba(255, 79, 163, .21);
  border-radius: 50%;
}

.mission-check-list span { display: grid; gap: 2px; }
.mission-check-list strong { font-size: 10.5px; font-weight: 500; }
.mission-check-list small { color: #817a86; font-size: 8.5px; }
.mission-check-list em { color: var(--nova-pink-soft); font-size: 8.5px; font-style: normal; }

.station-jump { margin-top: 13px; }

.station-grid {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(380px, 1.28fr);
  gap: 13px;
}

.station-crew-card,
.station-community-card {
  min-height: 330px;
}

.crew-stack {
  display: flex;
  align-items: center;
  margin: 23px 0 18px;
}

.crew-stack .avatar,
.crew-stack button {
  width: 48px;
  height: 48px;
  margin-left: -9px;
  color: var(--nova-paper);
  border: 3px solid var(--nova-panel-2);
  border-radius: 50%;
  background: var(--nova-violet);
}

.crew-stack .avatar:first-child { margin-left: 0; background: var(--nova-pink); color: var(--nova-night); }
.crew-stack button { font-size: 17px; background: #26202c; cursor: pointer; }

.concept-model-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.concept-model-grid > div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  min-height: 88px;
  padding: 11px;
  border: 1px solid rgba(241, 236, 223, .09);
  border-radius: 13px;
  background: rgba(13, 11, 16, .5);
}

.concept-model-grid b {
  color: var(--nova-pink-soft);
  font-size: 21px;
  font-weight: 300;
}

.concept-model-grid span { display: grid; align-content: start; gap: 4px; }
.concept-model-grid strong { color: var(--nova-paper); font-size: 9.5px; font-weight: 500; }
.concept-model-grid small { color: #837c87; font-size: 8px; line-height: 1.45; }

@media (max-width: 1040px) {
  .sample-sky-canvas { height: 220px; }
  .sample-sky-foot { align-items: flex-start; flex-direction: column; gap: 4px; }
  .concept-model-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .station-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .companion {
    right: 12px;
    bottom: 13px;
    width: 52px;
  }

  .capture-orb {
    width: 48px;
    height: 48px;
  }

  .capture-popover { bottom: 73px; }

  .workspace-brand strong { font-size: 13px; }
  .workspace-nav-item { grid-template-columns: 18px auto; }

  .sample-sky-head { align-items: flex-start; flex-direction: column; }
  .sky-legend { justify-content: flex-start; }
  .sample-sky-canvas { height: 205px; }
  .sky-map-label { display: none; }
  .sample-star-label { max-width: 145px; }

  .library-quickbar > small { display: none; }
  .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .concept-model-grid { grid-template-columns: 1fr; }
  .concept-model-grid > div { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* v0.6 — readable capture, explicit file/proof states, collections and account */

.capture-orb {
  width: 68px;
  height: 68px;
  border: 2px solid rgba(255, 255, 255, .82);
  background: #153e3a;
  box-shadow: 0 13px 40px rgba(8, 35, 32, .42), 0 0 0 4px rgba(255, 247, 226, .4);
}

.capture-orb::before {
  position: absolute;
  inset: 5px;
  content: "";
  border-radius: 50%;
  background: conic-gradient(from 214deg, #ff7a50 0 31%, #ffc46e 31% 40%, #15998e 40% 72%, #153e3a 72% 100%);
}

.capture-orb::after {
  display: none;
  content: none;
}

.orb-rings {
  z-index: 1;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(15, 47, 44, .9);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.035);
}

.orb-rings::after {
  inset: 4px;
  border: 1px solid rgba(255, 244, 219, .28);
  border-right-color: #ff8a60;
  animation: none;
}

.orb-wave {
  z-index: 2;
  gap: 2px;
}

.orb-wave i {
  width: 2.5px;
  background: #fff7df;
  box-shadow: none;
}

.orb-wave i:nth-child(1) { height: 8px; opacity: .72; }
.orb-wave i:nth-child(2) { height: 16px; }
.orb-wave i:nth-child(3) { height: 25px; }
.orb-wave i:nth-child(4) { height: 32px; background: #ff9b70; }
.orb-wave i:nth-child(5) { height: 23px; }
.orb-wave i:nth-child(6) { height: 15px; }
.orb-wave i:nth-child(7) { height: 7px; opacity: .72; }

.capture-popover {
  width: min(470px, calc(100vw - 28px));
  transition: width 180ms ease;
}

.capture-popover[data-size="compact"] { width: min(404px, calc(100vw - 28px)); }
.capture-popover[data-size="comfortable"] { width: min(470px, calc(100vw - 28px)); }
.capture-popover[data-size="wide"] { width: min(620px, calc(100vw - 28px)); }

.capture-header {
  padding: 20px 20px 14px;
}

.capture-header-actions,
.relationship-actions,
.collaborator-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.size-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: var(--ink-600);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  font-size: 12px;
}

.size-button small {
  font-size: 10px;
  font-weight: 750;
}

.eyebrow { font-size: 10px; }
.capture-header h1 { font-size: 27px; }
.mode-tab { min-height: 49px; padding: 8px 10px; }
.mode-tab strong { font-size: 13px; }
.mode-tab small { font-size: 10px; }
.capture-form { padding: 0 16px 16px; }
.detected-card { padding: 14px; }
.detected-copy strong,
.detected-copy span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}
.detected-copy strong { font-size: 13px; line-height: 1.3; }
.detected-copy span { font-size: 10.5px; line-height: 1.35; }
.source-chip { font-size: 10px; }
.url-row { font-size: 9.5px; line-height: 1.35; }
.url-row span:last-child { overflow-wrap: anywhere; white-space: normal; }

.source-facts {
  display: grid;
  grid-template-columns: 1.25fr 1fr .8fr;
  gap: 7px;
  margin-top: 9px;
}

.source-facts > span {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border-radius: 9px;
  background: var(--ink-50);
}

.source-facts small {
  color: var(--ink-500);
  font-size: 8.5px;
}

.source-facts strong {
  overflow-wrap: anywhere;
  font-size: 10px;
  font-weight: 720;
}

.context-card { padding: 13px 14px; }
.context-heading strong,
.context-card--explore strong { font-size: 14px; }
.context-summary,
.context-card p { font-size: 10.5px; }
.compact-field select { font-size: 11px; }
.field-heading,
.field > span:first-child,
.collaborator-builder > span:first-child { font-size: 12px; }
.field textarea,
.field input,
.field select { font-size: 12px; line-height: 1.4; }
.field--target { margin-top: 10px; }
.field--target > span:first-child { margin-bottom: 5px; color: #9b4e2a; font-size: 10px; }
.field--target input { padding: 9px 10px; border-color: rgba(224,95,42,.24); }
.optional-label,
#voice-status { font-size: 9.5px; }
.voice-button { min-height: 35px; font-size: 11px; }
.prompt-strip button { padding: 6px 9px; font-size: 10px; }
.capture-details summary { min-height: 46px; font-size: 12px; }
.capture-details summary small { font-size: 9px; }
.metadata-grid label span { font-size: 9.5px; }
.metadata-grid input,
.metadata-grid select,
.relationship-row select,
.field--compact select { padding: 8px; font-size: 11px; }
.detected-tags span { font-size: 9.5px; }
.text-button,
.inline-link { font-size: 11px; }
.microcopy,
.boundary-note,
.file-note { font-size: 9.5px; line-height: 1.45; }
.file-button { min-height: 35px; font-size: 10.5px; }
.button { font-size: 11.5px; }

.relationship-note-field { margin-top: 9px !important; }
.relationship-note-field textarea { min-height: 54px; resize: vertical; }
.relationship-actions { justify-content: space-between; margin: 8px 12px 11px !important; }
.relationship-actions .microcopy { max-width: 55%; margin: 0; padding: 0; }

.state-fieldset {
  min-width: 0;
  margin: 2px 12px 10px !important;
  padding: 0;
  border: 0;
}

.state-fieldset legend,
.file-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-600);
  font-size: 10px;
  font-weight: 760;
}

.state-choice-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.state-choice { min-width: 0; }
.state-choice input { position: absolute; opacity: 0; pointer-events: none; }
.state-choice span {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  color: var(--ink-600);
  border: 1px solid var(--border);
  border-radius: 9px;
  background: white;
  font-size: 9.5px;
  font-weight: 720;
  text-align: center;
}
.state-choice i,
.file-state i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #a5aeaa;
}
.state-choice--blue i,
.file-state--blue i { background: #5687d9; }
.state-choice--amber i,
.file-state--amber i { background: #e2a43c; }
.state-choice--green i,
.file-state--green i { background: #4d9a68; }
.state-choice input:checked + span {
  color: var(--ink-900);
  border-color: var(--teal-500);
  background: var(--teal-50);
  box-shadow: 0 0 0 1px rgba(13,139,128,.12);
}
.state-choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(13,139,128,.28); }

.file-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 12px 2px;
}
.capture-popover[data-size="wide"] .file-split { grid-template-columns: 1fr 1.2fr; }
.capture-popover[data-size="wide"] .metadata-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.file-split > div { min-width: 0; padding: 10px; border-radius: 11px; background: var(--ink-50); }
.file-split .field { margin: 0; }
.file-split .evidence-actions { flex-wrap: wrap; }

.file-state {
  width: max-content;
  max-width: 100%;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  color: var(--ink-600) !important;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  font-size: 8px !important;
  font-weight: 780;
}
.asset-state-stack { display: flex !important; flex-wrap: wrap; gap: 4px; }
.asset-state-stack > * { display: inline-flex !important; }

.library-toolbar { grid-template-columns: minmax(190px, 1fr) repeat(4, minmax(105px, 148px)); }

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.collection-card {
  min-width: 0;
  display: grid;
  grid-template-rows: 120px auto auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255,255,255,.82);
}
.collection-art {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ef7650, #ffc878);
}
.collection-card[data-collection-tone="gold"] .collection-art { background: linear-gradient(135deg, #5a3324, #e4aa43); }
.collection-card[data-collection-tone="violet"] .collection-art { background: linear-gradient(135deg, #4f438e, #e77772); }
.collection-card[data-collection-tone="teal"] .collection-art { background: linear-gradient(135deg, #123d3a, #25a395); }
.collection-art i {
  position: absolute;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 50%;
}
.collection-art i:nth-child(1) { left: 18%; top: 18%; }
.collection-art i:nth-child(2) { left: 36%; top: 34%; width: 76px; height: 76px; }
.collection-art i:nth-child(3) { right: 12%; top: 8%; width: 96px; height: 96px; }
.collection-copy { padding: 17px 17px 11px; }
.collection-copy h2 { margin-bottom: 7px; font-size: 21px; }
.collection-copy p { margin: 0; color: var(--ink-500); font-size: 11px; }
.collection-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 17px 16px; }
.collection-foot > span { overflow: hidden; color: var(--ink-500); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.queue-legend { display: flex; flex-wrap: wrap; gap: 7px; margin: -10px 0 18px; }
.queue-legend span { padding: 6px 9px; color: var(--ink-600); border: 1px solid var(--border); border-radius: 999px; background: white; font-size: 9px; font-weight: 750; }

.account-card {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  padding: 9px;
  color: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  text-align: left;
}
.account-card:hover { background: rgba(255,255,255,.08); }
.account-card strong,
.account-card small { display: block; }
.account-card strong { font-size: 10px; }
.account-card small { color: rgba(255,255,255,.44); font-size: 7.5px; }
.avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: white;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--violet-600), var(--orange-500));
  font-size: 9px;
  font-weight: 850;
}
.avatar--large { width: 62px; height: 62px; font-size: 17px; }
.account-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 13px; padding: 14px; border-radius: 16px; background: var(--ink-50); }
.account-hero strong,
.account-hero span,
.account-hero small { display: block; }
.account-hero strong { font-size: 18px; }
.account-hero span,
.account-hero small { color: var(--ink-500); font-size: 10px; }
.friend-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.friend-row > span:nth-child(2) { min-width: 0; flex: 1; }
.friend-row strong,
.friend-row small { display: block; }
.friend-row small { color: var(--ink-500); font-size: 9px; }
.field-help { display: block; margin-top: 5px; color: var(--ink-500); font-size: 9px; line-height: 1.35; }
.collaborator-builder { margin-top: 11px; }
.collaborator-builder > span:first-child { display: block; margin-bottom: 6px; font-weight: 750; }
.collaborator-builder .collaborator-actions { margin-bottom: 7px; }
.project-brief-panel { margin-top: 11px; }
.project-brief-panel p { color: var(--ink-600); font-size: 10px; }
.project-brief-panel h3:not(:first-child) { margin-top: 13px; }
.relationship-line--modal { margin-bottom: 12px; }
.online-dot { background: #89938f; box-shadow: 0 0 0 4px rgba(137,147,143,.12); }

@media (max-width: 1120px) {
  .library-toolbar { grid-template-columns: 1fr 1fr 1fr; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .capture-orb { width: 62px; height: 62px; }
  .capture-popover[data-size] { width: calc(100vw - 28px); }
  .source-facts { grid-template-columns: 1fr 1fr; }
  .source-facts > span:first-child { grid-column: 1 / -1; }
  .state-choice-row { grid-template-columns: 1fr 1fr; }
  .relationship-actions { align-items: flex-start; flex-direction: column; }
  .relationship-actions .microcopy { max-width: none; }
  .collection-grid { grid-template-columns: 1fr; }
  .library-toolbar { grid-template-columns: 1fr; }
  .account-card { width: 36px; height: 36px; display: grid; margin: 0 6px 0 0; padding: 2px; border: 0; background: transparent; }
  .account-card > span:nth-child(2), .account-card > b { display: none; }
}

/* v0.7 — low-friction capture, human-checked source context and dark studio palette */

body {
  font-family: "Instrument Sans", "Noto Sans SC", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4 {
  font-stretch: 88%;
  font-weight: 560;
}

.capture-orb {
  border-color: rgba(241, 238, 226, .82);
  background: #101310;
  box-shadow: 0 13px 42px rgba(0, 0, 0, .48), 0 0 0 4px rgba(200, 255, 77, .13);
}

.capture-orb::before {
  background: conic-gradient(from 214deg, #ff4fa2 0 27%, #6e42ff 27% 56%, #c8ff4d 56% 70%, #131714 70% 100%);
}

.orb-rings {
  background: rgba(15, 18, 16, .93);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .025);
}

.orb-rings::after {
  border-color: rgba(255, 255, 255, .18);
  border-right-color: #c8ff4d;
}

.orb-wave i {
  background: #f8f4e8;
}

.orb-wave i:nth-child(4) {
  background: #c8ff4d;
}

.capture-popover,
.workspace-shell,
.modal-card {
  --ink-950: #f8f7f0;
  --ink-900: #f2f3ed;
  --ink-800: #dfe2da;
  --ink-700: #c4cbc1;
  --ink-600: #a5ada3;
  --ink-500: #858e85;
  --ink-300: #4d554f;
  --ink-200: #363d38;
  --ink-100: #2a302c;
  --ink-50: #202521;
  --paper: #171b18;
  --teal-700: #d7ff78;
  --teal-600: #c8ff4d;
  --teal-500: #aee82f;
  --teal-100: rgba(200, 255, 77, .17);
  --teal-50: rgba(200, 255, 77, .085);
  --orange-600: #ff855a;
  --orange-500: #ff7a50;
  --orange-100: rgba(255, 122, 80, .16);
  --yellow-500: #ffd056;
  --yellow-100: rgba(255, 208, 86, .15);
  --violet-600: #a58aff;
  --violet-100: rgba(132, 92, 255, .17);
  --blue-600: #8bb8ff;
  --blue-100: rgba(85, 137, 255, .16);
  --red-600: #ff8b8b;
  --red-100: rgba(255, 91, 91, .14);
  --green-600: #9de5b0;
  --green-100: rgba(91, 194, 116, .15);
  --border: rgba(255, 255, 255, .105);
  color: var(--ink-900);
}

.capture-popover {
  width: 470px;
  height: min(640px, calc(100vh - 116px));
  min-width: 360px;
  min-height: 430px;
  max-width: min(720px, calc(100vw - 28px));
  max-height: calc(100vh - 106px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-color: rgba(255, 255, 255, .16);
  background: rgba(20, 24, 21, .985);
  box-shadow: 0 30px 92px rgba(0, 0, 0, .58);
  transition: box-shadow 160ms ease;
}

.capture-popover.is-resizing {
  user-select: none;
  box-shadow: 0 34px 110px rgba(0, 0, 0, .7), 0 0 0 1px rgba(200, 255, 77, .32);
}

.capture-resize-handle {
  position: absolute;
  z-index: 5;
  top: 9px;
  left: 9px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  padding: 0;
  color: rgba(255, 255, 255, .38);
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  cursor: nwse-resize;
  touch-action: none;
}

.capture-resize-handle span {
  font-size: 16px;
  line-height: 1;
  transform: rotate(90deg);
}

.capture-resize-handle small {
  position: absolute;
  top: 34px;
  left: 0;
  width: max-content;
  padding: 4px 6px;
  color: #11150f;
  border-radius: 6px;
  background: #c8ff4d;
  font-size: 8px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-3px);
  transition: 120ms ease;
  pointer-events: none;
}

.capture-resize-handle:hover,
.capture-resize-handle:focus-visible {
  color: #c8ff4d;
  border-color: rgba(200, 255, 77, .25);
  background: rgba(200, 255, 77, .06);
}

.capture-resize-handle:hover small,
.capture-resize-handle:focus-visible small {
  opacity: 1;
  transform: translateY(0);
}

.capture-header {
  flex: 0 0 auto;
  padding: 20px 18px 13px 48px;
}

.capture-header h1 {
  font-size: 28px;
  font-weight: 540;
}

.capture-popover .icon-button,
.capture-popover .size-button,
.capture-popover .mode-switch,
.capture-popover .detected-card,
.capture-popover .context-card,
.capture-popover .capture-details,
.capture-popover .compact-field select,
.capture-popover .field input,
.capture-popover .field textarea,
.capture-popover .field select,
.capture-popover .metadata-grid input,
.capture-popover .metadata-grid select,
.capture-popover .relationship-row input,
.capture-popover .file-split > div,
.capture-popover .state-choice span,
.capture-popover .capture-kind-custom input {
  color: var(--ink-900);
  border-color: var(--border);
  background: #202521;
}

.capture-popover .mode-tab.is-active {
  color: #f7f7ef;
  background: #2b312d;
  box-shadow: 0 3px 13px rgba(0, 0, 0, .28);
}

.capture-popover .icon-button:hover,
.capture-popover .button--quiet:hover {
  background: #2a302c;
}

.mode-row {
  display: block;
  flex: 0 0 auto;
  padding: 0 16px 11px;
}

.mode-switch {
  grid-template-columns: 1fr 1fr;
  width: 100%;
  background: #171b18 !important;
}

.mode-tab {
  min-height: 47px;
}

.capture-form {
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
  padding: 0 16px 16px;
}

.detected-card {
  padding: 14px;
  background:
    radial-gradient(circle at 92% 10%, rgba(111, 66, 255, .13), transparent 32%),
    #1d221e !important;
}

.source-chip {
  color: #d7ff78;
  border: 1px solid rgba(200, 255, 77, .14);
  background: rgba(200, 255, 77, .08);
}

.url-row {
  color: #7e8980;
}

.capture-kind-block {
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
}

.capture-kind-heading,
.origin-heading,
.more-info-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.capture-kind-heading > span,
.origin-heading > span {
  color: var(--ink-700);
  font-size: 10.5px;
  font-weight: 650;
}

.capture-kind-heading small,
.origin-heading small {
  color: var(--ink-500);
  font-size: 8.5px;
}

.capture-kind-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.capture-kind-row::-webkit-scrollbar {
  display: none;
}

.capture-kind-row button {
  min-height: 31px;
  flex: 0 0 auto;
  padding: 6px 9px;
  color: var(--ink-600);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #171b18;
  font-size: 9.5px;
}

.capture-kind-row button.is-selected {
  color: #11150f;
  border-color: #c8ff4d;
  background: #c8ff4d;
  font-weight: 700;
}

.capture-kind-help {
  margin: 6px 0 0;
  color: var(--ink-500);
  font-size: 8.5px;
}

.capture-kind-custom {
  display: block;
  margin-top: 7px;
}

.capture-kind-custom[hidden] {
  display: none;
}

.capture-kind-custom input {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 10px;
}

.context-card {
  padding: 12px 13px;
}

.context-card--build {
  border-color: rgba(255, 122, 80, .18) !important;
  background: rgba(255, 122, 80, .065) !important;
}

.context-card--explore {
  border-color: rgba(165, 138, 255, .18) !important;
  background: rgba(165, 138, 255, .065) !important;
}

.field textarea,
.field input,
.field select,
.metadata-grid input,
.relationship-row input {
  caret-color: #c8ff4d;
}

.field textarea::placeholder,
.field input::placeholder,
.metadata-grid input::placeholder,
.relationship-row input::placeholder,
.capture-kind-custom input::placeholder {
  color: #687169;
}

.field--note textarea {
  min-height: 72px;
  background: #1d221e !important;
}

.voice-button {
  color: #b8a6ff;
  border-color: rgba(165, 138, 255, .28);
  background: rgba(165, 138, 255, .09);
}

.capture-details--more > summary {
  color: #d7ff78;
}

.capture-details summary::after {
  color: #c8ff4d;
  background: rgba(200, 255, 77, .08);
}

.capture-details[open] > .more-info-body {
  margin: 0 !important;
}

.more-info-body {
  border-top: 1px solid var(--border);
}

.more-info-section {
  padding: 14px 13px;
  border-bottom: 1px solid var(--border);
}

.more-info-section:last-child {
  border-bottom: 0;
}

.more-info-heading {
  margin-bottom: 11px;
}

.more-info-heading .eyebrow {
  margin-bottom: 2px;
}

.more-info-heading strong {
  display: block;
  font-size: 12px;
}

.source-facts {
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
}

.source-facts > span {
  background: #181c19;
}

.metadata-grid {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}

.origin-block {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
}

.detected-tags span,
.detected-tags button {
  padding: 5px 7px;
  color: #b8d4ce;
  border: 1px solid rgba(116, 161, 151, .13);
  border-radius: 999px;
  background: rgba(91, 137, 127, .09);
  font-size: 9px;
  font-weight: 650;
}

.detected-tags button {
  color: #c9bfff;
  border-color: rgba(165, 138, 255, .16);
  background: rgba(165, 138, 255, .08);
}

.detected-tags button.is-selected {
  color: #161a15;
  border-color: #c8ff4d;
  background: #c8ff4d;
}

.prompt-strip {
  margin-top: 8px;
}

.prompt-strip button {
  color: var(--ink-600);
  border-color: var(--border);
  background: #181c19;
}

.prompt-strip button.is-selected {
  color: #11150f;
  border-color: #c8ff4d;
  background: #c8ff4d;
}

.state-fieldset {
  margin: 0 0 11px !important;
}

.state-choice-row {
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
}

.state-choice input:checked + span {
  color: #11150f;
  border-color: #c8ff4d;
  background: #c8ff4d !important;
  box-shadow: none;
}

.state-choice input:checked + span i {
  box-shadow: 0 0 0 2px rgba(17, 21, 15, .18);
}

.state-choice--red i,
.file-state--red i {
  background: #ff7070;
}

.state-choice--violet i,
.file-state--violet i {
  background: #a58aff;
}

.file-split {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  padding: 0;
}

.file-button {
  color: #d7ff78;
  border-color: rgba(200, 255, 77, .2);
  background: rgba(200, 255, 77, .07);
}

.boundary-note {
  color: #e9ca78;
  background: rgba(255, 208, 86, .09);
}

.relationship-row {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.relationship-row input {
  width: 100%;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 10.5px;
}

.capture-footer {
  bottom: -16px;
  background: linear-gradient(transparent, #141815 26%);
}

.capture-popover .button--primary,
.workspace-shell .button--primary,
.modal-card .button--primary {
  color: #11150f;
  background: #c8ff4d;
  box-shadow: 0 5px 18px rgba(200, 255, 77, .11);
}

.capture-popover .button--primary:hover,
.workspace-shell .button--primary:hover,
.modal-card .button--primary:hover {
  background: #d7ff78;
}

.capture-popover .button--quiet,
.workspace-shell .button--quiet,
.modal-card .button--quiet {
  color: var(--ink-700);
  border-color: var(--border);
  background: #202521;
}

.workspace-shell {
  border-color: rgba(255, 255, 255, .14);
  background: #111512;
}

.workspace-sidebar {
  background:
    radial-gradient(circle at 20% 96%, rgba(255, 79, 162, .15), transparent 34%),
    radial-gradient(circle at 95% 8%, rgba(111, 66, 255, .12), transparent 28%),
    #111411;
}

.workspace-logo {
  color: #11150f;
  background: #c8ff4d;
}

.workspace-logo i {
  background: #11150f;
}

.workspace-body {
  background:
    radial-gradient(circle at 92% 2%, rgba(111, 66, 255, .1), transparent 30%),
    radial-gradient(circle at 9% 92%, rgba(255, 79, 162, .06), transparent 33%),
    #161a17;
}

.workspace-topbar {
  border-color: var(--border);
  background: rgba(18, 22, 19, .84);
}

.workspace-shell .icon-button,
.workspace-shell .search-field,
.workspace-shell .filter-select,
.workspace-shell .summary-card,
.workspace-shell .asset-row,
.workspace-shell .project-card,
.workspace-shell .panel-card,
.workspace-shell .guide-card,
.workspace-shell .revisit-card,
.workspace-shell .relationship-node,
.workspace-shell .thread-item,
.workspace-shell .legend-item,
.workspace-shell .collection-card,
.workspace-shell .detail-panel,
.workspace-shell .handoff-panel,
.workspace-shell .daw-tab,
.workspace-shell .row-arrow,
.workspace-shell .chat-input-row input {
  color: var(--ink-900);
  border-color: var(--border);
  background: rgba(31, 36, 32, .92);
}

.workspace-shell .asset-row:hover {
  border-color: rgba(200, 255, 77, .28);
  background: #252b26;
}

.workspace-shell .project-properties span,
.workspace-shell .tag-row span,
.workspace-shell .queue-legend span {
  background: #202521;
}

.workspace-shell .chat-bubble--assistant,
.workspace-shell .prompt-suggestions button {
  color: #d7ff78;
  border-color: rgba(200, 255, 77, .14);
  background: rgba(200, 255, 77, .07);
}

.workspace-shell .chat-bubble--user {
  color: #f7f6ee;
  background: #6f42ff;
}

.workspace-shell .status-pill--good { color: #9de5b0; background: rgba(91, 194, 116, .13); }
.workspace-shell .status-pill--warn { color: #f2d274; background: rgba(255, 208, 86, .12); }
.workspace-shell .status-pill--info { color: #a8c8ff; background: rgba(85, 137, 255, .13); }
.workspace-shell .status-pill--risk { color: #ff9a9a; background: rgba(255, 91, 91, .12); }

.collection-card {
  background: rgba(31, 36, 32, .92);
}

.collection-detail-banner {
  min-height: 150px;
  display: grid;
  grid-template-columns: minmax(160px, .65fr) minmax(240px, 1.35fr);
  align-items: stretch;
  gap: 0;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(31, 36, 32, .92);
}

.collection-detail-banner .collection-art {
  min-height: 150px;
}

.collection-detail-banner > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
}

.collection-detail-banner strong {
  font-size: 24px;
  font-weight: 540;
}

.collection-detail-banner p {
  max-width: 540px;
  margin: 7px 0 0;
  color: var(--ink-500);
  font-size: 10px;
}

.account-sharing-panel {
  margin-top: 11px;
}

.modal-card {
  border-color: rgba(255, 255, 255, .14);
  background: #181c19;
}

.modal-card .icon-button,
.modal-card .field input,
.modal-card .field textarea,
.modal-card .field select,
.modal-card .detail-panel,
.modal-card .handoff-panel,
.modal-card .relationship-node,
.modal-card .daw-tab,
.modal-card .account-hero,
.modal-card .asset-row,
.modal-card .row-arrow {
  color: var(--ink-900);
  border-color: var(--border);
  background: #202521;
}

.modal-card .handoff-boundary {
  color: #e9ca78;
  background: rgba(255, 208, 86, .09);
}

@media (max-width: 720px) {
  .capture-popover {
    right: 14px;
    width: calc(100vw - 28px) !important;
    min-width: 0;
    height: calc(100vh - 104px) !important;
    min-height: 0;
  }

  .capture-resize-handle {
    display: none;
  }

  .capture-header {
    padding-left: 18px;
  }

  .source-facts,
  .collection-detail-banner {
    grid-template-columns: 1fr;
  }

  .source-facts > span:first-child {
    grid-column: auto;
  }

  .collection-detail-banner .collection-art {
    min-height: 110px;
  }
}

/* v0.8 — precision studio system: restrained companion, clear type hierarchy */

:root {
  --v8-bg: #0d0e11;
  --v8-surface: #15171b;
  --v8-surface-2: #1b1e23;
  --v8-surface-3: #23262d;
  --v8-line: rgba(239, 237, 228, .12);
  --v8-line-strong: rgba(239, 237, 228, .2);
  --v8-text: #f2f0e8;
  --v8-text-2: #b6b7ba;
  --v8-text-3: #7f8289;
  --v8-violet: #785cff;
  --v8-violet-soft: rgba(120, 92, 255, .16);
  --v8-lime: #d8ff72;
  --v8-pink: #ff64ae;
  --v8-amber: #ffb45e;
  --v8-shadow: 0 30px 90px rgba(0, 0, 0, .62);
}

body {
  color: var(--v8-text);
  background: var(--v8-bg);
  font-family: Inter, "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
h4,
.workspace-brand strong,
.collection-detail-banner strong {
  font-family: "Inter Tight", Inter, "Noto Sans SC", sans-serif;
  font-stretch: normal;
  font-weight: 600;
  letter-spacing: -.035em;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  box-shadow: 0 0 0 2px var(--v8-bg), 0 0 0 4px var(--v8-lime);
}

.prototype-stage {
  background:
    radial-gradient(circle at 74% 18%, rgba(120, 92, 255, .09), transparent 34%),
    radial-gradient(circle at 14% 76%, rgba(255, 100, 174, .055), transparent 30%),
    #0d0e11;
}

.browser-chrome {
  min-height: 60px;
  border-bottom-color: rgba(255, 255, 255, .07);
  background: rgba(11, 12, 14, .9);
  backdrop-filter: blur(24px) saturate(135%);
}

.source-switcher,
.address-bar {
  border-color: rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .035);
}

.source-switcher > span,
.prototype-badge,
.eyebrow,
.host-kicker,
.summary-card span {
  font-family: Inter, "Noto Sans SC", sans-serif;
  font-weight: 600;
  letter-spacing: .115em;
}

.address-bar,
.url-row,
.project-properties span,
.source-meta-row span {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.host-page {
  width: min(1160px, calc(100% - 64px));
  padding-top: 82px;
}

.host-kicker {
  color: #aaa0ff;
  font-size: 10.5px;
}

.host-title {
  color: var(--v8-text);
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .94;
}

.host-description {
  color: rgba(242, 240, 232, .56);
  font-size: 15px;
  line-height: 1.55;
}

.host-filter,
.host-sort {
  color: rgba(242, 240, 232, .64);
  border-color: rgba(255, 255, 255, .11);
  background: rgba(255, 255, 255, .025);
  font-size: 12px;
}

.host-filter.is-active {
  color: #151218;
  border-color: var(--v8-text);
  background: var(--v8-text);
}

.source-card {
  border-color: rgba(255, 255, 255, .09);
  border-radius: 24px;
  background: rgba(255, 255, 255, .035);
}

.source-card:hover,
.source-card.is-selected {
  border-color: rgba(120, 92, 255, .52);
  background: rgba(255, 255, 255, .055);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .2);
}

.source-card.is-selected::after {
  color: #17151b;
  background: var(--v8-lime);
}

.source-card h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.source-card > p {
  font-size: 11.5px;
  line-height: 1.45;
}

.source-meta-row span,
.source-tags span {
  font-size: 9.5px;
  font-weight: 500;
}

/* Floating companion: a quiet record groove with one capture signal. */

.companion {
  right: 18px;
  bottom: 18px;
  width: 70px;
  height: 254px;
}

.companion::before {
  right: 5px;
  bottom: -4px;
  width: 60px;
  height: 238px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 34px;
  background: rgba(20, 22, 27, .97);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .5);
  backdrop-filter: blur(26px) saturate(145%);
}

.capture-orb {
  width: 62px;
  height: 62px;
  overflow: visible;
  border: 1px solid rgba(242, 240, 232, .46);
  background: #101216;
  box-shadow: 0 13px 34px rgba(0, 0, 0, .52), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1), border-color 180ms ease, box-shadow 180ms ease;
}

.capture-orb::before {
  position: absolute;
  inset: 4px;
  content: "";
  border: 1px solid rgba(242, 240, 232, .11);
  border-top-color: rgba(168, 148, 255, .82);
  border-right-color: rgba(216, 255, 114, .7);
  border-radius: 50%;
  background: transparent;
  opacity: .24;
  transform: rotate(-34deg);
}

.capture-orb::after {
  display: none;
  content: none;
}

.capture-orb:hover,
.capture-orb[aria-expanded="true"] {
  border-color: rgba(242, 240, 232, .74);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .62), 0 0 0 4px rgba(120, 92, 255, .12);
  transform: translateY(-2px) scale(1.025);
}

.samplepath-mark {
  position: relative;
  z-index: 2;
  width: 43px;
  height: 43px;
  overflow: visible;
  fill: none;
}

.samplepath-mark .mark-groove {
  stroke: rgba(242, 240, 232, .2);
  stroke-width: 1;
}

.samplepath-mark .mark-arc {
  stroke-width: 2.2;
  stroke-linecap: round;
}

.samplepath-mark .mark-arc--violet {
  stroke: #a996ff;
}

.samplepath-mark .mark-arc--lime {
  stroke: var(--v8-lime);
}

.samplepath-mark .mark-wave {
  stroke: var(--v8-text);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capture-orb:hover .samplepath-mark {
  animation: mark-breathe 900ms ease-in-out infinite alternate;
}

@keyframes mark-breathe {
  to { transform: scale(.94); }
}

.dock-actions {
  right: 14px;
  bottom: 75px;
  gap: 8px;
}

.dock-action {
  width: 42px;
  height: 42px;
  color: #c4c5c8;
  border-color: rgba(255, 255, 255, .14);
  background: #1e2026;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .26);
}

.dock-action--library,
.dock-action--resolve {
  color: #c4c5c8;
  background: #1e2026;
}

.dock-action:hover,
.dock-action:focus-visible {
  color: #141118;
  border-color: var(--v8-lime);
  background: var(--v8-lime);
  transform: translateX(-2px);
}

.dock-tooltip {
  right: 54px;
  padding: 6px 9px;
  color: var(--v8-text);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(14, 15, 18, .96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .34);
  font-size: 10.5px;
  font-weight: 500;
}

.orb-hint {
  right: 76px;
  bottom: 12px;
  padding: 7px 10px;
  color: var(--v8-text);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9px;
  background: rgba(14, 15, 18, .96);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .38);
  font-size: 10.5px;
  font-weight: 500;
}

/* Capture window: type leads; cards support rather than compete. */

.capture-popover,
.workspace-shell,
.modal-card {
  --ink-950: #f5f3eb;
  --ink-900: #f2f0e8;
  --ink-800: #d8d8d7;
  --ink-700: #b6b7ba;
  --ink-600: #9b9da3;
  --ink-500: #7f8289;
  --ink-300: #484b53;
  --ink-200: #32353c;
  --ink-100: #272a30;
  --ink-50: #202329;
  --paper: #15171b;
  --teal-700: #d8ff72;
  --teal-600: #d8ff72;
  --teal-500: #c5ed5c;
  --teal-100: rgba(216, 255, 114, .16);
  --teal-50: rgba(216, 255, 114, .075);
  --violet-600: #a997ff;
  --violet-100: rgba(120, 92, 255, .16);
  --border: rgba(239, 237, 228, .105);
}

.capture-popover {
  right: 18px;
  bottom: 92px;
  width: 478px;
  height: min(660px, calc(100vh - 110px));
  min-width: 380px;
  min-height: 450px;
  border-color: rgba(255, 255, 255, .15);
  border-radius: 27px;
  background: rgba(19, 21, 25, .985);
  box-shadow: var(--v8-shadow), inset 0 1px 0 rgba(255, 255, 255, .035);
  backdrop-filter: blur(30px) saturate(140%);
}

.capture-header {
  padding: 22px 20px 15px 50px;
}

.capture-header h1 {
  margin-top: 1px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1;
}

.eyebrow {
  margin-bottom: 5px;
  color: #8d9098;
  font-size: 9.5px;
  text-transform: uppercase;
}

.capture-resize-handle {
  top: 11px;
  left: 11px;
  width: 30px;
  height: 30px;
  color: #696c74;
  border-color: rgba(255, 255, 255, .07);
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
}

.capture-resize-handle:hover,
.capture-resize-handle:focus-visible {
  color: var(--v8-lime);
  border-color: rgba(216, 255, 114, .22);
  background: rgba(216, 255, 114, .055);
}

.capture-resize-handle small {
  color: #14151a;
  background: var(--v8-lime);
}

.capture-popover .icon-button {
  width: 36px;
  height: 36px;
  color: #a2a4aa;
  border-color: rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .035);
  font-size: 19px;
}

.mode-row {
  padding: 0 18px 12px;
}

.mode-switch {
  gap: 4px;
  padding: 4px;
  border-color: rgba(255, 255, 255, .09) !important;
  border-radius: 16px;
  background: #0f1114 !important;
}

.mode-tab {
  position: relative;
  min-height: 52px;
  padding: 8px 12px;
  border-radius: 12px;
}

.mode-tab strong {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.mode-tab small {
  margin-top: 1px;
  color: inherit;
  font-size: 9.5px;
  opacity: .58;
}

.mode-dot {
  width: 7px;
  height: 7px;
  box-shadow: none;
}

.mode-dot--build { background: var(--v8-lime); }
.mode-dot--explore { background: #ad9aff; }

.capture-popover #mode-build.is-active {
  color: #14151a;
  background: var(--v8-lime);
  box-shadow: none;
}

.capture-popover #mode-build.is-active .mode-dot {
  background: #14151a;
}

.capture-popover #mode-explore.is-active {
  color: white;
  background: var(--v8-violet);
  box-shadow: none;
}

.capture-popover #mode-explore.is-active .mode-dot {
  background: white;
}

.capture-form {
  padding: 0 18px 18px;
  scrollbar-color: #4a4d55 transparent;
}

.capture-popover .detected-card,
.capture-popover .context-card,
.capture-popover .capture-details {
  border-color: rgba(255, 255, 255, .095);
  border-radius: 18px;
  background: #191b20;
}

.detected-card {
  padding: 15px !important;
  background:
    radial-gradient(circle at 96% 5%, rgba(120, 92, 255, .12), transparent 36%),
    #191b20 !important;
}

.source-chip {
  padding: 4px 8px;
  color: var(--v8-lime);
  border-color: rgba(216, 255, 114, .18);
  background: rgba(216, 255, 114, .06);
  font-size: 9.5px;
  font-weight: 600;
}

.detected-main {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 11px;
  margin-top: 11px;
}

.mini-art {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}

.detected-copy strong {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.012em;
}

.detected-copy span {
  margin-top: 3px;
  color: #8f9299;
  font-size: 10.5px;
}

.text-button,
.inline-link {
  color: #b6a7ff;
  font-size: 10.5px;
  font-weight: 600;
}

.url-row {
  margin-top: 10px;
  padding-top: 9px;
  color: #777a82;
  font-size: 8.5px;
}

.capture-kind-block {
  margin-top: 12px;
  padding-top: 12px;
}

.capture-kind-heading > span,
.origin-heading > span {
  color: #d5d4d0;
  font-size: 11.5px;
  font-weight: 600;
}

.capture-kind-heading small,
.origin-heading small,
.capture-kind-help {
  color: #74777f;
  font-size: 9.5px;
}

.capture-kind-row {
  gap: 7px;
  margin-top: 9px;
}

.capture-kind-row button {
  min-height: 33px;
  padding: 6px 10px;
  color: #a7a9af;
  border-color: rgba(255, 255, 255, .09);
  background: #111317;
  font-size: 10.5px;
  font-weight: 500;
}

.capture-kind-row button.is-selected {
  color: var(--v8-text);
  border-color: rgba(168, 148, 255, .48);
  background: rgba(120, 92, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(120, 92, 255, .08);
  font-weight: 600;
}

.context-card {
  margin-top: 10px;
  padding: 14px 15px;
}

.context-card--build {
  border-color: rgba(216, 255, 114, .15) !important;
  background: rgba(216, 255, 114, .035) !important;
}

.context-card--explore {
  border-color: rgba(120, 92, 255, .2) !important;
  background: rgba(120, 92, 255, .055) !important;
}

.context-heading strong,
.context-card--explore strong {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.015em;
}

.compact-field select,
.field textarea,
.field input,
.field select,
.metadata-grid input,
.metadata-grid select,
.relationship-row input {
  color: #e8e7e1 !important;
  border-color: rgba(255, 255, 255, .105) !important;
  border-radius: 11px;
  background: #111317 !important;
  font-size: 11.5px;
}

.compact-field select {
  min-height: 38px;
  margin-top: 9px;
}

.context-summary,
.context-card p {
  color: #85888f;
  font-size: 9.5px;
}

.field {
  margin-top: 13px;
}

.field-heading,
.field > span:first-child {
  margin-bottom: 7px;
  font-size: 11.5px;
  font-weight: 600;
}

.field textarea,
.field input,
.field select {
  padding: 11px 12px;
}

.field--note textarea {
  min-height: 82px;
  line-height: 1.5;
}

.voice-button {
  min-height: 34px;
  padding: 7px 11px;
  color: #c4b9ff;
  border-color: rgba(168, 148, 255, .25);
  background: rgba(120, 92, 255, .07);
  font-size: 10.5px;
  font-weight: 600;
}

#voice-status {
  color: #777a82;
  font-size: 9px;
}

.capture-details {
  margin-top: 11px;
}

.capture-details summary {
  min-height: 46px;
  padding: 11px 13px;
  font-size: 11.5px;
  font-weight: 600;
}

.capture-details--more > summary {
  color: #d9d8d3;
}

.capture-details summary::after {
  color: #14151a;
  background: var(--v8-lime);
}

.capture-details summary small,
.optional-label {
  color: #71747c;
  font-size: 8.5px;
}

.more-info-section {
  padding: 16px 14px;
}

.more-info-heading strong {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.source-facts > span {
  background: #111317;
}

.source-facts small,
.metadata-grid label span,
.file-label,
.state-fieldset legend {
  color: #85888f;
  font-size: 9px;
  font-weight: 500;
}

.source-facts strong {
  font-size: 10.5px;
  font-weight: 600;
}

.detected-tags span,
.detected-tags button,
.prompt-strip button {
  min-height: 28px;
  padding: 5px 8px;
  color: #a7a9af;
  border-color: rgba(255, 255, 255, .08);
  background: #111317;
  font-size: 9.5px;
  font-weight: 500;
}

.detected-tags button.is-selected,
.prompt-strip button.is-selected {
  color: white;
  border-color: rgba(120, 92, 255, .5);
  background: var(--v8-violet);
}

.file-button {
  min-height: 34px;
  color: #d4cbff;
  border-color: rgba(168, 148, 255, .24);
  background: rgba(120, 92, 255, .07);
  font-size: 10px;
}

.state-choice input:checked + span {
  color: #17151a;
  border-color: var(--v8-lime);
  background: var(--v8-lime) !important;
}

.boundary-note {
  color: #e6c889;
  background: rgba(255, 180, 94, .075);
}

.capture-footer {
  padding-top: 12px;
  background: linear-gradient(transparent, #131519 28%);
}

.button {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 11px;
  font-size: 11.5px;
  font-weight: 600;
}

.capture-popover .button--primary,
.workspace-shell .button--primary,
.modal-card .button--primary {
  color: white;
  background: var(--v8-violet);
  box-shadow: 0 8px 24px rgba(120, 92, 255, .22);
}

.capture-popover .button--primary:hover,
.workspace-shell .button--primary:hover,
.modal-card .button--primary:hover {
  background: #876dff;
}

.capture-popover .button--quiet,
.workspace-shell .button--quiet,
.modal-card .button--quiet {
  color: #b5b6bb;
  border-color: rgba(255, 255, 255, .1);
  background: #1b1e23;
}

/* Personal library: denser than capture, with larger readable type. */

.workspace-shell {
  inset: 12px;
  grid-template-columns: 238px minmax(0, 1fr);
  border-color: rgba(255, 255, 255, .13);
  border-radius: 28px;
  background: #101216;
  box-shadow: 0 36px 120px rgba(0, 0, 0, .68);
}

.workspace-sidebar {
  padding: 21px 15px;
  background:
    radial-gradient(circle at 18% 102%, rgba(120, 92, 255, .18), transparent 34%),
    #0f1013;
}

.workspace-brand {
  gap: 12px;
  padding: 2px 8px 25px;
}

.workspace-logo {
  width: 40px;
  height: 40px;
  gap: 0;
  border: 1px solid rgba(242, 240, 232, .3);
  background: #17191e;
  box-shadow: inset 0 0 0 5px #111317;
}

.workspace-logo .samplepath-mark {
  width: 32px;
  height: 32px;
}

.workspace-brand strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.workspace-brand small {
  margin-top: 2px;
  color: #73767d;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .06em;
}

.workspace-nav {
  gap: 4px;
}

.workspace-nav-item,
.workspace-guide-link {
  min-height: 42px;
  color: #858890;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.workspace-nav-item:hover,
.workspace-nav-item.is-active,
.workspace-guide-link:hover,
.workspace-guide-link.is-active {
  color: var(--v8-text);
  background: rgba(255, 255, 255, .055);
}

.workspace-nav-item.is-active {
  box-shadow: inset 2px 0 0 var(--v8-lime);
}

.workspace-body {
  background:
    radial-gradient(circle at 96% 0%, rgba(120, 92, 255, .08), transparent 31%),
    #15171b;
}

.workspace-topbar {
  min-height: 64px;
  padding: 11px 20px;
  border-color: rgba(255, 255, 255, .08);
  background: rgba(17, 19, 23, .88);
}

.workspace-context {
  color: #858890;
  font-size: 11px;
}

.workspace-content {
  padding: 34px clamp(24px, 4vw, 56px) 58px;
}

.page-header {
  margin-bottom: 28px;
}

.page-header h1 {
  margin-bottom: 8px;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: .98;
}

.page-header p {
  color: #92949a;
  font-size: 13px;
  line-height: 1.5;
}

.summary-strip {
  gap: 11px;
  margin-bottom: 20px;
}

.workspace-shell .summary-card,
.workspace-shell .asset-row,
.workspace-shell .project-card,
.workspace-shell .panel-card,
.workspace-shell .guide-card,
.workspace-shell .revisit-card,
.workspace-shell .collection-card,
.workspace-shell .detail-panel,
.workspace-shell .handoff-panel,
.workspace-shell .relationship-node,
.modal-card {
  border-color: rgba(255, 255, 255, .085);
  background: #1a1c21;
}

.summary-card {
  padding: 16px 17px;
  border-radius: 17px;
}

.summary-card strong {
  margin-bottom: 4px;
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.04em;
}

.summary-card span {
  color: #797c83;
  font-size: 9px;
}

.search-field,
.filter-select {
  min-height: 42px;
  padding: 10px 12px;
  color: #d9d8d4 !important;
  border-color: rgba(255, 255, 255, .095) !important;
  border-radius: 12px;
  background: #111317 !important;
  font-size: 11px;
}

.asset-list {
  gap: 9px;
}

.asset-row {
  min-height: 70px;
  grid-template-columns: 50px minmax(180px, 1.3fr) minmax(160px, 1fr) minmax(155px, .85fr) auto;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 17px;
}

.workspace-shell .asset-row:hover {
  border-color: rgba(120, 92, 255, .4);
  background: #202329;
  transform: translateY(-1px);
}

.asset-art {
  width: 50px;
  height: 50px;
  border-radius: 14px;
}

.asset-primary strong {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.012em;
}

.asset-primary span,
.asset-secondary span,
.asset-evidence span {
  color: #82858c;
  font-size: 10px;
}

.asset-secondary strong,
.asset-evidence strong {
  color: #c2c2bf;
  font-size: 10.5px;
  font-weight: 600;
}

.status-pill,
.file-state {
  padding: 5px 8px;
  font-size: 9px !important;
  font-weight: 600;
}

.project-card,
.panel-card,
.guide-card,
.revisit-card {
  border-radius: 20px;
}

.project-card h2,
.panel-card h2,
.guide-card h2,
.revisit-card h2,
.collection-copy h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.025em;
}

.project-card p,
.panel-card > p,
.guide-card p,
.revisit-card p,
.collection-copy p {
  color: #8b8e95;
  font-size: 11px;
  line-height: 1.5;
}

.collection-card {
  border-radius: 22px;
}

.collection-art {
  min-height: 128px;
}

.collection-detail-banner {
  border-color: rgba(255, 255, 255, .085);
  border-radius: 22px;
  background: #1a1c21;
}

.collection-detail-banner strong {
  font-size: 28px;
}

.collection-detail-banner p {
  color: #8b8e95;
  font-size: 11px;
  line-height: 1.5;
}

.account-card {
  border-color: rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .025);
}

.avatar {
  color: white;
  background: var(--v8-violet);
}

.version-note {
  color: #666970;
  border-color: rgba(255, 255, 255, .075);
  font-size: 8.5px;
}

.version-note strong {
  color: #96989e;
}

@media (max-width: 720px) {
  .browser-chrome {
    gap: 10px;
    padding: 9px 13px;
  }

  .host-page {
    width: calc(100% - 28px);
    padding-top: 46px;
  }

  .host-title {
    font-size: clamp(39px, 12vw, 56px);
  }

  .companion {
    right: 12px;
    bottom: 14px;
  }

  .capture-orb {
    width: 58px;
    height: 58px;
  }

  .capture-popover {
    right: 12px;
    bottom: 84px;
    width: calc(100vw - 24px) !important;
    height: calc(100vh - 98px) !important;
    min-width: 0;
    border-radius: 24px;
  }

  .capture-header {
    padding: 20px 18px 14px;
  }

  .capture-header h1 {
    font-size: 29px;
  }

  .mode-row,
  .capture-form {
    padding-left: 14px;
    padding-right: 14px;
  }

  .capture-kind-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .workspace-shell {
    inset: 7px;
    grid-template-columns: 1fr;
    grid-template-rows: 70px minmax(0, 1fr);
    border-radius: 22px;
  }

  .workspace-sidebar {
    min-height: 70px;
    padding: 9px 11px;
  }

  .workspace-brand {
    padding: 0;
  }

  .workspace-content {
    padding: 24px 15px 44px;
  }

  .page-header h1 {
    font-size: 34px;
  }

  .page-header p {
    font-size: 12px;
  }
}
