/* rentmyai.ai public home — matches desk + live board */
:root {
  --bg: #0d1117;
  --panel: #161b22;
  --panel-2: #0d1117;
  --line: #30363d;
  --line-soft: #21262d;
  --ink: #e6edf3;
  --title: #f0f6fc;
  --muted: #8b949e;
  --dim: #6e7681;
  --ghost: #484f58;
  --green: #3fb950;
  --green-btn: #238636;
  --green-btn-hover: #2ea043;
  --green-deep: #0d2818;
  --blue: #58a6ff;
  --blue-deep: #0d1f3c;
  --amber: #d29922;
  --amber-deep: #2d2006;
  --paid: #8b949e;
  --paid-deep: #1c1c1c;
  --orange: #f0883e;
  --danger: #f85149;
  --live: #238636;
  --radius: 12px;
  --mono: "SFMono-Regular", "Fira Code", ui-monospace, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--sans); }
html { scroll-behavior: smooth; }
body { min-height: 100vh; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 28px 40px;
}

/* ── header ── */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.dash-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--muted);
  display: inline-block;
  padding-bottom: 2px;
}
.brand {
  text-align: center;
}
.brand h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--title);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 18px;
  background: var(--panel);
}
.brand h1 span { color: var(--green); font-weight: 600; }
.brand .note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--dim);
 max-width: 36rem; line-height: 1.35; }
.host {
  text-align: right;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.host strong { color: #c9d1d9; font-weight: 600; }

/* ── top metrics ── */
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}
.metrics.economy-income {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
@media (max-width: 1100px) {
  .metrics.economy-income { grid-template-columns: 1fr 1fr; }
}
.tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 16px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
}
.tile .k {
  font-size: 11px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.tile .n {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1.4px;
  line-height: 1.05;
  margin: 16px 0 10px;
  color: var(--title);
}
.tile .n.hold {
  color: var(--muted);
  font-size: 28px;
  letter-spacing: -0.6px;
  margin-top: 22px;
}
.tile p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin-top: auto;
}
.tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 2px 7px;
  margin-left: 6px;
  vertical-align: 1px;
}
.spark {
  margin: 14px 0 10px;
  height: 64px;
  width: 100%;
}
.spark svg { width: 100%; height: 64px; display: block; }

/* ── mission control ── */
.section-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 8px 0 12px;
}
.section-h h2 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.section-h .hint { font-size: 12px; color: var(--dim); }

.mission {
  display: grid;
  grid-template-columns: 150px minmax(220px, 1fr) minmax(240px, 1.1fr) minmax(240px, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  min-height: 280px;
}
.panel h3 {
  font-size: 11px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
}

/* thermometer */
.thermo-wrap { display: flex; flex-direction: column; align-items: center; }
.thermo {
  display: flex;
  gap: 10px;
  align-items: stretch;
  height: 188px;
  margin: 4px 0 10px;
}
.tube {
  width: 28px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #0a0e14;
  position: relative;
  overflow: hidden;
}
.tube .fill {
  position: absolute;
  left: 3px; right: 3px; bottom: 3px;
  height: var(--fill, 0%);
  background: linear-gradient(180deg, #3fb950 0%, #238636 100%);
  border-radius: 12px;
}
.tube .bulb {
  position: absolute;
  left: 2px; right: 2px; bottom: 2px;
  height: 22px;
  background: #238636;
  border-radius: 50%;
}
.ticks {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  padding: 2px 0;
}
.thermo-meta { text-align: center; font-size: 11px; color: var(--muted); line-height: 1.45; }
.thermo-meta b { color: var(--title); font-weight: 600; }

/* income stats */
.stat {
  border: 1px solid var(--line-soft);
  background: var(--bg);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.stat:last-child { margin-bottom: 0; }
.stat .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat .v { font-size: 18px; font-weight: 700; color: var(--title); margin-top: 4px; letter-spacing: -0.4px; }
.stat .v .u { font-size: 12px; color: var(--orange); font-weight: 600; font-family: var(--mono); margin-left: 4px; }

/* my agent */
.kv { display: grid; gap: 8px; }
.kv .row {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 8px;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
}
.kv .row:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 2px; }
.kv dd { color: var(--ink); overflow-wrap: anywhere; }
.kv dd.ph { color: var(--ghost); font-style: italic; }

/* messages widget — looks like chat, still a /chat hyperlink */
.msg-widget {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  min-height: 280px;
  padding: 12px 12px 10px;
  border-color: var(--live);
  background: var(--panel);
}
.msg-widget:hover { text-decoration: none; border-color: var(--green); background: #122018; }
.msg-widget h3 { margin-bottom: 8px; }
.msg-widget .mini-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #0d1117;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 10px;
  min-height: 132px;
  overflow: hidden;
}
.msg-widget .mini-log .bubble {
  max-width: 92%;
  font-size: 12px;
}
.msg-widget .mini-composer {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  align-items: center;
}
.msg-widget .fake-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--dim);
  font-size: 12px;
  padding: 8px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-widget .fake-send {
  background: var(--green-btn);
  color: #fff;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 10px;
}
.msg-widget .go {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  margin-top: 8px;
}
.msg-link { display: none; }

/* ── job board ── */
.board-wrap {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px 10px;
  margin-bottom: 28px;
}
.board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.board-head h2 {
  font-size: 18px;
  color: var(--title);
  font-weight: 700;
}
.updated { font-size: 12px; color: var(--muted); }
.legend {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.legend span { display: flex; align-items: center; gap: 5px; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-open { background: #3fb950; }
.dot-accepted { background: #58a6ff; }
.dot-submitted { background: #d29922; }
.dot-paid { background: #8b949e; }
.dot-other { background: #6e7681; }

.board-scroll {
  height: 480px;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #0d1117;
}
.board-scroll:focus { outline: 1px solid var(--line); }
table.board {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.board th {
  text-align: left;
  padding: 10px 12px;
  background: #161b22;
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1;
}
table.board td {
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
table.board tr:hover td { background: #161b22; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.status-open { background: #0d2818; color: #3fb950; }
.status-accepted { background: #0d1f3c; color: #58a6ff; }
.status-submitted { background: #2d2006; color: #d29922; }
.status-paid { background: #1c1c1c; color: #8b949e; }
.job-id {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}
.title-text { color: #c9d1d9; line-height: 1.4; }
.meta { font-size: 11px; color: var(--dim); margin-top: 3px; }
.rate { font-family: var(--mono); color: var(--orange); font-size: 13px; }
.timestamp { font-size: 11px; color: var(--dim); }
.empty, .loading { text-align: center; padding: 80px 20px; color: var(--ghost); }
.error { text-align: center; padding: 40px 20px; color: var(--danger); }

/* ── join / sign-in ── */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 8px;
}
.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(420px, 78vw);
  height: 76px;
  padding: 0 48px;
  border-radius: 999px;
  background: var(--green-btn);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  border: 1px solid #2ea043;
  box-shadow: 0 0 0 1px #0d2818 inset;
}
.join-btn:hover { background: var(--green-btn-hover); text-decoration: none; }
.signin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  background: #21262d;
  color: #c9d1d9;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  text-decoration: none;
}
.signin-btn:hover { background: #30363d; text-decoration: none; }
.onboard {
  max-width: 560px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 18px auto 0;
}

/* ── thesis / story ── */
.bottom-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 36px 0 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.pill:hover { border-color: var(--muted); text-decoration: none; }

footer.site {
  margin-top: 28px;
  color: var(--dim);
  font-size: 12px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
footer.site a { color: var(--muted); }

/* ── chat shell ── */
.chat-page { display: flex; flex-direction: column; min-height: 100vh; }
.chat-page .page { flex: 1; display: flex; flex-direction: column; max-width: 820px; }
.chat-frame {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.chat-log {
  flex: 1;
  min-height: 360px;
  overflow: auto;
  padding: 22px 20px;
  background: var(--bg);
}
.bubble {
  max-width: 78%;
  background: #1b2030;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.45;
}
.bubble.sys { color: var(--muted); background: #161b22; }
.bubble.me { margin-left: auto; background: #1d2a24; border-color: #274336; }
.who { font-size: 11px; font-weight: 700; color: var(--green); margin-bottom: 3px; }
.composer {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line-soft);
  background: var(--panel);
}
.composer input, .composer textarea {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  resize: none;
}
.composer button {
  background: var(--green-btn);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  padding: 0 16px;
  cursor: pointer;
}
.composer button:disabled { background: #1a4d2e; color: var(--dim); cursor: not-allowed; }
.chat-note { font-size: 12px; color: var(--dim); margin: 10px 0 0; }

@media (max-width: 980px) {
  .mission { grid-template-columns: 1fr 1fr; }
  .msg-widget, .panel { min-height: 220px; }
}
@media (max-width: 720px) {
  .page { padding: 18px 14px 28px; }
  .topbar { grid-template-columns: 1fr; text-align: left; }
  .brand { text-align: left; }
  .host { text-align: left; }
  .metrics { grid-template-columns: 1fr; }
  .mission { grid-template-columns: 1fr; }
  .tile .n { font-size: 32px; }
  .board-scroll { height: 360px; }
  .join-btn { font-size: 22px; height: 64px; letter-spacing: 0.1em; }
  .bottom-links { justify-content: center; }
  table.board th:nth-child(5),
  table.board td:nth-child(5) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* ── Cycles (EC → Heartbeat → DC → JC) ── */
.metab-loop {
  display: flex;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
}
.metab-loop li {
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 14px 12px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.metab-loop li + li { border-left: 1px solid var(--line); }
.metab-loop li + li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -7px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transform: rotate(45deg);
}
.metab-k {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.metab-v {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}
.metab-ec .metab-k,
.metab-hb .metab-k { color: #ff7b72; }
.metab-dc .metab-k { color: var(--blue); }
.metab-jc .metab-k { color: var(--title); }
.metab-return {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.metab-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.presence-body { margin-top: 8px; }
.presence-row,
.settle-row {
  display: grid;
  grid-template-columns: 118px 1fr auto;
  gap: 8px 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line-soft);
}
.presence-name,
.settle-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--title);
}
.presence-pips { display: flex; gap: 4px; flex-wrap: wrap; }
.pip {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: #21262d;
  border: 1px solid #30363d;
}
.pip.hit { background: var(--green-btn); border-color: var(--green); }
.pip.now { box-shadow: 0 0 0 1px var(--orange); }
.presence-rate,
.settle-v {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--title);
}
.presence-rate.hold,
.settle-v.hold { color: var(--muted); font-family: var(--sans); font-weight: 600; }
.settle-fleet {
  font-family: var(--mono);
  font-size: 32px;
  color: var(--orange);
  letter-spacing: -0.4px;
}
.cycle-panel .settle-fleet.hold {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--muted);
  font-weight: 600;
}
.settle-n { font-size: 11px; color: var(--dim); }
.settle-agents { margin-top: 4px; }
.cycles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}
.cycle-panel { min-height: 220px; }
.ec-panel { grid-column: 1 / -1; min-height: 0; }
.cycle-panel .n {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--title);
  margin: 4px 0 12px;
  line-height: 1.25;
}
.cycle-panel .n.hold {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}
.cycle-steps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.cycle-step {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  padding: 8px 10px;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}
.cycle-step-k {
  grid-column: 1 / -1;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.cycle-step-v { font-size: 13px; color: var(--ink); font-family: var(--mono); }
.cycle-step-v.hold { color: var(--muted); font-family: var(--sans); }
.cycle-step-n { font-size: 11px; color: var(--dim); align-self: end; }
.attr-wrap { margin: 8px 0 10px; }
.attr-bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line-soft);
  border: 1px solid var(--line);
}
.attr-seg { height: 100%; min-width: 0; }
.attr-open { background: var(--green); }
.attr-claim { background: var(--blue); }
.attr-sub { background: var(--amber); }
.attr-empty {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 0;
}
.cycle-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 6px;
}
@media (max-width: 980px) {
  .cycles { grid-template-columns: 1fr; }
  .metab-metrics { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .metab-loop { overflow-x: auto; }
  .metab-loop li { flex: 0 0 168px; }
}

/* ── Public messages + auth ── */
.messages-public { margin-bottom: 22px; }
.messages-public .msg-widget { min-height: 260px; }
.msg-widget .mini-log { overflow-y: auto; max-height: 220px; }
.msg-widget .bubble .when { color: var(--dim); font-weight: 400; }
.msg-widget .bubble.who-bryan .who { color: var(--orange); }
.msg-widget .bubble.who-ghost .who { color: var(--blue); }
.msg-widget .bubble.who-chief .who { color: var(--green); }
.signin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--title);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.signin-btn:hover { border-color: var(--blue); color: var(--blue); }
#signin-toast {
  color: var(--amber);
  font-weight: 600;
  margin-top: 8px;
}
.mc-only[hidden] { display: none !important; }

/* ── Cycles extras (Decision ring + EC stub) ── */
.dc-ring-wrap { margin: 12px 0 8px; min-height: 160px; }
.dc-empty { text-align: center; color: var(--muted); font-size: 12px; line-height: 1.45; }
.dc-empty-ring {
  width: 110px; height: 110px; margin: 8px auto 12px;
  border-radius: 50%;
  border: 3px dashed var(--line);
  background: radial-gradient(circle at center, transparent 48%, var(--panel-2) 49%);
}
.dc-ring {
  position: relative;
  width: 180px; height: 180px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: conic-gradient(from -45deg, #238636 0 90deg, #58a6ff 90deg 180deg, #d29922 180deg 270deg, #f0883e 270deg 360deg);
}
.dc-hub {
  position: absolute; inset: 38%;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.dc-seg {
  position: absolute; inset: 0;
  transform: rotate(var(--rot));
  pointer-events: none;
}
.dc-seg-label, .dc-seg-val {
  position: absolute; left: 50%; top: 10px;
  transform: translateX(-50%) rotate(calc(-1 * var(--rot)));
  font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase;
  color: #0d1117; font-weight: 700; text-align: center; width: 70px;
}
.dc-seg-val { top: 24px; font-family: var(--mono); font-size: 10px; text-transform: none; }
/* ── Economic Cycle metronome clock ── */
.ec-clock {
  --ec-orange: #f0883e;
  --ec-orange-hot: #ff8a3d;
  --ec-charcoal: #12151a;
  margin-top: 4px;
  padding: 14px 16px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #14181f 0%, var(--ec-charcoal) 100%);
  border: 1px solid #2a3038;
}
.ec-clock-head { margin-bottom: 10px; }
.ec-yield {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  align-items: center;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 123, 114, 0.45);
  background: rgba(248, 81, 73, 0.08);
}
.ec-heart {
  grid-row: 1 / span 2;
  font-size: 22px;
  line-height: 1;
  color: #ff7b72;
}
.ec-yield-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff7b72;
}
.ec-yield-when {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--title);
}
.ec-yield-when.hold {
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 600;
}
.ec-yield-note {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.ec-hb-mark {
  fill: #ff7b72;
  font-size: 16px;
  font-weight: 700;
}
.ec-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--title);
  letter-spacing: 0.02em;
}
.ec-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 5px;
  background: var(--ec-orange);
  color: #12151a;
  font-weight: 800;
  font-size: 12px;
}
.ec-kicker {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c8d1dc;
}
.ec-accent {
  margin-top: 6px;
  height: 2px;
  width: 148px;
  background: var(--ec-orange);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(240, 136, 62, 0.45);
}
.ec-clock-body {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 18px 28px;
  align-items: center;
  padding: 8px 0 4px;
}
.ec-dial-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
}
.ec-dial { width: 100%; height: 100%; display: block; }
.ec-dial-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}
.ec-avg-l {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.ec-avg-v {
  margin-top: 4px;
  font-size: 28px;
  font-weight: 800;
  color: var(--ec-orange);
  font-family: var(--mono);
  letter-spacing: -0.5px;
  line-height: 1.1;
  max-width: 110px;
}
.ec-avg-v.hold {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sans);
  letter-spacing: 0;
  line-height: 1.25;
}
.ec-metronome-note {
  text-align: center;
  margin-top: 8px;
  font-size: 11px;
  color: var(--dim);
}
.ec-side .n {
  font-size: 15px;
  margin: 0 0 10px;
}
.ec-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #2a3038;
}
.ec-metric:first-of-type { border-top: 1px solid #2a3038; }
.ec-metric-l {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.ec-metric-l span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 500;
  color: var(--dim);
  margin-top: 2px;
}
.ec-metric-v {
  font-size: 26px;
  font-weight: 800;
  color: var(--ec-orange);
  font-family: var(--mono);
  letter-spacing: -0.4px;
}
.ec-metric-v.hold {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sans);
  letter-spacing: 0;
  text-align: right;
  max-width: 58%;
}
.ec-side-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--dim);
  line-height: 1.4;
}
.ec-side-note::before {
  content: "◷ ";
  color: var(--ec-orange);
}
.ec-seg-breakdown {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #2a3038;
}
.ec-seg {
  min-height: 54px;
  padding: 6px 4px;
  border-radius: 7px;
  background: #0d1117;
  border: 1px solid #2a3038;
  text-align: center;
}
.ec-seg.is-current {
  border-color: var(--ec-orange);
  box-shadow: 0 0 0 1px rgba(240, 136, 62, 0.25), 0 0 12px rgba(240, 136, 62, 0.12);
}
.ec-seg.is-done {
  border-color: #3a2a1c;
  background: #18130f;
}
.ec-seg-k {
  font-size: 11px;
  font-weight: 800;
  color: var(--ec-orange);
  font-family: var(--mono);
}
.ec-seg-p, .ec-seg-c {
  margin-top: 3px;
  font-size: 9px;
  color: var(--dim);
  line-height: 1.25;
}
.ec-seg-p.empty, .ec-seg-c.empty { color: #3d444d; }
.ec-caption {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.ec-caption::before {
  content: "☍ ";
  color: var(--ec-orange);
}
.ec-tick-label {
  fill: #8b949e;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--mono);
}
.ec-ring-base { stroke: #30363d; fill: none; }
.ec-ring-progress {
  stroke: var(--ec-orange-hot);
  fill: none;
  filter: url(#ec-glow);
  stroke-linecap: butt;
  transition: stroke-dashoffset 0.6s ease;
}
.ec-seg-wedge { fill: transparent; stroke: #21262d; stroke-width: 1; }
.ec-hand {
  stroke: var(--ec-orange);
  stroke-width: 2.5;
  stroke-linecap: round;
  transform-origin: 120px 120px;
  filter: url(#ec-glow);
}
.ec-hand-pulse {
  animation: ec-pulse 1.8s ease-in-out infinite;
}
@keyframes ec-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ec-hand-pulse { animation: none; }
  .ec-ring-progress { transition: none; }
}
@media (max-width: 720px) {
  .ec-clock-body { grid-template-columns: 1fr; }
  .ec-dial-wrap { width: 200px; height: 200px; }
  .ec-seg-breakdown { grid-template-columns: repeat(5, 1fr); }
}
.economy-income .tile .n { font-size: 26px; }


/* ── freshness / refresh (Pile A) ── */
.freshness {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  flex-wrap: wrap;
}
.freshness.ok { border-color: #23863655; }
.freshness.stale { border-color: #d2992255; }
.freshness.fail { border-color: #f8514955; }
.fresh-main {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
}
.fresh-k {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--title);
  font-size: 11px;
}
.fresh-source { color: var(--ink); word-break: break-all; }
.fresh-gen { font-family: var(--mono); color: var(--dim); }
.fresh-state { font-weight: 600; }
.freshness.ok .fresh-state { color: #3fb950; }
.freshness.stale .fresh-state { color: #d29922; }
.freshness.fail .fresh-state { color: #f85149; }
.refresh-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #21262d;
  color: var(--title);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.refresh-btn:hover { border-color: var(--blue); color: var(--blue); }
.refresh-btn:disabled { opacity: 0.55; cursor: wait; }
.fresh-doc {
  margin: 0 0 16px;
  font-size: 11px;
  color: var(--dim);
}
.fresh-doc code {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}
.updated.stale { color: #d29922; }
.updated.fail { color: #f85149; }
.empty.unavailable { color: #f85149; font-weight: 600; }

/* thermometer empty: no green fill pretending income */
.tube.empty .fill { height: 0 !important; opacity: 0; }
.tube.empty .bulb { background: #30363d; opacity: 0.45; }
.thermo-empty .tube { opacity: 0.55; }
#thermo-panel[hidden] { display: none !important; }

/* DC blockers panel (JOIN) */
.dc-blockers { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border, #30363d); }
.dc-blockers-h { font-size: 12px; font-weight: 600; color: var(--muted, #8b949e); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.dc-blockers-body { margin: 0; white-space: pre-wrap; font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 12px; line-height: 1.45; color: var(--fg, #e6edf3); background: transparent; border: 0; padding: 0; }
.dc-blockers-body.hold { color: var(--muted, #8b949e); }
