:root {
  /* TransactionTree brand */
  --navy: #262262;      /* wordmark navy */
  --navy-2: #3a2f7a;
  --tt-blue: #0064fb;
  --tt-green: #46ac41;
  --ink: #1c2530;
  --ink-2: #5b6472;
  --line: #e5e8ee;
  --bg: #f5f7fa;
  --card: #ffffff;
  --accent: #0064fb;    /* TT blue */
  --live: #46ac41;      /* TT green */
  --poc: #b9770e;
  --static: #5b6472;
  --deny: #b3261e;
  --shadow: 0 1px 2px rgba(38,34,98,.06), 0 6px 20px rgba(38,34,98,.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
.hub-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  padding: 16px 0;
}
.hub-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; }
.mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: #fff; color: var(--navy); font-weight: 800; letter-spacing: .5px; font-size: 14px;
}
/* White TT logo on the dark header (recolor the color SVG to white via filter) */
.brand-logo { height: 30px; width: auto; display: block; filter: brightness(0) invert(1); }
.brand-text { font-weight: 650; font-size: 17px; padding-left: 12px; margin-left: 2px; border-left: 1px solid rgba(255,255,255,.25); }
.who { font-size: 13px; color: #cdd8e6; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.who strong { color: #fff; font-weight: 600; }
.logout { color: #cdd8e6; text-decoration: underline; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.pill-staff { background: rgba(255,255,255,.15); color: #fff; }

/* Body */
.tagline { color: var(--ink-2); font-size: 15px; margin: 26px 0 20px; }
.centered { min-height: 60vh; display: grid; place-items: center; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding-bottom: 40px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16,32,64,.08), 0 12px 30px rgba(16,32,64,.12); }

.thumb {
  position: relative; height: 108px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #262262, #0064fb);
}
.thumb-live   { background: linear-gradient(135deg, #1f7a3c, #46ac41); }
.thumb-poc    { background: linear-gradient(135deg, #6b4a12, #b9770e); }
.thumb-static { background: linear-gradient(135deg, #3a4250, #5b6472); }
.thumb-initial { font-size: 40px; font-weight: 800; color: rgba(255,255,255,.85); }
.chip {
  position: absolute; top: 10px; right: 10px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .4px;
  background: rgba(255,255,255,.92); color: var(--ink);
}
.chip-live { color: var(--live); }
.chip-poc { color: var(--poc); }
.chip-static { color: var(--static); }

.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prospect { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .4px; }
.card-title { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.3; }
.blurb { margin: 2px 0 0; color: var(--ink-2); font-size: 13.5px; flex: 1; }
.open { margin-top: 12px; font-weight: 650; color: var(--accent); font-size: 14px; }

/* Notices */
.notice {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 24px; color: var(--ink-2); box-shadow: var(--shadow);
  max-width: 560px;
}
.notice-deny { text-align: center; border-color: #f1d3d1; }
.notice-deny h1 { color: var(--deny); font-size: 22px; margin: 0 0 8px; }
.notice a { color: var(--accent); }
.muted { color: var(--ink-2); }

/* Footer */
.hub-footer { border-top: 1px solid var(--line); padding: 20px 0 40px; color: var(--ink-2); font-size: 12.5px; background: #fff; }

@media (prefers-color-scheme: dark) {
  :root { --ink:#e8ecf2; --ink-2:#9aa6b6; --line:#26313f; --bg:#0d1520; --card:#141d29; }
  .chip { background: rgba(20,29,41,.92); color: var(--ink); }
  .notice, .hub-footer { background: var(--card); }
}
