:root {
  color-scheme: dark;
  --bg: #05070d;
  --ink: #eef6ff;
  --muted: #9fb1c2;
  --line: rgba(159, 177, 194, 0.22);
  --panel: rgba(8, 14, 24, 0.78);
  --panel-strong: rgba(12, 22, 34, 0.92);
  --cyan: #38bdf8;
  --amber: #f59e0b;
  --green: #22c55e;
  --rose: #fb7185;
  --white-soft: rgba(238, 246, 255, 0.9);
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.12), transparent 25rem),
    radial-gradient(circle at 12% 62%, rgba(34, 197, 94, 0.11), transparent 22rem),
    linear-gradient(135deg, #05070d 0%, #08101c 48%, #05070d 100%);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) minmax(280px, 380px);
  gap: 14px;
  min-height: 100vh;
  padding: 14px;
}

.daily-panel,
.detail-panel,
.source-inbox,
.universe {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.daily-panel,
.detail-panel {
  max-height: calc(100vh - 28px);
  overflow: auto;
}

.daily-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 14px;
  border-radius: 8px;
}

.center-stage {
  display: grid;
  grid-template-rows: minmax(560px, 1fr) auto;
  gap: 14px;
  min-width: 0;
}

.universe {
  position: relative;
  overflow: hidden;
  min-height: 590px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(8, 14, 24, 0.94), rgba(3, 7, 18, 0.94)),
    var(--panel);
}

.universe__topbar {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px 14px 8px;
}

.universe__hint {
  position: relative;
  z-index: 6;
  margin: 0 14px;
  color: #b8c7d8;
  font-size: 12px;
  line-height: 1.5;
}

.search-box {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: min(520px, 100%);
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.84);
}

.search-box > span {
  color: #bae6fd;
  font-size: 12px;
  font-weight: 700;
}

.search-box input {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
}

.status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.status-pills span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  color: #d9f99d;
  border: 1px solid rgba(217, 249, 157, 0.2);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.08);
  font-size: 12px;
  white-space: nowrap;
}

.star-board {
  position: absolute;
  inset: 92px 0 0;
  isolation: isolate;
}

.star-board::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 1;
  border: 1px solid rgba(148, 213, 255, 0.12);
  border-radius: 8px;
  pointer-events: none;
}

.star-board::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 72px;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.3), transparent);
  pointer-events: none;
}

.field-asset {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(0.75) contrast(1.05);
}

.constellation-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.constellation-lines line {
  stroke: rgba(148, 213, 255, 0.52);
  stroke-width: 0.15;
}

.core-node {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 51%;
  display: grid;
  place-items: center;
  width: clamp(112px, 14vw, 168px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 1px solid rgba(186, 230, 253, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(186, 230, 253, 0.16), rgba(56, 189, 248, 0.06) 58%, rgba(3, 7, 18, 0.64)),
    rgba(5, 7, 13, 0.58);
  box-shadow: 0 0 44px rgba(56, 189, 248, 0.14);
  color: var(--white-soft);
  text-align: center;
}

.core-node span,
.core-node strong {
  display: block;
  letter-spacing: 0;
}

.core-node span {
  color: #bae6fd;
  font-size: 13px;
  font-weight: 700;
}

.core-node strong {
  font-size: clamp(24px, 3.8vw, 46px);
  line-height: 1.05;
}

.graph-node {
  position: absolute;
  z-index: 4;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(3, 7, 18, 0.78);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.graph-node--card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas:
    "score label"
    "score meta";
  gap: 4px 9px;
  width: clamp(152px, 16vw, 194px);
  min-height: 76px;
  padding: 9px;
  border-color: rgba(245, 158, 11, 0.34);
  border-radius: 8px;
}

.graph-node--card strong {
  grid-area: score;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #07111d;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef3c7, var(--amber));
  font-size: 13px;
  font-weight: 800;
}

.graph-node--card span {
  grid-area: label;
  display: -webkit-box;
  overflow: hidden;
  color: #eef6ff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.graph-node--card small {
  grid-area: meta;
  overflow: hidden;
  color: #9fb1c2;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.graph-node--concept {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 132px;
  min-height: 34px;
  padding: 7px 10px;
  border-color: rgba(34, 197, 94, 0.34);
  border-radius: 999px;
}

.graph-node--concept i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #86efac;
}

.graph-node--concept span {
  overflow: hidden;
  color: #d9f99d;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.graph-node:hover,
.graph-node:focus-visible {
  z-index: 8;
  outline: 0;
  transform: translateY(-2px) scale(1.02);
  border-color: #e5f2ff;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.graph-node.is-active {
  z-index: 7;
  border-color: #fbbf24;
  background: rgba(30, 41, 59, 0.96);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.14), 0 18px 42px rgba(0, 0, 0, 0.34);
}

.graph-dock {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 6;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(159, 177, 194, 0.2);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(12px);
}

.graph-dock > span {
  color: #bae6fd;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.graph-dock__items {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.graph-dock__link {
  flex: 0 0 auto;
  max-width: 220px;
  min-height: 32px;
  overflow: hidden;
  padding: 7px 10px;
  color: #eef6ff;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.graph-dock__link:hover,
.graph-dock__link:focus-visible {
  outline: 0;
  border-color: #fbbf24;
}

.graph-empty {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 48%;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100% - 40px));
  padding: 18px;
  translate: -50% -50%;
  border: 1px solid rgba(159, 177, 194, 0.22);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.84);
  text-align: center;
}

.graph-empty strong {
  color: #fef3c7;
}

.graph-empty span {
  color: #b8c7d8;
  line-height: 1.5;
}

.detail-panel {
  padding: 16px;
  border-radius: 8px;
}

.panel-header h2 {
  margin: 2px 0 10px;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.12;
  letter-spacing: 0;
}

.eyebrow,
.panel-title,
.field-row span,
.queue-item small,
.review-item small,
.source-item span,
.source-item small {
  color: var(--muted);
  font-size: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reading-layer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.reading-layer h3,
.link-list h3 {
  margin: 0 0 10px;
  color: #bae6fd;
  font-size: 13px;
  letter-spacing: 0;
}

.takeaway {
  margin: 0;
  color: #fef3c7;
  font-size: 17px;
  line-height: 1.55;
}

.field-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  margin: 9px 0;
}

.field-row p,
.concept-copy,
.link-list p {
  margin: 0;
  color: #dbeafe;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.qa-layer {
  border-color: rgba(251, 113, 133, 0.25);
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.link-list h3 {
  flex-basis: 100%;
}

.link-chip,
.queue-item,
.review-item,
.source-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.66);
  cursor: pointer;
}

.link-chip {
  padding: 7px 9px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #e5f2ff;
  font-size: 14px;
}

.panel-title b {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  min-height: 24px;
  color: #07111d;
  border-radius: 999px;
  background: var(--amber);
}

.queue-list,
.review-list,
.source-grid {
  display: grid;
  gap: 8px;
}

.queue-item,
.review-item,
.source-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 10px;
  text-align: left;
}

.queue-item__score {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #07111d;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef3c7, var(--amber));
  font-weight: 800;
}

.queue-item strong,
.review-item strong,
.source-item strong {
  display: block;
  color: var(--ink);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.queue-item small,
.review-item small,
.source-item small {
  display: block;
  margin-top: 4px;
}

.queue-item:disabled {
  cursor: default;
  opacity: 0.72;
}

.review-item {
  grid-template-columns: 1fr;
  border-color: rgba(251, 113, 133, 0.24);
}

.source-inbox {
  padding: 14px;
  border-radius: 8px;
}

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

.source-item {
  grid-template-columns: 1fr;
  color: inherit;
  text-decoration: none;
}

.system-message {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.system-message h1 {
  font-size: clamp(36px, 8vw, 84px);
  letter-spacing: 0;
}

.report-shell {
  width: min(1040px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.report-hero,
.report-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
}

.report-hero {
  padding: 22px;
}

.report-hero h1 {
  max-width: 820px;
  margin: 12px 0 14px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.back-link,
.report-link,
.source-link {
  color: #bae6fd;
}

.report-link {
  display: inline-flex;
  margin: 0 0 12px;
}

.report-section {
  margin-top: 14px;
  padding: 20px 22px;
}

.report-section h2 {
  margin: 0 0 18px;
  color: #fef3c7;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0;
}

.report-field {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.report-entry {
  padding: 2px 0 14px;
  border-top: 1px solid rgba(56, 189, 248, 0.22);
}

.report-entry + .report-entry {
  margin-top: 12px;
}

.report-entry:first-of-type {
  border-top: 0;
}

.report-visual,
.report-recreated-figure {
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.62);
}

.report-visual figcaption,
.report-recreated-figure figcaption {
  margin-bottom: 12px;
  color: #d9f99d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.report-visual-table-wrap {
  overflow-x: auto;
}

.report-visual-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.report-visual-table th,
.report-visual-table td {
  padding: 10px 11px;
  border: 1px solid rgba(159, 177, 194, 0.2);
  color: #e5f2ff;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}

.report-visual-table th {
  color: #07111d;
  background: #bae6fd;
  font-size: 13px;
}

.report-visual-table td:first-child {
  color: #fef3c7;
  font-weight: 700;
}

.report-flow {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-flow li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(159, 177, 194, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.7);
}

.report-flow b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #07111d;
  border-radius: 50%;
  background: var(--amber);
}

.report-flow span {
  color: #e5f2ff;
  line-height: 1.5;
}

.line-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 260px;
}

.line-chart line {
  stroke: rgba(159, 177, 194, 0.55);
  stroke-width: 1.5;
}

.line-chart text {
  fill: #9fb1c2;
  font-size: 13px;
}

.line-chart .x-label {
  text-anchor: middle;
}

.line-chart .y-label {
  fill: #fef3c7;
  font-weight: 700;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.chart-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #e5f2ff;
  font-size: 13px;
}

.chart-legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--series-color);
}

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

.phase-card {
  padding: 12px;
  border: 1px solid rgba(159, 177, 194, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.7);
}

.phase-card span,
.phase-bar small {
  color: var(--muted);
  font-size: 12px;
}

.phase-card strong {
  display: block;
  min-height: 44px;
  margin: 6px 0 12px;
  color: #fef3c7;
  line-height: 1.35;
}

.phase-bars {
  display: grid;
  gap: 8px;
}

.phase-bar {
  display: grid;
  gap: 4px;
}

.phase-bar span {
  display: block;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(159, 177, 194, 0.16);
}

.phase-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}

.rehab-network {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.rehab-network__center {
  display: grid;
  place-items: center;
  min-height: 180px;
  aspect-ratio: 1;
  padding: 18px;
  border: 1px solid rgba(186, 230, 253, 0.3);
  border-radius: 50%;
  color: #f8fafc;
  background:
    radial-gradient(circle, rgba(186, 230, 253, 0.22), rgba(56, 189, 248, 0.08) 62%, rgba(15, 23, 42, 0.82)),
    rgba(15, 23, 42, 0.86);
  box-shadow: 0 0 36px rgba(56, 189, 248, 0.16);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

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

.rehab-network-node {
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(159, 177, 194, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.74);
  text-align: center;
}

.rehab-network-node:nth-child(3n + 1) {
  background: rgba(56, 189, 248, 0.14);
}

.rehab-network-node:nth-child(3n + 2) {
  background: rgba(34, 197, 94, 0.12);
}

.rehab-network-node:nth-child(3n + 3) {
  background: rgba(245, 158, 11, 0.12);
}

.rehab-network-node strong,
.rehab-network-node span {
  display: block;
  overflow-wrap: anywhere;
}

.rehab-network-node strong {
  color: #fef3c7;
  font-size: 14px;
  line-height: 1.35;
}

.rehab-network-node span {
  margin-top: 5px;
  color: #dbeafe;
  font-size: 12px;
  line-height: 1.35;
}

.report-field:first-of-type {
  border-top: 0;
}

.report-field span {
  color: var(--muted);
  font-size: 13px;
}

.report-field p,
.report-field ul,
.report-note {
  margin: 0;
  color: #e5f2ff;
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.report-field ul {
  padding-left: 18px;
}

.report-note {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(251, 113, 133, 0.2);
  border-radius: 8px;
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.07);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .daily-panel,
  .detail-panel {
    max-height: none;
  }

  .center-stage {
    grid-row: 1;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 8px;
    gap: 8px;
  }

  .center-stage {
    grid-template-rows: minmax(480px, 62vh) auto;
  }

  .universe__topbar,
  .status-pills,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .universe__topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .status-pills {
    justify-content: flex-start;
  }

  .universe {
    min-height: 560px;
  }

  .star-board {
    inset: 136px 0 0;
  }

  .core-node {
    width: 112px;
  }

  .graph-node--card {
    grid-template-columns: 28px minmax(0, 1fr);
    width: 142px;
    min-height: 68px;
    padding: 8px;
  }

  .graph-node--card strong {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .graph-node--card span {
    font-size: 12px;
  }

  .graph-node--concept {
    max-width: 108px;
    min-height: 30px;
    padding: 6px 8px;
  }

  .graph-node:hover,
  .graph-node:focus-visible,
  .graph-node.is-active {
    transform: none;
  }

  .graph-dock {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .graph-dock__link {
    max-width: 180px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .report-shell {
    width: calc(100% - 16px);
    padding-top: 8px;
  }

  .report-field {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

  .rehab-network {
    grid-template-columns: 1fr;
  }

  .rehab-network__center {
    width: 180px;
    min-height: 180px;
    justify-self: center;
  }

  .rehab-network__nodes {
    grid-template-columns: 1fr;
  }

  .report-visual,
  .report-recreated-figure {
    padding: 10px;
  }
}

/* Obsidian workspace redesign */
:root {
  color-scheme: dark;
  --bg: #101014;
  --ink: #dcddde;
  --muted: #8b8d98;
  --line: rgba(122, 125, 146, 0.24);
  --panel: #17181f;
  --panel-strong: #1d1e27;
  --cyan: #8b7cf6;
  --amber: #9b87f5;
  --green: #8b7cf6;
  --rose: #d08770;
  --white-soft: #f2f0ff;
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}

body {
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 24px 24px;
}

.app-shell {
  grid-template-columns: minmax(232px, 304px) minmax(0, 1fr) minmax(300px, 388px);
  gap: 1px;
  padding: 0;
  background: rgba(122, 125, 146, 0.24);
}

.daily-panel,
.detail-panel,
.source-inbox,
.universe {
  border: 0;
  border-radius: 0;
  background: var(--panel);
  box-shadow: none;
  backdrop-filter: none;
}

.daily-panel,
.detail-panel {
  max-height: 100vh;
}

.daily-panel,
.source-inbox {
  padding: 12px;
}

.center-stage {
  gap: 1px;
  background: rgba(122, 125, 146, 0.24);
}

.universe {
  min-height: 600px;
  background:
    linear-gradient(180deg, rgba(23, 24, 31, 0.98), rgba(16, 16, 20, 0.98)),
    var(--panel);
}

.universe__topbar {
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(23, 24, 31, 0.92);
}

.universe__hint {
  margin: 8px 12px 0;
  color: var(--muted);
}

.search-box {
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 36px;
  border-color: var(--line);
  border-radius: 6px;
  background: #101116;
}

.search-box > span {
  color: #c7c0ff;
}

.graph-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.graph-action {
  min-height: 32px;
  padding: 5px 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #1d1e27;
  cursor: pointer;
}

.graph-action:hover,
.graph-action:focus-visible,
.graph-action.is-active,
.graph-action--primary {
  color: #f2f0ff;
  outline: 0;
  border-color: rgba(139, 124, 246, 0.72);
  background: rgba(139, 124, 246, 0.18);
}

.status-pills span,
.tag {
  color: #c7c0ff;
  border-color: rgba(139, 124, 246, 0.24);
  border-radius: 5px;
  background: rgba(139, 124, 246, 0.1);
}

.star-board {
  inset: 94px 0 0;
}

.star-board::before {
  inset: 16px;
  border-color: rgba(122, 125, 146, 0.18);
  border-radius: 6px;
}

.star-board::after {
  background: rgba(122, 125, 146, 0.18);
}

.field-asset {
  opacity: 0.08;
  filter: grayscale(1) contrast(0.9);
}

.constellation-lines line {
  stroke: rgba(154, 145, 255, 0.46);
  stroke-width: 0.16;
}

.core-node {
  width: clamp(92px, 11vw, 128px);
  border-color: rgba(139, 124, 246, 0.32);
  border-radius: 7px;
  background: rgba(20, 21, 28, 0.9);
  box-shadow: 0 0 0 1px rgba(139, 124, 246, 0.08);
}

.core-node span {
  color: #a79bff;
  font-size: 11px;
}

.core-node strong {
  color: #f2f0ff;
  font-size: clamp(20px, 3vw, 34px);
}

.graph-node {
  border-color: rgba(122, 125, 146, 0.32);
  background: rgba(29, 30, 39, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.graph-node--card {
  border-color: rgba(139, 124, 246, 0.26);
  border-radius: 6px;
}

.graph-node--card strong,
.queue-item__score,
.panel-title b,
.source-inbox .panel-title b {
  color: #f7f4ff;
  background: #8b7cf6;
}

.graph-node--card span,
.queue-item strong,
.review-item strong,
.source-item strong {
  color: #f1f1f4;
}

.graph-node--card small {
  color: var(--muted);
}

.graph-node--concept {
  border-color: rgba(139, 124, 246, 0.26);
  background: rgba(24, 25, 34, 0.94);
}

.graph-node--concept i {
  background: #8b7cf6;
}

.graph-node--concept span {
  color: #c7c0ff;
}

.graph-node:hover,
.graph-node:focus-visible {
  transform: translateY(-1px) scale(1.01);
  border-color: rgba(199, 192, 255, 0.86);
  background: #22232d;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}

.graph-node.is-active {
  border-color: #a79bff;
  background: #242532;
  box-shadow: 0 0 0 1px rgba(167, 155, 255, 0.28), 0 14px 32px rgba(0, 0, 0, 0.32);
}

.graph-dock {
  right: 12px;
  bottom: 12px;
  left: 12px;
  border-color: var(--line);
  border-radius: 6px;
  background: rgba(16, 17, 22, 0.92);
  backdrop-filter: none;
}

.graph-dock > span,
.reading-layer h3,
.link-list h3 {
  color: #a79bff;
}

.graph-dock__link,
.link-chip,
.queue-item,
.review-item,
.source-item {
  color: var(--ink);
  border-color: rgba(122, 125, 146, 0.22);
  border-radius: 6px;
  background: #1b1c25;
}

.graph-dock__link:hover,
.graph-dock__link:focus-visible,
.queue-item:hover,
.review-item:hover,
.source-item:hover,
.link-chip:hover,
.link-chip:focus-visible {
  outline: 0;
  border-color: rgba(139, 124, 246, 0.58);
  background: #22232d;
}

.detail-panel {
  padding: 16px;
}

.panel-header h2 {
  color: #f1f1f4;
  font-size: clamp(24px, 2.5vw, 34px);
}

.takeaway,
.report-section h2,
.phase-card strong {
  color: #e6e1ff;
}

.field-row p,
.concept-copy,
.link-list p,
.report-field p,
.report-field ul,
.report-note {
  color: #d7d8df;
}

.report-hero,
.report-section,
.report-visual,
.report-recreated-figure,
.phase-card,
.report-flow li,
.rehab-network-node {
  border-color: rgba(122, 125, 146, 0.22);
  border-radius: 6px;
  background: #17181f;
  box-shadow: none;
}

@media (max-width: 1050px) {
  .app-shell {
    gap: 1px;
    padding: 0;
  }
}

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

  .graph-actions,
  .status-pills {
    justify-content: flex-start;
  }

  .star-board {
    inset: 154px 0 0;
  }
}
/* End Obsidian workspace redesign */

.abbr-note {
  color: #f2f0ff;
  border-bottom: 1px dotted rgba(167, 155, 255, 0.7);
  font-weight: 800;
  text-decoration: none;
}

.abbr-translation {
  margin-left: 2px;
  color: #a79bff;
  font-size: 0.92em;
}
