/* ==========================================================================
   虚拟人物栏目
   ========================================================================== */

.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 14px;
}
.char-grid.is-loading {
  opacity: 0.62;
  transition: opacity 0.2s var(--ease);
}
.char-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  animation: fadeUp 0.42s var(--ease) both;
  animation-delay: min(calc(var(--i) * 18ms), 320ms);
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}
.char-card:hover,
.char-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(240, 145, 153, 0.42);
  box-shadow: var(--shadow-sm);
  outline: none;
}
.char-avatar {
  position: relative;
  width: 76px;
  flex-shrink: 0;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--pink-soft), #e9e3e4);
}
.char-avatar img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.char-initial {
  position: absolute;
  z-index: 0;
  font-family: var(--font-serif);
  font-size: 26px;
  color: rgba(180, 120, 130, 0.55);
}
.char-nsfw {
  position: absolute;
  z-index: 2;
  left: 5px;
  bottom: 5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(190, 70, 80, 0.9);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.char-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.char-name {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.char-alt {
  font-size: 10.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.char-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  margin-top: 2px;
  font-size: 10px;
  color: var(--faint);
}
.char-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 10px;
  color: var(--muted);
}
/* 全局 svg 是 display:block，放进文字行内需要显式改成 inline-flex。 */
.char-counts span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.char-counts svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}
.char-meta span {
  white-space: nowrap;
}

/* 角色详情抽屉 */
.char-drawer-head {
  align-items: center;
  gap: 18px;
  padding: 54px 28px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--pink-wash), var(--surface-2));
}
.char-drawer-head .drawer-head-info {
  color: var(--ink);
}
.char-drawer-head .drawer-kicker {
  color: var(--faint);
}
.char-drawer-head h2 {
  color: var(--ink);
  text-shadow: none;
}
.char-drawer-head .drawer-alt {
  color: var(--muted);
}
.char-drawer-head .drawer-cover {
  width: 104px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
}
.char-drawer-stats {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
}
.char-drawer-stats strong {
  font-family: var(--font-number);
  font-size: 16px;
  color: var(--ink);
  margin-right: 3px;
}

.char-subjects {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.char-subject {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}
.char-subject:hover {
  border-color: rgba(240, 145, 153, 0.45);
  background: var(--pink-wash);
}
.char-subject-cover {
  width: 34px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-2);
}
.char-subject-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.char-subject-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.char-subject-body strong {
  font-size: 12.5px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.char-subject-body span {
  font-size: 10.5px;
  color: var(--muted);
}
.char-subject-score {
  font-family: var(--font-number);
  font-size: 13px;
  font-weight: 700;
  color: var(--pink-ink);
}

html[data-theme="dark"] .char-avatar {
  background: linear-gradient(150deg, rgba(240, 145, 153, 0.16), rgba(255, 255, 255, 0.05));
}
html[data-theme="dark"] .char-initial {
  color: rgba(240, 145, 153, 0.5);
}
html[data-theme="dark"] .char-drawer-head {
  background: linear-gradient(180deg, rgba(240, 145, 153, 0.09), var(--surface-2));
}
html[data-theme="dark"] .char-subject:hover {
  background: rgba(240, 145, 153, 0.08);
}

@media (max-width: 720px) {
  .char-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .char-avatar {
    width: 62px;
  }
  .char-actions {
    left: calc(12px + 62px - 8px - 27px);
  }
}

.char-partial {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: rgba(195, 138, 61, 0.1);
  color: var(--amber);
  font-size: 11px;
  line-height: 1.5;
}
.char-partial svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn.tiny {
  padding: 3px 9px;
  font-size: 11px;
  border-radius: 7px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .favorites-summary {
    flex-direction: column;
  }
  .favorites-summary-main {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
  }
  .favorites-summary-main strong {
    font-size: 24px;
  }
  .favorites-summary-cards {
    max-width: none;
  }
}

/* ==========================================================================
   虚拟人物：删除标记
   ========================================================================== */

.char-card {
  position: relative;
}
.char-actions {
  position: absolute;
  top: 8px;
  right: auto;
  /* 浮在头像右上角，而不是角色名上方；长名字不会再被心形/删除按钮压住。 */
  left: calc(12px + 76px - 8px - 27px);
  z-index: 4;
  opacity: 0.45;
  transition: opacity 0.16s var(--ease);
}
.char-card:hover .char-actions,
.char-card:focus-within .char-actions,
.char-card.is-deleted .char-actions {
  opacity: 1;
}
.char-icon-btn {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  box-shadow: var(--shadow-xs);
  transition:
    color 0.15s var(--ease),
    background-color 0.15s var(--ease),
    border-color 0.15s var(--ease);
}
.char-icon-btn svg {
  width: 13px;
  height: 13px;
}
.char-icon-btn.danger:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #d96a72, #c94f5b);
}
.char-icon-btn.restore:hover {
  color: #fff;
  border-color: transparent;
  background: var(--green);
}
.char-ribbon {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2px 0;
  background: rgba(201, 79, 91, 0.92);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
}
.char-card.is-deleted {
  border-style: dashed;
  background: var(--surface-2);
}
.char-card.is-deleted .char-avatar {
  background: repeating-linear-gradient(
    -45deg,
    rgba(201, 79, 91, 0.06),
    rgba(201, 79, 91, 0.06) 6px,
    transparent 6px,
    transparent 12px
  );
}
.char-card.is-deleted .char-name {
  color: var(--muted);
}
.char-deleted-note {
  color: var(--faint);
  font-size: 10px;
  white-space: normal;
}
.char-drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.char-tombstone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 46px 28px 64px;
  text-align: center;
}
.char-tombstone-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--pink-soft);
  color: var(--pink-ink);
}
.char-tombstone-icon svg {
  width: 22px;
  height: 22px;
}
.char-tombstone h3 {
  font-size: 15px;
  font-weight: 700;
}
.char-tombstone p {
  max-width: 430px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.85;
}

/* ==========================================================================
   共演关系图谱
   ========================================================================== */

.graph-modal {
  width: min(1140px, 96vw);
  max-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* 用 flex-wrap 而不是 grid：SVG 的 aspect-ratio 高度在 grid 行里会被
   aside 的高度带着走，窄屏时侧栏会压到图上。 */
.graph-body {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 18px;
  padding: 8px 24px 22px;
  overflow: auto;
}
.graph-canvas {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  align-items: center;
}
.graph-loading {
  flex: 1 1 100%;
  padding: 70px 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.graph-svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(460px 300px at 50% 42%, rgba(240, 145, 153, 0.16), transparent 72%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(248, 243, 242, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), var(--shadow-xs);
  overflow: visible;
}
.graph-bg {
  pointer-events: none;
}
.graph-dots {
  opacity: 0.36;
  pointer-events: none;
}
.graph-orbits circle {
  fill: none;
  stroke: rgba(224, 108, 120, 0.16);
  stroke-width: 1;
  stroke-dasharray: 2 9;
}
.graph-orbits circle:nth-child(2) {
  stroke: rgba(93, 137, 203, 0.12);
  stroke-dasharray: 1 12;
}
.graph-spark {
  fill: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 0 4px rgba(240, 145, 153, 0.75));
  transform-box: fill-box;
  transform-origin: center;
  animation: graphSpark 4.8s ease-in-out infinite;
  animation-delay: var(--spark-delay, 0s);
  pointer-events: none;
}
.graph-edge {
  fill: none;
  stroke: rgba(37, 36, 42, 0.14);
  stroke-linecap: round;
  transition: opacity 0.18s var(--ease);
}
.graph-edge.center {
  stroke: rgba(224, 108, 120, 0.34);
}
.graph-edge.center.lead {
  stroke: rgba(224, 108, 120, 0.46);
}
.graph-edge.center.support {
  stroke: rgba(196, 150, 74, 0.34);
}
.graph-edge.center.other {
  stroke: rgba(93, 137, 203, 0.30);
}
.graph-edge.peer {
  stroke: rgba(93, 137, 203, 0.24);
  stroke-dasharray: 3 4;
}
.graph-edge-flow {
  fill: none;
  stroke: rgba(224, 108, 120, 0.62);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 1.5 17;
  opacity: 0.7;
  animation: graphFlow 7s linear infinite;
  pointer-events: none;
}
.graph-edge-flow.support {
  stroke: rgba(196, 150, 74, 0.58);
}
.graph-edge-flow.other {
  stroke: rgba(93, 137, 203, 0.58);
}
.graph-node {
  cursor: pointer;
  transition: opacity 0.18s var(--ease);
}
.graph-node-halo {
  fill: rgba(240, 145, 153, 0.16);
  opacity: 0;
  transition: opacity 0.18s var(--ease);
}
.graph-node:hover .graph-node-halo,
.graph-node:focus-visible .graph-node-halo {
  opacity: 1;
}
.graph-node-bg {
  fill: #e7e2e4;
  transition: fill 0.18s var(--ease);
}
.graph-node.lead .graph-node-bg {
  fill: #f3c3c8;
}
.graph-node.support .graph-node-bg {
  fill: #f0d3a8;
}
.graph-node.other .graph-node-bg {
  fill: #c6d2e3;
}
.graph-node-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 2.5;
  transition: stroke 0.18s var(--ease), stroke-width 0.18s var(--ease);
}
.graph-node.lead .graph-node-ring {
  stroke: #e57d88;
}
.graph-node.support .graph-node-ring {
  stroke: #d3a45c;
}
.graph-node.other .graph-node-ring {
  stroke: #7f9bc0;
}
.graph-node:hover .graph-node-ring,
.graph-node:focus-visible .graph-node-ring {
  stroke-width: 3.6;
}
.graph-node:focus-visible {
  outline: none;
}
.graph-node image {
  pointer-events: none;
}
.graph-initial {
  fill: rgba(37, 36, 42, 0.34);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 750;
  pointer-events: none;
}
.graph-node-dot {
  fill: #e57d88;
  stroke: #fff;
  stroke-width: 1.5;
}
.graph-node.support .graph-node-dot {
  fill: #d3a45c;
}
.graph-node.other .graph-node-dot {
  fill: #7f9bc0;
}
/* 全局 svg 规则会给文字加描边（看起来像粗黑块），这里显式关掉，
   再用 paint-order 画一圈背景色描边当光晕，压在连线上也能读。 */
.graph-label {
  fill: var(--muted);
  stroke: rgba(248, 243, 242, 0.94);
  stroke-width: 3px;
  paint-order: stroke;
  font-size: 11.5px;
  font-family: var(--font-sans);
  font-weight: 600;
  pointer-events: none;
  transition: opacity 0.16s var(--ease);
}
.graph-label.minor {
  opacity: 0;
}
.graph-node:hover .graph-label.minor,
.graph-node:focus-visible .graph-label.minor {
  opacity: 1;
}
.graph-label.strong {
  fill: var(--ink);
  font-size: 14px;
  font-weight: 750;
}
.graph-center-halo {
  opacity: 0.55;
  transform-box: fill-box;
  transform-origin: center;
  animation: graphBreathe 5.2s ease-in-out infinite;
  pointer-events: none;
}
.graph-center-orbit {
  fill: none;
  stroke: rgba(224, 108, 120, 0.42);
  stroke-width: 1.2;
  stroke-dasharray: 3 7;
  transform-box: view-box;
  transform-origin: center;
  animation: graphSpin 30s linear infinite;
  pointer-events: none;
}
.graph-center-bg {
  filter: drop-shadow(0 7px 16px rgba(224, 108, 120, 0.32));
}
.graph-center-initial {
  fill: rgba(255, 255, 255, 0.82);
  font-family: var(--font-sans);
  font-size: 25px;
  font-weight: 750;
  pointer-events: none;
}
.graph-center-ring {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
}
.graph-center image {
  pointer-events: none;
}
.graph-node:hover,
.graph-node:focus-visible {
  filter: drop-shadow(0 4px 10px rgba(224, 108, 120, 0.22));
}
.graph-svg.has-focus .graph-edge {
  opacity: 0.12;
}
.graph-svg.has-focus .graph-edge-flow {
  opacity: 0.08;
}
.graph-svg.has-focus .graph-edge.focus,
.graph-svg.has-focus .graph-edge-flow.focus {
  opacity: 1;
}
.graph-svg.has-focus .graph-node {
  opacity: 0.22;
}
.graph-svg.has-focus .graph-node.focus,
.graph-svg.has-focus .graph-node.near {
  opacity: 1;
}
.graph-svg.has-focus .graph-center {
  opacity: 0.55;
}
.graph-side {
  flex: 0 1 292px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.graph-center-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background:
    radial-gradient(180px 90px at 0% 0%, rgba(240, 145, 153, 0.14), transparent 78%),
    rgba(255, 255, 255, 0.6);
}
.graph-center-avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(150deg, #f4b1b7, #e57d88);
  color: #fff;
  font-size: 19px;
  font-weight: 750;
  box-shadow: 0 4px 12px rgba(224, 108, 120, 0.26);
}
.graph-center-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.graph-center-copy {
  min-width: 0;
}
.graph-side-eyebrow {
  display: block;
  color: var(--pink-ink);
  font-family: var(--font-number);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.graph-side-title {
  margin-top: 1px;
  font-size: 14px;
  font-weight: 740;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.graph-side-title.small {
  margin-top: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.graph-side-sub {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.6;
}
.graph-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.graph-stat-row div {
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.48);
  text-align: center;
}
.graph-stat-row strong {
  display: block;
  font-family: var(--font-number);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.2;
}
.graph-stat-row span {
  color: var(--faint);
  font-size: 8px;
}
.graph-side-block {
  min-width: 0;
}
.graph-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}
.graph-chip {
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--pink-soft);
  color: var(--pink-ink);
  font-size: 9.5px;
}
.graph-chip b {
  font-family: var(--font-number);
  font-weight: 700;
}
.graph-rank {
  list-style: none;
  margin: 7px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.graph-rank button {
  width: 100%;
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) 54px 22px;
  align-items: center;
  gap: 6px;
  padding: 4px 3px;
  border-radius: 7px;
  text-align: left;
}
.graph-rank button:hover {
  background: var(--pink-wash);
}
.graph-rank-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b9c6da;
}
.graph-rank-dot.lead {
  background: #e57d88;
}
.graph-rank-dot.support {
  background: #d3a45c;
}
.graph-rank-dot.other {
  background: #7f9bc0;
}
.graph-rank-name {
  font-size: 10.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.graph-rank-bar {
  height: 4px;
  border-radius: 99px;
  background: rgba(37, 36, 42, 0.08);
  overflow: hidden;
}
.graph-rank-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f3a5ac, #dc6f7a);
}
.graph-rank-count {
  font-family: var(--font-number);
  font-size: 9.5px;
  color: var(--muted);
  text-align: right;
}
.graph-legend {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.9;
}
.graph-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.graph-legend .dot.lead {
  background: #e57d88;
}
.graph-legend .dot.support {
  background: #d3a45c;
}
.graph-legend .dot.other {
  background: #7f9bc0;
}

@keyframes graphFlow {
  to {
    stroke-dashoffset: -185;
  }
}
@keyframes graphBreathe {
  0%, 100% {
    opacity: 0.32;
    transform: scale(0.94);
  }
  50% {
    opacity: 0.66;
    transform: scale(1.06);
  }
}
@keyframes graphSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes graphSpark {
  0%, 100% {
    opacity: 0.15;
    transform: scale(0.7);
  }
  45% {
    opacity: 0.95;
    transform: scale(1.15);
  }
}

/* ==========================================================================
   失效作品关系扫描
   ========================================================================== */

.orphan-modal {
  width: min(680px, 100%);
}
.orphan-scan-note {
  margin-bottom: 12px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}
.orphan-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.orphan-select-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: 11px;
  cursor: pointer;
  user-select: none;
}
.orphan-select-all input,
.orphan-item input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--pink-deep);
  cursor: pointer;
}
.orphan-selected {
  color: var(--faint);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}
.orphan-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.orphan-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color 0.16s var(--ease),
    background-color 0.16s var(--ease);
}
.orphan-item:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.orphan-item:has(input:checked) {
  border-color: rgba(224, 108, 120, 0.34);
  background: var(--pink-wash);
}
.orphan-item input {
  margin-top: 2px;
  flex-shrink: 0;
}
.orphan-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.orphan-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
}
.orphan-title strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.orphan-title em {
  color: var(--pink-ink);
  font-size: 10px;
  font-style: normal;
}
.orphan-characters {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.orphan-load {
  width: fit-content;
  margin-top: 2px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--pink-soft);
  color: var(--pink-ink);
  font-size: 9px;
}
.orphan-delete-characters {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(201, 79, 91, 0.18);
  border-radius: 9px;
  background: var(--pink-wash);
  color: var(--pink-ink);
  font-size: 10.5px;
  line-height: 1.6;
  cursor: pointer;
  user-select: none;
}
.orphan-delete-characters input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--pink-deep);
  cursor: pointer;
}
