/* NIORA Radar dashboard (on top of human.css: header, colors, theme, grid background) */
.app-page .nav-on { color: var(--green); }
.radar { padding-top: 124px; padding-bottom: 60px; }

/* ---- head ---- */
.radar-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.radar-title { margin-top: 14px; font-size: clamp(34px, 3.4vw, 60px); font-weight: 900; letter-spacing: -0.045em; line-height: 1.04; }
.radar-title span { color: var(--green); }
.radar-lead { margin-top: 18px; max-width: 760px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.radar-lead b { color: var(--green); font-family: var(--mono); font-size: .9em; }
.radar-meta { text-align: right; font-family: var(--mono); font-size: 13.5px; display: grid; gap: 8px; }
.meta-row { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.meta-row.dim { color: var(--dim); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; animation: pulse 2s ease-in-out infinite; }
.pulse.off { background: #ef4444; box-shadow: 0 0 10px #ef4444; }

/* ---- KPIs ---- */
.kpis { margin-top: 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 18px 20px; }
.kpi small { display: block; color: var(--muted); font-size: 13.5px; }
.kpi b { display: block; margin-top: 8px; font-family: var(--mono); font-size: 28px; font-weight: 800; }

/* ---- controls ---- */
.controls { margin-top: 28px; display: grid; gap: 14px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button {
  height: 38px; padding: 0 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  font: 600 14px var(--sans);
}
.tabs button:hover { color: var(--white); }
.tabs button.on { background: var(--green); border-color: transparent; color: #022014; }
.tabs button .n { margin-left: 6px; font-family: var(--mono); font-size: 12px; opacity: .75; }
.control-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.search {
  flex: 1; min-width: 240px; height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  border: 1px solid var(--line); background: var(--panel); border-radius: 10px; color: var(--muted);
}
.search:focus-within { border-color: rgba(var(--green-rgb), .5); }
.search .ic { width: 18px; height: 18px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--white); font: 15px var(--sans); }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 40px; height: 22px; border-radius: 999px; background: rgba(127, 127, 127, .3); position: relative; transition: background .2s; }
.switch .track span { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track span { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--green); outline-offset: 2px; }
#sort { height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--white); font: 600 14px var(--sans); }

/* ---- layout ---- */
.radar-grid { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.feed { display: grid; gap: 12px; }
.empty { border: 1px dashed var(--line); border-radius: 14px; padding: 40px 20px; text-align: center; color: var(--dim); font-size: 15px; }
.empty.sm { padding: 16px; font-size: 13.5px; }

/* ---- signal card ---- */
.sig {
  display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 16px;
  border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 16px 18px;
  transition: border-color .2s, transform .2s;
}
.sig:hover { border-color: rgba(var(--green-rgb), .4); }
.score {
  width: 58px; height: 58px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 21px; font-weight: 800;
}
.score.s-hi { background: rgba(var(--green-rgb), .16); color: var(--green); box-shadow: inset 0 0 0 1px rgba(var(--green-rgb), .35); }
.score.s-mid { background: rgba(250, 204, 21, .12); color: #d6a106; box-shadow: inset 0 0 0 1px rgba(250, 204, 21, .3); }
.score.s-lo { background: rgba(127, 127, 127, .1); color: var(--dim); box-shadow: inset 0 0 0 1px var(--line); }
.sig-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--dim); }
.kind { font-family: var(--mono); font-weight: 800; letter-spacing: .08em; font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: rgba(127, 127, 127, .12); color: var(--muted); }
.kind.k-chain { background: rgba(var(--green-rgb), .14); color: var(--green); }
.kind.k-listing { background: rgba(59, 130, 246, .13); color: #3b82f6; }
.kind.k-governance { background: rgba(168, 85, 247, .13); color: #a855f7; }
.kind.k-funding { background: rgba(245, 158, 11, .14); color: #d97706; }
.sig h4 { margin-top: 8px; font-size: 16.5px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.sig h4 a:hover { color: var(--green); }
.sig .det { margin-top: 5px; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.flags { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.flag { font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 3px 8px; border-radius: 5px; background: rgba(127, 127, 127, .1); color: var(--muted); }
.flag.f-early { background: rgba(var(--green-rgb), .16); color: var(--green); }
.flag.f-sat { background: rgba(239, 68, 68, .1); color: #ef4444; }
.flag.f-live { background: rgba(34, 197, 94, .14); color: #16a34a; }
.chainline { margin-top: 10px; display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.chainline b { color: var(--white); }
.media-note { margin-top: 8px; font-size: 12.5px; color: var(--dim); }
.media-note a { text-decoration: underline; }

/* ---- side ---- */
.side { display: grid; gap: 14px; position: sticky; top: 100px; }
.side-card { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 18px; }
.side-card h3 { font-size: 16px; font-weight: 800; }
.side-sub { margin-top: 4px; font-size: 13px; color: var(--dim); }
#chains { margin-top: 12px; display: grid; gap: 8px; }
.chainrow { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; }
.chainrow i { width: 8px; height: 8px; border-radius: 50%; background: rgba(127, 127, 127, .5); }
.chainrow i.on { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.chainrow i.is-bad { background: #ef4444; }
.chainrow a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.chainrow a:hover { color: var(--green); }
.chainrow span { font-family: var(--mono); font-size: 12px; color: var(--dim); white-space: nowrap; }
.legend { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.legend b { color: var(--white); font-family: var(--mono); font-size: .92em; }
.sources { margin-top: 10px; display: grid; gap: 6px; }
.srow { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.srow span:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; }
.srow em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--dim); white-space: nowrap; }
.srow i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #22c55e; }
.srow.is-bad i { background: #ef4444; }
.srow.is-bad em { color: #ef4444; }

/* ---- premium footer (app/footer.js) ---- */
.rfoot { position: relative; margin-top: 70px; border-top: 1px solid var(--line); padding-top: 64px; overflow: hidden; }
.rf-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 44px 48px; border-radius: 22px;
  border: 1px solid rgba(var(--green-rgb), .28);
  background: linear-gradient(135deg, rgba(var(--green-rgb), .11), rgba(var(--green-rgb), .02) 55%, transparent);
}
.rf-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(var(--green-rgb), .09) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--green-rgb), .09) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 85% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 85% 50%, #000, transparent 75%);
}
.rf-cta-glow { position: absolute; z-index: -1; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--green-rgb), .22), transparent 65%); filter: blur(10px); }
.rf-kicker { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12.5px; font-weight: 800; letter-spacing: .16em; color: var(--green); }
.rf-cta h3 { margin-top: 14px; max-width: 640px; font-size: clamp(26px, 2.4vw, 40px); font-weight: 900; letter-spacing: -.035em; line-height: 1.1; }
.rf-cta h3 span { color: var(--green); }
.rf-cta p { margin-top: 12px; max-width: 560px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.rf-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.rf-btn { height: 52px; padding: 0 22px; border-radius: 12px; display: inline-flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 700; transition: box-shadow .2s, border-color .2s, transform .2s; }
.rf-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rf-btn:hover { transform: translateY(-1px); }
.rf-btn-solid { background: #0fed9c; color: #022014; }
.rf-btn-solid:hover { box-shadow: 0 0 30px rgba(15, 237, 156, .45); }
.rf-btn-ghost { border: 1px solid var(--line); background: var(--panel); color: var(--white); }
.rf-btn-ghost:hover { border-color: rgba(var(--green-rgb), .45); }

.rf-grid { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.rf-logo { display: inline-flex; align-items: center; gap: 12px; }
.rf-logo strong { display: block; font-size: 20px; font-weight: 800; line-height: 1; }
.rf-logo small { display: block; margin-top: 5px; font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; color: var(--green); }
.rf-mark { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: #070d0b; border: 1px solid rgba(var(--green-rgb), .45); box-shadow: 0 0 20px rgba(var(--green-rgb), .15); }
.rf-mark img { width: 22px; height: auto; }
.rf-brand p { margin-top: 22px; max-width: 360px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.rf-status { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.rf-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; animation: pulse 2s ease-in-out infinite; flex: none; }
.rf-status.off .rf-dot { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.rf-col { display: flex; flex-direction: column; gap: 14px; }
.rf-col h5 { font-family: var(--mono); font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.rf-col a { width: fit-content; font-size: 15.5px; color: var(--muted); transition: color .2s; }
.rf-col a:hover { color: var(--green); }

.rf-word {
  margin-top: 56px; text-align: center; user-select: none; pointer-events: none;
  font-size: clamp(90px, 19vw, 300px); font-weight: 900; letter-spacing: .02em; line-height: .78;
  color: transparent; -webkit-text-stroke: 1px rgba(var(--green-rgb), .22);
  background: linear-gradient(180deg, rgba(var(--green-rgb), .16), transparent 85%); -webkit-background-clip: text; background-clip: text;
}
.rf-bottom { position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 34px; border-top: 1px solid var(--line); font-size: 14px; color: var(--dim); }
.rf-chain { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12.5px; }
html[data-theme="light"] .rf-btn-solid { box-shadow: 0 6px 20px rgba(0, 163, 106, .25); }
html[data-theme="light"] .rf-word { -webkit-text-stroke-color: rgba(0, 163, 106, .25); }

@media (max-width: 900px) {
  .rf-grid { grid-template-columns: 1fr 1fr; }
  .rf-brand { grid-column: 1 / -1; }
  .rf-cta { padding: 32px 26px; }
}
@media (max-width: 520px) {
  .rf-grid { grid-template-columns: 1fr; }
  .rf-btn { width: 100%; justify-content: center; }
}

/* ---- in-site links on cards ---- */
.sig { cursor: pointer; }
.sig h4 a { color: inherit; }
.sig .open { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--green); opacity: 0; transition: opacity .2s; }
.sig:hover .open, .sig:focus-within .open { opacity: 1; }

@media (max-width: 1100px) {
  .radar-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .radar { padding-top: 96px; }
  .radar-meta { text-align: left; }
  .meta-row { justify-content: flex-start; }
  .sig { grid-template-columns: 46px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .score { width: 46px; height: 46px; font-size: 17px; }
  .kpi b { font-size: 22px; }
  .control-row { align-items: stretch; }
  .search { min-width: 100%; }
}

/* ---- comments (app/comments.js): The Floor and signal threads ---- */
.cm { display: grid; gap: 14px; }
.cm-form { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(127, 127, 127, .04); }
.cm-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cm-name, .cm-text {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--white);
  font: 15px var(--sans); padding: 10px 12px; outline: 0;
}
.cm-name { max-width: 240px; height: 42px; }
.cm-text { resize: vertical; min-height: 84px; line-height: 1.5; }
.cm-name:focus, .cm-text:focus { border-color: rgba(var(--green-rgb), .5); }
.cm-count { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.cm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cm-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cm-actions .rf-btn { height: 42px; border: 0; cursor: pointer; font-family: var(--sans); }
.cm-actions .rf-btn:disabled { opacity: .6; cursor: wait; }
.cm-msg { font-size: 13px; color: var(--dim); }
.cm-msg.ok { color: #16a34a; }
.cm-msg.bad { color: #ef4444; }
.cm-head { font-size: 14px; }
.cm-list { display: grid; }
.cm-item { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cm-item:last-child { border-bottom: 0; }
.cm-av {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font: 800 12px var(--mono); color: #fff; background: hsl(var(--h, 150), 55%, 38%);
}
.cm-meta { display: flex; gap: 10px; align-items: baseline; font-size: 14px; }
.cm-meta span { font-size: 12px; color: var(--dim); }
.cm-body p { margin-top: 4px; font-size: 14.5px; line-height: 1.55; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
