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

.planet-universe-band {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 18%, rgba(95, 134, 244, .2), transparent 26%),
    radial-gradient(circle at 76% 8%, rgba(123, 222, 225, .12), transparent 22%),
    radial-gradient(circle at 72% 82%, rgba(197, 126, 235, .11), transparent 30%),
    linear-gradient(145deg, #06101f 0%, #0a1730 54%, #111f45 100%);
}

.planet-universe-band::before,
.planet-universe-band::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.planet-universe-band::before {
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .42) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(154, 185, 255, .28) 0 1px, transparent 1.2px);
  background-position: 0 0, 83px 47px;
  background-size: 196px 196px, 241px 241px;
  opacity: .32;
}

.planet-universe-band::after {
  top: -16%;
  left: 20%;
  width: 48%;
  height: 56%;
  border-radius: 50%;
  background: rgba(94, 147, 255, .12);
  filter: blur(80px);
}

.planet-universe-intro,
.planet-proof,
.planet-proof-note,
.planet-cosmos-grid {
  position: relative;
  z-index: 1;
}

.planet-proof {
  max-width: 880px;
}

.planet-cosmos-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.planet-cosmos-map {
  min-height: 620px;
  border-color: rgba(179, 204, 255, .17);
  background:
    radial-gradient(circle at 50% 48%, rgba(48, 84, 168, .25), transparent 44%),
    radial-gradient(circle at 16% 22%, rgba(117, 202, 255, .16), transparent 20%),
    radial-gradient(circle at 84% 72%, rgba(219, 137, 241, .11), transparent 24%),
    #040b18;
  box-shadow:
    inset 0 0 90px rgba(28, 56, 126, .18),
    0 28px 80px rgba(1, 7, 19, .34);
}

.planet-cosmos-map::before,
.planet-cosmos-map::after {
  position: absolute;
  z-index: 0;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.planet-cosmos-map::before {
  inset: 7% 10%;
  border: 1px solid rgba(151, 183, 255, .06);
  box-shadow:
    0 0 0 70px rgba(151, 183, 255, .018),
    0 0 0 145px rgba(151, 183, 255, .012);
}

.planet-cosmos-map::after {
  top: 14%;
  left: 50%;
  width: 62%;
  height: 46%;
  background: rgba(79, 107, 237, .12);
  filter: blur(70px);
  transform: translateX(-50%);
}

.planet-graph-inline {
  z-index: 1;
  touch-action: none;
}

.planet-graph-inline canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.planet-knowledge-canvas {
  outline: none;
}

.planet-knowledge-canvas:focus-visible {
  outline: 2px solid rgba(175, 204, 255, .72);
  outline-offset: -3px;
}

.planet-graph-tooltip {
  position: absolute;
  z-index: 6;
  max-width: 260px;
  padding: 6px 9px;
  border: 1px solid rgba(205, 222, 255, .18);
  border-radius: var(--r-sm);
  background: rgba(43, 63, 158, .94);
  color: #fff;
  font-size: 12px;
  line-height: 1.38;
  pointer-events: none;
  transform: translate(10px, -30px);
}

.planet-cosmos-toolbar {
  position: absolute;
  top: 16px;
  right: 16px;
  left: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.planet-search {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 430px;
  height: 44px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(1, 7, 19, .22);
}

.planet-search:focus-within {
  border-color: var(--brand-1);
  box-shadow: 0 0 0 3px rgba(79, 107, 237, .2);
}

.planet-search input {
  width: 100%;
  min-width: 0;
  height: calc(100% + 2px);
  min-height: 44px;
  margin-block: -1px;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--label);
  font: 400 13px/1.38 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.planet-search input::placeholder {
  color: var(--label-3);
}

.planet-search-submit {
  flex: 0 0 auto;
  height: 44px;
  margin: -1px -1px -1px 0;
  padding: 0 16px;
  border: 0;
  border-radius: 0 999px 999px 0;
  background: #fff;
  box-shadow: inset 1px 0 0 var(--line);
  color: var(--deep);
}

.planet-search-submit:hover {
  background: var(--brand-0);
  color: var(--brand);
}

.planet-reset-view {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 999px;
  background: #fff;
  color: var(--label);
  font: 400 12px/1.38 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.planet-reset-view:hover,
.planet-reset-view:focus-visible {
  border-color: var(--brand-1);
  background: var(--brand-0);
  color: var(--brand);
}

.planet-search-results {
  position: absolute;
  top: 44px;
  left: 0;
  z-index: 8;
  width: min(100%, 540px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: 0 24px 70px rgba(1, 7, 19, .3);
}

.planet-search-result {
  display: grid;
  width: 100%;
  gap: 4px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--hair);
  background: transparent;
  color: rgba(29, 29, 31, .92);
  text-align: left;
  cursor: pointer;
}

.planet-search-result:last-child {
  border-bottom: 0;
}

.planet-search-result:hover,
.planet-search-result:focus-visible {
  background: var(--brand-0);
}

.planet-search-result strong {
  font-size: 15px;
  font-weight: 500;
}

.planet-search-result span,
.planet-search-result small {
  overflow: hidden;
  color: rgba(29, 29, 31, .64);
  font-size: 12px;
  line-height: 1.38;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planet-search-result small {
  color: rgba(29, 29, 31, .54);
}

.planet-search-empty {
  margin: 0;
  padding: 18px 16px;
  color: var(--label-2);
  font-size: 13px;
  line-height: 1.38;
}

.planet-cosmos-hint {
  top: auto;
  bottom: 16px;
  z-index: 4;
  color: rgba(221, 232, 255, .5);
  text-align: center;
}

.planet-cosmos-focus {
  position: sticky;
  top: 96px;
  min-height: 0;
  padding: 28px;
  border-color: var(--line);
  background: var(--card);
  color: var(--label);
  box-shadow:
    0 24px 64px rgba(29, 29, 31, .14);
}

.planet-focus-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.planet-focus-head > div {
  min-width: 0;
}

.planet-state-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border: 1px solid rgba(207, 221, 252, .18);
  border-radius: 999px;
  color: rgba(228, 236, 255, .7);
  font-size: 12px;
  line-height: 1.38;
}

.planet-state-badge[data-state="explored"] {
  border-color: rgba(216, 164, 255, .34);
  color: #e4c4ff;
}

.planet-state-badge[data-state="understood"] {
  border-color: rgba(159, 191, 255, .38);
  color: #c5d7ff;
}

.planet-state-badge[data-state="mastered"] {
  border-color: rgba(127, 228, 204, .38);
  color: #aaf3df;
}

.planet-state-badge[data-state="review"] {
  border-color: rgba(240, 194, 123, .38);
  color: #f7d5a1;
}

.planet-focus-definition {
  max-width: 34em;
  margin-top: 20px;
  color: rgba(247, 249, 255, .88);
  font-size: 17px;
  line-height: 1.47;
}

.planet-focus-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 20px;
  border-top: 1px solid rgba(205, 222, 255, .12);
  border-bottom: 1px solid rgba(205, 222, 255, .12);
}

.planet-focus-facts > div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
}

.planet-focus-facts > div + div {
  border-top: 1px solid rgba(205, 222, 255, .08);
}

.planet-focus-facts span,
.planet-focus-learning-head span {
  color: rgba(208, 221, 249, .52);
  font-size: 12px;
  line-height: 1.38;
}

.planet-focus-facts strong {
  overflow: hidden;
  color: rgba(245, 248, 255, .86);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.38;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planet-focus-learning {
  margin-top: 20px;
}

.planet-focus-learning-head,
.planet-focus-learning-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.planet-focus-learning-head strong {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.38;
}

.planet-learning-meter {
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}

.planet-learning-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8fb5ff, #7fe4cc);
  transition: width 220ms ease;
}

.planet-focus-learning-meta {
  margin-top: 8px;
  color: rgba(205, 219, 247, .52);
  font-size: 12px;
  line-height: 1.38;
}

.planet-focus-why {
  margin-top: 16px;
  line-height: 1.47;
}

.planet-relation-groups {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.planet-relation-group {
  display: grid;
  gap: 8px;
}

.planet-relation-group > p {
  margin: 0;
  color: rgba(205, 220, 250, .48);
  font-size: 12px;
  line-height: 1.38;
}

.planet-relation-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.planet-cosmos-relations button,
.planet-relation-group button {
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid rgba(195, 214, 252, .16);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .035);
  color: rgba(235, 242, 255, .76);
  font-size: 12px;
  line-height: 1.38;
  text-align: left;
}

.planet-cosmos-relations button:hover,
.planet-cosmos-relations button:focus-visible,
.planet-relation-group button:hover,
.planet-relation-group button:focus-visible {
  border-color: rgba(176, 204, 255, .45);
  background: rgba(126, 160, 242, .12);
  color: #fff;
}

.planet-cosmos-actions {
  margin-top: 24px;
}

.planet-cosmos-actions .btn:not(.btn-ghost) {
  background: var(--deep);
  color: #fff;
}

.planet-cosmos-focus .eyebrow {
  color: var(--brand);
}

.planet-cosmos-focus .planet-state-badge {
  border-color: var(--line);
  background: var(--page);
  color: var(--label-2);
}

.planet-cosmos-focus .planet-state-badge[data-state="explored"],
.planet-cosmos-focus .planet-state-badge[data-state="understood"] {
  border-color: var(--brand-1);
  background: var(--brand-0);
  color: var(--deep);
}

.planet-cosmos-focus .planet-state-badge[data-state="mastered"] {
  border-color: rgba(52, 199, 89, .32);
  background: rgba(52, 199, 89, .08);
  color: #1f7a3d;
}

.planet-cosmos-focus .planet-state-badge[data-state="review"] {
  border-color: rgba(255, 159, 10, .32);
  background: rgba(255, 159, 10, .08);
  color: #8a5200;
}

.planet-cosmos-focus .planet-universe-body,
.planet-cosmos-focus .planet-focus-definition {
  color: var(--label);
}

.planet-cosmos-focus .planet-focus-facts {
  border-top-color: var(--hair);
  border-bottom-color: var(--hair);
}

.planet-cosmos-focus .planet-focus-facts > div + div {
  border-top-color: var(--hair);
}

.planet-cosmos-focus .planet-focus-facts span,
.planet-cosmos-focus .planet-focus-learning-head span,
.planet-cosmos-focus .planet-focus-learning-meta,
.planet-cosmos-focus .planet-relation-group > p {
  color: var(--label-2);
}

.planet-cosmos-focus .planet-focus-facts strong,
.planet-cosmos-focus .planet-focus-learning-head strong {
  color: var(--label);
}

.planet-cosmos-focus .planet-learning-meter {
  background: var(--hair);
}

.planet-cosmos-focus .planet-learning-meter span {
  background: linear-gradient(90deg, var(--brand), var(--brand-3));
}

.planet-cosmos-focus .planet-focus-why {
  color: var(--label-2);
}

.planet-cosmos-focus .planet-relation-group button {
  border-color: var(--line);
  background: var(--brand-0);
  color: var(--deep);
}

.planet-cosmos-focus .planet-relation-group button:hover,
.planet-cosmos-focus .planet-relation-group button:focus-visible {
  border-color: var(--brand-1);
  background: var(--page);
  color: var(--brand);
}

.planet-cosmos-focus .planet-cosmos-actions .btn:not(.btn-ghost) {
  color: #fff;
}

.planet-recall {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--page);
}

.planet-recall-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.planet-recall-question {
  margin-top: 18px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.47;
}

.planet-recall-options {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.planet-recall-option {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.planet-recall-option:hover,
.planet-recall-option:focus-visible {
  border-color: var(--brand);
}

.planet-recall-option[data-result="correct"] {
  border-color: rgba(52, 199, 89, .55);
  background: rgba(52, 199, 89, .08);
}

.planet-recall-option[data-result="wrong"] {
  border-color: rgba(255, 59, 48, .44);
  background: rgba(255, 59, 48, .06);
}

.planet-recall-option:disabled {
  cursor: default;
}

.planet-recall .actions {
  margin-top: 14px;
}

@media (max-width: 1100px) {
  .planet-cosmos-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .planet-cosmos-map {
    min-height: 560px;
  }
}

@media (max-width: 900px) {
  .planet-cosmos-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .planet-cosmos-map {
    min-height: 520px;
  }

  .planet-cosmos-focus {
    position: static;
  }
}

@media (max-width: 600px) {
  .planet-cosmos-map {
    min-height: 430px;
  }

  .planet-cosmos-toolbar {
    top: 12px;
    right: 12px;
    left: 12px;
    gap: 6px;
  }

  .planet-search {
    height: 44px;
    max-width: none;
  }

  .planet-search input {
    padding: 0 12px;
  }

  .planet-search-submit {
    height: 44px;
    padding: 0 12px;
  }

  .planet-reset-view {
    width: auto;
    height: 44px;
    padding: 0 10px;
  }

  .planet-search-results {
    top: 42px;
  }

  .planet-cosmos-focus {
    padding: 24px;
  }

  .planet-focus-facts > div {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .planet-recall {
    padding: 20px;
  }

  .planet-recall-head {
    display: grid;
    justify-content: start;
  }
}

.planet-reading-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  isolation: isolate;
  background:
    radial-gradient(circle at 92% 0%, rgba(88, 120, 244, .19), transparent 34%),
    radial-gradient(circle at 72% 114%, rgba(140, 214, 207, .08), transparent 28%),
    linear-gradient(152deg, #fff 0%, #fbfcff 56%, #eef2ff 100%);
}

.planet-reading-dialog::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(79, 107, 237, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 107, 237, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, transparent 34%, rgba(0, 0, 0, .76) 100%);
  content: "";
  pointer-events: none;
}

.planet-reading-dialog::after {
  position: absolute;
  right: -150px;
  bottom: -190px;
  z-index: 0;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(79, 107, 237, .1);
  border-radius: 50%;
  box-shadow:
    0 0 0 56px rgba(79, 107, 237, .035),
    0 0 0 112px rgba(79, 107, 237, .02);
  content: "";
  pointer-events: none;
}

.planet-reading-head,
.planet-reading-body {
  position: relative;
  z-index: 2;
}

.planet-reading-orbit {
  position: absolute;
  top: -62px;
  right: -10px;
  z-index: 1;
  width: 356px;
  height: 356px;
  border: 1px solid rgba(79, 107, 237, .14);
  border-radius: 50%;
  filter: drop-shadow(0 22px 40px rgba(79, 107, 237, .08));
  pointer-events: none;
}

.planet-reading-orbit::before,
.planet-reading-orbit::after,
.planet-reading-orbit i {
  position: absolute;
  border: 1px solid rgba(79, 107, 237, .13);
  border-radius: 50%;
  content: "";
}

.planet-reading-orbit::before {
  inset: 17%;
  border-style: dashed;
  transform: rotate(12deg);
}

.planet-reading-orbit::after {
  inset: 34%;
  box-shadow: inset 0 0 26px rgba(79, 107, 237, .035);
}

.planet-reading-orbit i:nth-child(1) {
  inset: calc(50% - 24px);
  border: 0;
  background:
    radial-gradient(circle at 31% 24%, #fff 0 5%, #dbe4ff 7%, #99b0ff 20%, #5774ee 44%, #233c9f 72%, #101d55 100%);
  box-shadow:
    inset -8px -10px 18px rgba(13, 27, 83, .38),
    inset 5px 6px 14px rgba(255, 255, 255, .3),
    0 0 0 8px rgba(119, 145, 247, .08),
    0 0 44px rgba(79, 107, 237, .34);
}

.planet-reading-orbit i:nth-child(2) {
  top: 15%;
  left: 16%;
  width: 9px;
  height: 9px;
  border: 0;
  background: #cbd6ff;
  box-shadow: 0 0 16px rgba(79, 107, 237, .42);
}

.planet-reading-orbit i:nth-child(3) {
  right: 9%;
  bottom: 29%;
  width: 7px;
  height: 7px;
  border: 0;
  background: #82b9c4;
  box-shadow: 0 0 13px rgba(105, 180, 190, .36);
}

.planet-reading-head {
  padding: 30px 34px 18px;
}

.planet-reading-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.planet-reading-title-copy {
  min-width: 0;
}

.planet-ip-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 38%, #eef2ff, #dbe4ff 72%, #c7d2ff);
  box-shadow:
    0 10px 24px rgba(79, 107, 237, .16),
    0 0 0 1px rgba(79, 107, 237, .08);
  transform: rotate(-2deg);
}

.planet-ip-avatar::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
  content: "";
  pointer-events: none;
}

.planet-ip-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  transform: scale(1.12);
}

.planet-reading-head .h2 {
  max-width: 620px;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.018em;
  background: linear-gradient(112deg, #141a2b 0%, #243263 62%, #4f6bed 118%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.planet-reading-meta {
  gap: 8px;
}

.planet-reading-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid rgba(35, 42, 55, .09);
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
  color: var(--label-2);
}

.planet-reading-meta span + span::before {
  display: none;
}

.planet-reading-meta span:first-child {
  border-color: transparent;
  background: rgba(79, 107, 237, .09);
  color: var(--brand);
}

.planet-reading-body {
  padding: 0 34px 30px;
}

.planet-card-read {
  gap: 18px;
}

.planet-card-surface {
  position: relative;
  overflow: hidden;
  padding: 28px 30px 26px;
  border-color: rgba(79, 107, 237, .1);
  background:
    linear-gradient(125deg, rgba(255, 255, 255, .94), rgba(246, 248, 255, .76) 58%, rgba(238, 243, 255, .82));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .96) inset,
    0 -1px 0 rgba(79, 107, 237, .045) inset,
    0 24px 64px rgba(40, 57, 120, .085);
  backdrop-filter: blur(20px) saturate(1.08);
}

.planet-card-surface::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, #9bb0ff, #4f6bed, #8cd6cf);
  box-shadow: 0 0 16px rgba(79, 107, 237, .2);
  content: "";
}

.planet-card-surface::after {
  position: absolute;
  top: -80px;
  right: -90px;
  width: 280px;
  height: 180px;
  background: linear-gradient(120deg, transparent 44%, rgba(255, 255, 255, .72) 50%, transparent 56%);
  opacity: .5;
  transform: rotate(-18deg);
  content: "";
  pointer-events: none;
}

.planet-card-summary {
  max-width: 27em;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -.012em;
}

.planet-card-context {
  max-width: 38em;
  margin-top: 12px;
}

.planet-card-links {
  margin-top: 18px;
}

.planet-card-footer {
  padding-top: 0;
}

.planet-reading-dialog .planet-reading-head .library-dialog-close {
  border-color: rgba(23, 32, 58, .1);
  background: rgba(255, 255, 255, .72);
  color: var(--label-2);
}

.planet-reading-dialog .planet-reading-head .library-dialog-close:hover {
  border-color: rgba(23, 32, 58, .2);
  color: var(--ink);
}

@media (max-width: 600px) {
  .planet-reading-orbit {
    top: -36px;
    right: -104px;
    opacity: .8;
  }

  .planet-reading-head {
    position: relative;
    display: block;
    padding: 24px 20px 14px;
  }

  .planet-reading-title-wrap {
    gap: 12px;
  }

  .planet-reading-title-copy {
    flex: 1 1 auto;
    min-width: 0;
  }

  .planet-reading-head > .library-dialog-close {
    position: absolute;
    top: 16px;
    right: 16px;
  }

  .planet-ip-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--r-sm);
  }

  .planet-reading-head .h2 {
    max-width: 100%;
    font-size: 34px;
    line-height: 1.14;
  }

  .planet-reading-meta span:last-child {
    display: none;
  }

  .planet-reading-body {
    padding: 0 20px 20px;
  }

  .planet-card-surface {
    padding: 22px 20px 20px 22px;
  }

  .planet-card-summary {
    font-size: 22px;
    line-height: 1.42;
  }

  .planet-card-links .planet-relation-group button:nth-child(n+3) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .planet-learning-meter span {
    transition: none;
  }
}

/* Reading-first knowledge card and focused learning feedback. */
.planet-learning-feedback {
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(145, 185, 173, .28);
  border-radius: var(--r-sm);
  background: rgba(145, 185, 173, .08);
  color: #cce8df;
  font-size: 13px;
  line-height: 1.45;
}

.planet-learning-feedback[data-tone="progress"] {
  border-color: rgba(159, 191, 255, .32);
  background: rgba(159, 191, 255, .08);
  color: #d6e2ff;
}

.planet-learning-feedback[data-tone="warning"] {
  border-color: rgba(190, 169, 132, .34);
  background: rgba(190, 169, 132, .08);
  color: #ead9b8;
}

.planet-learning-feedback[data-tone="error"] {
  border-color: rgba(195, 126, 126, .34);
  background: rgba(195, 126, 126, .08);
  color: #f0cbcb;
}

.planet-focus-facts {
  display: block;
  margin-top: 14px;
  border: 0;
}

.planet-focus-facts > div {
  display: flex;
  gap: 6px;
  padding: 0;
  border: 0;
}

.planet-focus-facts > div + div {
  display: none;
}

.planet-focus-facts span::after {
  content: "：";
}

.planet-focus-facts strong {
  overflow: visible;
  color: rgba(225, 234, 253, .7);
  white-space: normal;
}

.planet-focus-learning {
  margin-top: 18px;
}

.planet-focus-why {
  max-width: 34em;
  margin-top: 12px;
  color: rgba(211, 222, 246, .64) !important;
}

.planet-relation-groups {
  margin-top: 18px;
}

.planet-relation-group-compact {
  gap: 6px;
}

.planet-relation-group-compact > p {
  color: rgba(205, 220, 250, .52);
}

.planet-relation-group-compact > div {
  gap: 7px;
}

.planet-reading-dialog {
  width: min(780px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: hidden;
  border-color: rgba(31, 36, 48, .1);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow:
    0 30px 100px rgba(10, 18, 38, .18),
    0 2px 10px rgba(10, 18, 38, .06);
}

.planet-reading-dialog::backdrop {
  background: rgba(19, 28, 48, .32);
  backdrop-filter: blur(3px);
}

.planet-reading-head {
  align-items: flex-start;
  padding: 28px 32px 20px;
  border-bottom: 0;
}

.planet-reading-head .eyebrow {
  margin-bottom: 6px;
  color: var(--label-2);
  letter-spacing: .01em;
}

.planet-reading-head .h2 {
  max-width: 600px;
  color: var(--ink);
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.planet-reading-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 12px;
  color: var(--label-2);
  font-size: 13px;
  line-height: 1.38;
}

.planet-reading-meta span + span::before {
  margin-right: 16px;
  color: var(--line);
  content: "/";
}

.planet-reading-body {
  display: block;
  max-height: none;
  padding: 0 32px 28px;
  overflow: visible;
}

.planet-reading-body > [data-planet-card-state]:empty {
  display: none;
}

.planet-reading-body > [data-planet-card-state] {
  margin: 0 0 12px;
}

.planet-card-read {
  display: grid;
  gap: 20px;
}

.planet-card-surface {
  padding: 26px 28px 24px;
  border: 1px solid rgba(35, 42, 55, .09);
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, rgba(248, 250, 255, .82), rgba(255, 255, 255, .96));
}

.planet-card-summary {
  max-width: 32em;
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.48;
  letter-spacing: -.004em;
  text-wrap: pretty;
}

.planet-card-context {
  max-width: 36em;
  margin: 14px 0 0;
  color: var(--label-2);
  font-size: 15px;
  line-height: 1.5;
}

.planet-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.planet-card-links .planet-relation-group {
  display: contents;
}

.planet-card-links .planet-relation-group > p {
  flex: 0 0 100%;
  margin: 0 0 2px;
  color: var(--label-3);
}

.planet-card-links button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(35, 42, 55, .1);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--label);
  font-size: 13px;
  line-height: 1.38;
}

.planet-card-links button:hover,
.planet-card-links button:focus-visible {
  border-color: rgba(79, 107, 237, .32);
  background: rgba(79, 107, 237, .035);
  color: var(--ink);
}

.planet-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.planet-card-reading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.planet-card-text-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--label-2);
  font: 400 13px/1.38 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.planet-card-text-action:hover,
.planet-card-text-action:focus-visible {
  color: var(--brand);
}

.planet-card-source {
  min-height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  background: #172033 !important;
  color: #fff !important;
  font-size: 13px;
}

.planet-card-source:hover,
.planet-card-source:focus-visible {
  background: #25304a !important;
  color: #fff !important;
}

.planet-reading-dialog .planet-recall {
  margin: 0;
  padding: 24px;
  border-radius: var(--r-md);
  background: rgba(247, 248, 251, .82);
}

.planet-reading-dialog[data-planet-card-mode="recall"] .planet-reading-head .h2 {
  font-size: 34px;
}

@media (max-width: 600px) {
  .planet-reading-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .planet-reading-head {
    padding: 24px 20px 14px;
  }

  .planet-reading-head .h2 {
    font-size: 34px;
  }

  .planet-reading-body {
    padding: 0 20px 20px;
  }

  .planet-card-surface {
    padding: 20px;
  }

  .planet-card-summary {
    font-size: 22px;
  }

  .planet-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .planet-card-reading-actions {
    justify-content: space-between;
    width: 100%;
  }
}

.planet-cosmos-focus .planet-focus-why {
  color: var(--label-2) !important;
}

.planet-cosmos-focus .btn-ghost {
  border-color: var(--line);
  color: var(--label);
}

.planet-cosmos-focus .btn-ghost:hover,
.planet-cosmos-focus .btn-ghost:focus-visible {
  background: var(--page);
  color: var(--label);
}
