:root {
  --bg: #101317;
  --topbar: #171c22;
  --panel: #1c2229;
  --panel-deep: #13181e;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f1e8;
  --muted: #9aa4ae;
  --gold: #d6a443;
  --gold-soft: rgba(214, 164, 67, 0.14);
  --green: #4ecb8d;
  --green-soft: rgba(78, 203, 141, 0.14);
  --red: #ef6868;
  --red-soft: rgba(239, 104, 104, 0.14);
  --blue: #70aaff;
  --blue-soft: rgba(112, 170, 255, 0.14);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 56% 26%, rgba(214, 164, 67, 0.12), transparent 30%),
    linear-gradient(135deg, #0f1216 0%, #111820 48%, #0f1216 100%);
  color: var(--text);
  font-family:
    "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, system-ui,
    sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 56% 26%, rgba(214, 164, 67, 0.12), transparent 30%),
    linear-gradient(135deg, #0f1216 0%, #111820 48%, #0f1216 100%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(260px, 380px) 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 94px;
  padding: 0 48px;
  border-bottom: 1px solid var(--line);
  background: rgba(23, 28, 34, 0.9);
  backdrop-filter: blur(18px);
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(145deg, #ecc565, #b47a22);
  color: #171109;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 900;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11161b;
}

.search-box span {
  color: var(--blue);
  font-size: 13px;
  white-space: nowrap;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #dbe6f4;
}

.search-box input::placeholder {
  color: #74879a;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  color: #bdd0e5;
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a.active {
  color: var(--gold);
  font-weight: 900;
}

.report-button,
.ai-prompt button,
.period {
  border: 0;
  cursor: pointer;
}

.report-button {
  min-height: 38px;
  padding: 0 24px;
  border-radius: 8px;
  background: var(--gold);
  color: #171109;
  font-weight: 800;
  white-space: nowrap;
}

.report-button.is-done {
  background: var(--green);
}

main {
  display: grid;
  gap: 30px;
  width: calc(100vw - 96px);
  max-width: 1880px;
  margin: 0 auto;
  padding: 28px 0 64px;
}

.intro p,
.section-heading p,
.chart-head p,
.review-strip p,
.panel-label {
  margin: 0 0 8px;
  color: #a8bdd2;
  font-size: 12px;
  text-transform: uppercase;
}

.intro {
  min-width: 0;
}

.intro h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02;
}

.intro span,
.chart-head span {
  display: block;
  color: #c5d3e1;
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.page-title {
  display: grid;
  gap: 10px;
}

.page-title p {
  margin: 0;
  color: #a8bdd2;
  font-size: 12px;
  text-transform: uppercase;
}

.page-title h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.04;
}

.page-title span {
  color: #c5d3e1;
  font-size: 16px;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1.7fr) minmax(320px, 0.9fr) minmax(320px, 0.9fr);
  gap: 28px;
}

.home-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 32px;
  background:
    linear-gradient(120deg, rgba(112, 170, 255, 0.1), transparent 30%),
    linear-gradient(135deg, #222a32 0%, #181e25 55%, #2b2418 100%);
}

.home-hero h2 {
  margin: 22px 0 12px;
  font-size: clamp(34px, 4vw, 48px);
}

.home-hero p {
  color: #c7d7e6;
  line-height: 1.7;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.shortcut-card {
  display: block;
  padding: 24px;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.shortcut-card:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 164, 67, 0.5);
}

.shortcut-card span,
.shortcut-card strong,
.shortcut-card p {
  display: block;
}

.shortcut-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.shortcut-card strong {
  margin-top: 12px;
  font-size: 22px;
}

.shortcut-card p {
  margin: 12px 0 0;
  color: #bdccda;
  line-height: 1.6;
}

.home-decision {
  gap: 18px;
  padding-top: 22px;
}

.home-market-strip {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(220px, 0.85fr) 150px 170px;
  gap: 16px;
  align-items: stretch;
  min-height: 72px;
  padding: 14px;
}

.data-freshness {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.data-freshness.is-live {
  color: var(--green);
  background: var(--green-soft);
}

.data-freshness.is-stale {
  color: var(--red);
  background: var(--red-soft);
}

.data-freshness.is-closed {
  color: var(--blue);
  background: var(--blue-soft);
}

.decision-evidence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.decision-evidence div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.decision-evidence span,
.decision-evidence strong {
  display: block;
}

.decision-evidence span {
  color: var(--muted);
  font-size: 11px;
}

.decision-evidence strong {
  margin-top: 5px;
  font-size: 15px;
}

.home-market-strip .strip-main,
.home-market-strip .strip-status,
.strip-market-mini div {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.home-market-strip .strip-main {
  min-width: 0;
  padding: 12px 14px;
}

.home-market-strip .strip-main > span,
.strip-status span {
  display: block;
  color: #a8bdd2;
  font-size: 12px;
}

.home-market-strip .price-row {
  margin: 4px 0 8px;
}

.home-market-strip .price-row strong {
  font-size: clamp(30px, 2.9vw, 42px);
}

.home-market-strip p {
  margin-bottom: 8px;
  font-size: 13px;
}

.strip-market-mini {
  margin: 0;
  gap: 10px;
}

.strip-market-mini div {
  display: grid;
  align-content: center;
}

.home-market-strip .strip-status {
  display: grid;
  align-content: center;
  padding: 12px 14px;
}

.strip-status strong {
  margin-top: 4px;
  color: #f5f1e8;
  font-size: 18px;
}

.home-decision-main {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(560px, 1.28fr) minmax(280px, 0.68fr);
  gap: 18px;
  align-items: stretch;
}

.home-verdict {
  min-height: 470px;
  justify-content: space-between;
  padding: 28px;
}

.home-verdict h2 {
  max-width: 11ch;
  font-size: clamp(36px, 3.6vw, 50px);
}

.home-verdict p {
  max-width: none;
  margin-bottom: 22px;
}

.home-verdict .score-grid {
  gap: 14px;
}

.home-decision-chart {
  min-height: 470px;
  padding: 18px;
}

.home-decision-chart canvas,
.home-decision-chart .gold-chart-shell {
  height: 342px;
}

.home-signal-rail {
  display: grid;
  gap: 14px;
}

.compact-levels {
  padding: 18px;
}

.compact-levels .level-pair {
  gap: 12px;
  margin-top: 16px;
}

.compact-levels .level {
  min-height: 92px;
  padding: 14px;
}

.latest-news-card,
.home-risk-card {
  padding: 18px;
}

.latest-news-card h2,
.home-risk-card h2 {
  margin: 12px 0 10px;
  font-size: 22px;
  line-height: 1.3;
}

.latest-news-card p,
.home-risk-card p {
  margin: 0;
  color: #c5d3e1;
  line-height: 1.55;
}

.latest-news-card h2,
.latest-news-card p,
.home-risk-card h2,
.home-risk-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.latest-news-card h2,
.home-risk-card h2 {
  -webkit-line-clamp: 2;
}

.latest-news-card p,
.home-risk-card p {
  -webkit-line-clamp: 3;
}

.news-impact-pill {
  min-height: 28px;
  padding: 0 14px;
  background: var(--green-soft);
  color: var(--green);
}

.latest-news-card.negative .news-impact-pill {
  background: var(--red-soft);
  color: var(--red);
}

.latest-news-card.neutral .news-impact-pill {
  background: var(--blue-soft);
  color: var(--blue);
}

.home-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.action-card {
  display: block;
  min-height: 150px;
  padding: 20px;
}

.action-card span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.action-card strong {
  display: block;
  margin: 14px 0 8px;
  color: var(--text);
  font-size: 22px;
}

.action-card p {
  margin: 0;
  color: #b9c9d8;
  line-height: 1.55;
}

.primary-action span {
  background: var(--green-soft);
  color: var(--green);
}

.danger-action span {
  background: var(--red-soft);
  color: var(--red);
}

.blue-action span {
  background: var(--blue-soft);
  color: var(--blue);
}

.market-page-grid,
.analysis-page-grid,
.calendar-page-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(620px, 1.8fr);
  gap: 28px;
  align-items: stretch;
}

.analysis-page-grid {
  grid-template-columns: minmax(620px, 1.7fr) minmax(320px, 0.75fr);
}

.single-page-grid,
.review-page-grid {
  display: grid;
  gap: 28px;
}

.market-chart {
  min-height: 520px;
}

.market-chart canvas,
.market-chart .gold-chart-shell {
  height: 390px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.market-chart canvas:active,
.market-chart .gold-chart-shell:active {
  cursor: grabbing;
}

.calendar-table-panel,
.review-detail {
  padding: 28px;
}

.calendar-table {
  display: grid;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.calendar-table > div {
  display: grid;
  grid-template-columns: 76px minmax(300px, 1fr) 92px 96px 96px 96px 110px;
  gap: 14px;
  align-items: center;
  min-width: 930px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.calendar-table > div:first-child {
  min-height: 38px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 12px;
  text-transform: none;
}

.calendar-table em {
  font-style: normal;
  font-weight: 900;
}

.calendar-table small {
  color: rgba(245, 241, 232, 0.78);
  font-weight: 800;
}

.importance-stars {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.actual-value {
  color: var(--text);
}

.calendar-list-page {
  gap: 18px;
}

.calendar-list-page .calendar-table-panel {
  overflow: hidden;
  padding: 0;
}

.calendar-list-page .section-heading {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.calendar-list-page .calendar-table {
  gap: 0;
  padding-bottom: 0;
}

.calendar-list-page .calendar-table > div {
  grid-template-columns: 126px minmax(390px, 1fr) 88px 94px 94px 94px 106px;
  min-width: 1110px;
  min-height: 68px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 0;
  background: transparent;
}

.calendar-list-page .calendar-table > div:first-child {
  min-height: 54px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(245, 241, 232, 0.62);
  font-size: 14px;
  font-weight: 800;
}

.calendar-list-page .calendar-table > div:last-child {
  border-bottom: 0;
}

.calendar-list-page .calendar-table b,
.calendar-list-page .calendar-table small,
.calendar-list-page .calendar-table em,
.calendar-list-page .importance-stars {
  white-space: nowrap;
}

.calendar-list-page .calendar-table b,
.calendar-list-page .calendar-table strong,
.calendar-list-page .calendar-table small,
.calendar-list-page .calendar-table em {
  font-size: 15px;
}

.calendar-list-page .calendar-table strong {
  line-height: 1.5;
}

.calendar-list-page .calendar-table b {
  font-weight: 900;
}

.calendar-list-page .importance-stars {
  font-size: 15px;
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-list div {
  display: grid;
  grid-template-columns: 90px 1fr 80px;
  gap: 16px;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.review-list time {
  color: var(--muted);
}

.review-editor {
  padding: 28px;
}

.review-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.review-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.review-form label.wide {
  grid-column: 1 / -1;
}

.review-form span {
  color: var(--muted);
  font-size: 12px;
}

.review-form input,
.review-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 12px 14px;
  resize: vertical;
}

.review-preview {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(214, 164, 67, 0.28);
  border-radius: 8px;
  background: rgba(214, 164, 67, 0.08);
}

.review-preview strong {
  font-size: 18px;
}

.review-preview p {
  margin: 0;
  color: #dbe7f2;
  line-height: 1.65;
}

.decision-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(620px, 1.8fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.left-stack {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.price-card,
.levels-card,
.radar-card,
.scenario-card,
.event-card {
  padding: 28px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0 18px;
  min-width: 0;
}

.price-row strong {
  font-family: Arial, sans-serif;
  font-size: clamp(34px, 3.2vw, 44px);
  line-height: 1;
  white-space: nowrap;
}

.price-row span {
  white-space: nowrap;
}

.up {
  color: var(--green);
}

.down {
  color: var(--red);
}

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

.price-card p {
  margin: 0 0 14px;
  color: #bdccda;
}

.range-bar,
.risk-meter div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #2b333d;
}

.range-bar i,
.risk-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.range-bar i {
  background: var(--gold);
}

.market-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 0;
}

.market-mini div {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.market-mini dt {
  color: var(--muted);
  font-size: 12px;
}

.market-mini dd {
  margin: 4px 0 0;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
}

h2,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 26px;
  line-height: 1.15;
}

.level-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 22px;
}

.level {
  min-height: 98px;
  padding: 18px 12px;
  border-radius: 8px;
}

.level span,
.level strong,
.level small {
  display: block;
}

.level span {
  font-size: 14px;
  font-weight: 800;
}

.level strong {
  margin-top: 8px;
  font-family: Arial, sans-serif;
  font-size: 28px;
}

.level small {
  margin-top: 6px;
  color: var(--muted);
}

.support {
  background: var(--green-soft);
  color: var(--green);
}

.resistance {
  background: var(--red-soft);
  color: var(--red);
}

.ai-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 384px;
  padding: 36px 32px 30px;
  background:
    linear-gradient(120deg, rgba(112, 170, 255, 0.1), transparent 30%),
    linear-gradient(135deg, #222a32 0%, #181e25 55%, #2b2418 100%);
}

.signal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 34px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--gold);
  color: #171109;
  font-weight: 900;
}

.ai-card h2 {
  margin: 24px 0 12px;
  font-size: clamp(36px, 5vw, 52px);
}

.ai-card p {
  max-width: 620px;
  margin-bottom: 28px;
  color: #c7d7e6;
  font-size: 16px;
  line-height: 1.7;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.score-box {
  min-height: 76px;
  padding: 16px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.score-box span,
.score-box strong {
  display: block;
}

.score-box span {
  font-size: 14px;
  font-weight: 800;
}

.score-box strong {
  margin-top: 4px;
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 30px;
}

.score-tech {
  border-color: rgba(78, 203, 141, 0.26);
  background: var(--green-soft);
  color: var(--green);
}

.score-news {
  border-color: rgba(214, 164, 67, 0.3);
  background: var(--gold-soft);
  color: var(--gold);
}

.score-risk {
  border-color: rgba(239, 104, 104, 0.28);
  background: var(--red-soft);
  color: var(--red);
}

.ai-prompt {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 28px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11171d;
}

.ai-prompt input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 16px;
  background: transparent;
  color: #dce8f6;
}

.ai-prompt button {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--gold);
  color: #171109;
  font-weight: 800;
}

.ai-answer {
  margin-top: 14px;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  color: #d5e1ee;
  line-height: 1.65;
}

.section-heading {
  margin-bottom: 20px;
}

.radar-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.radar-wrap {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 218px;
}

.radar-wrap svg {
  width: 220px;
  height: 220px;
}

.radar-wrap circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
}

.radar-wrap path {
  fill: rgba(214, 164, 67, 0.18);
  stroke: var(--gold);
  stroke-width: 1.5;
}

.radar-wrap text {
  fill: #b9c8d8;
  font-size: 12px;
}

.risk-meter span {
  display: block;
  margin-bottom: 12px;
  color: #c5d3e1;
  font-size: 14px;
}

.risk-meter i {
  background: var(--red);
}

.lower-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1.7fr) minmax(300px, 0.8fr) minmax(320px, 0.82fr);
  gap: 28px;
  align-items: stretch;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 28px;
}

.report-panel,
.macro-panel,
.technical-panel,
.plan-panel {
  padding: 28px;
}

.feature-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.feature-head p {
  margin: 0 0 8px;
  color: #a8bdd2;
  font-size: 12px;
  text-transform: uppercase;
}

.fresh-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.fresh-tag.green {
  background: var(--green-soft);
  color: var(--green);
}

.report-body {
  display: grid;
  gap: 18px;
}

.report-verdict {
  padding: 18px;
  border: 1px solid rgba(214, 164, 67, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(214, 164, 67, 0.16), transparent),
    rgba(255, 255, 255, 0.03);
}

.report-verdict span,
.report-verdict strong {
  display: block;
}

.report-verdict span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.report-verdict strong {
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.35;
}

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

.report-list li {
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #d4e0ec;
  line-height: 1.55;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.secondary-button,
.news-filter {
  border: 0;
  cursor: pointer;
}

.secondary-button {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  background: #252d36;
  color: #dbe8f5;
  font-weight: 800;
}

.secondary-button:hover,
.news-filter:hover,
.news-filter.active {
  background: var(--gold);
  color: #171109;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.news-filter {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #252d36;
  color: #b9cde2;
  font-size: 12px;
  font-weight: 800;
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.news-item:hover,
.news-item:focus-visible {
  border-color: rgba(214, 164, 67, 0.5);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
  transform: translateY(-1px);
}

.news-item.is-hidden {
  display: none;
}

.news-item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.news-item.positive > span {
  background: var(--green-soft);
  color: var(--green);
}

.news-item.neutral > span {
  background: var(--blue-soft);
  color: var(--blue);
}

.news-item.negative > span {
  background: var(--red-soft);
  color: var(--red);
}

.news-item strong,
.news-item p {
  display: block;
}

.news-item strong {
  margin-bottom: 8px;
}

.news-item p {
  margin: 0;
  color: #bdccda;
  line-height: 1.55;
}

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 12, 0.72);
  backdrop-filter: blur(10px);
}

.news-modal.is-hidden {
  display: none;
}

.news-modal-card {
  position: relative;
  width: min(560px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: #171d24;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.news-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #252d36;
  color: #dbe8f5;
  font-size: 22px;
  line-height: 1;
}

.news-modal-close:hover {
  background: var(--gold);
  color: #171109;
}

.news-modal-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.news-modal.positive .news-modal-badge {
  background: var(--green-soft);
  color: var(--green);
}

.news-modal.neutral .news-modal-badge {
  background: var(--blue-soft);
  color: var(--blue);
}

.news-modal.negative .news-modal-badge {
  background: var(--red-soft);
  color: var(--red);
}

.news-modal h2 {
  margin: 18px 44px 10px 0;
  font-size: 24px;
  line-height: 1.35;
}

.news-modal time,
.news-modal small {
  display: block;
  color: #8fa2b6;
  font-size: 13px;
}

.news-modal p {
  margin: 18px 0;
  color: #d5e2ee;
  line-height: 1.75;
}

.indicator-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.indicator-grid div {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.indicator-grid span,
.indicator-grid strong,
.indicator-grid small {
  display: block;
}

.indicator-grid span {
  color: var(--muted);
  font-size: 13px;
}

.indicator-grid strong {
  margin-top: 12px;
  font-size: 24px;
}

.indicator-grid small {
  margin-top: 10px;
  color: #b9c8d8;
}

.timeframe-table {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.timeframe-table div {
  display: grid;
  grid-template-columns: 60px 110px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.timeframe-table span {
  color: var(--muted);
  font-family: Arial, sans-serif;
}

.timeframe-table small {
  color: #b8c7d6;
}

.plan-list {
  display: grid;
  gap: 14px;
}

.plan-card {
  min-height: 108px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.plan-card.primary {
  border-color: rgba(78, 203, 141, 0.32);
  background: var(--green-soft);
}

.plan-card.danger {
  border-color: rgba(239, 104, 104, 0.32);
  background: var(--red-soft);
}

.plan-card span,
.plan-card strong,
.plan-card p {
  display: block;
}

.plan-card span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.plan-card strong {
  margin-top: 8px;
  font-size: 18px;
}

.plan-card p {
  margin: 8px 0 0;
  color: #c5d3e1;
  line-height: 1.5;
}

.chart-card {
  min-height: 348px;
  padding: 28px;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.period-tabs {
  display: flex;
  gap: 8px;
  height: 34px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.period {
  min-width: 46px;
  flex: 0 0 46px;
  border-radius: 6px;
  background: #252d36;
  color: #a9bfd5;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.trust-footer {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 48px;
  border-top: 1px solid var(--line);
  background: #0d1115;
  color: #a9b7c5;
  font-size: 12px;
  line-height: 1.6;
}

.trust-footer strong {
  color: var(--gold);
}

.news-modal-card small a {
  color: var(--blue);
  font-weight: 800;
}

.period.active,
.period:hover {
  background: var(--gold);
  color: #171109;
  font-weight: 900;
}

canvas {
  display: block;
  width: 100%;
  height: 250px;
  border-radius: 8px;
  background: var(--panel-deep);
}

.gold-chart-shell {
  position: relative;
  width: 100%;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: #10161d;
}

.gold-chart-shell canvas {
  border-radius: 0;
  background: transparent !important;
}

.chart-terminal-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(92px, 1fr));
  gap: 10px;
  margin: -4px 0 14px;
}

.chart-terminal-summary div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.chart-terminal-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.chart-terminal-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.chart-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
  font-weight: 800;
}

.scenario-card,
.event-card {
  min-height: 348px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 28px;
  padding: 16px 0 0 42px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: rgba(255, 255, 255, 0.13);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -41px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: currentColor;
}

.timeline-item b,
.timeline-item span {
  display: block;
}

.timeline-item b {
  color: var(--text);
  font-size: 16px;
}

.timeline-item span {
  margin-top: 8px;
  color: #bccbd9;
  font-size: 14px;
}

.timeline-item.gold {
  color: var(--gold);
}

.timeline-item.green {
  color: var(--green);
}

.timeline-item.red {
  color: var(--red);
}

.event-list {
  display: grid;
  gap: 20px;
}

.event-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 8px;
  background: var(--panel-deep);
}

.event-item time {
  color: #b8ccdf;
  font-family: Arial, sans-serif;
}

.event-item strong,
.event-item span {
  display: block;
}

.event-item strong {
  margin-bottom: 8px;
}

.event-item span {
  font-size: 13px;
  font-weight: 800;
}

.review-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 22px 28px;
}

.review-strip h2 {
  font-size: 22px;
}

.review-strip strong {
  color: #dde8f3;
  line-height: 1.5;
}

.review-strip span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 1160px) {
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 18px 24px;
  }

  .search-box,
  .nav-links {
    grid-column: 1 / -1;
  }

  .nav-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .decision-grid,
  .lower-grid,
  .feature-grid,
  .home-grid,
  .market-page-grid,
  .analysis-page-grid,
  .calendar-page-grid,
  .shortcut-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ai-card,
  .chart-card,
  .report-panel,
  .home-hero,
  .market-chart {
    grid-column: 1 / -1;
  }

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

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr;
    position: static;
  }

  .search-box {
    width: 100%;
    max-width: 100%;
  }

  .nav-links {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
  }

  .report-button {
    width: 100%;
  }

  main {
    width: 320px;
    max-width: calc(100vw - 48px);
    margin-right: auto;
    margin-left: auto;
    padding-top: 22px;
  }

  .decision-grid,
  .lower-grid,
  .feature-grid,
  .home-grid,
  .market-page-grid,
  .analysis-page-grid,
  .calendar-page-grid,
  .shortcut-grid,
  .score-grid,
  .indicator-grid,
  .level-pair,
  .review-strip {
    grid-template-columns: 1fr;
  }

  .ai-card,
  .chart-card {
    grid-column: auto;
  }

  .ai-card h2 {
    font-size: 30px;
    overflow-wrap: anywhere;
  }

  .intro h1 {
    font-size: 31px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .intro span {
    max-width: 28ch;
    word-break: break-all;
    white-space: normal;
  }

  .ai-prompt {
    grid-template-columns: 1fr;
  }

  .price-card,
  .levels-card,
  .radar-card,
  .scenario-card,
  .event-card,
  .chart-card,
  .ai-card,
  .home-hero,
  .shortcut-card,
  .report-panel,
  .macro-panel,
  .technical-panel,
  .plan-panel,
  .calendar-table-panel,
  .review-detail {
    padding: 24px;
  }

  .page-title h1,
  .home-hero h2 {
    font-size: 31px;
  }

  .page-title span {
    line-height: 1.65;
  }

  .review-list div {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
  }

  .review-form {
    grid-template-columns: 1fr;
  }

  .feature-head,
  .chart-head {
    display: grid;
  }

  .filter-row {
    justify-content: flex-start;
  }

  .news-item {
    grid-template-columns: 1fr;
  }

  .timeframe-table div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 14px;
  }

  .market-mini {
    grid-template-columns: 1fr;
  }

  .period-tabs {
    width: 100%;
  }

  .period {
    flex: 0 0 46px;
  }

  .price-row {
    flex-wrap: wrap;
  }

  .price-row strong {
    font-size: 38px;
  }

  canvas {
    height: 230px;
  }

  .gold-chart-shell {
    height: 280px;
    min-height: 280px;
  }

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

  .decision-evidence {
    grid-template-columns: 1fr;
  }

  .trust-footer {
    grid-template-columns: 1fr;
    padding: 20px 24px;
  }
}

@media (max-width: 1160px) {
  .home-market-strip,
  .home-decision-main,
  .home-action-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-decision-chart {
    grid-column: 1 / -1;
  }

  .home-signal-rail {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-market-strip,
  .home-decision-main,
  .home-signal-rail,
  .home-action-grid {
    grid-template-columns: 1fr;
  }

  .home-decision {
    gap: 16px;
  }

  .home-market-strip {
    padding: 12px;
  }

  .home-verdict {
    min-height: auto;
  }

  .home-verdict h2 {
    max-width: none;
    font-size: 34px;
  }

  .home-decision-chart canvas {
    height: 280px;
  }

  .action-card {
    min-height: 0;
  }
}

.price-card.home-market-strip {
  padding: 14px;
}

.price-card.home-market-strip .strip-market-mini {
  margin: 0;
}

.price-card.home-market-strip .strip-market-mini div {
  padding: 12px 14px;
}

.home-decision-chart .chart-head span {
  display: none;
}

.home-decision-chart .chart-head {
  align-items: flex-start;
}

.home-decision-main {
  align-items: start;
}

@media (max-width: 760px) {
  .price-card.home-market-strip {
    padding: 12px;
  }
}
