:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --surface-strong: #eef3f1;
  --ink: #101816;
  --muted: #60706b;
  --line: #d9e2df;
  --green: #12634f;
  --green-dark: #0d3e34;
  --blue: #1d5c8f;
  --amber: #b56d26;
  --red: #b04444;
  --shadow: 0 18px 48px rgba(14, 32, 27, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Noto Sans KR", Arial, sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(217, 226, 223, 0.9);
  background: rgba(245, 247, 246, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--green-dark);
  color: #fff;
  font-weight: 900;
}

.brand-text {
  display: grid;
  gap: 3px;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav a {
  padding: 10px 12px;
  border-radius: 6px;
}

.nav-private {
  display: none;
}

.nav-subscribe {
  display: inline-flex;
}

.nav-auth {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
}

.nav-signup {
  background: var(--green-dark);
  color: #fff;
}

.nav-login {
  background: var(--surface);
  color: var(--green-dark);
}

body.is-logged-in .nav-private {
  display: inline-flex;
}

body.is-logged-in .nav-subscribe {
  display: inline-flex;
}

body.is-logged-in .nav-auth {
  display: none;
}

.nav a:hover {
  background: var(--surface-strong);
  color: var(--green);
}

.nav-signup:hover {
  border-color: var(--green);
  background: var(--green-dark);
  color: #fff;
  opacity: 0.92;
}

.nav-login:hover {
  border-color: var(--green);
}

.nav a[aria-current="page"] {
  background: var(--green-dark);
  color: #fff;
}

main {
  padding: 0 clamp(20px, 5vw, 72px) 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 54px 0 42px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

.hero-text,
.section-heading p,
.feature p,
.plan p,
.community p,
.notice p,
.cta-band p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 720px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--green);
  border-radius: 7px;
  font-weight: 900;
}

.button.primary {
  background: var(--green);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--green);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin: 34px 0 0;
}

.trust-list div {
  min-height: 86px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.trust-list dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.trust-list dd {
  margin: 0;
  font-weight: 900;
}

.terminal-panel,
.feature,
.workflow-grid article,
.performance-grid article,
.algorithm-table,
.plan,
.notice,
.cta-band,
.timeline {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.terminal-panel {
  min-width: 0;
  padding: 18px;
}

.panel-topbar,
.chart-header,
.table-row,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-topbar {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.panel-topbar strong {
  color: var(--ink);
  text-align: right;
}

.market-tape {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.market-tape article,
.chart-card,
.signal-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.market-tape article {
  min-height: 118px;
  padding: 18px;
}

.market-tape span,
.market-tape em {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.market-tape strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 28px;
}

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

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

.chart-card {
  margin-top: 12px;
  padding: 18px;
}

.chart-header span {
  color: var(--muted);
  font-weight: 800;
}

.chart-header strong {
  color: var(--green);
}

.chart-lines {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  height: 190px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.chart-lines span {
  display: block;
  min-height: 22px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #2c7f69 0%, #95c7b6 100%);
}

.signal-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.signal-list div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
}

.dot.green {
  background: var(--green);
}

.dot.amber {
  background: var(--amber);
}

.dot.blue {
  background: var(--blue);
}

.section {
  padding: 58px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.feature-grid,
.plan-grid,
.workflow-grid,
.performance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.feature,
.plan {
  min-height: 210px;
  padding: 22px;
}

.workflow-grid article,
.performance-grid article {
  min-height: 190px;
  padding: 22px;
}

.feature span,
.workflow-grid span,
.performance-grid span {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
}

.workflow-grid strong,
.performance-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 19px;
}

.workflow-grid p,
.performance-grid small {
  color: var(--muted);
  line-height: 1.7;
}

.performance-grid p {
  margin-bottom: 8px;
  font-size: 26px;
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1.22fr);
  gap: 28px;
  align-items: start;
}

.algorithm-table {
  overflow: hidden;
  box-shadow: none;
}

.table-row {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr 0.8fr;
  min-height: 58px;
  padding: 0 18px;
  border-top: 1px solid var(--line);
}

.table-row:first-child {
  border-top: 0;
}

.table-row span {
  align-self: center;
  min-width: 0;
}

.table-row.head {
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.plan strong {
  display: block;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 24px;
}

.plan ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  list-style: none;
}

.plan li {
  position: relative;
  padding-left: 18px;
}

.plan li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "-";
  font-weight: 900;
}

.plan.featured {
  border-color: rgba(18, 99, 79, 0.5);
  background: #f8fbfa;
}

.community {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 24px;
  align-items: start;
}

.notice {
  padding: 22px;
  box-shadow: none;
}

.notice strong {
  display: block;
  margin-bottom: 10px;
}

.site-footer {
  padding: 24px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a:hover {
  color: var(--green);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
}

.cta-band h2 {
  max-width: 820px;
}

.cta-band p {
  max-width: 760px;
  margin-bottom: 0;
}

.cta-band .button {
  flex: 0 0 auto;
}

.timeline {
  padding: 28px;
}

.timeline ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.timeline strong,
.timeline span {
  display: block;
}

.timeline strong {
  margin-bottom: 10px;
}

.timeline span {
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .community {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .site-header,
  .nav,
  .panel-topbar,
  .site-footer {
    display: block;
  }

  .nav {
    margin-top: 12px;
  }

  .nav a {
    display: inline-flex;
    margin: 0 4px 6px 0;
  }

  .trust-list,
  .feature-grid,
  .workflow-grid,
  .performance-grid,
  .plan-grid,
  .market-tape {
    grid-template-columns: 1fr;
  }

  .terminal-panel {
    padding: 14px;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 18px;
  }

  .table-row.head {
    display: none;
  }
}

@media (max-width: 520px) {
  main {
    padding-inline: 16px;
  }

  h1 {
    font-size: 36px;
  }

  .hero {
    padding-top: 36px;
  }

  .button {
    width: 100%;
  }
}

.page-hero {
  max-width: 980px;
  padding: 72px 0 36px;
}

.page-hero h1 {
  max-width: 940px;
  margin-bottom: 18px;
  font-size: clamp(38px, 5vw, 64px);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.market-hero {
  max-width: 980px;
  padding: 48px 0 10px;
}

.market-hero h1 {
  max-width: 980px;
  margin-bottom: 0;
  font-size: clamp(38px, 5vw, 64px);
}

.market-hero p:not(.eyebrow),
.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.brief-status,
.brief-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brief-status {
  padding: 22px;
}

.brief-status span,
.brief-status p,
.source-count {
  color: var(--muted);
}

.brief-status span,
.source-count {
  font-size: 13px;
  font-weight: 900;
}

.brief-status strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 24px;
}

.brief-status p {
  margin-bottom: 0;
  line-height: 1.65;
}

.market-layout {
  display: block;
}

.brief-main,
.issue-columns {
  display: grid;
  gap: 16px;
}

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

.brief-card {
  padding: 22px;
}

.brief-card-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.brief-card h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 2.4vw, 34px);
}

.lead {
  max-width: 900px;
}

.research-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(336px, 0.34fr);
  gap: 28px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.research-note h3 {
  margin-bottom: 18px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.research-note p {
  color: var(--muted);
  line-height: 1.75;
}

.research-note.insight-detail-note {
  grid-template-columns: 1fr;
}

.insight-detail-note .research-body {
  max-width: 1040px;
}

.ad-slot {
  display: grid;
  width: 336px;
  height: 280px;
  min-height: 280px;
  align-content: end;
  justify-items: start;
  justify-self: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(15, 48, 41, 0.84)),
    linear-gradient(135deg, #dbe8e2 0%, #f6f1e6 48%, #d4e2dc 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.ad-slot::before {
  content: "";
  position: absolute;
  inset: 16px 16px auto auto;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.42) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(255, 255, 255, 0.42) 50%, transparent 51%);
  opacity: 0.8;
}

.ad-slot span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ad-slot strong {
  display: block;
  max-width: 235px;
  margin-bottom: 12px;
  color: #fff;
  font-size: 29px;
  line-height: 1.12;
}

.ad-slot p {
  max-width: 270px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.55;
}

.ad-slot a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  background: #fff;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.ad-slot a:hover {
  background: #eef6f2;
}

.issue-list,
.check-list {
  margin: 0;
}

.issue-list span,
.check-list li,
.impact-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.issue-list,
.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.issue-list li {
  display: grid;
  gap: 5px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.issue-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.issue-list strong {
  font-size: 16px;
}

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

.issue-link-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.issue-link-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.issue-link-list strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.issue-link-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.issue-link-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.issue-link-list a:hover {
  border-color: var(--green);
  background: #f8fbfa;
}

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

.impact-grid article {
  min-height: 160px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.impact-grid strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 18px;
}

.impact {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 900;
}

.impact.positive {
  color: var(--green);
  background: #dcece7;
}

.impact.neutral {
  color: var(--blue);
  background: #dde9f3;
}

.impact.risk {
  color: var(--red);
  background: #f3dddd;
}

.check-list li {
  position: relative;
  padding-left: 18px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "-";
  font-weight: 900;
}

.history-section {
  padding-top: 34px;
}

.history-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.history-toolbar button,
.history-toolbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
}

.history-toolbar button[aria-pressed="true"] {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #fff;
}

.history-toolbar a {
  border-color: var(--green);
  color: var(--green);
}

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

.history-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.history-card.briefing-card {
  grid-template-columns: 150px minmax(0, 1fr);
}

.history-card:hover {
  border-color: rgba(18, 99, 79, 0.55);
  transform: translateY(-1px);
}

.history-card.current {
  border-color: rgba(18, 99, 79, 0.5);
  background: #f8fbfa;
}

.history-date span,
.history-date strong,
.history-date em {
  display: block;
}

.history-date span {
  color: var(--green-dark);
  font-size: 20px;
  font-weight: 900;
}

.history-card.briefing-card .history-date {
  display: grid;
  min-height: 100%;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.history-date strong {
  margin: 8px 0;
  font-size: 18px;
}

.history-date em {
  color: var(--amber);
  font-style: normal;
  font-weight: 900;
}

.history-content h3 {
  margin-bottom: 8px;
}

.history-content p {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.history-meta,
.history-impact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-meta span {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.history-impact {
  justify-content: flex-end;
}

.detail-hero {
  max-width: 980px;
  padding: 54px 0 12px;
}

.detail-hero h1 {
  margin-bottom: 0;
  font-size: clamp(38px, 5vw, 64px);
}

.detail-date {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
}

.detail-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  gap: 16px;
  align-items: start;
}

.detail-summary {
  min-height: 260px;
}

.detail-tags {
  justify-content: flex-start;
}

.archive-preview {
  padding-top: 34px;
}

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

.archive-grid a {
  display: grid;
  gap: 8px;
  min-height: 108px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.archive-grid a:hover {
  border-color: rgba(18, 99, 79, 0.55);
}

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

.archive-grid strong {
  font-size: 20px;
}

.archive-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.archive-grid.compact a {
  min-height: 84px;
  box-shadow: none;
}

.history-browser {
  display: grid;
  grid-template-columns: minmax(280px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.history-filters {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}

.history-filters label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.history-filters input,
.history-filters select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.history-results {
  display: grid;
  gap: 16px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 70px;
}

.pagination a {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 900;
}

.pagination a.active {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #fff;
}

.pagination a.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.history-search {
  display: grid;
  grid-template-columns: minmax(180px, 0.24fr) minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.history-search label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.history-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.empty-state {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
  font-weight: 900;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 0.45fr);
  gap: 34px;
  align-items: start;
  min-height: calc(100vh - 220px);
  padding: 74px 0;
}

.auth-copy {
  max-width: 720px;
}

.auth-copy h1 {
  margin-bottom: 14px;
  font-size: clamp(42px, 5vw, 68px);
}

.auth-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.auth-panel {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.check-field {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  color: var(--muted);
  line-height: 1.5;
}

.check-field input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.auth-switch {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.auth-switch a {
  color: var(--green);
  font-weight: 900;
}

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

.metric-card,
.insight-list article,
.report-card,
.board-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 144px;
  padding: 22px;
}

.metric-card span,
.metric-card em {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.metric-card strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 28px;
}

.insight-list,
.report-stack,
.board-list {
  display: grid;
  gap: 14px;
}

.insight-list article {
  padding: 22px;
  box-shadow: none;
}

.insight-list strong {
  display: block;
  margin-bottom: 8px;
}

.insight-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.algorithm-table.wide .table-row,
.table-row.five {
  grid-template-columns: 1.35fr 0.72fr 0.72fr 0.72fr 0.8fr;
}

.report-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
}

.report-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.report-card a,
.report-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
}

.report-card.locked {
  background: #fbfcfc;
}

.report-card.locked button {
  color: var(--muted);
}

.tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 900;
}

.tag.free {
  color: var(--green);
  background: #dcece7;
}

.tag.paid {
  color: #7a4616;
  background: #f6e3cc;
}

.board-list article {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: center;
  min-height: 74px;
  padding: 18px 20px;
  box-shadow: none;
}

.board-list span {
  color: var(--amber);
  font-weight: 900;
}

.board-list strong {
  min-width: 0;
}

.board-list em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-hero,
  .research-note,
  .issue-columns,
  .history-card,
  .detail-layout,
  .history-browser,
  .auth-page {
    grid-template-columns: 1fr;
  }

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

  .history-filters {
    position: static;
  }

  .ad-slot {
    justify-self: center;
  }

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

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

  .algorithm-table.wide .table-row,
  .table-row.five,
  .board-list article {
    grid-template-columns: 1fr;
  }

  .board-list em {
    text-align: left;
  }

  .cta-band {
    display: block;
  }

  .cta-band .button {
    margin-top: 20px;
  }

  .timeline ol {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .report-card {
    display: block;
  }

  .report-card a,
  .report-card button {
    margin-top: 16px;
  }

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

  .ad-slot {
    width: 300px;
    height: 250px;
    min-height: 250px;
  }

  .brief-card-header {
    display: block;
  }

  .issue-link-list article {
    grid-template-columns: 1fr;
  }

  .issue-link-list a {
    width: max-content;
  }

  .source-count {
    display: block;
    margin-top: 8px;
    text-align: left;
  }

  .history-impact {
    justify-content: flex-start;
  }

  .archive-grid,
  .archive-grid.compact {
    grid-template-columns: 1fr;
  }

  .history-search {
    grid-template-columns: 1fr;
  }
}
