/* 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);
}
.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;
}
.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, 8%);
  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 (Job Lifecycle / DC / EC) ── */
.cycles {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}
.cycle-panel { min-height: 220px; }
.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; }
}
