/* Reader page styles. */
.reader-view {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  padding: 0 0 44px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  overflow-x: hidden;
  overflow-x: clip;
}

.reader-top {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 54px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  padding: 7px 16px;
}

.reader-back {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.reader-back:hover,
.reader-back:focus-visible {
  background: var(--soft);
  outline: none;
}

.reader-top-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.reader-top-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.reader-top-copy strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.reader-author-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 22px 28px 6px;
}

.reader-tabs {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin: 8px 28px 0;
  border-bottom: 1px solid var(--line);
}

.reader-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0 2px;
  font-size: 14px;
  font-weight: 800;
}

.reader-tab:hover,
.reader-tab:focus-visible {
  color: var(--ink);
  outline: none;
}

.reader-tab.is-active {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.reader-tab span {
  min-width: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  padding: 1px 7px;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.reader-tab-panel {
  min-width: 0;
  max-width: 100%;
}

.reader-title {
  margin: 0;
  padding: 8px 28px 12px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.28;
  font-weight: 900;
  letter-spacing: 0;
}

.reader-tag-row,
.reader-emotion-summary {
  margin: 0 28px;
}

.reader-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 9px;
}

.reader-tag-row .app-icon {
  --icon-size: 17px;
  opacity: 0.62;
}

.reader-tag-list,
.reader-emotion-summary-list {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.reader-tag-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: #33434e;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.reader-emotion-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 0 0 14px;
}

.reader-emotion-total {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
}

.reader-emotion-summary-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.reader-emotion-summary-button strong {
  font-weight: 950;
}

.reader-emotion-summary-button:hover,
.reader-emotion-summary-button:focus-visible,
.reader-emotion-summary-button.is-active {
  border-color: rgba(29, 155, 240, 0.38);
  background: var(--accent-soft);
  color: var(--accent-dark);
  outline: none;
}

.reader-emotion-summary-button.is-captivated {
  color: var(--captivated);
}

.reader-emotion-summary-button.is-cool {
  color: #1a78b8;
}

.reader-emotion-summary-button.is-bored {
  color: #5b6470;
}

.reader-emotion-summary-button.is-repelled {
  color: #a84f10;
}

.reader-emotion-summary-button.is-intolerable {
  color: #b4232f;
}

.reader-emotion-summary-button.is-eval-translation-noise {
  color: #d9383a;
}
.reader-emotion-summary-button.is-eval-logical-leap {
  color: #f59e0b;
}
.reader-emotion-summary-button.is-eval-hollow-content {
  color: #eab308;
}
.reader-emotion-summary-button.is-eval-deep-dive-target {
  color: #3b82f6;
}

.reader-emotion-summary-button.is-active.is-eval-translation-noise {
  border-color: rgba(217, 56, 58, 0.38);
  background: hsla(0, 85%, 95%, 1);
  color: #b4232f;
}
.reader-emotion-summary-button.is-active.is-eval-logical-leap {
  border-color: rgba(245, 158, 11, 0.38);
  background: hsla(45, 85%, 95%, 1);
  color: #a84f10;
}
.reader-emotion-summary-button.is-active.is-eval-hollow-content {
  border-color: rgba(234, 179, 8, 0.38);
  background: hsla(50, 85%, 95%, 1);
  color: #a87610;
}
.reader-emotion-summary-button.is-active.is-eval-deep-dive-target {
  border-color: rgba(59, 130, 246, 0.38);
  background: hsla(215, 85%, 95%, 1);
  color: #1a78b8;
}

.reader-emotion-summary-button.is-zero,
.reader-emotion-summary-button:disabled {
  border-color: var(--line);
  background: #ffffff;
  color: rgba(83, 100, 113, 0.52);
}

.reader-emotion-summary-button:disabled {
  cursor: default;
}

.reader-view .feed-attachments {
  padding: 0 28px;
  margin: 0 0 16px;
}

.reader-content {
  position: relative;
  min-width: 0;
  max-width: 100%;
  padding: 8px 28px 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.78;
  white-space: normal;
  overflow-wrap: anywhere;
}

.reader-emotion-highlight {
  position: relative;
  border-radius: 5px;
  padding: 1px 3px;
  color: inherit;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.reader-emotion-highlight.is-captivated {
  background: rgba(253, 243, 215, 0.95);
  box-shadow: inset 0 -2px 0 rgba(154, 116, 17, 0.35);
}

.reader-emotion-highlight.is-cool {
  background: rgba(232, 245, 253, 0.95);
  box-shadow: inset 0 -2px 0 rgba(26, 120, 184, 0.32);
}

.reader-emotion-highlight.is-bored {
  background: rgba(241, 243, 245, 0.98);
  box-shadow: inset 0 -2px 0 rgba(91, 100, 112, 0.26);
}

.reader-emotion-highlight.is-repelled {
  background: rgba(255, 240, 229, 0.95);
  box-shadow: inset 0 -2px 0 rgba(168, 79, 16, 0.3);
}

.reader-emotion-highlight.is-intolerable {
  background: rgba(255, 232, 235, 0.95);
  box-shadow: inset 0 -2px 0 rgba(180, 35, 47, 0.32);
}

.reader-emotion-highlight-note {
  float: right;
  max-width: min(240px, 42%);
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  margin: 2px 0 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--muted);
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}

.native-emotion-toolbar {
  position: fixed;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  max-width: min(94vw, 520px);
  border: 1px solid rgba(15, 20, 25, 0.12);
  border-radius: 8px;
  background: #0f1419;
  box-shadow: 0 12px 34px rgba(15, 20, 25, 0.22);
  color: #ffffff;
  padding: 6px;
  transform-origin: left top;
}

.native-emotion-toolbar[hidden] {
  display: none;
}

.native-emotion-toolbar.is-collapsed {
  max-width: 38px;
  border-radius: 999px;
  padding: 3px;
}

.native-emotion-toolbar.is-collapsed .native-emotion-actions {
  display: none;
}

.native-emotion-handle {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.66);
  padding: 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: grab;
  touch-action: none;
}

.native-emotion-handle:hover,
.native-emotion-handle:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  outline: none;
}

.native-emotion-handle:active {
  cursor: grabbing;
}

.native-emotion-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  transform-origin: left top;
}

.native-emotion-actions button {
  min-height: 28px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
}

.native-emotion-actions button:not(:disabled):hover,
.native-emotion-actions button:not(:disabled):focus-visible {
  background: #1d9bf0;
  color: #ffffff;
  outline: none;
}

.native-emotion-actions button:disabled {
  cursor: default;
  opacity: 0.58;
}

.native-emotion-actions [data-native-emotion-status] {
  min-width: 44px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.native-emotion-actions [data-native-emotion-status][data-tone="error"] {
  color: #ff8a8a;
}

.native-emotion-actions [data-native-emotion-status][data-tone="success"] {
  color: #68d391;
}

.reader-edit-form {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 8px 28px 0;
}

.reader-title-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 4px 0 12px;
  font-size: 30px;
  line-height: 1.28;
  font-weight: 900;
  letter-spacing: 0;
  outline: none;
}

.reader-title-input:focus {
  border-bottom-color: var(--line-strong);
}

.reader-mode-tabs {
  margin: 0;
}

.reader-body-editor {
  min-height: 420px;
  padding: 8px 0 20px;
  font-size: 17px;
  line-height: 1.72;
}

.reader-edit-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.reader-edit-save-row,
.reader-version-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.reader-version-title-input {
  width: min(260px, 52vw);
}

.reader-siblings {
  display: grid;
  gap: 28px;
  padding: 22px 28px 0;
}

.reader-siblings-head {
  display: grid;
  gap: 7px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.reader-siblings-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
}

.reader-siblings-head h1 {
  margin: 0;
  color: var(--ink);
  line-height: 1.28;
  letter-spacing: 0;
}

.reader-siblings-head h1 {
  font-size: 24px;
}

.reader-siblings-head p,
.reader-sibling-empty p,
.reader-sibling-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.reader-sibling-list {
  display: grid;
  gap: 10px;
}

.reader-sibling-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 13px 14px;
}

.reader-sibling-card.is-current {
  background: #f8fbfd;
}

.reader-sibling-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.reader-sibling-meta span:first-child,
.reader-sibling-meta strong {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  padding: 2px 7px;
  font-size: 11px;
}

.reader-sibling-meta strong {
  border-color: var(--accent-soft);
  color: var(--accent);
}

.reader-sibling-title {
  justify-self: start;
  max-width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  text-align: left;
}

.reader-sibling-title:not(:disabled):hover,
.reader-sibling-title:not(:disabled):focus-visible {
  color: var(--accent);
  outline: none;
}

.reader-sibling-title:disabled {
  cursor: default;
}

.reader-sibling-card p {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  color: #384955;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.reader-sibling-actions {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 12px;
}

.reader-sibling-actions span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.reader-sibling-actions .app-icon {
  --icon-size: 14px;
}

.reader-sibling-empty {
  display: grid;
  gap: 7px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 20px;
  color: var(--ink);
}

.reader-emotions {
  display: grid;
  gap: 20px;
  padding: 22px 28px 0;
}

.reader-emotion-groups {
  display: grid;
  gap: 12px;
}

.reader-emotion-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: visible;
}

.reader-emotion-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fbfd;
  padding: 12px 14px;
}

.reader-emotion-group > header span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.reader-emotion-group > header h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}

.reader-emotion-group > header strong {
  min-width: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  padding: 3px 9px;
  font-size: 12px;
  text-align: center;
}

.reader-emotion-list {
  display: grid;
}

.reader-emotion-card {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 13px 54px 13px 14px;
}

.reader-emotion-card + .reader-emotion-card {
  border-top: 1px solid var(--line);
}

.reader-emotion-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.reader-emotion-meta strong {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  padding: 2px 7px;
  font-size: 11px;
  text-transform: uppercase;
}

.reader-emotion-card blockquote {
  margin: 0;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  padding-left: 10px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.56;
}

.reader-emotion-card p,
.reader-emotion-context {
  margin: 0;
  color: #384955;
  font-size: 13px;
  line-height: 1.55;
}

.reader-emotion-context {
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.reader-emotion-actions {
  display: flex;
  justify-content: flex-end;
}

.reader-emotion-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 850;
}

.reader-emotion-actions button:hover,
.reader-emotion-actions button:focus-visible {
  border-color: var(--accent);
  color: var(--accent-dark);
  outline: none;
}

.reader-emotion-empty {
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.structured-content p {
  margin: 0 0 18px;
}

.structured-content blockquote {
  margin: 22px 0;
  border-left: 4px solid var(--accent);
  background: var(--soft);
  color: #26323a;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.68;
}

.structured-content .ticy-code-block {
  margin: 22px 0;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #1f2933;
  border-radius: 8px;
  background: #101820;
  color: #edf4f7;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.62;
}

.structured-content .ticy-code-block code {
  font-family: Consolas, "Courier New", monospace;
  white-space: pre;
}

.structured-content .ticy-details {
  margin: 22px 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.structured-content .ticy-details summary {
  cursor: pointer;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.structured-content .ticy-details summary:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: -3px;
}

.structured-content .ticy-details-body {
  border-top: 1px solid var(--line);
  padding: 14px;
}

.structured-content .ticy-details-body > :last-child {
  margin-bottom: 0;
}

.structured-content .ticy-todo-list {
  display: grid;
  gap: 8px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.structured-content .ticy-todo-item {
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.58;
}

.structured-content .ticy-todo-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  cursor: pointer;
}

.structured-content .ticy-todo-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.structured-content .ticy-todo-box {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: #ffffff;
  background: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.structured-content .ticy-todo-box::after {
  content: "";
}

.structured-content .ticy-todo-checkbox:focus-visible + .ticy-todo-box {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

.structured-content .ticy-todo-checkbox:checked + .ticy-todo-box {
  border-color: var(--accent);
  background: var(--accent);
}

.structured-content .ticy-todo-checkbox:checked + .ticy-todo-box::after {
  content: "\2713";
}

.structured-content .ticy-todo-checkbox:checked ~ .ticy-todo-text {
  color: var(--muted);
  text-decoration: line-through;
}

.structured-content .ticy-table-wrap {
  margin: 22px 0;
  max-width: 100%;
  overflow-x: auto;
}

.structured-content .ticy-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  font-size: 14px;
  line-height: 1.45;
}

.structured-content .ticy-table th,
.structured-content .ticy-table td {
  min-width: 120px;
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.structured-content .ticy-table th {
  background: var(--soft);
  font-weight: 800;
}

.feed-body.structured-content blockquote,
.feed-body.structured-content .ticy-code-block,
.feed-body.structured-content .ticy-details,
.feed-body.structured-content .ticy-todo-list,
.feed-body.structured-content .ticy-table-wrap {
  margin: 12px 0;
}

.feed-body.structured-content blockquote {
  padding: 9px 12px;
  font-size: 14px;
}

.feed-body.structured-content .ticy-code-block {
  font-size: 12px;
}

.feed-body.structured-content .ticy-heading {
  margin: 12px 0 6px;
  font-size: 14px;
  line-height: 1.35;
}

.feed-body.structured-content .ticy-heading-1,
.feed-body.structured-content .ticy-heading-2 {
  font-size: 15px;
}

.feed-body.structured-content .ticy-heading-3,
.feed-body.structured-content .ticy-heading-4,
.feed-body.structured-content .ticy-heading-5,
.feed-body.structured-content .ticy-heading-6 {
  font-size: 14px;
}

.reader-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 330px;
  margin: 28px 28px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.reader-quality {
  margin: 22px 28px 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.reader-quality-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reader-quality-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.reader-quality-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.reader-quality-block {
  margin-top: 16px;
}

.reader-quality-block h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.reader-quality-grid,
.reader-quality-level-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reader-quality-chip,
.reader-quality-level {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.reader-quality-chip span,
.reader-quality-level span {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
}

.reader-quality-chip strong,
.reader-quality-level strong {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.reader-quality-chip:hover,
.reader-quality-level:hover {
  border-color: var(--accent-soft);
  color: var(--accent-dark);
}

.reader-quality-chip:focus-visible,
.reader-quality-level:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

.reader-quality-chip.is-selected,
.reader-quality-level.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.reader-quality-chip.is-selected strong,
.reader-quality-level.is-selected strong {
  background: #ffffff;
  color: var(--accent-dark);
}

.reader-quality-chip:disabled,
.reader-quality-level:disabled {
  cursor: wait;
  opacity: 0.68;
}

/* 5. 커스텀 컨텍스트 메뉴 스타일 */
.rd-context-menu {
  position: absolute;
  z-index: 10000;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  font-family: inherit;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rd-context-menu-title {
  font-size: 11px;
  color: var(--text-faint);
  padding: 4px 8px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
  word-break: break-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rd-context-menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rd-context-menu-item {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  color: var(--text-muted);
}

.rd-context-menu-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

/* 컬러 바리에이션 */
.rd-context-menu-item.item-danger:hover {
  background: hsla(0, 85%, 95%, 0.8);
  color: hsl(0, 75%, 45%);
}
.rd-context-menu-item.item-warning:hover {
  background: hsla(35, 90%, 94%, 0.8);
  color: hsl(35, 80%, 38%);
}
.rd-context-menu-item.item-primary:hover {
  background: hsla(215, 85%, 95%, 0.8);
  color: hsl(215, 75%, 42%);
}

@media (prefers-color-scheme: dark) {
  .rd-context-menu {
    background: rgba(26, 32, 44, 0.9);
  }
  .rd-context-menu-item.item-danger:hover {
    background: hsla(0, 50%, 20%, 0.5);
    color: hsl(0, 90%, 75%);
  }
  .rd-context-menu-item.item-warning:hover {
    background: hsla(35, 50%, 18%, 0.5);
    color: hsl(35, 90%, 70%);
  }
  .rd-context-menu-item.item-primary:hover {
    background: hsla(215, 50%, 20%, 0.5);
    color: hsl(215, 90%, 75%);
  }
}

/* 6. 인라인 형광펜 마킹 스타일 */
.rd-inline-mark {
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px dashed transparent;
  padding: 1px 0;
  border-radius: 2px;
}

/* 어색한 번역체: 빨간색 형광펜 */
.rd-inline-mark.mark-translation-noise {
  background: hsla(0, 85%, 93%, 0.7);
  border-bottom-color: hsla(0, 75%, 45%, 0.4);
}
.rd-inline-mark.mark-translation-noise:hover {
  background: hsla(0, 85%, 88%, 0.9);
  box-shadow: 0 0 4px hsla(0, 75%, 45%, 0.2);
}

/* 논리적 비약 / 알맹이 없음: 노란색 형광펜 */
.rd-inline-mark.mark-logical-leap,
.rd-inline-mark.mark-hollow-content {
  background: hsla(45, 90%, 91%, 0.7);
  border-bottom-color: hsla(45, 80%, 38%, 0.4);
}
.rd-inline-mark.mark-logical-leap:hover,
.rd-inline-mark.mark-hollow-content:hover {
  background: hsla(45, 90%, 85%, 0.9);
  box-shadow: 0 0 4px hsla(45, 80%, 38%, 0.2);
}

/* deep-dive 대상: 파란색 형광펜 */
.rd-inline-mark.mark-deep-dive-target {
  background: hsla(215, 85%, 93%, 0.7);
  border-bottom-color: hsla(215, 75%, 42%, 0.4);
}
.rd-inline-mark.mark-deep-dive-target:hover {
  background: hsla(215, 85%, 88%, 0.9);
  box-shadow: 0 0 4px hsla(215, 75%, 42%, 0.2);
}

/* 다크모드 대응 형광펜 튜닝 */
@media (prefers-color-scheme: dark) {
  .rd-inline-mark.mark-translation-noise {
    background: hsla(0, 50%, 25%, 0.45);
    border-bottom-color: hsla(0, 90%, 75%, 0.5);
    color: inherit;
  }
  .rd-inline-mark.mark-translation-noise:hover {
    background: hsla(0, 50%, 30%, 0.6);
  }

  .rd-inline-mark.mark-logical-leap,
  .rd-inline-mark.mark-hollow-content {
    background: hsla(45, 50%, 22%, 0.45);
    border-bottom-color: hsla(45, 90%, 70%, 0.5);
    color: inherit;
  }
  .rd-inline-mark.mark-logical-leap:hover,
  .rd-inline-mark.mark-hollow-content:hover {
    background: hsla(45, 50%, 28%, 0.6);
  }

  .rd-inline-mark.mark-deep-dive-target {
    background: hsla(215, 50%, 25%, 0.45);
    border-bottom-color: hsla(215, 90%, 75%, 0.5);
    color: inherit;
  }
  .rd-inline-mark.mark-deep-dive-target:hover {
    background: hsla(215, 50%, 30%, 0.6);
  }
}

/* 글 검증 및 후속 방향 평가 상자 */
.rd-eval-box {
  margin: 22px 28px 0;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.rd-eval-title {
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}

.rd-eval-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

.rd-eval-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 깃허브 스타일 라벨 칩 */
.rd-eval-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  background: var(--surface-2);
  color: var(--muted);
}

.rd-eval-chip-count {
  font-size: 11px;
  opacity: 0.8;
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 6px;
  border-radius: 10px;
}

/* 다크 모드에서의 카운트 배경 조절 */
@media (prefers-color-scheme: dark) {
  .rd-eval-chip-count {
    background: rgba(255, 255, 255, 0.15);
  }
}

/* 컬러 스킨 */
/* danger (번역투/조악함) */
.rd-eval-chip-danger {
  background: hsla(0, 85%, 95%, 0.7);
  color: hsl(0, 75%, 45%);
  border-color: hsla(0, 75%, 45%, 0.15);
}
.rd-eval-chip-danger:hover {
  background: hsla(0, 85%, 90%, 0.9);
}
.rd-eval-chip-danger.is-active {
  background: hsl(0, 75%, 45%) !important;
  color: #fff !important;
  border-color: hsl(0, 75%, 45%) !important;
}

/* warning (알맹이 없음) */
.rd-eval-chip-warning {
  background: hsla(35, 90%, 94%, 0.7);
  color: hsl(35, 80%, 38%);
  border-color: hsla(35, 80%, 40%, 0.15);
}
.rd-eval-chip-warning:hover {
  background: hsla(35, 90%, 88%, 0.9);
}
.rd-eval-chip-warning.is-active {
  background: hsl(35, 80%, 38%) !important;
  color: #fff !important;
  border-color: hsl(35, 80%, 38%) !important;
}

/* success (논리 탄탄) */
.rd-eval-chip-success {
  background: hsla(140, 70%, 94%, 0.7);
  color: hsl(140, 65%, 32%);
  border-color: hsla(140, 65%, 35%, 0.15);
}
.rd-eval-chip-success:hover {
  background: hsla(140, 70%, 88%, 0.9);
}
.rd-eval-chip-success.is-active {
  background: hsl(140, 65%, 32%) !important;
  color: #fff !important;
  border-color: hsl(140, 65%, 32%) !important;
}

/* primary (deep-dive 대상) */
.rd-eval-chip-primary {
  background: hsla(215, 85%, 95%, 0.7);
  color: hsl(215, 75%, 42%);
  border-color: hsla(215, 75%, 42%, 0.15);
}
.rd-eval-chip-primary:hover {
  background: hsla(215, 85%, 90%, 0.9);
}
.rd-eval-chip-primary.is-active {
  background: hsl(215, 75%, 42%) !important;
  color: #fff !important;
  border-color: hsl(215, 75%, 42%) !important;
}

/* info (자연스러움) */
.rd-eval-chip-info {
  background: hsla(185, 80%, 94%, 0.7);
  color: hsl(185, 75%, 32%);
  border-color: hsla(185, 75%, 32%, 0.15);
}
.rd-eval-chip-info:hover {
  background: hsla(185, 80%, 88%, 0.9);
}
.rd-eval-chip-info.is-active {
  background: hsl(185, 75%, 32%) !important;
  color: #fff !important;
  border-color: hsl(185, 75%, 32%) !important;
}

/* 활성 상태 폰트 및 미세 애니메이션 */
.rd-eval-chip:active {
  transform: translateY(1px);
}
.rd-eval-chip.is-active .rd-eval-chip-count {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #fff !important;
}

/* 비로그인 시 호버 효과 제거 및 비활성 처리 */
.rd-eval-chip.is-disabled {
  opacity: 0.75;
}

/* 다크모드 대응 색상 튜닝 */
@media (prefers-color-scheme: dark) {
  .rd-eval-chip-danger {
    background: hsla(0, 50%, 20%, 0.4);
    color: hsl(0, 90%, 75%);
    border-color: hsla(0, 90%, 75%, 0.2);
  }
  .rd-eval-chip-warning {
    background: hsla(35, 50%, 18%, 0.4);
    color: hsl(35, 90%, 70%);
    border-color: hsla(35, 90%, 70%, 0.2);
  }
  .rd-eval-chip-success {
    background: hsla(140, 45%, 16%, 0.4);
    color: hsl(140, 85%, 70%);
    border-color: hsla(140, 85%, 70%, 0.2);
  }
  .rd-eval-chip-primary {
    background: hsla(215, 50%, 20%, 0.4);
    color: hsl(215, 90%, 75%);
    border-color: hsla(215, 90%, 75%, 0.2);
  }
  .rd-eval-chip-info {
    background: hsla(185, 45%, 16%, 0.4);
    color: hsl(185, 85%, 70%);
    border-color: hsla(185, 85%, 70%, 0.2);
  }
}

