@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap");

:root {
  --bg: #0b1024;
  --card: #121733;
  --panel: #0f142c;
  --accent: #57d1a3;
  --accent-2: #7ad5ff;
  --text: #e8ecf5;
  --muted: #9eacc6;
  --border: #1f2a4a;
  --danger: #ff7f6b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 14px;
}

body.theme-dawn {
  --bg: #eef3f8;
  --card: rgba(255, 255, 255, 0.95);
  --panel: rgba(255, 255, 255, 0.9);
  --accent: #1e8f68;
  --accent-2: #2f6fde;
  --text: #0e1228;
  --muted: rgba(20, 25, 50, 0.58);
  --border: rgba(20, 25, 50, 0.12);
  --danger: #c0493f;
  --shadow: 0 18px 40px rgba(16, 20, 40, 0.1);
}

body.theme-sunny {
  --bg: #fbf7ef;
  --card: rgba(255, 255, 255, 0.95);
  --panel: rgba(255, 247, 236, 0.9);
  --accent: #bd6a1e;
  --accent-2: #2d8aa8;
  --text: #2b1f12;
  --muted: rgba(43, 31, 18, 0.55);
  --border: rgba(87, 64, 40, 0.18);
  --danger: #c14a35;
  --shadow: 0 18px 40px rgba(87, 64, 40, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Manrope", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, rgba(64, 132, 255, 0.2), transparent 25%),
              radial-gradient(circle at 80% 0%, rgba(87, 209, 163, 0.25), transparent 30%),
              var(--bg);
  min-height: 100vh;
}

body.theme-dawn,
body.theme-sunny {
  background: radial-gradient(circle at 20% 20%, rgba(47, 111, 222, 0.18), transparent 32%),
              radial-gradient(circle at 80% 0%, rgba(189, 106, 30, 0.16), transparent 34%),
              var(--bg);
}

.hero {
  padding: 40px 48px 28px;
  background: linear-gradient(120deg, rgba(87, 209, 163, 0.25), rgba(122, 213, 255, 0.18));
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero__content {
  max-width: 1180px;
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 6px;
}

h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.2;
}

.lede {
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 640px;
}

.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

label {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

select {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 180px;
  font-size: 14px;
}

.layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  padding: 22px 24px 40px;
}

.layout--single {
  grid-template-columns: 1fr;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 480px;
}

.panel__header {
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--border);
}

.panel__header h2 {
  margin: 0;
  font-size: 16px;
}

.topic-select {
  padding: 12px 16px 16px;
  display: grid;
  gap: 8px;
}

.topic-select select {
  width: 100%;
  background: linear-gradient(180deg, rgba(22, 28, 60, 0.9), rgba(12, 16, 38, 0.95));
  border: 1px solid rgba(122, 213, 255, 0.25);
  border-radius: 14px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  outline: none;
  appearance: none;
}

body.theme-dawn .topic-select select,
body.theme-sunny .topic-select select {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 245, 245, 0.98));
  border-color: rgba(31, 42, 75, 0.2);
  box-shadow: 0 10px 24px rgba(16, 20, 40, 0.08);
}

.topic-select select option {
  background: #0f142c;
  color: var(--text);
  padding: 6px 8px;
}

body.theme-dawn .topic-select select option,
body.theme-sunny .topic-select select option {
  background: #ffffff;
  color: var(--text);
}

.topic-select select:focus {
  border-color: rgba(122, 213, 255, 0.65);
  box-shadow: 0 0 0 2px rgba(122, 213, 255, 0.2), 0 12px 24px rgba(0,0,0,0.3);
}

.topic-select .small {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.topic-list {
  list-style: none;
  margin: 0;
  padding: 12px;
}

.topic-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.1s ease;
}

.topic-item:hover {
  border-color: var(--accent-2);
  transform: translateY(-1px);
}

.topic-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(87, 209, 163, 0.4);
}

.topic-item .title {
  margin: 0;
  font-size: 15px;
}

.topic-item .muted {
  margin: 6px 0 0;
}

.content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  min-height: 520px;
}

.content__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.content__header h2 {
  margin: 0 0 6px;
}

.content__header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.muted {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.badge {
  background: rgba(87, 209, 163, 0.12);
  color: var(--accent);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(87, 209, 163, 0.4);
  font-weight: 700;
}

.positions {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.rubric-view {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.rubric-view__axis {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.rubric-view__axis-label {
  max-width: 48%;
}

.rubric-view__axis-label--right {
  text-align: right;
  margin-left: auto;
}

.rubric-view__steps {
  display: grid;
  gap: 10px;
}

.rubric-view__step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: start;
  background: rgba(15, 20, 44, 0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

.rubric-view__score {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.rubric-view__label {
  font-weight: 700;
  margin-bottom: 4px;
}

.rubric-view__criteria {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.notice-card {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(15, 20, 44, 0.45);
  box-shadow: var(--shadow);
}

.notice-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.notice-card p {
  margin: 6px 0;
  color: var(--muted);
  line-height: 1.5;
}

.notice-card .link {
  display: inline-block;
  margin-top: 8px;
}

body.theme-dawn .notice-card,
body.theme-sunny .notice-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0,0,0,0.12);
}

.about-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.about-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  background: rgba(15, 20, 44, 0.45);
  box-shadow: var(--shadow);
}

.about-card h3 {
  margin: 0 0 8px;
}

.about-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.about-card li {
  margin: 6px 0;
  line-height: 1.5;
}

.about-footnote {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  color: var(--muted);
  background: rgba(15, 20, 44, 0.25);
}

body.theme-dawn .about-card,
body.theme-sunny .about-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0,0,0,0.12);
}

body.theme-dawn .about-footnote,
body.theme-sunny .about-footnote {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0,0,0,0.12);
}
.rubric-view__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 20, 44, 0.55);
}

.rubric-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.rubric-table th,
.rubric-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.rubric-table th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.rubric-table__score {
  font-weight: 700;
  font-size: 14px;
  width: 80px;
  white-space: nowrap;
}

.rubric-table__label {
  font-weight: 700;
  width: 200px;
}

.rubric-table__criteria {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.plot {
  background: rgba(15, 20, 44, 0.55);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

body.theme-dawn .plot,
body.theme-sunny .plot {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.12);
}

.plot__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 10px;
}

.plot__header > div {
  flex: 1;
}

.plot__axis-label {
  font-size: 12px;
  color: var(--muted);
  max-width: 46%;
  line-height: 1.3;
  flex: 1;
}

.plot__axis-label--left { text-align: left; }
.plot__axis-label--right { text-align: right; margin-left: auto; }

.plot__axis-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.plot__axis { margin-bottom: 14px; }

.plot-axis {
  position: relative;
  height: 52px;
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
}

body.theme-dawn .plot-axis,
body.theme-sunny .plot-axis {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.12);
}

.plot-axis__band {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,127,107,0.55), rgba(122,213,255,0.35), rgba(87,209,163,0.75));
  border: 1px solid rgba(255,255,255,0.08);
}

body.theme-dawn .plot-axis__band,
body.theme-sunny .plot-axis__band {
  border-color: rgba(0,0,0,0.15);
}

.plot-axis__zero {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 2px;
  height: calc(100% - 12px);
  transform: translateX(-1px);
  background: rgba(232, 236, 245, 0.55);
  z-index: 1;
}

body.theme-dawn .plot-axis__zero,
body.theme-sunny .plot-axis__zero {
  background: rgba(30, 35, 60, 0.35);
}

.plot-axis__tick {
  position: absolute;
  bottom: 6px;
  font-size: 11px;
  color: var(--muted);
}
.plot-axis__tick--left { left: 12px; }
.plot-axis__tick--center { left: 50%; transform: translateX(-50%); }
.plot-axis__tick--right { right: 12px; }

.radar-summary {
  margin: 14px 0 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(15, 20, 44, 0.55);
  box-shadow: var(--shadow);
}

body.theme-dawn .radar-summary,
body.theme-sunny .radar-summary {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.12);
}

.radar-summary__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-end;
}

.radar-summary__head h4 {
  margin: 0;
  font-size: 14px;
}

.radar-rows {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.radar-row {
  display: grid;
  grid-template-columns: 200px 1fr 180px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

body.theme-dawn .radar-row,
body.theme-sunny .radar-row {
  border-color: rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02);
}

.radar-row__title {
  font-weight: 700;
}

.radar-row__meta {
  font-size: 12px;
  margin-top: 4px;
}

.radar-row__values {
  text-align: right;
  font-size: 12px;
}

.radar-row__value {
  font-weight: 700;
  font-size: 13px;
}

.radar-track {
  position: relative;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}

body.theme-dawn .radar-track,
body.theme-sunny .radar-track {
  border-color: rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.04);
}

.radar-track__zero {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,0.22);
  transform: translate(-50%, -50%);
}

body.theme-dawn .radar-track__zero,
body.theme-sunny .radar-track__zero {
  background: rgba(0,0,0,0.22);
}

.radar-track__range {
  position: absolute;
  top: 50%;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,127,107,0.55), rgba(122,213,255,0.55), rgba(87,209,163,0.55));
}

.radar-track__dot {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
}

body.theme-dawn .radar-track__dot,
body.theme-sunny .radar-track__dot {
  box-shadow: 0 6px 18px rgba(16,20,40,0.12);
}

.radar-track__tick {
  position: absolute;
  bottom: -18px;
  font-size: 11px;
  color: var(--muted);
}

.radar-track__tick--left { left: 0; }
.radar-track__tick--right { right: 0; }

.radar-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.radar-main {
  grid-column: 1 / -1;
  background: rgba(15, 20, 44, 0.55);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 16px 12px;
  box-shadow: var(--shadow);
}

body.theme-dawn .radar-main,
body.theme-sunny .radar-main {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.12);
}

.radar-main__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 10px;
}

.radar-main__select select {
  min-width: 220px;
}

.radar-main__chart {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 0 2px;
  overflow: visible;
}

.radar-card {
  background: rgba(15, 20, 44, 0.55);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: var(--shadow);
}

body.theme-dawn .radar-card,
body.theme-sunny .radar-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.12);
}

.radar-card__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 10px;
}

.radar-card__title {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.radar-card__chart {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 0 2px;
  overflow: visible;
}

.radar-card__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.radar-card__button {
  padding: 6px 10px;
  border-radius: 12px;
}

.radar-card--intro {
  grid-column: 1 / -1;
}

.radar-intro {
  display: grid;
  gap: 10px;
}

.radar-intro__axes {
  margin-top: 10px;
}

.radar-intro__axes-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.radar-intro__axes-list {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radar-axis-chip {
  position: relative;
  cursor: help;
}

.radar-axis-chip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translate(-50%, -100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 6;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(240, 250, 255, 0.95);
  background: rgba(10, 16, 30, 0.92);
  border: 1px solid rgba(120, 190, 170, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  max-width: min(520px, 92vw);
  white-space: normal;
}

.radar-axis-chip:hover::after,
.radar-axis-chip:focus-visible::after {
  opacity: 1;
}

body.theme-dawn .radar-axis-chip::after,
body.theme-sunny .radar-axis-chip::after {
  background: rgba(255, 255, 255, 0.95);
  color: rgba(20, 25, 50, 0.9);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 18px rgba(16, 20, 40, 0.12);
}

.radar-detail__chart {
  display: flex;
  justify-content: center;
  margin: 10px 0 6px;
}

.radar-svg {
  max-width: 100%;
  height: auto;
  overflow: visible;
}

.radar-svg__ring {
  fill: none;
  stroke: rgba(255,255,255,0.10);
  stroke-width: 1;
}

body.theme-dawn .radar-svg__ring,
body.theme-sunny .radar-svg__ring {
  stroke: rgba(0,0,0,0.10);
}

.radar-svg__zero-ring {
  fill: none;
  stroke: rgba(255,255,255,0.26);
  stroke-width: 2.4;
}

body.theme-dawn .radar-svg__zero-ring,
body.theme-sunny .radar-svg__zero-ring {
  stroke: rgba(0,0,0,0.18);
}

.radar-svg__axis {
  stroke: rgba(255,255,255,0.16);
  stroke-width: 1;
}

body.theme-dawn .radar-svg__axis,
body.theme-sunny .radar-svg__axis {
  stroke: rgba(0,0,0,0.14);
}

.radar-svg__range-line {
  stroke: rgba(255,255,255,0.22);
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0.55;
}

body.theme-dawn .radar-svg__range-line,
body.theme-sunny .radar-svg__range-line {
  stroke: rgba(0,0,0,0.18);
}

.radar-svg__band {
  pointer-events: none;
}

.radar-svg__center {
  fill: rgba(255,255,255,0.25);
}

body.theme-dawn .radar-svg__center,
body.theme-sunny .radar-svg__center {
  fill: rgba(0,0,0,0.18);
}

.radar-svg__dot {
  stroke: rgba(255,255,255,0.75);
  stroke-width: 1.6;
}

body.theme-dawn .radar-svg__dot,
body.theme-sunny .radar-svg__dot {
  stroke: rgba(0,0,0,0.35);
}

.radar-svg__label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.radar-svg__scale {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.radar-legend {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 12px;
}

.radar-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}

body.theme-dawn .radar-legend__item,
body.theme-sunny .radar-legend__item {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.04);
}

.radar-legend__swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid rgba(232, 236, 245, 0.55);
}

body.theme-dawn .radar-legend__swatch,
body.theme-sunny .radar-legend__swatch {
  border-color: rgba(0,0,0,0.25);
}

.radar-legend__line {
  width: 18px;
  height: 0;
  border-top: 3px solid rgba(255,255,255,0.55);
  border-radius: 2px;
}

.radar-legend__line--max { border-top-color: rgba(87, 209, 163, 0.9); }
.radar-legend__line--min { border-top-color: rgba(255, 127, 107, 0.9); }

body.theme-dawn .radar-legend__line:not(.radar-legend__line--max):not(.radar-legend__line--min),
body.theme-sunny .radar-legend__line:not(.radar-legend__line--max):not(.radar-legend__line--min) {
  border-top-color: rgba(0,0,0,0.35);
}

.radar-legend__band {
  width: 18px;
  height: 10px;
  border-radius: 4px;
  opacity: 0.18;
  border: 1px solid rgba(255,255,255,0.10);
}

body.theme-dawn .radar-legend__band,
body.theme-sunny .radar-legend__band {
  border-color: rgba(0,0,0,0.10);
}

@media (max-width: 860px) {
  .radar-main__head {
    flex-direction: column;
    align-items: stretch;
  }
  .radar-main__select select {
    width: 100%;
  }
  .radar-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .radar-row__values {
    text-align: left;
  }
  .radar-track__tick {
    bottom: -16px;
  }
}

.plot-axis__dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid rgba(232, 236, 245, 0.55);
  background: rgba(122, 213, 255, 0.9);
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

.plot-axis__dot:hover {
  border-color: rgba(255, 255, 255, 0.85);
  filter: brightness(1.15);
  transform: translate(-50%, -50%) scale(1.06);
}

.plot-axis__dot:hover::after,
.plot-axis__dot:focus-visible::after {
  content: attr(data-name);
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translate(-50%, -100%);
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1;
  color: rgba(240, 250, 255, 0.95);
  background: rgba(10, 16, 30, 0.92);
  border: 1px solid rgba(120, 190, 170, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.plot-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.plot-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}

body.theme-dawn .plot-legend__item,
body.theme-sunny .plot-legend__item {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.04);
}

.plot-legend__swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid rgba(232, 236, 245, 0.55);
}

.plot__rows {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.axis-plot {
  background: rgba(15, 20, 44, 0.55);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

body.theme-dawn .axis-plot,
body.theme-sunny .axis-plot {
  background: rgba(255,255,255,0.8);
  border-color: rgba(0,0,0,0.12);
}

.axis-plot__grid {
  position: relative;
  height: 420px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: radial-gradient(circle at 50% 50%, rgba(122,213,255,0.08), rgba(15,20,44,0.15));
  overflow: hidden;
}

body.theme-dawn .axis-plot__grid,
body.theme-sunny .axis-plot__grid {
  border-color: rgba(0,0,0,0.12);
  background: radial-gradient(circle at 50% 50%, rgba(47,111,222,0.12), rgba(0,0,0,0.02));
}

.axis-plot__zero-x,
.axis-plot__zero-y {
  position: absolute;
  background: rgba(232, 236, 245, 0.55);
}

body.theme-dawn .axis-plot__zero-x,
body.theme-dawn .axis-plot__zero-y,
body.theme-sunny .axis-plot__zero-x,
body.theme-sunny .axis-plot__zero-y {
  background: rgba(30, 35, 60, 0.3);
}

.axis-plot__zero-x {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
}

.axis-plot__zero-y {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.axis-plot__dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid rgba(232, 236, 245, 0.7);
  transform: translate(calc(-50% + var(--dx, 0px)), calc(50% + var(--dy, 0px)));
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
  z-index: 5;
}

.axis-plot__dot:hover {
  filter: brightness(1.15);
  border-color: rgba(255, 255, 255, 0.85);
}

.axis-plot__dot::after {
  content: attr(data-name);
  position: absolute;
  left: 50%;
  bottom: 140%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(10, 14, 32, 0.92);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}

body.theme-dawn .axis-plot__dot::after,
body.theme-sunny .axis-plot__dot::after {
  background: rgba(255, 255, 255, 0.95);
  color: rgba(20, 25, 50, 0.9);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 18px rgba(16, 20, 40, 0.12);
}

.axis-plot__dot:hover::after,
.axis-plot__dot:focus-visible::after {
  opacity: 1;
}

.axis-plot__labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}

.axis-plot__labels span:last-child {
  text-align: right;
}

.axis-plot__labels--y {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.axis-plot__axis-label {
  position: absolute;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(10, 14, 32, 0.65);
  border: 1px solid rgba(255,255,255,0.08);
  z-index: 3;
}

body.theme-dawn .axis-plot__axis-label,
body.theme-sunny .axis-plot__axis-label {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.12);
  color: rgba(20, 25, 50, 0.8);
}

.axis-plot__axis-label--x {
  left: 50%;
  top: 8px;
  transform: translateX(-50%) translateY(-16px);
}

.axis-plot__axis-label--y {
  left: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(0) rotate(-90deg);
  transform-origin: left center;
}

.axis-plot__axis-end {
  position: absolute;
  font-size: 11px;
  color: var(--muted);
  background: rgba(10, 14, 32, 0.75);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 4px 8px;
  max-width: 36%;
  line-height: 1.3;
  z-index: 3;
}

body.theme-dawn .axis-plot__axis-end,
body.theme-sunny .axis-plot__axis-end {
  background: rgba(255,255,255,0.9);
  border-color: rgba(0,0,0,0.12);
  color: rgba(20, 25, 50, 0.8);
}

.axis-plot__axis-end--x-left {
  left: 16px;
  bottom: 16px;
  transform: translateY(0);
}

.axis-plot__axis-end--x-right {
  right: 16px;
  bottom: 16px;
  transform: translateY(0);
  text-align: right;
}

.axis-plot__axis-end--y-top {
  left: 50%;
  top: 16px;
  transform: translateX(-50%) translateY(10px);
  text-align: center;
}

.axis-plot__axis-end--y-bottom {
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(-10px);
  text-align: center;
}

.plot-row {
  display: grid;
  grid-template-columns: minmax(180px, 300px) 1fr 56px;
  gap: 14px;
  align-items: center;
  padding: 12px 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(18, 23, 51, 0.5);
  border-radius: 14px;
}

body.theme-dawn .plot-row,
body.theme-sunny .plot-row {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.04);
}

.plot-row__title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}

.plot-row__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }

.plot-row__url {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.plot-row__url a {
  color: var(--accent-2);
  text-decoration: none;
}
.plot-row__url a:hover { text-decoration: underline; }

.plot-row__score {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  opacity: 0.9;
}

.plot-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.plot-track__zero {
  position: absolute;
  left: 50%;
  top: -4px;
  width: 2px;
  height: 18px;
  transform: translateX(-1px);
  background: rgba(232, 236, 245, 0.35);
}

.plot-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(232, 236, 245, 0.7);
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.plot-dot:hover {
  border-color: rgba(122, 213, 255, 0.9);
  transform: translate(-50%, -50%) scale(1.05);
}

.score-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 180px 120px;
  gap: 12px;
  align-items: center;
}

.score-card__title {
  margin: 0 0 6px;
}

.score-card__meta {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.axis {
  position: relative;
  height: 10px;
  background: linear-gradient(90deg, #ff8a7a, #ffd27a, #7ad5ff, #57d1a3);
  border-radius: 10px;
  overflow: hidden;
}

.axis__marker {
  position: absolute;
  top: -4px;
  width: 14px;
  height: 18px;
  background: #fff;
  border-radius: 6px;
  border: 2px solid var(--panel);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-weight: 700;
}

.chip.confidence {
  color: var(--accent);
  border-color: rgba(87, 209, 163, 0.5);
}

.chip.stance {
  color: var(--accent-2);
  border-color: rgba(122, 213, 255, 0.5);
}

.chip.stance.danger {
  color: var(--danger);
  border-color: rgba(255, 127, 107, 0.5);
}

.button-link {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.1s ease;
}

.button-link:hover {
  border-color: var(--accent-2);
  transform: translateY(-1px);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 14, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
}

.overlay.hidden { display: none; }

.overlay__dialog {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  width: min(960px, 100%);
  max-height: 80vh;
  overflow: auto;
  box-shadow: var(--shadow);
  position: relative;
}

.overlay__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.evidence-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 12px;
}

.evidence-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
}

.evidence-item code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 4px;
  border-radius: 6px;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .content__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .score-card {
    grid-template-columns: 1fr;
  }
  .plot-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .plot-row__score {
    text-align: left;
  }
}
