:root {
  --bg-top: #eef5f9;
  --bg-bottom: #f8f2e7;
  --surface: rgba(255, 255, 255, 0.9);
  --ink: #1c2433;
  --muted: #5f697e;
  --line: #d3dbe8;
  --brand: #005f73;
  --brand-strong: #004656;
  --ok: #1f8b62;
  --warn: #926200;
  --danger: #c63b3b;
  --shadow: 0 18px 42px rgba(16, 32, 56, 0.12);
  --radius: 16px;
  --radius-sm: 12px;
  --sansei: #1f8b62;
  --hantai: #c63b3b;
  --shincho: #d18600;
  --konzai: #6d5bd0;
  --fumei: #8a97a6;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
  background:
    radial-gradient(760px 320px at 7% -10%, rgba(0, 95, 115, 0.14), transparent 72%),
    radial-gradient(780px 280px at 92% -6%, rgba(238, 155, 0, 0.16), transparent 70%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 42px 22px 20px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(0, 95, 115, 0.09), transparent 35%),
    repeating-linear-gradient(0deg, rgba(0, 95, 115, 0.05) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(90deg, rgba(0, 95, 115, 0.05) 0 1px, transparent 1px 16px);
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  isolation: isolate;
}

.top-menu {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 10px;
  z-index: 20;
}

.top-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.top-menu a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 32, 56, 0.12);
}

.top-menu a.top-back-link {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
}

.top-menu a.top-back-link:hover {
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.34);
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.05;
}

.hero-logo {
  position: relative;
  z-index: 1;
  margin: 0 0 2px;
}

.hero-logo svg {
  display: block;
  width: min(100%, 500px);
  height: auto;
  overflow: visible;
}

.subtitle {
  margin: 4px 0 0;
  max-width: 900px;
  color: var(--muted);
  line-height: 1.6;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 22px 44px;
}

.legal-page {
  padding-bottom: 40px;
}

.legal-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

.legal-card {
  padding: 20px;
}

.legal-title {
  margin: 0 0 6px;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.2;
}

.legal-date {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.legal-card section + section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.legal-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.legal-card p,
.legal-card li {
  color: var(--ink);
  line-height: 1.7;
}

.legal-card ul {
  margin: 0;
  padding-left: 18px;
}

.panel {
  background: var(--surface);
  backdrop-filter: blur(7px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.controls {
  margin-bottom: 12px;
  padding: 16px;
}

.controls-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.field-wide {
  grid-column: span 2;
}

input,
button {
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}

input::placeholder {
  color: #8fa0b2;
  opacity: 1;
}

input:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(0, 95, 115, 0.2);
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.query-hint-panel {
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed #d8b987;
  border-radius: 11px;
  background: #fff8eb;
}

.query-hint-message {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #7f5500;
}

.query-hint-buttons {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.query-hint-btn {
  border: 1px solid #d8b987;
  background: #fffdf7;
  color: #6f4b00;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.1;
  cursor: pointer;
}

.query-hint-btn:hover {
  background: #fff2d6;
  border-color: #bc974f;
}

.btn {
  border-radius: 11px;
  border: 1px solid transparent;
  padding: 10px 16px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn.primary {
  background: linear-gradient(125deg, var(--brand), #1b7c8d);
  color: #fff;
  font-weight: 700;
}

.btn.primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 95, 115, 0.24);
}

.btn.secondary {
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
  font-weight: 700;
}

.btn.secondary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(28, 36, 51, 0.12);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.processing-panel {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-style: dashed;
}

.processing-panel.active {
  border-color: rgba(0, 95, 115, 0.45);
  background: rgba(255, 255, 255, 0.96);
}

.processing-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.processing-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(0, 95, 115, 0.22);
  border-top-color: var(--brand);
  animation: spin 0.85s linear infinite;
}

.spinner.hidden {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.progress-panel {
  margin-bottom: 12px;
  padding: 14px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.progress-head h2 {
  margin: 0;
  font-size: 18px;
}

.progress-percent {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
}

.progress-track {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: #e7eff8;
  overflow: hidden;
  border: 1px solid #c8d7e6;
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0087a6, #19b6c9, #f4b400);
  transition: width 0.4s ease;
}

.progress-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.stat-card {
  padding: 14px;
}

.label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.value {
  margin: 8px 0 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.value.small {
  font-size: 16px;
  line-height: 1.5;
}

.hotword-panel,
.issues-panel {
  margin-bottom: 12px;
  padding: 16px;
}

.hotword-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.panel-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hotword-level {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #b8d3e7;
  color: #135d87;
  background: #eaf6ff;
}

.hotword-level.level-s,
.hotword-level.level-a {
  color: #8a4e00;
  border-color: #efc783;
  background: #fff2db;
}

.hotword-level.level-b {
  color: #82570f;
  border-color: #ebcf9a;
  background: #fff7e7;
}

.hotword-level.level-c,
.hotword-level.level-d {
  color: #31556f;
  border-color: #c8d6e5;
  background: #f1f7fd;
}

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

.hotword-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hotword-panel > :not(.cold-ornaments) {
  position: relative;
  z-index: 1;
}

.cold-ornaments {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.hotword-panel.cold-active .cold-ornaments {
  display: block;
  opacity: 1;
}

.hotword-panel.cold-active .flame-meter {
  display: none;
}

.cold-crystal {
  position: absolute;
  width: 56px;
  height: 56px;
  opacity: 0.42;
  filter: saturate(1.2) drop-shadow(0 0 6px rgba(58, 151, 219, 0.28));
}

.cold-crystal-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.cold-crystal.pos-1 {
  top: 6%;
  left: 5%;
  transform: scale(0.8);
}

.cold-crystal.pos-2 {
  top: 13%;
  left: 20%;
  transform: scale(0.66);
}

.cold-crystal.pos-3 {
  top: 9%;
  right: 8%;
  transform: scale(0.9);
}

.cold-crystal.pos-4 {
  top: 35%;
  right: 24%;
  transform: scale(0.72);
}

.cold-crystal.pos-5 {
  top: 42%;
  left: 7%;
  transform: scale(0.7);
}

.cold-crystal.pos-6 {
  top: 58%;
  left: 26%;
  transform: scale(0.78);
}

.cold-crystal.pos-7 {
  top: 64%;
  right: 10%;
  transform: scale(0.86);
}

.cold-crystal.pos-8 {
  bottom: 11%;
  left: 45%;
  transform: scale(0.68);
}

.cold-crystal.pos-9 {
  bottom: 6%;
  right: 32%;
  transform: scale(0.76);
}

.cold-crystal.pos-10 {
  top: 76%;
  right: 47%;
  transform: scale(0.62);
}

.cold-crystal.pos-11 {
  top: 24%;
  left: 42%;
  transform: scale(0.66);
}

.cold-crystal.pos-12 {
  top: 48%;
  right: 4%;
  transform: scale(0.74);
}

.cold-crystal.pos-13 {
  bottom: 4%;
  left: 30%;
  transform: scale(0.64);
}

.cold-crystal.pos-14 {
  top: 4%;
  left: 56%;
  transform: scale(0.72);
}

.hotword-meter-wrap {
  display: grid;
  justify-items: end;
  gap: 0;
}

.flame-meter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}

.flame-slot {
  width: 38px;
  height: 48px;
  opacity: 0.22;
  filter: grayscale(0.95) saturate(0.3);
  transition: opacity 0.22s ease, filter 0.22s ease, transform 0.22s ease;
}

.flame-slot.active {
  opacity: 1;
  filter: none;
  transform: translateY(-1px);
}

.flame-icon {
  width: 100%;
  height: 100%;
  transform-origin: 50% 88%;
}

.flame-outer {
  fill: #ff4500;
}

.flame-mid {
  fill: #ff8c00;
}

.flame-inner {
  fill: #ffd700;
}

.flame-slot.active .flame-icon {
  animation: flame-burn 1.1s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 5px rgba(240, 105, 24, 0.44));
}

.flame-meter[data-level="s"] .flame-slot.active .flame-icon {
  animation-duration: 0.58s;
}

.flame-meter[data-level="a"] .flame-slot.active .flame-icon {
  animation-duration: 0.78s;
}

.flame-meter[data-level="b"] .flame-slot.active .flame-icon {
  animation-duration: 1s;
}

.flame-meter[data-level="c"] .flame-slot.active .flame-icon {
  animation-duration: 1.3s;
}

.hotword-panel.heat-s {
  border-color: rgba(241, 142, 45, 0.52);
  box-shadow: 0 18px 42px rgba(16, 32, 56, 0.12), 0 0 16px rgba(245, 132, 42, 0.16);
}

.hotword-panel.heat-a {
  border-color: rgba(236, 160, 74, 0.45);
  box-shadow: 0 18px 42px rgba(16, 32, 56, 0.12), 0 0 10px rgba(236, 160, 74, 0.1);
}

.hotword-panel.heat-b {
  border-color: rgba(213, 174, 98, 0.45);
}

.hotword-panel.heat-c {
  border-color: #d7e2ee;
}

.hotword-panel.heat-d {
  border-color: rgba(154, 195, 233, 0.6);
}

@keyframes flame-burn {
  0% {
    transform: translateY(3px) scale(0.9) rotate(-3deg);
  }
  50% {
    transform: translateY(-1px) scale(1.05) rotate(2deg);
  }
  100% {
    transform: translateY(1px) scale(0.96) rotate(-1deg);
  }
}

.hot-card {
  border: 1px solid #d7e2ee;
  border-radius: 12px;
  background: #f9fcff;
  padding: 10px;
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

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

.hot-value {
  margin: 7px 0 0;
  font-size: 24px;
  font-weight: 700;
}

.series-wrap {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: 8px;
}

.series-item {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.series-bar-wrap {
  width: 100%;
  height: 64px;
  border-radius: 8px;
  background: #eef4fb;
  border: 1px solid #d3e0ed;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.series-bar {
  width: 100%;
  background: linear-gradient(180deg, #33a1c8, #0c728d);
}

.series-year {
  color: var(--muted);
  font-size: 11px;
}

.series-count {
  font-size: 11px;
  font-weight: 700;
}

.issues-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.issue-card {
  border: 1px solid #d6e2ee;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.issue-card.issue-advantage {
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.95), rgba(255, 255, 255, 0.98));
  border-color: rgba(194, 107, 21, 0.28);
}

.issue-card.issue-disadvantage {
  background: linear-gradient(180deg, rgba(243, 248, 255, 0.96), rgba(255, 255, 255, 0.98));
  border-color: rgba(79, 127, 187, 0.3);
}

.issue-card.issue-balanced {
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.96), rgba(255, 255, 255, 0.98));
  border-color: rgba(132, 154, 178, 0.3);
}

.issue-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: start;
  padding: 10px 12px;
  background: #f8fbff;
  border-bottom: 1px solid #e1ebf5;
}

.issue-head-main {
  min-width: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.issue-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.issue-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.issue-description {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  max-width: 66%;
}

.consensus-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid #d5e2ef;
  background: #f1f6fb;
  color: #33536d;
}

.consensus-badge.checked {
  border-color: rgba(31, 139, 98, 0.42);
  color: #0f6d48;
  background: rgba(31, 139, 98, 0.1);
}

.consensus-badge.is-advantage {
  border-color: rgba(194, 107, 21, 0.45);
  color: #8a4f0e;
  background: rgba(233, 162, 84, 0.2);
}

.consensus-badge.is-disadvantage {
  border-color: rgba(198, 60, 60, 0.42);
  color: #8f1f1f;
  background: rgba(221, 86, 86, 0.16);
}

.consensus-badge.is-balanced {
  border-color: rgba(84, 118, 153, 0.4);
  color: #2e4d6b;
  background: rgba(121, 150, 179, 0.12);
}

.issue-toggle {
  border: 1px solid #ccdbe9;
  background: #ffffff;
  color: #24425f;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  padding: 12px 20px;
  min-width: 172px;
  text-align: center;
  cursor: pointer;
}

.issue-toggle:hover {
  border-color: #9fb8cf;
  background: #f3f8fe;
}

.issue-toggle:focus-visible {
  outline: 2px solid rgba(39, 117, 184, 0.35);
  outline-offset: 2px;
}

.issue-balance-wrap {
  padding: 0;
  border: none;
  background: transparent;
  display: grid;
  justify-items: center;
  justify-self: center;
  gap: 8px;
}

.issue-balance-semi-wrap {
  position: relative;
  width: min(430px, 60vw);
}

.issue-balance-semi-chart {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.issue-balance-semi-track,
.issue-balance-semi-opposition,
.issue-balance-semi-ruling {
  fill: none;
  stroke-width: 56;
}

.issue-balance-semi-track {
  stroke: #e4edf7;
}

.issue-balance-semi-opposition {
  stroke: #4f7fbb;
  stroke-linecap: butt;
}

.issue-balance-semi-ruling {
  stroke: #de8c45;
  stroke-linecap: butt;
}

.issue-balance-semi-center {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  text-align: center;
}

.issue-balance-fan-label {
  font-size: 14px;
  font-weight: 800;
  color: #2f4b66;
  line-height: 1.25;
}

.issue-balance-values {
  width: min(360px, 60vw);
  display: flex;
  justify-content: space-between;
  color: #5a718a;
  font-size: 13px;
  font-weight: 700;
}

.issue-balance-pending {
  width: 100%;
  padding: 18px 12px;
  border: 1px dashed #d5e2ef;
  border-radius: 12px;
  background: rgba(245, 249, 255, 0.88);
}

.issue-balance-pending-text {
  margin: 0;
  color: #4f6780;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.issue-main-note-row {
  display: flex;
  justify-content: flex-start;
  max-width: 100%;
}

.issue-ruling-note {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #d2dceb;
  background: #f4f7fc;
  color: #4a6076;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.issue-detail-pending {
  margin: 0;
  color: #4f6780;
  font-size: 14px;
  line-height: 1.6;
}

.issue-detail {
  opacity: 1;
  transform: translateY(0);
}

.issue-detail.is-collapsed {
  opacity: 0;
  transform: translateY(-6px);
}

.issue-board-wrap {
  overflow-x: auto;
  padding: 10px 12px 12px;
}

.issue-board {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.issue-board-row {
  display: grid;
  gap: 10px;
}

.issue-board-row.top {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.issue-board-row.bottom {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.issue-board-row .board-column {
  height: 100%;
}

.issue-board-row.top .board-column {
  min-height: 0;
}

.issue-board-row.top .board-column-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.board-column {
  border: 1px solid #d7e2ee;
  border-radius: 12px;
  background: #f8fbff;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.board-column.sansei {
  border-color: rgba(31, 139, 98, 0.36);
  background: rgba(31, 139, 98, 0.08);
}

.board-column.hantai {
  border-color: rgba(198, 59, 59, 0.34);
  background: rgba(198, 59, 59, 0.07);
}

.board-column.shincho {
  border-color: rgba(209, 134, 0, 0.35);
  background: rgba(209, 134, 0, 0.08);
}

.board-column.konzai {
  border-color: rgba(109, 91, 208, 0.33);
  background: rgba(109, 91, 208, 0.08);
}

.board-column.fumei {
  border-color: rgba(138, 151, 166, 0.34);
  background: rgba(138, 151, 166, 0.1);
}

.board-column-head {
  padding: 8px 10px;
  border-bottom: 1px dashed rgba(84, 108, 133, 0.28);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.board-column-label {
  font-size: 12px;
  font-weight: 700;
}

.board-column-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.board-column-list {
  padding: 8px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.board-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  padding: 2px 2px 0;
}

.party-card {
  border: 1px solid #d9e5f0;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 1px 0 rgba(16, 32, 56, 0.03);
}

.party-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.party-name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.party-count {
  display: inline-flex;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #2f4b66;
  background: #edf4fb;
  border: 1px solid #d3e2f0;
}

.party-reason {
  margin: 6px 0 0;
  font-size: 12px;
  color: #344c63;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.party-link-wrap {
  margin-top: 5px;
}

.citation-link {
  color: var(--brand);
  text-decoration: none;
  font-size: 12px;
}

.citation-link:hover {
  text-decoration: underline;
}

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

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

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

  .issue-description {
    max-width: 100%;
  }

  .issue-board-row.top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .issue-board-row.bottom {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    padding: 0 14px 34px;
  }

  .hero {
    padding: 32px 14px 16px;
  }

  .top-menu {
    position: relative;
    z-index: 20;
    justify-content: flex-end;
    margin-bottom: 8px;
    flex-wrap: wrap;
  }

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

  .field-wide {
    grid-column: span 1;
  }

  .actions {
    justify-content: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

  .series-wrap {
    grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
  }

  .cold-crystal {
    width: 44px;
    height: 44px;
    opacity: 0.36;
  }

  .cold-crystal.pos-2,
  .cold-crystal.pos-5,
  .cold-crystal.pos-8,
  .cold-crystal.pos-10,
  .cold-crystal.pos-11,
  .cold-crystal.pos-13,
  .cold-crystal.pos-14 {
    display: none;
  }

  .issue-board {
    min-width: 0;
  }

  .issue-board-row.top {
    grid-template-columns: 1fr;
  }

  .issue-board-row.bottom {
    grid-template-columns: 1fr;
  }

  .issue-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .issue-description {
    max-width: 100%;
  }

  .issue-head-right {
    width: 100%;
    align-items: stretch;
  }

  .issue-toggle {
    width: 100%;
    text-align: center;
  }

  .issue-balance-wrap {
    width: 100%;
  }

  .issue-balance-semi-wrap {
    width: min(320px, 92vw);
  }

  .issue-balance-values {
    width: min(320px, 92vw);
  }

  .issue-main-note-row {
    max-width: 100%;
  }

  .issue-board-wrap {
    overflow-x: visible;
  }

  .issue-board-row.top .board-column-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flame-slot.active .flame-icon {
    animation: none !important;
  }

  .cold-crystal-svg animate,
  .cold-crystal-svg animateTransform {
    display: none;
  }
}
