.topic-noc {
  --tn-border: #e5e7eb;
  --tn-text: #111827;
  --tn-muted: #667085;
  --tn-bg: #ffffff;
  --tn-soft: #f7f8fa;
  --tn-accent: #111827;
  max-width: 760px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid var(--tn-border);
  border-radius: 18px;
  background: var(--tn-bg);
  box-shadow: 0 10px 35px rgba(17, 24, 39, .06);
  color: var(--tn-text);
  font-family: inherit;
}

.topic-noc * { box-sizing: border-box; }
.topic-noc__header { margin-bottom: 24px; }
.topic-noc__eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--tn-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.topic-noc__header h2 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 36px); line-height: 1.15; }
.topic-noc__header p { margin: 0; color: var(--tn-muted); line-height: 1.65; }
.topic-noc__field { margin-bottom: 18px; }
.topic-noc__field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 700; }
.topic-noc__field input,
.topic-noc__field textarea {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  color: var(--tn-text);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.topic-noc__field input { min-height: 50px; padding: 0 14px; }
.topic-noc__field textarea { min-height: 155px; padding: 12px 14px; resize: vertical; }
.topic-noc__field input:focus,
.topic-noc__field textarea:focus { border-color: #667085; box-shadow: 0 0 0 4px rgba(102, 112, 133, .12); }
.topic-noc__field small { display: block; margin-top: 7px; color: var(--tn-muted); font-size: 12px; line-height: 1.5; }
.topic-noc__submit {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  background: var(--tn-accent);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
}
.topic-noc__submit:hover { opacity: .9; transform: translateY(-1px); }
.topic-noc__submit:disabled { opacity: .6; cursor: wait; transform: none; }
.topic-noc__status { min-height: 22px; margin-top: 12px; color: var(--tn-muted); font-size: 13px; }
.topic-noc__results { display: grid; gap: 12px; margin-top: 18px; }
.topic-noc__result {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--tn-border);
  border-radius: 14px;
  background: #fff;
}
.topic-noc__rank {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tn-text);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.topic-noc__result-topline { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.topic-noc__code, .topic-noc__teer {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--tn-soft);
  font-size: 12px;
  font-weight: 700;
}
.topic-noc__result h3 { margin: 8px 0 14px; font-size: 18px; line-height: 1.35; }
.topic-noc__match-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--tn-muted); }
.topic-noc__match-row strong { color: var(--tn-text); }
.topic-noc__meter { height: 7px; margin: 6px 0 12px; overflow: hidden; border-radius: 99px; background: #eef0f2; }
.topic-noc__meter span { display: block; height: 100%; border-radius: inherit; background: var(--tn-text); }
.topic-noc__official { display: inline-block; color: var(--tn-text); font-size: 13px; font-weight: 700; text-decoration: none; }
.topic-noc__official:hover { text-decoration: underline; }
.topic-noc__disclaimer {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--tn-soft);
  color: var(--tn-muted);
  font-size: 12px;
  line-height: 1.6;
}
.topic-noc__disclaimer strong { color: var(--tn-text); }
.topic-noc.is-loading .topic-noc__submit { cursor: wait; }

@media (max-width: 600px) {
  .topic-noc { padding: 20px; border-radius: 14px; }
  .topic-noc__result { grid-template-columns: 28px 1fr; padding: 15px; }
  .topic-noc__rank { width: 27px; height: 27px; }
}
.topic-noc__summary {
  margin: -4px 0 13px;
  color: var(--tn-muted);
  font-size: 12.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
