:root {
  --paper: #fffdfa;
  --ink: #1f1f1f;
  --muted: #625d54;
  --line: #202020;
  --wash: #f7efe6;
  --accent: #ff8d26;
  --green: #5c775b;
  --cream: #f4ecd9;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f4f2ed;
  color: var(--ink);
  font-family: "Comic Sans MS", "Bradley Hand", "Trebuchet MS", system-ui, sans-serif;
  line-height: 1.45;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1360px, calc(100% - 24px));
  min-height: calc(100vh - 24px);
  margin: 12px auto;
  padding: 38px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 34px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

.top-nav {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.brand {
  color: var(--ink);
  font-size: 42px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 34px;
  font-size: 20px;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  border-bottom-color: var(--ink);
}

.nav-links a.is-active {
  border-bottom-color: var(--ink);
}

.wallet-zone {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.button {
  min-height: 38px;
  padding: 7px 18px;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 4px 7px 5px 3px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
}

.button-small {
  min-height: 34px;
  padding: 5px 16px;
  font-size: 14px;
}

#walletButton.is-connected {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 190px;
  padding: 5px 12px 5px 7px;
}

.wallet-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.button-ghost {
  background: transparent;
}

.wallet-menu {
  position: absolute;
  top: 44px;
  right: 0;
  z-index: 10;
  width: 250px;
  padding: 10px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 10px;
  box-shadow: 5px 7px 0 rgba(0, 0, 0, 0.1);
}

.wallet-option {
  display: grid;
  grid-template-columns: 1fr auto;
  width: 100%;
  margin: 4px 0;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
}

.wallet-account-preview {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  margin: 4px 0 8px;
  padding: 9px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.wallet-account-preview strong,
.wallet-account-preview small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-account-preview small {
  color: var(--muted);
}

.account-avatar {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 50%;
  font-weight: 700;
}

.account-avatar.small {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-width: 1.5px;
  font-size: 12px;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(31, 31, 31, 0.18);
}

.account-card {
  position: relative;
  width: min(560px, 100%);
  padding: 28px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 12px 18px 14px 10px;
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.14);
}

.account-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.account-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.account-note {
  margin: 0 0 18px;
  color: var(--muted);
}

.account-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.account-summary div {
  padding: 12px;
  border: 2px solid var(--line);
  background: #fff;
}

.account-summary span,
.account-summary small {
  display: block;
  color: var(--muted);
}

.account-summary strong {
  display: block;
  margin: 4px 0;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.account-summary-profile {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  column-gap: 12px;
}

.account-summary-profile .account-avatar {
  grid-row: span 2;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.account-form {
  display: grid;
  gap: 8px;
}

.account-form div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.account-form input {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  background: #fff;
  border: 2px solid var(--line);
}

.account-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
}

.account-logout {
  margin-top: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--line);
  cursor: pointer;
}

.hero-grid {
  --hero-top-offset: 96px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 360px) minmax(220px, 1fr);
  column-gap: 32px;
  row-gap: 18px;
  align-items: start;
  padding-top: var(--hero-top-offset);
}

.hero-grid > .eyebrow {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  color: var(--muted);
  z-index: 1;
}

.hero-copy {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 50%;
  max-width: 50%;
}

.hero-copy h1,
.section h2,
.connect-panel h2 {
  width: fit-content;
  margin: 0 0 14px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0;
  border-bottom: 3px solid var(--line);
}

.hero-copy p {
  width: 100%;
  max-width: none;
  margin: 0;
  font-size: 18px;
}

.hero-copy h1 {
  width: 100%;
}

.hero-visual {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  min-height: 0;
  place-items: start center;
  justify-self: center;
  margin-top: 0;
}

.hero-grid .network-card {
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  margin-top: 0;
}

.room {
  position: relative;
  width: 320px;
  height: 300px;
  background: linear-gradient(135deg, #fddaa6, #f8c979);
  overflow: hidden;
  border-radius: 1px;
  transform: rotate(0.5deg);
}

.wall-left,
.wall-right {
  position: absolute;
  top: 36px;
  width: 128px;
  height: 146px;
  background: #e7a359;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.wall-left {
  left: 55px;
  transform: skewY(-28deg);
}

.wall-right {
  right: 50px;
  transform: skewY(28deg);
}

.desk {
  position: absolute;
  left: 92px;
  bottom: 86px;
  width: 150px;
  height: 54px;
  background: var(--accent);
  border: 2px solid #8c4f21;
  transform: skewX(-18deg);
}

.screen {
  position: absolute;
  top: -54px;
  left: 52px;
  width: 58px;
  height: 44px;
  background: #26313b;
  border: 5px solid #111;
  transform: skewX(18deg);
}

.cup,
.plate {
  position: absolute;
  top: 11px;
  border-radius: 50%;
  background: #fff4d8;
  border: 2px solid #8c4f21;
}

.cup {
  right: 22px;
  width: 18px;
  height: 18px;
}

.plate {
  right: 48px;
  width: 32px;
  height: 20px;
}

.chair {
  position: absolute;
  left: 74px;
  bottom: 55px;
  width: 58px;
  height: 52px;
  background: #f07d20;
  border: 2px solid #8c4f21;
  transform: skewX(-18deg);
}

.plant {
  position: absolute;
  left: 46px;
  bottom: 72px;
  width: 34px;
  height: 62px;
  border-bottom: 26px solid #9a5b2d;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
}

.plant::before {
  content: "";
  position: absolute;
  left: -18px;
  top: -15px;
  width: 54px;
  height: 42px;
  background: radial-gradient(circle at 20% 40%, #4d8c4f 0 22%, transparent 24%),
    radial-gradient(circle at 50% 10%, #5ba75d 0 24%, transparent 26%),
    radial-gradient(circle at 80% 45%, #3f7d43 0 22%, transparent 24%);
}

.network-card,
.hand-card,
.panel,
.connect-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid var(--line);
  border-radius: 18px 26px 22px 15px;
}

.network-card {
  overflow: hidden;
  transform: rotate(-0.5deg);
}

.card-title,
.panel-header {
  padding: 8px 13px;
  border-bottom: 2px solid var(--line);
}

.network-card .card-title {
  padding: 8px 24px;
}

.network-card dl {
  margin: 0;
  padding: 8px 24px;
}

.network-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
}

.network-card dd {
  margin: 0;
}

.status-row {
  border-top: 2px solid var(--line);
  padding: 9px 24px;
}

.ticker-line {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin: 34px 0 26px;
  padding: 10px 36px;
  border: 2px solid var(--line);
  border-radius: 9px;
}

.ticker-line span {
  white-space: nowrap;
}

#activityType {
  min-width: 104px;
}

#activityActor {
  min-width: 180px;
}

#activityAddress {
  margin-left: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.section {
  padding: 10px 24px 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  margin-top: 48px;
}

.hand-card {
  min-height: 340px;
  padding: 26px 28px 18px;
  display: flex;
  flex-direction: column;
}

.hand-card h3 {
  margin: 0 0 18px;
  padding-bottom: 8px;
  font-size: 23px;
  font-weight: 500;
  border-bottom: 3px solid #878787;
}

.hand-card p {
  margin: 0;
  font-size: 18px;
}

.hand-card footer {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-bottom: 2px dashed var(--line);
}

.hand-card strong {
  font-size: 27px;
  font-weight: 500;
}

.signal-strip {
  margin-top: 12px;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  padding: 10px 26px;
}

.flow-title {
  font-size: 18px;
}

.signal-strip p {
  margin: 2px 0 12px;
  color: var(--muted);
}

.mode-bar {
  display: flex;
  gap: 26px;
  padding: 12px 26px;
  border: 2px dashed var(--line);
}

.tab {
  min-width: 86px;
  background: #fff;
  border: 2px solid var(--line);
  cursor: pointer;
}

.tab.is-active {
  background: var(--cream);
}

.dashboard-band {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, 0.7fr);
  gap: 24px;
  margin-top: 36px;
}

.panel {
  overflow: hidden;
  border-radius: 4px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}

.network-map {
  background: #fbf7f1;
}

#networkCanvas {
  display: block;
  width: 100%;
  height: 360px;
}

.tweet-feed {
  display: grid;
  gap: 12px;
  max-height: 360px;
  overflow: auto;
  padding: 14px;
  background: var(--wash);
}

.tweet {
  padding: 14px;
  background: #fff;
  border: 1px solid #ead8ca;
  border-radius: 8px;
}

.tweet header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.tweet strong {
  font-size: 16px;
}

.tweet small,
.tweet footer {
  color: var(--muted);
}

.tweet p {
  margin: 0 0 12px;
  font-family: system-ui, sans-serif;
  font-size: 14px;
}

.connect-panel {
  margin-top: 36px;
  padding: 34px;
  text-align: center;
  border-radius: 1px;
}

.connect-panel h2 {
  margin-left: auto;
  margin-right: auto;
  border-bottom: 0;
}

.command-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 22px 0 18px;
}

.command-row a {
  color: inherit;
  text-decoration: none;
}

code {
  padding: 9px 18px;
  background: #fff;
  border: 2px solid var(--line);
  font-family: "Courier New", monospace;
  font-size: 13px;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  color: var(--muted);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.hub-page {
  margin-top: 8px;
}

.hub-profile-card {
  display: grid;
  grid-template-columns: 72px 1fr minmax(340px, 0.7fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 8px;
  padding: 14px 18px;
  border: 2px solid var(--line);
}

.hub-avatar {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 50%;
  font-weight: 700;
}

.hub-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.hub-identity strong {
  font-size: 22px;
}

.hub-identity small {
  flex-basis: 100%;
}

.hub-summary {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 22px;
  border-left: 2px solid var(--line);
  padding-left: 20px;
}

.hub-summary div {
  display: grid;
  gap: 1px;
}

.hub-summary strong {
  font-size: 22px;
  font-weight: 500;
}

.hub-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.58fr 0.58fr;
  gap: 14px;
  grid-template-areas:
    "reputation ipshare ipshare"
    "trace mining proof"
    "command signal vote"
    "chart signal vote";
}

.hub-box {
  min-height: 128px;
  padding: 12px;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.hub-box h2 {
  margin: 0 0 8px;
  font-size: 23px;
  font-weight: 500;
}

.hub-box header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.hub-box header span,
.hub-box small {
  color: var(--muted);
}

.reputation-box {
  grid-area: reputation;
}

.ipshare-box {
  grid-area: ipshare;
  display: grid;
  place-items: center;
  background: #fff;
}

.action-box {
  grid-area: trace;
}

.mining-box {
  grid-area: mining;
}

.proof-box {
  grid-area: proof;
}

.command-box {
  grid-area: command;
}

.signal-box {
  grid-area: signal;
}

.vote-box {
  grid-area: vote;
}

.chart-box {
  grid-area: chart;
}

.radar-layout {
  display: grid;
  grid-template-columns: minmax(160px, 0.72fr) 1fr;
  align-items: center;
  gap: 24px;
}

#reputationCanvas {
  width: 100%;
  max-width: 250px;
  height: 190px;
}

.metric-lines,
.score-list {
  display: grid;
  gap: 8px;
}

.metric-line,
.score-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: 10px;
}

.score-row strong,
.metric-line strong {
  text-align: right;
  font-size: 13px;
  white-space: nowrap;
}

.line-track {
  height: 3px;
  background: #e8e4de;
  position: relative;
  border-radius: 2px;
}

.line-track::after {
  content: "";
  position: absolute;
  inset: -1px auto -1px 0;
  width: var(--value, 55%);
  background: var(--accent);
  border-radius: 2px;
}

.ipshare-card {
  width: min(100%, 620px);
  padding: 28px 28px 20px;
  border: 12px solid #faf4f0;
  border-radius: 4px;
  background: #fff;
}

.ipshare-top,
.ipshare-meta,
.fee-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.ipshare-card > strong {
  display: block;
  margin: 8px 0 14px;
  text-align: center;
  color: var(--accent);
  font-family: system-ui, sans-serif;
  font-size: 28px;
}

.ipshare-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 14px 0;
}

.ipshare-actions button {
  height: 34px;
  color: #fff;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  cursor: pointer;
}

.fee-row {
  padding: 10px 14px;
  border-radius: 999px;
  background: #f8f8f8;
}

.score-list.compact {
  margin-bottom: 26px;
}

.command-box small {
  font-size: 15px;
}

.command-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 9px 0;
}

.command-group span {
  min-width: 52px;
}

.command-group button {
  min-height: 30px;
  padding: 4px 10px;
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.mini-feed {
  display: grid;
  gap: 10px;
  max-height: 394px;
  overflow: auto;
}

.mini-post {
  padding: 10px;
  background: #fff;
  border: 1px solid #ead8ca;
  border-radius: 4px;
  font-family: system-ui, sans-serif;
  font-size: 12px;
}

.mini-post strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Comic Sans MS", "Bradley Hand", "Trebuchet MS", system-ui, sans-serif;
}

.mini-post p {
  margin: 0 0 8px;
}

.mini-post footer {
  color: var(--muted);
}

#rewardCanvas {
  width: 100%;
  height: 170px;
  border-top: 2px dashed var(--line);
}

.signal-page {
  margin-top: 6px;
}

.signal-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: end;
  gap: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
}

.signal-hero h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.35;
}

.signal-stats {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 28px;
}

.signal-stats div {
  display: grid;
  gap: 2px;
  text-align: center;
}

.signal-stats strong {
  font-size: 23px;
  font-weight: 500;
}

.signal-stats span {
  color: var(--muted);
  font-size: 14px;
}

.graph-button {
  width: 72px;
  min-height: 58px;
  background: #f5eedc;
  border: 2px solid var(--line);
  cursor: pointer;
}

.signal-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  margin: 18px 0 28px;
}

.mini-tag-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-tag-button,
.feed-mode-button {
  min-height: 38px;
  padding: 6px 16px;
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.mini-tag-button.is-active,
.feed-mode-button.is-active {
  background: var(--cream);
}

.feed-mode {
  display: flex;
  align-items: center;
  gap: 8px;
}



.signal-feed-shell {
  padding: 14px;
  background: var(--wash);
}

.signal-feed {
  display: grid;
  gap: 12px;
}

.signal-post-card {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 14px;
  min-height: 168px;
  padding: 18px;
  background: #fff;
  border: 1px solid #ead8ca;
  border-radius: 16px;
  font-family: system-ui, sans-serif;
}

.signal-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #d6d6d6;
  background: #3f3f3f;
}

.signal-post-main {
  min-width: 0;
}

.signal-post-main header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.signal-post-main strong {
  font-size: 14px;
}

.signal-post-main small {
  color: #9d9d9d;
}

.signal-post-main p {
  max-width: 820px;
  margin: 0 0 12px;
  font-size: 14px;
}

.signal-mini-tag {
  display: inline-flex;
  width: fit-content;
  padding: 2px 10px;
  color: #357a65;
  background: #c8f0dd;
  border-radius: 4px;
  font-size: 12px;
}

.signal-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(42px, 1fr));
  gap: 28px;
  margin-top: 18px;
  color: #b7b7b7;
}

.signal-score {
  align-self: start;
  min-width: 132px;
  padding: 5px 10px;
  color: #fff;
  text-align: center;
  font-weight: 700;
  background: var(--accent);
  border-radius: 999px;
}

.signal-empty {
  padding: 80px 20px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--line);
}

.agents-page {
  min-height: 720px;
  padding-top: 8px;
}

.agents-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 42px;
}

.agents-tab {
  min-width: 112px;
  min-height: 38px;
  padding: 6px 14px;
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.agents-tab.is-active {
  background: #ffd6d6;
}

.agents-list {
  display: grid;
  gap: 28px;
}

.agent-row {
  display: grid;
  grid-template-columns: 48px minmax(260px, 1fr) minmax(180px, auto) 76px;
  align-items: center;
  gap: 14px;
}

.agent-avatar {
  width: 42px;
  height: 42px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
}

.agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-main {
  min-width: 0;
}

.agent-name-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 18px;
}

.agent-name-line strong,
.agent-name-line span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-subline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.agent-value {
  text-align: right;
  font-size: 18px;
}

.agent-value small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.agent-action {
  justify-self: end;
  min-width: 52px;
  background: transparent;
  border: 0;
  font-size: 18px;
  cursor: pointer;
}

.agent-empty {
  padding: 64px 20px;
  border: 2px dashed var(--line);
  text-align: center;
}

.economy-page {
  padding-top: 8px;
}

.economy-head {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
}

.economy-head h1 {
  margin: 0 0 8px;
  font-size: 31px;
  font-weight: 500;
}

.economy-head p {
  margin: 0;
  font-size: 21px;
}

.economy-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 44px;
  margin: 30px 6px 34px;
}

.economy-stat {
  min-height: 88px;
  padding: 12px 16px;
  border: 2px solid var(--line);
  background: #fff;
}

.economy-stat span,
.economy-stat small {
  display: block;
}

.economy-stat strong {
  display: block;
  margin: 2px 0;
  font-size: 24px;
  font-weight: 500;
}

.economy-stat small {
  color: var(--muted);
}

.economy-section {
  margin-top: 30px;
}

.economy-section h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
  font-size: 25px;
  font-weight: 500;
}

.section-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section-actions button {
  min-height: 32px;
  padding: 4px 12px;
  background: #fff;
  border: 2px solid var(--line);
  cursor: pointer;
}

.trade-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 0;
  border: 2px solid var(--line);
  background: #fff;
}

.trade-chart-card {
  padding: 16px 16px 14px;
  border-right: 2px solid #eee;
}

.chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  min-height: 30px;
  color: #3d3d3d;
  font-family: system-ui, sans-serif;
  font-size: 13px;
}

.chart-toolbar button {
  width: 24px;
  height: 24px;
  border: 1px solid #ddd;
  background: #fff;
}

#buidlTradeCanvas {
  width: 100%;
  height: 330px;
  background: #fff;
}

.trade-widget {
  padding: 18px;
  background: #fff7f2;
}

.trade-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #c9c9c9;
}

.trade-toggle button {
  height: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
}

.trade-toggle .is-active {
  background: var(--accent);
}

.trade-widget label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-bottom: 12px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-family: system-ui, sans-serif;
  font-size: 13px;
}

.trade-widget input {
  width: 100%;
  border: 0;
  text-align: right;
  font-weight: 700;
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.quick-amounts button {
  min-height: 27px;
  border: 0;
  border-radius: 999px;
  background: #c7c7c7;
  color: #fff;
}

.trade-connect {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.wide-chart {
  padding: 16px;
  border: 2px solid var(--line);
  background: #fbf8ef;
}

.wide-chart canvas {
  width: 100%;
  height: 220px;
}

.ecosystem-panel {
  padding: 14px;
  border: 2px solid var(--line);
  background: #fff;
}

.ecosystem-cards {
  display: grid;
  grid-template-columns: repeat(3, 190px);
  justify-content: center;
  gap: 18px;
  align-items: center;
  min-height: 220px;
}

.ecosystem-cards article {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.ecosystem-cards button {
  min-height: 30px;
  min-width: 150px;
  background: #fff;
  border: 2px solid var(--line);
}

.mini-network {
  background: #f5ecd8;
}

.ecosystem-price {
  width: min(680px, 100%);
  margin: 6px auto 0;
  padding: 8px;
  border: 2px solid var(--line);
  text-align: center;
}

@media (max-width: 980px) {
  .page-shell {
    padding: 24px;
    border-radius: 22px;
  }

  .top-nav,
  .hero-grid,
  .dashboard-band,
  .hub-profile-card,
  .hub-grid,
  .signal-hero,
  .signal-toolbar,
  .agent-row,
  .economy-stat-grid,
  .trade-board,
  .ecosystem-cards {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    --hero-top-offset: 0px;
    column-gap: 0;
    padding-top: 0;
  }

  .hero-grid > .eyebrow {
    position: static;
    grid-column: 1;
    grid-row: 2;
  }

  .hero-visual {
    grid-column: 1;
    grid-row: 3;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 4;
    width: 100%;
    max-width: 100%;
  }

  .hero-grid .network-card {
    position: static;
    width: auto;
    grid-column: 1;
    grid-row: 1;
    justify-self: stretch;
  }

  .agent-row {
    gap: 8px;
  }

  .agent-value,
  .agent-action {
    justify-self: start;
    text-align: left;
  }

  .signal-stats,
  .feed-mode {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .signal-post-card {
    grid-template-columns: 42px 1fr;
  }

  .signal-score {
    grid-column: 2;
    justify-self: start;
  }

  .hub-grid {
    grid-template-areas:
      "reputation"
      "ipshare"
      "trace"
      "mining"
      "proof"
      "command"
      "signal"
      "vote"
      "chart";
  }

  .hub-summary {
    border-left: 0;
    border-top: 2px solid var(--line);
    padding: 12px 0 0;
    grid-template-columns: 1fr 1fr;
  }

  .radar-layout {
    grid-template-columns: 1fr;
  }

  .top-nav {
    gap: 14px;
  }

  .brand,
  .wallet-zone {
    justify-content: center;
    text-align: center;
  }

  .nav-links {
    gap: 18px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hand-card {
    min-height: 260px;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: calc(100% - 12px);
    margin: 6px auto;
    padding: 18px;
  }

  .brand {
    font-size: 32px;
  }

  .hero-copy h1,
  .section h2,
  .connect-panel h2 {
    font-size: 24px;
  }

  .room {
    width: 280px;
    height: 260px;
  }

  .ticker-line,
  .mode-bar {
    padding: 10px;
    gap: 10px;
  }

  .tab {
    min-width: 68px;
  }
}

/* IPShare Trade / Stake Modal */
.ipshare-modal-card {
  width: min(480px, 100%);
}

.ipshare-modal-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.ipshare-modal-info > div {
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.ipshare-modal-info span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.ipshare-modal-info strong {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.ipshare-trade-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 16px;
  border: 2px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.ipshare-trade-toggle .tab {
  border: 0;
  border-radius: 0;
  min-height: 36px;
  font-weight: 700;
}

.ipshare-trade-toggle .tab.is-active {
  background: var(--accent);
  color: #fff;
}

.ipshare-cost-preview {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  margin: 8px 0;
  background: var(--wash);
  border: 1px solid #ead8ca;
  border-radius: 6px;
}

.ipshare-cost-preview span {
  color: var(--muted);
}

.ipshare-cost-preview strong {
  font-size: 18px;
}

.ipshare-cost-preview small {
  color: var(--muted);
}

/* Social Prediction */
.prediction-page {
  padding: 0;
}

.prediction-header {
  margin-bottom: 20px;
}

.prediction-header h2 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 500;
}

.prediction-header p {
  margin: 0;
  color: var(--muted);
}

.prediction-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.prediction-tab {
  min-width: 100px;
  min-height: 36px;
  padding: 6px 18px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.prediction-tab.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.prediction-list {
  display: grid;
  gap: 16px;
}

.prediction-loading,
.prediction-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  border: 2px dashed var(--line);
  border-radius: 12px;
}

.prediction-card {
  padding: 20px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
}

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

.prediction-card-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.prediction-status {
  flex-shrink: 0;
  padding: 3px 10px;
  font-size: 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.status-active {
  background: #d4f5e9;
  color: #1a7f54;
}

.status-resolved {
  background: #e8e4de;
  color: var(--muted);
}

.status-pending {
  background: #fff3d6;
  color: #8a6d00;
}

.prediction-battle-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.prediction-side {
  padding: 12px;
  background: var(--wash);
  border-radius: 8px;
}

.prediction-side-label {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  border-radius: 50%;
  margin-bottom: 6px;
}

.side-a .prediction-side-label {
  background: var(--accent);
  color: #fff;
}

.side-b .prediction-side-label {
  background: var(--green);
  color: #fff;
}

.prediction-side p {
  margin: 0 0 8px;
  font-size: 13px;
  font-family: system-ui, sans-serif;
  line-height: 1.4;
}

.prediction-pool strong {
  display: block;
  font-size: 16px;
}

.prediction-pool small {
  color: var(--muted);
}

.prediction-vs {
  align-self: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--muted);
}

.prediction-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.prediction-bar-a {
  background: var(--accent);
}

.prediction-bar-b {
  background: var(--green);
}

.prediction-card-footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.prediction-event-body {
  margin-bottom: 14px;
}

.prediction-event-content {
  margin: 0 0 12px;
  font-size: 14px;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  color: #333;
}

.prediction-votes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.prediction-vote-yes,
.prediction-vote-no {
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prediction-vote-yes {
  background: rgba(255, 141, 38, 0.1);
  border: 1px solid var(--accent);
}

.prediction-vote-no {
  background: rgba(92, 119, 91, 0.1);
  border: 1px solid var(--green);
}

.prediction-vote-yes strong {
  color: var(--accent);
}

.prediction-vote-no strong {
  color: var(--green);
}

.prediction-votes span {
  font-size: 13px;
  color: var(--muted);
}

/* ---- Live event vote buttons ---- */
.prediction-vote-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 6px;
}

.vote-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 14px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  border: 2px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
}

.vote-btn small {
  font-size: 12px;
  opacity: 0.9;
}

.vote-btn-yes {
  background: var(--accent);
}

.vote-btn-no {
  background: var(--green);
}

.vote-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.18);
}

.vote-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.vote-btn.is-picked {
  outline: 3px solid rgba(0, 0, 0, 0.25);
  opacity: 1;
}

.vote-mark {
  font-size: 11px;
  font-weight: 700;
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  padding: 1px 6px;
}

.prediction-voted-note {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.prediction-meta-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.prediction-detail-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.prediction-detail-link:hover {
  text-decoration: underline;
}

/* ---- Vote confirmation modal ---- */
.vote-modal-card {
  width: min(440px, 100%);
}

.vote-modal-title {
  margin: 4px 0 6px;
  font-weight: 600;
}

.vote-modal-choice {
  margin: 0 0 16px;
  color: var(--accent);
  font-weight: 700;
}

.vote-modal-vp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.vote-modal-vp div {
  padding: 12px;
  border: 2px solid var(--line);
  background: #fff;
}

.vote-modal-vp span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.vote-modal-vp strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.account-status.is-error {
  color: #c0392b;
}

.account-status.is-success {
  color: var(--green);
}

/* ---- Toast ---- */
.toast-host {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 60;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  min-width: 220px;
  max-width: 360px;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  box-shadow: 4px 6px 0 rgba(0, 0, 0, 0.18);
  font-size: 14px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background: var(--green);
}

.toast-warn {
  background: var(--accent);
}

.toast-error {
  background: #c0392b;
}

/* Signal stat as clickable link */
.signal-stat-link {
  display: grid;
  gap: 2px;
  text-align: center;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}

.signal-stat-link:hover {
  background: var(--wash);
}

.signal-stat-link.is-active {
  background: var(--cream);
  border-bottom: 2px solid var(--accent);
}

.signal-stat-link strong {
  font-size: 23px;
  font-weight: 500;
}

.signal-stat-link span {
  color: var(--muted);
  font-size: 14px;
}

/* Blinks Post Page */
.blinks-page {
  padding: 0;
}

.blinks-list {
  display: grid;
  gap: 16px;
}

.blinks-card {
  padding: 20px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
}

.blinks-card-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.blinks-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--line);
  overflow: hidden;
  background: #eee;
}

.blinks-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blinks-card-author strong {
  display: block;
  font-size: 15px;
}

.blinks-card-author small {
  color: var(--muted);
  font-size: 13px;
}

.blinks-card-content {
  margin-bottom: 14px;
}

.blinks-card-content p {
  margin: 0;
  font-size: 14px;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
}

.blinks-trade-button {
  display: block;
  width: 100%;
  height: 42px;
  margin-bottom: 12px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.blinks-trade-button:hover {
  opacity: 0.9;
}

.blinks-trade-form {
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fffaf6;
}

.blinks-card-footer {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.blinks-trade-widget {
  border: 2px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.blinks-trade-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}

.blinks-trade-header strong {
  font-size: 16px;
}

.blinks-interactions {
  color: var(--muted);
  font-size: 13px;
}

.blinks-trade-form {
  padding: 16px;
}

.blinks-trade-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #e0e0e0;
}

.blinks-trade-toggle button {
  height: 34px;
  border: 0;
  background: transparent;
  color: #666;
  font-weight: 700;
  cursor: pointer;
}

.blinks-trade-toggle button.is-active {
  background: var(--accent);
  color: #fff;
}

.blinks-input-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-family: system-ui, sans-serif;
  font-size: 13px;
}

.blinks-input-row input {
  width: 100%;
  border: 0;
  text-align: right;
  font-weight: 700;
  font-size: 14px;
}

.blinks-quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.blinks-quick-amounts button {
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #ddd;
  color: #555;
  font-weight: 600;
  cursor: pointer;
}

.blinks-quick-amounts button:hover {
  background: var(--accent);
  color: #fff;
}

.blinks-receive-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  font-family: system-ui, sans-serif;
}

.blinks-receive-row strong {
  font-size: 15px;
}

.blinks-confirm-btn {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.blinks-confirm-btn:disabled {
  opacity: 0.55;
  cursor: progress;
}

.blinks-balance-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  font-family: system-ui, sans-serif;
  color: #555;
}

.blinks-max-btn {
  margin-left: auto;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 2px 8px;
  background: #fafafa;
  font-size: 11px;
  cursor: pointer;
}

.blinks-slippage-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 12px;
  font-family: system-ui, sans-serif;
  color: #555;
}

.blinks-slippage-input {
  width: 56px;
  padding: 4px 6px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 12px;
  text-align: right;
}

.blinks-trade-status {
  margin-top: 10px;
  min-height: 16px;
  font-size: 12px;
  line-height: 1.4;
  font-family: system-ui, sans-serif;
  word-break: break-all;
  color: #555;
}

.blinks-trade-status[data-kind="pending"] { color: #b26a00; }
.blinks-trade-status[data-kind="success"] { color: #1a7f37; }
.blinks-trade-status[data-kind="error"] { color: #c0392b; }

/* ======================== ATOC Agent page ======================== */
.atoc-page { display: flex; flex-direction: column; gap: 18px; }
.atoc-profile .hub-summary { grid-template-columns: repeat(4, auto); }

.atoc-agents-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.atoc-agent-box {
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--paper);
}
.atoc-agent-box header {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; margin-bottom: 10px;
}
.atoc-dot { width: 9px; height: 9px; border-radius: 50%; background: #c9c9c9; display: inline-block; }
.atoc-dot.is-ok { background: #2f9e44; }
.atoc-dot.is-warn { background: var(--accent); }
.atoc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.atoc-tags span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  background: var(--wash);
}

.atoc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.atoc-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; align-items: start; }
.atoc-gov-col { display: flex; flex-direction: column; gap: 14px; }

.atoc-panel {
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--paper);
}
.atoc-panel h2 { font-size: 15px; margin: 0 0 12px; }
.atoc-empty { color: var(--muted); font-size: 13px; padding: 18px 4px; text-align: center; }

/* Create / Curate table */
.atoc-action-table { display: flex; flex-direction: column; gap: 8px; }
.atoc-act-row {
  display: grid;
  grid-template-columns: 84px 34px 1.1fr 0.9fr 1.6fr;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.atoc-act-row.is-fail { opacity: 0.55; }
.atoc-act-time { color: var(--muted); }
.atoc-act-op { color: #1971c2; }
.atoc-act-kind { color: var(--ink); }
.atoc-act-vp { color: #e8590c; line-height: 1.35; }
.atoc-act-vp b { color: #f08c00; }
.atoc-act-detail { color: var(--muted); word-break: break-word; }

/* X activity */
.atoc-x-feed { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow: auto; }
.atoc-x-post { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--wash); }
.atoc-x-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.atoc-x-head small { color: var(--muted); }
.atoc-x-credit { margin-left: auto; font-size: 11px; color: var(--accent); font-weight: 700; }
.atoc-x-post p { margin: 8px 0; font-size: 13px; line-height: 1.5; }
.atoc-x-post footer { font-size: 11px; color: var(--muted); }

/* generic key/value + notes used by gov / onchain */
.atoc-kv { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13px; border-bottom: 1px dashed rgba(0,0,0,0.08); }
.atoc-kv label { color: var(--muted); }
.atoc-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.atoc-gov-item { padding: 8px 0; border-bottom: 1px dashed rgba(0,0,0,0.08); }
.atoc-gov-item > div { display: flex; align-items: center; gap: 8px; }
.atoc-tag-pill { margin-left: auto; font-size: 11px; border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; background: var(--wash); }

/* TAS OS + WIKI panels (light, matching the rest of the page) */
.atoc-dark-panel {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}
.atoc-dark-panel > header {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 16px;
}
.atoc-dark-panel > header small { color: var(--muted); text-transform: none; letter-spacing: 0; }
.atoc-badge { margin-left: auto; font-size: 11px; padding: 2px 10px; border-radius: 6px; background: var(--wash); color: var(--muted); border: 1px solid var(--line); }
.atoc-badge.is-warn { background: #ffe8cc; color: #e8590c; }
.atoc-badge.is-ok { background: #d3f9d8; color: #2b8a3e; }

.atoc-chart-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.atoc-chart-card { background: var(--wash); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.atoc-chart-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.atoc-chart-head strong { font-size: 16px; }
.atoc-chart-card canvas { width: 100%; height: auto; display: block; }
.t-green { color: #2b8a3e; } .t-blue { color: #1971c2; } .t-amber { color: #e8590c; }
.t-up { color: #2b8a3e; } .t-down { color: #e03131; }

.atoc-ooda-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.atoc-ooda-card { background: var(--wash); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.atoc-ooda-card h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }
.atoc-ooda-card .atoc-kv { border-bottom-color: rgba(0,0,0,0.08); }
.atoc-ooda-card .atoc-kv label { color: var(--muted); }
.atoc-issues { margin: 10px 0 0; padding-left: 16px; font-size: 12px; color: var(--ink); line-height: 1.6; }
.atoc-ooda-card .atoc-note { color: var(--muted); }
.atoc-hist-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 5px 0; font-size: 12px; font-family: ui-monospace, Menlo, monospace; border-bottom: 1px dashed rgba(0,0,0,0.08); }

.atoc-wiki-flow { font-size: 12px; color: var(--muted); margin-bottom: 16px; font-family: ui-monospace, Menlo, monospace; }
.atoc-wiki-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.atoc-wiki-card { background: var(--wash); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.atoc-wiki-card h4 { margin: 0 0 12px; font-size: 12px; color: var(--ink); }
.atoc-wiki-card .atoc-kv { border-bottom-color: rgba(0,0,0,0.08); }
.atoc-wiki-card .atoc-kv label { color: var(--muted); }
.atoc-flow-list { margin: 0; padding-left: 16px; font-size: 12px; color: var(--ink); line-height: 1.6; }
.atoc-wiki-card .atoc-note { color: var(--muted); }

@media (max-width: 900px) {
  .atoc-agents-row, .atoc-grid-2, .atoc-grid-3, .atoc-chart-row, .atoc-ooda-grid, .atoc-wiki-grid { grid-template-columns: 1fr; }
}
.atoc-retry { margin-left: 8px; border: 1px solid var(--line); background: var(--wash); border-radius: 6px; padding: 2px 10px; cursor: pointer; font-size: 12px; }

/* Language switch */
.lang-switch { display: inline-flex; gap: 0; margin-right: 10px; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; vertical-align: middle; }
.lang-option { padding: 4px 10px; background: var(--paper); color: var(--ink); border: 0; cursor: pointer; font-size: 13px; }
.lang-option + .lang-option { border-left: 1px solid var(--line); }
.lang-option.is-active { background: var(--ink); color: #fff; }
.wallet-zone { align-items: center; gap: 8px; }
