/* ============================================================
   RELIVE — Network Brief
   Same design language as the explorer, editorial layout.
   ============================================================ */

.brief { font-size: 14.5px; }

/* ---------- hero ---------- */
.brief-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 84px) 0 clamp(36px, 4.4vw, 58px);
  border-bottom: 1px solid var(--line);
}
.brief-hero .hero-glow { top: -30%; }
.brief-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(30px, 5vw, 68px);
  align-items: end;
}

.brief-copy .eyebrow { margin-bottom: 20px; }
.brief h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.brief h1 .serif-line { color: #dfe4ea; }
.brief h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #ff9a4d 0%, #ff7a1a 45%, #2e9e4f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brief-copy .lede {
  max-width: 540px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}
.brief-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted-2);
}
.brief-meta b { color: var(--text); font-weight: 500; }
.brief-meta span { margin-left: 8px; }
.brief-meta .brief-updated { margin-left: 0; }
.brief-sep { width: 1px; height: 12px; margin: 0 2px !important; background: var(--line-strong); }

.readout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 16px 22px 12px;
}
.readout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #151c24;
}
.readout-head > span:first-child {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.readout-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid #151c24;
}
.readout-row:last-child { border-bottom: 0; }
.readout-row span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}
.readout-row b {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: #fff;
  transition: color 0.4s ease;
}
.readout-row b.is-fresh { color: var(--green-bright); }

/* ---------- tape ---------- */
.tape-wrap {
  border-bottom: 1px solid var(--line);
  background: #080a0e;
}
.tape {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.tape::-webkit-scrollbar { display: none; }
.tape-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-right: 1px solid #141a21;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}
.tape-item i { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.tape-item b { color: #e8ecf1; font-weight: 500; }
.tape-item em { font-style: normal; color: var(--muted-2); }
.tape-empty { padding: 11px 0; font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); }
.brief .collection-row.skeleton { height: 76px; }

/* ---------- section ---------- */
.brief-section { padding-top: clamp(44px, 5vw, 68px); }
.brief-head { max-width: 640px; margin-bottom: 30px; }
.brief-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.035em;
  font-weight: 600;
  margin-bottom: 12px;
}
.brief-head > p:last-child { color: var(--muted); font-size: 14px; }

/* ---------- totals strip ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  margin-bottom: 16px;
}
.strip-cell {
  padding: 18px 20px;
  border-right: 1px solid #141a21;
  min-width: 0;
}
.strip-cell:last-child { border-right: 0; }
.strip-cell span {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.strip-cell b {
  display: block;
  margin-top: 9px;
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.strip-cell.is-lead b { color: var(--green-bright); }
.strip-cell small {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-7 { grid-column: span 7; }
.col-12 { grid-column: span 12; }
.bento .panel { display: flex; flex-direction: column; }
.bento .panel-head { margin-bottom: 18px; }
.brief .panel h3 { font-size: 16px; }

/* ---------- composition ---------- */
.composition {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  flex: 1;
}
.donut {
  position: relative;
  width: 158px;
  height: 158px;
  border-radius: 50%;
  background: conic-gradient(#1b222b 0 100%);
  display: grid;
  place-items: center;
  transition: background 0.6s ease;
}
.donut::after {
  content: "";
  position: absolute;
  inset: 21px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid #161d25;
}
.donut-core { position: relative; z-index: 1; text-align: center; padding: 0 10px; }
.donut-core b {
  display: block;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.donut-core small {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.brief .type-row { grid-template-columns: 108px minmax(0, 1fr) 62px; padding: 8px 0; border-bottom: 1px dashed #151c24; }
.brief .type-name { font-size: 11.5px; color: var(--muted); }
.brief .type-track { display: block; background: #151c24; }
.brief .type-fill { display: block; }
.brief .type-count { font-size: 11px; }
.brief .type-share { display: none; }
.legend-loading { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); }
.brief .type-list { flex: 1; min-width: 0; }

/* ---------- chart ---------- */
.chart-wrap { flex: 1; display: flex; flex-direction: column; }
#chart { width: 100%; height: 190px; flex: 1; overflow: visible; }
#chart .grid-line { stroke: #151c24; stroke-dasharray: 3 6; }
#chart .dot { fill: #0b0f14; stroke: #ff8b3d; stroke-width: 2; }
.chart-x {
  position: relative;
  height: 14px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}
.chart-x span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}
.chart-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #151c24;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}
.chart-foot span:last-child { color: var(--muted-2); }
.chart-insight {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--muted-2);
}
.chart-insight:empty { display: none; }

/* ---------- validators ---------- */
.health-top {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 12px;
}
.health-top b {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.health-top span { font-family: var(--mono); font-size: 9.5px; color: var(--muted-2); letter-spacing: 0.04em; }
.health-bar {
  height: 5px;
  border-radius: 99px;
  background: #151c24;
  overflow: hidden;
  margin-bottom: 18px;
}
.health-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff7a1a, #ff9440);
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.node-roster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #151c24;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--muted-2);
}
.node-roster span { white-space: nowrap; }
.node-roster .sep { color: #3a424d; }

/* ---------- wallets ---------- */
.brief .windows { margin-top: 2px; }
.brief .window-bar { background: #151c24; }
.brief .window-bar.active i { background: var(--green); }
.brief .window-bar.new i { background: #5b8def; }
.brief .window-meta { color: var(--muted-2); line-height: 1.5; }
.brief .window-meta b { color: #fff; }
.windows-key {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted-2);
}
.windows-key span { display: inline-flex; align-items: center; gap: 6px; }
.windows-key i { width: 8px; height: 3px; border-radius: 99px; }
.windows-key .k-active { background: var(--green); }
.windows-key .k-new { background: #5b8def; }

/* ---------- staking ---------- */
.brief .fee-card { background: #080b0f; border: 1px solid #161d25; }
.brief .fee-card span { color: var(--muted-2); }
.brief .fee-card strong { color: #fff; font-size: 19px; white-space: nowrap; }
.stake-meter {
  height: 6px;
  border-radius: 99px;
  background: #5b8def;
  overflow: hidden;
  margin-top: auto;
}
.stake-meter i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--green);
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.stake-legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted-2);
}
.stake-legend span { display: inline-flex; align-items: center; gap: 6px; }
.stake-legend b { color: var(--muted); font-weight: 500; }
.stake-legend i { width: 7px; height: 7px; border-radius: 2px; }
.stake-legend .s-stake { background: var(--green); }
.stake-legend .s-unstake { background: #5b8def; }
.brief .panel-note { margin-top: 14px; padding-top: 12px; }

/* ---------- economy ---------- */
.split-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}
.split-title span:last-child { color: var(--muted-2); font-size: 9px; }
.brief .fee-bars { gap: 7px; }
.brief .fee-bar-row { grid-template-columns: 92px minmax(0, 1fr) 86px; font-size: 11px; }
.brief .fee-bar-row > span { color: var(--muted); }
.brief .fee-bar-row b { color: var(--muted-2); font-size: 10px; }

/* ---------- wire ---------- */
.brief .wire { flex: 1; display: flex; flex-direction: column; }
.wire-row {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed #151c24;
}
.wire-row:last-child { border-bottom: 0; }
.wire-row > i { width: 6px; height: 6px; border-radius: 50%; }
.wire-main { min-width: 0; }
.wire-main b { display: block; font-size: 11.5px; font-weight: 600; color: #eef2f6; }
.wire-main span {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wire-value {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
  line-height: 1.5;
}
.wire-value b { color: var(--green-bright); font-weight: 500; }
.wire-value small { display: block; color: var(--muted-2); font-size: 9px; }
.brief .empty-state { padding: 18px 0; font-family: var(--mono); font-size: 10.5px; }

/* ---------- NFT ---------- */
.nft-actions { display: flex; align-items: center; gap: 10px; }
.nft-collections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 10px;
}
.brief .collection-row { padding: 11px; }
.brief .collection-cover { width: 52px; height: 52px; }
.brief .collection-name { font-size: 12px; }
.brief .collection-id { font-size: 9px; }
.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 12px;
  padding-top: 20px;
  border-top: 1px solid #151c24;
}
.gallery-head h3 { font-size: 14px; }
.brief .nft-gallery { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.brief .nft-gallery .empty-state { grid-column: 1 / -1; }

/* ---------- skeletons ---------- */
.brief .skeleton { position: relative; overflow: hidden; }
.brief .skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.045) 50%, transparent 80%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- tools ---------- */
#tools .panel-head { align-items: center; }
.tool-pane[hidden] { display: none; }
.tool-result { margin-top: 18px; }
.tool-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.tool-avatar {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #1d2530;
  border-radius: 12px;
  background: #0e1319;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}
.tool-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.tool-avatar img.is-loaded { opacity: 1; }
.tool-avatar.has-art span { opacity: 0; }
.tool-title {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.tool-head > div:not(.tool-avatar) { flex: 1 1 0; min-width: 0; }
.tool-type {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 3px;
}
.tool-id {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted-2);
  margin-top: 4px;
  word-break: break-all;
}
.tool-note {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--muted-2);
  line-height: 1.6;
}
.tool-note.warn { color: #f0a15a; }
.warn-text { color: #f0a15a; }
.tool-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #151c24;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-2);
}
.tool-meta b { color: #fff; font-weight: 500; }
.tool-meta .copyable { color: var(--muted); }
.ev-tx { margin-left: 8px; color: var(--muted-2); }
.ev-tx .copyable { color: var(--muted); }
.tool-section { margin-top: 20px; }
.tool-section > .mini-title { margin-bottom: 10px; }
.token-sym {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}
.event-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed #151c24;
  font-size: 11.5px;
}
.event-row:last-child { border-bottom: 0; }
.ev-badge {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  padding: 3px 6px;
  border: 1px solid #232b35;
  border-radius: 5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev-badge.mint { color: #7ddc9a; border-color: rgba(62, 207, 111, 0.3); }
.ev-badge.transfer { color: #8bb8f0; border-color: rgba(91, 141, 239, 0.3); }
.ev-badge.burn { color: #f0a15a; border-color: rgba(255, 122, 26, 0.3); }
.event-row .ev-text {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-row .ev-time {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted-2);
  white-space: nowrap;
}
.pool-list { display: flex; flex-direction: column; gap: 7px; }
.pool-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 108px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #161d25;
  border-radius: 10px;
  background: #080b0f;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.pool-row:hover { border-color: #2a333e; background: #0b0f14; }
.pool-row b { display: block; font-size: 12px; font-weight: 600; color: #eef2f6; }
.pool-row small {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pool-col {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}
.pool-col span { display: block; font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.pool-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid #151c24; }


@media (max-width: 1180px) {
  .composition { grid-template-columns: 132px minmax(0, 1fr); gap: 16px; }
  .donut { width: 132px; height: 132px; }
  .donut::after { inset: 18px; }
  .donut-core b { font-size: 19px; }
  .brief .type-row { grid-template-columns: 92px minmax(0, 1fr) 54px; }
}

@media (max-width: 1080px) {
  .brief-hero-inner { grid-template-columns: 1fr; align-items: start; }
  .readout { max-width: 560px; }
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip-cell:nth-child(3n) { border-right: 0; }
  .strip-cell:nth-child(-n + 3) { border-bottom: 1px solid #141a21; }
  .col-5, .col-7 { grid-column: span 12; }
  .col-4 { grid-column: span 6; }
  .composition { grid-template-columns: 158px minmax(0, 1fr); }
  .donut { width: 158px; height: 158px; }
  .donut::after { inset: 21px; }
  .donut-core b { font-size: 23px; }
}

@media (max-width: 760px) {
  .brief h1 { font-size: clamp(2.3rem, 9vw, 3rem); }
  .col-4 { grid-column: span 12; }
  .bento { gap: 12px; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip-cell:nth-child(3n) { border-right: 1px solid #141a21; }
  .strip-cell:nth-child(2n) { border-right: 0; }
  .strip-cell:nth-child(-n + 4) { border-bottom: 1px solid #141a21; }
  .brief .fee-bar-row { grid-template-columns: 84px minmax(0, 1fr) 74px; }
  .nft-collections { grid-template-columns: 1fr 1fr; }
  .gallery-head { align-items: flex-start; flex-direction: column; }
  .event-row { grid-template-columns: 70px minmax(0, 1fr); }
  .event-row .ev-time { display: none; }
  .pool-row { grid-template-columns: minmax(0, 1fr) 68px 74px; gap: 8px; padding: 10px; }
  .pool-col { font-size: 9.5px; }
  .pool-col span { font-size: 8px; }
}

@media (max-width: 560px) {
  .brief-meta { gap: 6px 14px; }
  .brief-sep { display: none; }
  .composition { grid-template-columns: 1fr; justify-items: center; gap: 18px; width: 100%; }
  .brief .type-list { width: 100%; }
  .brief .type-row { grid-template-columns: 96px minmax(0, 1fr) 54px; }
  .nft-collections { grid-template-columns: 1fr; }
  .brief .fee-grid { grid-template-columns: 1fr 1fr; }
  .readout { padding: 14px 18px 10px; }
  .readout-row b { font-size: 19px; }
  #tools .fee-card { padding: 11px 12px; }
  #tools .fee-card strong { font-size: 14.5px; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
  #tools .tool-head > div:not(.tool-avatar) { flex-basis: 140px; }
}

@media (max-width: 380px) {
  .strip { grid-template-columns: 1fr; }
  .strip-cell { border-right: 0; border-bottom: 1px solid #141a21; }
  .strip-cell:last-child { border-bottom: 0; }
  .brief .fee-grid { grid-template-columns: 1fr; }
}
