.newma-research-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.newma-research-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 28px;
  border: 1px solid var(--nm-line);
  border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--nm-panel-strong) 86%, transparent), color-mix(in srgb, var(--nm-surface) 72%, transparent));
  box-shadow: var(--nm-shadow);
}

.newma-research-kicker {
  color: var(--nm-accent-hover);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.newma-research-hero h1 {
  margin: 10px 0 8px;
  color: var(--nm-ink);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
}

.newma-research-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--nm-muted);
  font-size: 13px;
  line-height: 1.75;
}

.newma-research-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--nm-muted);
  font-size: 11px;
  white-space: nowrap;
}

.newma-research-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nm-green);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--nm-green) 12%, transparent);
}

.newma-research-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0 14px;
}

.newma-research-filter,
.newma-research-button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--nm-line);
  border-radius: 10px;
  background: var(--nm-panel);
  color: var(--nm-muted);
  cursor: pointer;
}

.newma-research-filter:hover,
.newma-research-filter[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--nm-accent) 55%, var(--nm-line));
  background: var(--nm-panel-strong);
  color: var(--nm-accent-hover);
}

.newma-research-button {
  border-color: var(--nm-accent-hover);
  background: var(--nm-accent-hover);
  color: #fff8ea;
  font-weight: 700;
}

.newma-research-button.secondary {
  border-color: var(--nm-line);
  background: transparent;
  color: var(--nm-ink);
}

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

.newma-research-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--nm-line);
  border-radius: 16px;
  background: var(--nm-panel);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--nm-ink) 4%, transparent);
}

.newma-research-card h2,
.newma-research-card h3 {
  margin: 0;
  color: var(--nm-ink);
  font-size: 15px;
  line-height: 1.55;
}

.newma-research-card p {
  margin: 8px 0 0;
  color: var(--nm-muted);
  font-size: 12px;
  line-height: 1.7;
}

.newma-research-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--nm-faint);
  font-size: 10px;
}

.newma-research-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.newma-market-table {
  overflow: hidden;
  border: 1px solid var(--nm-line);
  border-radius: 16px;
  background: var(--nm-panel);
}

.newma-market-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 130px 90px;
  gap: 14px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--nm-line);
  color: var(--nm-muted);
  font-size: 12px;
}

.newma-market-row:last-child { border-bottom: 0; }
.newma-market-row strong { color: var(--nm-ink); }
.newma-market-row .up { color: var(--nm-red); font-weight: 700; }
.newma-market-row .down { color: var(--nm-green); font-weight: 700; }

.newma-research-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--nm-line);
  border-radius: 18px;
  background: var(--nm-panel);
}

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

.newma-research-field {
  display: grid;
  gap: 7px;
}

.newma-research-field.full { grid-column: 1 / -1; }
.newma-research-field span { color: var(--nm-muted); font-size: 11px; font-weight: 650; }
.newma-research-field input,
.newma-research-field select,
.newma-research-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--nm-line);
  border-radius: 11px;
  outline: none;
  background: var(--nm-panel-strong);
  color: var(--nm-ink);
}

.newma-research-field textarea { min-height: 104px; resize: vertical; }
.newma-research-field input:focus,
.newma-research-field select:focus,
.newma-research-field textarea:focus { border-color: var(--nm-accent); }

.newma-research-empty {
  padding: 42px 20px;
  border: 1px dashed var(--nm-line-strong);
  border-radius: 16px;
  color: var(--nm-muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.75;
}

.newma-research-empty a { color: var(--nm-accent-hover); font-weight: 700; }

@media (max-width: 760px) {
  .newma-research-page { width: min(100% - 24px, 1180px); padding-top: 20px; }
  .newma-research-hero { grid-template-columns: 1fr; padding: 22px; }
  .newma-research-grid,
  .newma-research-form-grid { grid-template-columns: 1fr; }
  .newma-market-row { grid-template-columns: 70px minmax(0, 1fr) 82px; }
  .newma-market-row > :nth-child(3) { display: none; }
}
