/* RIIZE: slate white. (Colours were converted from the old dark theme; layout and glass live in theme.css.) */
:root {
  /* slate white: white glass surfaces, hairline slate borders, slate type, a slate-900 primary */
  --bg: #ffffff;
  --white: #ffffff;          /* surfaces (cards, panels) */
  --paper: #efeff1;          /* fills inside surfaces */
  --line: #e2e2e4;           /* hairline borders */
  --slate-100: #e6e6e8;      /* chips, tracks */
  --slate-300: #a8a8aa;      /* faint */
  --slate-400: #8e8e90;
  --slate-500: #757577;      /* secondary text */
  --slate-700: #3b3b3d;      /* body text */
  --slate-900: #27272a;      /* primary text and light fills */
  --lime: #27272a;           /* the accent is slate-900 */
  --lime-deep: #27272a;
  --lime-ink: #27272a;
  --on-accent: #ffffff;      /* text on the accent */
  --green: #22c55e;
  --green-ink: #16a34a;
  --red: #ef4444;
  --red-ink: #dc2626;
  --blue: #27272a;
  --shadow: 0 0 0 1px rgba(39, 39, 42, 0.054), 0 14px 36px rgba(39, 39, 42, 0.193);
  --r: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
/* [hidden] always wins: #chip, the notices and others set display, which
   would otherwise keep a hidden element on screen (the 'stuck card') */
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #ffffff; color: var(--slate-900);
  font: 13px/1.4 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.mono { font-family: Inter, system-ui, sans-serif; }
.dim { color: var(--slate-500); }
button { font: inherit; }

/* the logo: the Paid P with a suited agent */
.mark { display: inline-block; width: 26px; height: 26px; border-radius: 7px; background: #ffffff url(/img/icon-192.png) center / cover no-repeat; flex: none; }

/* ---- top bar ---- */
.bar { position: fixed; top: 14px; left: 14px; right: 14px; display: flex; align-items: center; gap: 14px; z-index: 5; pointer-events: none; }
.bar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); white-space: nowrap; }
.brand b { font: 700 16px Inter, sans-serif; letter-spacing: 0.02em; }
.brand .tag { color: var(--slate-700); font-size: 13px; font-weight: 600; text-decoration: none; padding: 4px 8px; border-radius: 7px; background: var(--paper); }
.brand .tag:hover { background: var(--lime); color: var(--on-accent); }
.brand b span { color: var(--lime-deep); }
.tip { position: fixed; z-index: 15; pointer-events: none; padding: 6px 10px; border-radius: 9px; background: var(--slate-900); color: var(--on-accent); font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow); transform: translate(14px, 14px); }
.tip span { color: #b1b1b3; font: 500 11px Inter, system-ui, sans-serif; margin-left: 6px; }
.keys { position: fixed; right: 14px; bottom: 14px; z-index: 3; font-size: 11px; color: var(--slate-500); background: rgba(255, 255, 255, 0.85); padding: 6px 10px; border-radius: 9px; }
.keys b { color: var(--slate-900); font-family: Inter, system-ui, sans-serif; font-size: 11px; }
@media (max-width: 900px) { .keys { display: none; } }
.clocks { display: flex; gap: 6px; padding: 6px; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); margin: 0 auto; }
.clock { padding: 3px 12px; border-radius: 9px; min-width: 104px; }
.clock small { display: block; font-size: 11px; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.clock b { font: 600 16px Inter, system-ui, sans-serif; }
.clock.lime { background: var(--slate-900); color: var(--on-accent); }
.clock.lime small { color: #b1b1b3; }
.actions { display: flex; gap: 8px; align-items: center; }
.btn { border: 0; border-radius: 11px; padding: 10px 15px; font-weight: 600; cursor: pointer; background: var(--lime); color: var(--on-accent); box-shadow: var(--shadow); white-space: nowrap; }
.btn:hover { background: #27272a; }
.btn.ghost { background: var(--white); }
.btn.ghost:hover { background: var(--paper); }
.btn.dark { background: var(--slate-900); color: var(--on-accent); }
.btn.small { padding: 6px 10px; font-size: 13px; box-shadow: none; }
.btn:disabled { opacity: 0.5; cursor: default; }

.search { position: relative; }
.search input { width: 230px; border: 0; border-radius: 11px; padding: 10px 13px; background: var(--white); box-shadow: var(--shadow); font: inherit; outline: none; }
.search input:focus { box-shadow: 0 0 0 2px var(--lime), var(--shadow); }
.search ul { position: absolute; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 4px; list-style: none; background: var(--white); border-radius: 12px; box-shadow: var(--shadow); display: none; max-height: 320px; overflow: auto; }
.search ul.open { display: block; }
.search li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.search li:hover, .search li.on { background: var(--paper); }
.search li b { font-weight: 600; }
.search li span { color: var(--slate-500); font-size: 13px; margin-left: auto; font-family: Inter, system-ui, sans-serif; }

/* ---- token card ---- */
.card { position: fixed; top: 84px; right: 14px; width: 330px; max-height: calc(100% - 100px); overflow: auto; background: var(--white); border-radius: 18px; box-shadow: var(--shadow); z-index: 4; }
.card .hero { display: flex; gap: 12px; padding: 16px 16px 12px; align-items: center; }
.card .pic { width: 58px; height: 58px; border-radius: 14px; background: var(--slate-100) center/cover; flex: none; }
.card h2 { margin: 0; font: 700 19px Inter, sans-serif; }
.card .sym { color: var(--slate-500); font: 500 13px Inter, system-ui, sans-serif; }
.card .x { margin-left: auto; align-self: flex-start; }
.pays { margin: 0 16px 12px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--slate-900); color: var(--on-accent); }
.pays small { color: #b1b1b3; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.pays a { color: var(--on-accent); font-weight: 600; text-decoration: none; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 12px; }
.stat { background: var(--paper); border-radius: 12px; padding: 9px 11px; }
.stat small { display: block; color: var(--slate-500); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.stat b { font: 600 16px Inter, system-ui, sans-serif; }
.tierbar { margin: 0 16px 12px; }
.tierbar .track { height: 6px; border-radius: 3px; background: var(--slate-100); overflow: hidden; }
.tierbar .fill { height: 100%; background: var(--lime-deep); border-radius: 3px; }
.tierbar .row { display: flex; justify-content: space-between; font-size: 11px; color: var(--slate-500); margin-top: 5px; }
.flag { margin: 0 16px 12px; padding: 8px 11px; border-radius: 10px; font-size: 13px; font-weight: 500; }
.flag.up { background: rgba(34,197,94,0.10); color: var(--lime-ink); }
.flag.down { background: rgba(239,68,68,0.10); color: #dc2626; }
.desc { margin: 0 16px 12px; color: var(--slate-700); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 110px; overflow: auto; }
.links { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 16px; }
.links a { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--slate-900); background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 6px 10px; }
.links a:hover { border-color: var(--slate-300); }
.x { border: 0; background: var(--paper); width: 30px; height: 30px; border-radius: 9px; cursor: pointer; font-size: 18px; line-height: 1; color: var(--slate-700); }

/* ---- feed + legend ---- */
.feed, .legend { position: fixed; left: 14px; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); z-index: 3; }
.feed { bottom: 14px; width: 300px; }
.feed header, .legend header { padding: 10px 13px 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--slate-500); display: flex; align-items: center; gap: 7px; }
i.live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,0.25); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px transparent; } }
.feed ul { list-style: none; margin: 0; padding: 0 6px 6px; height: 188px; overflow: hidden; }
.feed li { display: flex; align-items: center; gap: 8px; padding: 5px 7px; border-radius: 8px; font-size: 13px; cursor: pointer; animation: slidein 0.35s ease; }
.feed li:hover { background: var(--paper); }
.feed li .side { font: 600 11px Inter, system-ui, sans-serif; padding: 2px 6px; border-radius: 5px; }
.feed li .side.buy { background: rgba(34,197,94,0.16); color: var(--green-ink); }
.feed li .side.sell { background: var(--slate-100); color: var(--slate-700); }
.feed li b { font-weight: 600; }
.feed li span.r { margin-left: auto; color: var(--slate-500); font-family: Inter, system-ui, sans-serif; font-size: 11px; }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } }
.legend { top: 84px; width: 244px; max-height: calc(100% - 330px); overflow: auto; }
.legend ul { list-style: none; margin: 0; padding: 0 6px 8px; }
.legend li { display: flex; align-items: center; gap: 8px; padding: 5px 7px; border-radius: 8px; font-size: 13px; cursor: pointer; }
.legend li:hover { background: var(--paper); }
.legend li .n { width: 18px; color: var(--slate-300); font: 600 11px Inter, system-ui, sans-serif; }
.legend li b { font-weight: 600; }
.legend li span { margin-left: auto; font: 500 11px Inter, system-ui, sans-serif; color: var(--slate-500); }

/* ---- 3D labels ---- */
#labels { position: fixed; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.lbl { position: absolute; left: 0; top: 0; transform-origin: 50% 100%; white-space: nowrap; pointer-events: auto; cursor: pointer;
  display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border-radius: 9px; background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 14px rgba(39, 39, 42, 0.049); font-size: 13px; font-weight: 600; will-change: transform; }
.lbl i { width: 18px; height: 18px; border-radius: 6px; background: var(--slate-100) center/cover; flex: none; }
.lbl span { font: 500 11px Inter, system-ui, sans-serif; color: var(--slate-500); }
.lbl.top { background: var(--slate-900); color: var(--on-accent); }
.lbl.top span { color: #b1b1b3; }
.lbl.hq { background: var(--lime); color: var(--on-accent); padding-left: 8px; }
.lbl.hq span { color: var(--lime-ink); }

/* ---- modals ---- */
.modal { position: fixed; inset: 0; background: rgba(39, 39, 42, 0.098); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 20; padding: 16px; }
.modal[hidden] { display: none; }
.sheet { width: min(620px, 100%); max-height: calc(100% - 32px); overflow: auto; background: var(--white); border-radius: 20px; box-shadow: var(--shadow); }
.sheet.small { width: min(360px, 100%); }
.sheet > header { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--white); }
.sheet > header b { font: 700 16px Inter, sans-serif; }
.sheet > header .x { margin-left: auto; }
.sheet .body { padding: 16px 18px 18px; }
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 13px; font-weight: 600; color: var(--slate-700); margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--slate-500); margin-top: 5px; }
.row { display: flex; gap: 8px; align-items: center; }
.input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; font: 13px Inter, system-ui, sans-serif; background: var(--paper); outline: none; }
.input:focus { border-color: var(--lime-deep); background: var(--white); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--paper); margin-bottom: 8px; }
.switch div small { display: block; color: var(--slate-500); font-size: 13px; }
.switch b { font-weight: 600; }
.pill { font: 600 11px Inter, system-ui, sans-serif; padding: 3px 8px; border-radius: 6px; background: var(--slate-100); color: var(--slate-700); }
.pill.on { background: var(--lime); color: var(--on-accent); }
.pill.warn { background: rgba(239,68,68,0.14); color: #dc2626; }
.audit { list-style: none; margin: 0; padding: 0; font: 13px Inter, system-ui, sans-serif; color: var(--slate-700); }
.audit li { padding: 6px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.audit li span { color: var(--slate-500); }
.wallet-btn { display: flex; width: 100%; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; margin-bottom: 8px; font-weight: 600; }
.wallet-btn:hover { border-color: var(--lime-deep); }

.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--slate-900); color: var(--on-accent); padding: 10px 16px; border-radius: 12px; z-index: 30; box-shadow: var(--shadow); font-weight: 500; }
.toast.err { background: var(--red); }

.loading { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: #ffffff; z-index: 40; color: var(--slate-500); font-weight: 500; transition: opacity 0.6s; }
.loading.done { opacity: 0; pointer-events: none; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* ---- speech bubbles ---- */
.bubble { position: absolute; left: 0; top: 0; max-width: 240px; padding: 8px 11px; border-radius: 12px 12px 12px 3px; background: var(--white); color: var(--slate-900);
  font-size: 13px; line-height: 1.35; box-shadow: 0 6px 20px rgba(39, 39, 42, 0.063); pointer-events: auto; cursor: pointer; transform-origin: 50% 100%; animation: pop 0.25s ease; }
.bubble b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-500); margin-bottom: 2px; }
.bubble.affiliate { border-left: 3px solid var(--lime-deep); }
.bubble.investor { background: var(--slate-900); color: var(--on-accent); border-radius: 12px 12px 3px 12px; }
.bubble.investor b { color: #b1b1b3; }
.bubble.verdict { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.bubble.verdict b { font: 700 16px Inter, system-ui, sans-serif; color: var(--slate-900); margin: 0; background: var(--lime); padding: 2px 7px; border-radius: 7px; letter-spacing: 0; }
.bubble.verdict.pass b { background: var(--slate-100); color: var(--slate-700); }
@keyframes pop { from { opacity: 0; } }

/* ---- left panel tabs ---- */
.tabs { display: flex; gap: 2px; padding: 6px 6px 0; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 7px 4px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--slate-500); cursor: pointer; }
.tabs button.on { background: var(--slate-900); color: var(--on-accent); }
.tab { padding: 8px 6px 8px; }
.pot { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 2px 8px; }
.pot div { background: var(--paper); border-radius: 10px; padding: 7px 9px; }
.pot small { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-500); }
.pot b { font: 600 13px Inter, system-ui, sans-serif; }
.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank li { display: flex; align-items: center; gap: 8px; padding: 6px 7px; border-radius: 8px; font-size: 13px; cursor: pointer; counter-increment: r; }
.rank li::before { content: counter(r); width: 16px; color: var(--slate-300); font: 600 11px Inter, system-ui, sans-serif; }
.rank li:first-child { background: rgba(34,197,94,0.10); }
.rank li:hover { background: var(--paper); }
.rank li b { font-weight: 600; }
.rank li span { margin-left: auto; font: 500 11px Inter, system-ui, sans-serif; color: var(--slate-500); }
.rank .empty, .burns .empty { color: var(--slate-500); font-size: 13px; padding: 6px 8px; cursor: default; background: none !important; }
.rank .empty::before { content: none; }
.sub { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--slate-500); padding: 10px 8px 4px; }
.burns { list-style: none; margin: 0; padding: 0; }
.burns li { display: flex; align-items: center; gap: 6px; padding: 5px 8px; font-size: 13px; border-radius: 8px; cursor: pointer; }
.burns li:hover { background: var(--paper); }
.burns li a { color: var(--slate-700); font-weight: 600; text-decoration: none; margin-left: auto; font-size: 11px; }
.burns li .fire { width: 8px; height: 8px; border-radius: 2px; background: var(--lime-deep); flex: none; }
.burns li .dim { margin-left: auto; font-family: Inter, system-ui, sans-serif; font-size: 11px; }
.legend .hint { margin: 0 6px 6px; font-size: 13px; color: var(--slate-500); }

/* ---- deploy ---- */
.sheet.wide { width: min(760px, 100%); }
.lead { font-size: 16px; margin: 0 0 14px; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role { text-align: left; border: 1px solid var(--line); background: var(--white); border-radius: 16px; padding: 18px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; font: inherit; color: inherit; }
.role:hover { border-color: var(--lime-deep); box-shadow: 0 0 0 3px rgba(39, 39, 42, 0.072); }
.role b { font: 700 18px Inter, sans-serif; }
.role span { font-weight: 500; }
.role small { color: var(--slate-500); font-size: 13px; line-height: 1.45; }
.builder { display: grid; grid-template-columns: 150px 1fr; gap: 20px; }
.portrait { display: flex; flex-direction: column; align-items: center; gap: 8px; position: sticky; top: 70px; align-self: start; }
.portrait small { color: var(--slate-500); font-weight: 600; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--slate-700); }
.chip.on { background: var(--slate-900); border-color: var(--slate-900); color: var(--on-accent); }
.looks { display: grid; grid-template-columns: 40px 1fr; gap: 8px 10px; align-items: center; margin: 4px 0 10px; font-size: 13px; color: var(--slate-500); font-weight: 600; }
.sw { display: flex; gap: 6px; flex-wrap: wrap; }
.sw button { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.sw button.on { box-shadow: 0 0 0 2px var(--slate-900); }
.holdings { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 190px; overflow: auto; }
.hold { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); cursor: pointer; font-size: 13px; }
.hold i { width: 22px; height: 22px; border-radius: 7px; background: var(--slate-100) center/cover; flex: none; }
.hold span { margin-left: auto; font: 500 11px Inter, system-ui, sans-serif; color: var(--slate-500); }
.hold.on { border-color: var(--lime-deep); box-shadow: 0 0 0 2px rgba(39, 39, 42, 0.09); }
textarea.input { resize: vertical; font-family: Inter, sans-serif; }
select.input { font-family: Inter, sans-serif; }
input[type=range] { width: 100%; accent-color: var(--lime-deep); }
.row.end { justify-content: flex-end; margin-top: 8px; }
.av { display: block; flex: none; }

/* ---- my agents / agent card ---- */
.mine-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; }
.mine-row .who { flex: 1; min-width: 0; }
.mine-row .who b { display: block; font-weight: 700; }
.mine-row .who small { color: var(--slate-500); }
.mine-row .btns { display: flex; gap: 6px; }
.memory { font: 13px Inter, system-ui, sans-serif; white-space: pre-wrap; background: var(--paper); border-radius: 10px; padding: 9px 11px; color: var(--slate-700); max-height: 150px; overflow: auto; margin: 0 16px 12px; }
.transcript { margin: 0 16px 12px; display: flex; flex-direction: column; gap: 6px; }
.transcript .l { padding: 7px 10px; border-radius: 11px; font-size: 13px; background: var(--paper); }
.transcript .l.i { background: var(--slate-900); color: var(--on-accent); }
.transcript .l b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.7; }
.meets { list-style: none; margin: 0 16px 14px; padding: 0; }
.meets li { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.meets li span { margin-left: auto; font: 600 13px Inter, system-ui, sans-serif; }
.meets li span.ok { color: var(--green-ink); }
.card .role-pill { display: inline-block; font: 600 11px Inter, system-ui, sans-serif; padding: 2px 7px; border-radius: 6px; background: var(--lime); color: var(--on-accent); margin-top: 3px; }
.card .role-pill.investor { background: #e2e2e4; color: #27272a; box-shadow: inset 0 0 0 1px #cbcbcd; }
.feed li .side.meet { background: #e2e2e4; color: #27272a; box-shadow: inset 0 0 0 1px #cbcbcd; }
.feed li .side.deal { background: var(--lime-deep); color: var(--white); }
.feed li .side.burn { background: #ea580c; color: var(--white); }

@media (max-width: 900px) {
  .roles, .builder { grid-template-columns: 1fr; }
  .portrait { position: static; }
  .bar { flex-wrap: wrap; top: 10px; left: 10px; right: 10px; gap: 8px; }
  .brand .tag { display: none; }
  .clocks { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .clock { min-width: 92px; }
  .search input { width: 150px; }
  .legend { display: none; }
  .feed { width: calc(100% - 20px); left: 10px; bottom: 10px; }
  .feed ul { height: 112px; }
  .card { top: auto; bottom: 10px; right: 10px; left: 10px; width: auto; max-height: 60%; }
}

.stat .minor { font: 500 11px Inter, system-ui, sans-serif; color: var(--slate-500); }
.stat.good b { color: #16a34a; }
.stat.good { background: rgba(34,197,94,0.10); }
.stat.bad b { color: #dc2626; }
.mine-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.mine-stats .stat { padding: 6px 8px; }
.mine-stats .stat b { font-size: 13px; }

/* ---- activity feed ---- */
.feed { width: 360px; }
.feed header { justify-content: flex-start; }
.ftabs { margin-left: auto; display: flex; gap: 2px; }
.ftabs button { border: 0; background: transparent; padding: 3px 8px; border-radius: 7px; font: 600 11px Inter, sans-serif; letter-spacing: 0; text-transform: none; color: var(--slate-500); cursor: pointer; }
.ftabs button.on { background: var(--slate-900); color: var(--on-accent); }
.feed ul { height: auto; max-height: 38vh; overflow-y: auto; overscroll-behavior: contain; padding: 0 6px 8px; scrollbar-width: thin; }
.feed li.fi { display: grid; grid-template-columns: 32px 1fr auto; gap: 9px; align-items: center; padding: 7px 7px; border-radius: 10px; animation: slidein 0.3s ease; }
.feed li.fi:hover { background: var(--paper); }
.fi-img { width: 32px; height: 32px; border-radius: 9px; background: var(--slate-100) center/cover; display: block; }
.fi .av { width: 32px; height: 32px; }
.fi-body { min-width: 0; }
.fi-t { font-size: 13px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fi-t b { font-weight: 600; }
.fi-s { font-size: 11px; color: var(--slate-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fi-r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.fi-r time { font: 500 11px Inter, system-ui, sans-serif; color: var(--slate-300); }
.fi-links { display: flex; gap: 4px; }
.fi-links a { font: 600 11px Inter, sans-serif; color: var(--slate-700); text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
.fi-links a:hover { border-color: var(--lime-deep); color: var(--slate-900); }
.fi .tag { font: 600 11px Inter, system-ui, sans-serif; text-transform: uppercase; padding: 1px 5px; border-radius: 5px; }
.fi .tag.buy { background: rgba(34,197,94,0.16); color: var(--green-ink); }
.fi .tag.sell { background: var(--slate-100); color: var(--slate-700); }
.fi .score { font: 600 11px Inter, system-ui, sans-serif; padding: 0 5px; border-radius: 5px; background: var(--slate-100); }
.fi .score.ok { background: var(--lime); }
.fi .score.bad { background: rgba(239,68,68,0.14); color: #dc2626; }
.fi.deal { background: rgba(34,197,94,0.08); }
.fi.burn, .fi.race { background: rgba(251,146,60,0.08); }

/* ---- hover chip on project nameplates ---- */
#chip { position: fixed; left: 0; top: 0; z-index: 14; display: flex; align-items: center; gap: 9px; padding: 7px 8px 7px 7px; border-radius: 12px; background: var(--white); box-shadow: 0 10px 28px rgba(39, 39, 42, 0.063); cursor: pointer; white-space: nowrap; }
#chip i { width: 30px; height: 30px; border-radius: 8px; background: var(--slate-100) center/cover; }
#chip b { display: block; font: 700 13px Inter, sans-serif; }
#chip span { font: 500 11px Inter, system-ui, sans-serif; color: var(--slate-500); }
#chip a { font-size: 11px; font-weight: 600; text-decoration: none; color: var(--slate-900); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }
#chip a:hover { background: var(--lime); border-color: var(--lime); }

#chip[hidden] { display: none; }

/* ---- agent tags ---- */
.atag { position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 3px 8px 4px; border-radius: 9px; background: rgba(255, 255, 255, 0.93); box-shadow: 0 3px 10px rgba(39, 39, 42, 0.049); white-space: nowrap; transform-origin: 50% 100%; border-top: 2px solid var(--lime-deep); }
.atag.investor { border-top-color: var(--slate-900); }
.atag b { font-size: 11px; font-weight: 700; line-height: 1.2; }
.atag span { font: 500 11px Inter, sans-serif; color: var(--slate-700); }
.atag small { font: 500 11px Inter, system-ui, sans-serif; color: var(--slate-300); }

/* ---- feed v2: taller rows, full text, zebra, logo amounts ---- */
.feed { width: 380px; }
.feed ul { max-height: 50vh; padding: 0 6px 8px; }
.feed li.fi { grid-template-columns: 36px 1fr auto; align-items: start; padding: 9px 9px; border-radius: 11px; margin-bottom: 3px; background: var(--white); }
.feed li.fi:nth-child(even) { background: #f3f3f5; }
.feed li.fi:hover { background: #ededef; }
.fi-img, .fi .av { width: 36px; height: 36px; border-radius: 10px; }
.fi-t, .fi-s { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.fi-t { font-size: 13px; line-height: 1.35; }
.fi-s { font-size: 11px; line-height: 1.35; margin-top: 1px; }
.feed li.fi > time { font: 500 11px Inter, system-ui, sans-serif; color: var(--slate-300); padding-top: 2px; }
.fi-links { display: flex; gap: 5px; margin-top: 5px; }
.fi-links a { font-size: 11px; padding: 2px 7px; }
.fi .tag.sell { background: rgba(239,68,68,0.16); color: #dc2626; }
.fi .addr { color: var(--slate-700); text-decoration: none; border-bottom: 1px dashed var(--slate-300); font-family: Inter, system-ui, sans-serif; }
.fi .addr:hover { color: var(--slate-900); border-bottom-color: var(--lime-deep); }
.amt { display: inline-flex; align-items: center; gap: 3px; font: 600 13px Inter, system-ui, sans-serif; white-space: nowrap; }
.amt em { font-style: normal; font-weight: 500; color: var(--slate-500); margin-left: 3px; }
.fi-s .amt { font-size: 11px; }
svg.sol { display: inline-block; vertical-align: -1px; flex: none; }
.fi.deal { background: rgba(34,197,94,0.08) !important; }
.fi.burn, .fi.race { background: rgba(251,146,60,0.08) !important; }

/* ---- trade pops ---- */
.pop { position: absolute; left: 0; top: 0; pointer-events: none; display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 999px; font: 700 13px Inter, system-ui, sans-serif; white-space: nowrap; box-shadow: 0 4px 12px rgba(39, 39, 42, 0.063); }
.pop em { font-style: normal; font-weight: 500; opacity: 0.8; margin-left: 4px; }
.pop.buy { background: var(--green); color: #ffffff; }
.pop.sell { background: var(--red); color: #27272a; }

/* ---- global notices ---- */
.notices { position: fixed; top: 124px; left: 50%; transform: translateX(-50%); z-index: 12; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
.notice { pointer-events: auto; cursor: pointer; display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 420px; padding: 8px 14px 8px 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.96); color: var(--slate-900); box-shadow: 0 12px 30px rgba(39, 39, 42, 0.105); animation: noticeIn 0.35s cubic-bezier(.2,.9,.3,1.2); transition: opacity 0.4s, transform 0.4s; }
.notice.out { opacity: 0; transform: translateY(-8px); }
.notice i { width: 30px; height: 30px; border-radius: 9px; background: var(--slate-700) center/cover; flex: none; }
.notice i.dot { background: var(--lime); }
.notice .av { width: 30px; height: 30px; }
.notice b { display: block; font-size: 13px; font-weight: 600; }
.notice span { display: flex; align-items: center; gap: 3px; font-size: 11px; color: #5b5b5d; }
.notice span em { font-style: normal; color: #757577; }
.notice.deal { box-shadow: 0 0 0 2px var(--lime), 0 12px 30px rgba(39, 39, 42, 0.105); }
.notice.buy b { color: var(--green-ink); }
.notice.sell b { color: #dc2626; }
.notice.burn, .notice.race { box-shadow: 0 0 0 2px #ea580c, 0 12px 30px rgba(39, 39, 42, 0.105); }
@keyframes noticeIn { from { opacity: 0; transform: translateY(-10px) scale(0.97); } }

/* ---- deploy v2 ---- */
.sheet.wide { width: min(860px, 100%); }
.stepper { display: flex; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 11px; background: var(--paper); color: var(--slate-500); font-size: 13px; font-weight: 600; cursor: pointer; }
.stepper li i { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font: 700 11px Inter, system-ui, sans-serif; font-style: normal; background: var(--white); color: var(--slate-500); }
.stepper li.done { color: var(--slate-900); }
.stepper li.done i { background: var(--lime); color: var(--on-accent); }
.stepper li.on { background: var(--slate-900); color: var(--on-accent); }
.stepper li.on i { background: var(--lime); color: var(--on-accent); }
.dstep { min-height: 300px; }
.dfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.btn.big { padding: 12px 22px; font-size: 13px; }
.ricon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.ricon.aff { background: var(--lime); color: var(--on-accent); }
.ricon.inv { background: #e2e2e4; color: #27272a; box-shadow: inset 0 0 0 1px #cbcbcd; }
.role { transition: transform 0.15s, box-shadow 0.15s; }
.role:hover { transform: translateY(-2px); }
.sub2 { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-500); margin: 8px 0 6px; }
.toks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.tok { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); cursor: pointer; text-align: left; font: inherit; position: relative; }
.tok i { width: 32px; height: 32px; border-radius: 9px; background: var(--slate-100) center/cover; flex: none; }
.tok b { display: block; font-size: 13px; }
.tok span { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; font-size: 11px; color: var(--slate-500); }
.tok strong { color: var(--green-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.tok em { position: absolute; top: 7px; right: 8px; font: 700 11px Inter; font-style: normal; background: var(--lime); color: var(--on-accent); border-radius: 6px; padding: 1px 6px; }
.tok.on { border-color: var(--lime-deep); box-shadow: 0 0 0 2px rgba(39, 39, 42, 0.09); }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.opt { text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; font: inherit; }
.opt b { display: block; font-size: 13px; }
.opt span { font-size: 11px; color: var(--slate-500); }
.opt.on { background: var(--slate-900); border-color: var(--slate-900); color: var(--on-accent); }
.opt.on span { color: #5b5b5d; }
.seg { display: inline-flex; background: var(--paper); border-radius: 11px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: transparent; padding: 7px 16px; border-radius: 8px; font: 600 13px Inter; color: var(--slate-700); cursor: pointer; }
.seg button.on { background: var(--white); color: var(--slate-900); box-shadow: 0 1px 4px rgba(39, 39, 42, 0.042); }
.sw.big button { width: 32px; height: 32px; border-radius: 10px; }
.lookwrap { display: grid; grid-template-columns: 280px 1fr; gap: 22px; }
.stage { position: relative; border-radius: 18px; background: radial-gradient(120% 90% at 50% 20%, #e9e9eb, #fdfdfd); height: 360px; overflow: hidden; }
.stage canvas { width: 100%; height: 100%; display: block; }
.stage small { position: absolute; left: 12px; top: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-500); }
.stage.small { height: 220px; }
.review { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
.review dl { display: grid; grid-template-columns: 110px 1fr; gap: 10px 14px; margin: 0; font-size: 13px; }
.review dt { color: var(--slate-500); font-weight: 600; }
.review dd { margin: 0; }
.warn { color: #dc2626; font-weight: 600; }
@media (max-width: 760px) { .lookwrap, .review { grid-template-columns: 1fr; } .stage { height: 260px; } .stepper li { font-size: 0; gap: 0; justify-content: center; } }

/* ---- deploy identity + agent tags with pictures ---- */
.ident { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; margin-bottom: 14px; border-radius: 14px; background: var(--paper); }
.ident .field { margin: 0; }
.xrow { display: flex; gap: 8px; align-items: center; }
.xpic { width: 38px; height: 38px; border-radius: 50%; background: var(--slate-100) center/cover; flex: none; display: grid; place-items: center; font-style: normal; font-weight: 700; color: var(--slate-500); }
@media (max-width: 760px) { .ident { grid-template-columns: 1fr; } }
.atag { flex-direction: row; align-items: stretch; gap: 7px; padding: 4px 10px 4px 4px; text-align: left; }
.atag > div { display: flex; flex-direction: column; justify-content: center; }
.atag i { width: 40px; height: 40px; align-self: center; border-radius: 8px; background: var(--slate-100) center/cover; flex: none; }
.atag i.x { border-radius: 50%; }
.atag .av { width: 40px; height: 40px; align-self: center; }
.atag .st { display: flex; align-items: center; gap: 4px; font: 600 11px Inter, sans-serif; color: var(--slate-900); }
.atag .st em { width: 6px; height: 6px; border-radius: 50%; background: var(--slate-300); flex: none; }
.atag .st.go em { background: #27272a; }
.atag .st.live em { background: var(--green); box-shadow: 0 0 0 2px rgba(34,197,94,0.35); }
.atag .st.think em { background: #b45309; animation: pulse 1s infinite; }
.atag .st.off { color: var(--slate-500); }
.atag small { color: var(--slate-500); }
.chg { font: 700 11px Inter, system-ui, sans-serif; margin-left: 6px; }
.chg.up { color: #16a34a; }
.chg.down { color: #dc2626; }

/* ---- my projects (bounties) ---- */
.proj { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.proj-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.proj-h i { width: 38px; height: 38px; border-radius: 10px; background: var(--slate-100) center/cover; }
.proj-h b { display: block; font: 700 16px Inter, sans-serif; }
.proj-h small { color: var(--slate-500); font-size: 13px; }
.proj-h .pill { margin-left: auto; }
.proj-f { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.proj-f label { display: flex; align-items: center; gap: 5px; }
.proj-f .input { width: 80px; flex: none; padding: 7px 9px; }
.proj-f .tick input { accent-color: var(--lime-deep); }
.proj-w { display: flex; gap: 14px; flex-wrap: wrap; align-items: end; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.proj-w small { display: block; color: var(--slate-500); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.proj-w b { display: inline-flex; align-items: center; gap: 3px; }
textarea.input { width: 100%; resize: none; }
.tsearch { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 40px; margin-bottom: 8px; border-radius: 12px; background: #f9f9fb; border: 1px solid var(--line); color: var(--slate-500); }
.tsearch:focus-within { border-color: #aaaaac; }
.tsearch input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--slate-900); font: 13px Inter, sans-serif; }
.tok em.newplot { position: static; font: 600 11px Inter, sans-serif; font-style: normal; background: rgba(96,165,250,0.18); color: #27272a; padding: 0 5px; border-radius: 5px; }

/* ---- My agents ---------------------------------------------------------------------------- */
.sheet.wide { width: min(780px, 100%); }
.mine-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 6px; margin-bottom: 16px; }
.mine-sum > div { background: var(--slate-900); color: var(--on-accent); border-radius: 12px; padding: 10px 12px; }
.mine-sum small { display: block; color: var(--slate-400, #757577); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; }
.mine-sum b { display: inline-flex; align-items: center; gap: 4px; font: 600 16px Inter, system-ui, sans-serif; }
.mine-sum .good b { color: var(--green-ink); }
.mine-sum .bad b { color: #dc2626; }
.mine-sum .minor { color: #757577; font-size: 13px; }
.ag { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; background: var(--white); box-shadow: 0 1px 0 rgba(39, 39, 42, 0.01); }
.ag.affiliate { border-left: 4px solid var(--lime); }
.ag.investor { border-left: 4px solid var(--slate-900); }
.ag.off { opacity: 0.72; }
.ag-h { display: flex; align-items: center; gap: 12px; }
.ag-h > :first-child { flex: none; }
.ag-id { flex: 1; min-width: 0; }
.ag-id > b { display: block; font: 700 16px Inter, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ag .role-pill { display: inline-block; font: 600 11px Inter, system-ui, sans-serif; padding: 2px 7px; border-radius: 6px; background: var(--lime); color: var(--on-accent); }
.ag .role-pill.investor { background: #e2e2e4; color: #27272a; box-shadow: inset 0 0 0 1px #cbcbcd; }
.ag .st { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--slate-500); }
.ag .st i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.ag .st.s-live i { background: var(--lime); box-shadow: 0 0 0 3px rgba(39, 39, 42, 0.315); }
.ag .st.s-paused i { background: var(--slate-400, #757577); }
.ag .xh { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--slate-700); text-decoration: none; }
.ag .xh img { width: 16px; height: 16px; border-radius: 50%; background: var(--slate-100); }
.ag-btns { display: flex; gap: 6px; flex: none; }
.ag .mine-stats { margin-top: 12px; }
.ag-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.ag-sec > small { display: block; color: var(--slate-500); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.ag-sec > div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ag-toks .tok { width: auto; white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font: 600 13px Inter, system-ui, sans-serif; color: var(--slate-900); cursor: pointer; }
.ag-toks .tok:hover { border-color: var(--slate-400, #757577); }
.ag-toks .tok i { width: 20px; height: 20px; border-radius: 50%; background: var(--slate-100) center/cover; }
.ag-toks .tok em { position: static; font: 600 11px 'Inter', sans-serif; font-style: normal; text-transform: uppercase; letter-spacing: 0.05em; background: var(--lime); padding: 1px 5px; border-radius: 4px; }
.ag-mem { margin-top: 10px; }
.ag-mem summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--slate-700); list-style: none; }
.ag-mem summary::before { content: '▸ '; color: var(--slate-500); }
.ag-mem[open] summary::before { content: '▾ '; }
.ag-mem .memory { margin-top: 8px; }
.ag-new { display: block; width: 100%; text-align: left; border: 1.5px dashed var(--line); border-radius: 16px; padding: 14px 16px; background: transparent; cursor: pointer; margin-top: 2px; }
.ag-new:hover { border-color: var(--slate-400, #757577); background: var(--paper); }
.ag-new b { display: block; font: 700 16px Inter, sans-serif; color: var(--slate-900); }
.ag-new small { color: var(--slate-500); font-size: 13px; }
@media (max-width: 640px) {
  .ag-h { flex-wrap: wrap; }
  .ag-btns { width: 100%; }
  .ag-btns .btn { flex: 1; }
  .ag .mine-stats { grid-template-columns: repeat(2, 1fr); }
}

/* past meetings open underneath, click again to close */
.meets li[data-meet] b::before { content: '▸'; display: inline-block; width: 12px; color: var(--slate-500); font-weight: 400; transition: transform 0.15s; }
.meets li[data-meet].open b::before { transform: rotate(90deg); }
.meets li.meet-open { display: block; cursor: default; padding: 2px 0 10px; border-top: 0; }
.meets li.meet-open .transcript { margin: 0; }
.transcript .l.v { background: var(--lime); color: var(--on-accent); font-weight: 600; }

/* $AGENTS in the top bar */
.clock.token { background: #f2f2f4; text-decoration: none; color: inherit; }
.clock.token small { color: var(--lime-ink, #16a34a); }
a.clock.token[href]:hover { background: rgba(39, 39, 42, 0.09); }

/* admin: launch readiness */
.ready { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ready li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 7px 10px; border-radius: 10px; background: var(--paper); font-size: 13px; }
.ready li i { font-style: normal; font-weight: 800; width: 16px; }
.ready li.ok i { color: var(--lime-ink, #16a34a); }
.ready li.no { background: rgba(239,68,68,0.10); }
.ready li.no i { color: #dc2626; }
.ready li small { color: var(--slate-500); margin-left: auto; }
.ready li.opt { background: #f2f2f4; } .ready li.opt i { color: var(--slate-500); }
.role-pill.crew { background: rgba(251,191,36,0.14) !important; color: #b45309 !important; }

/* ---- UsePaid components ------------------------------------------------------------------ */
html, body { background: var(--bg); color: var(--slate-900); }
h1, h2, h3, .brand b, .card h2, .role b, .ag-id > b, .proj-h b, .chip b, .ag-new b, .sheet > header b { letter-spacing: -0.02em; font-weight: 600; }
.btn { background: var(--slate-900); color: var(--on-accent); border: 1px solid var(--slate-900); border-radius: 999px; box-shadow: none; font-weight: 600; }
.btn:hover { background: #27272a; }
.btn.ghost, .btn.dark { background: #f7f7f9; color: var(--slate-900); border-color: #d9d9db; }
.btn.ghost:hover, .btn.dark:hover { background: #ededef; border-color: #cbcbcd; }
.btn.small { border-radius: 999px; }
.brand, .clocks, .search input, .card, .feed, .legend, .sheet, #chip, .toast { border: 1px solid var(--line); box-shadow: 0 14px 36px rgba(39, 39, 42, 0.175); }
.brand b span { color: var(--slate-900); }
.brand .tag { background: #efeff1; border: 1px solid var(--line); }
.brand .tag:hover { background: #e6e6e8; color: var(--slate-900); }
.search input { background: #f7f7f9; color: var(--slate-900); border-radius: 999px; }
.search input::placeholder { color: #8e8e90; }
.search input:focus { box-shadow: 0 0 0 1px #b1b1b3; }
.clock.lime { background: var(--slate-900); color: var(--on-accent); }
.clock.token { background: #f2f2f4; }
.clock.token small { color: var(--slate-500); }
.lbl { background: rgba(255, 255, 255, 0.94); color: var(--slate-900); border: 1px solid #e2e2e4; box-shadow: 0 6px 18px rgba(39, 39, 42, 0.175); }
.lbl.hq { background: var(--slate-900); color: var(--on-accent); }
.lbl.hq span { color: #b1b1b3; }
.atag { background: rgba(255, 255, 255, 0.93); border: 1px solid #e2e2e4; border-top: 2px solid #27272a; box-shadow: 0 6px 18px rgba(39, 39, 42, 0.175); color: var(--slate-900); }
.atag.investor { border-top-color: #8e8e90; }
.bubble { background: #f7f7f9; color: var(--slate-900); border: 1px solid #dddddf; box-shadow: 0 10px 28px rgba(39, 39, 42, 0.193); }
.bubble.affiliate { border-left: 3px solid #27272a; }
.bubble.investor { background: #27272a; color: #ffffff; border-color: #27272a; }
.bubble.verdict b { background: var(--slate-900); color: var(--on-accent); }
.bubble.verdict.shortlist b { background: var(--green); color: #ffffff; }
.input { background: #fafafc; color: var(--slate-900); }
.input:focus { border-color: #b1b1b3; background: #f7f7f9; }
.modal { background: rgba(39, 39, 42, 0.3); }
.x { background: #efeff1; color: var(--slate-700); border: 1px solid var(--line); }
.keys { background: rgba(255, 255, 255, 0.85); border: 1px solid var(--line); }
.keys b { color: var(--slate-900); }
.loading { background: var(--bg); }
.role:hover, .tok.on, .hold.on { border-color: #b1b1b3; box-shadow: 0 0 0 1px #b1b1b3; }
.stat.good { background: rgba(34,197,94,0.10); }
.stat.good b { color: var(--green-ink); }
.rank li:first-child { background: #ededef; box-shadow: inset 0 0 0 1px #d9d9db; }
.burns li .fire { background: #ea580c; }
.tierbar .fill { background: #27272a; }
.fi.deal { box-shadow: inset 2px 0 0 var(--green); }
.notice.deal { box-shadow: 0 0 0 1px var(--green), 0 14px 36px rgba(39, 39, 42, 0.193); }
.chg.up { color: var(--green-ink); }
.chg.down { color: var(--red-ink); }
.ready li.ok i { color: var(--green-ink); }
.transcript .l.v { background: rgba(34,197,94,0.14); color: var(--green-ink); }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: #dddddf; border-radius: 8px; } ::-webkit-scrollbar-track { background: transparent; }

/* the burn race and the feed share the left edge: keep them apart */
.feed ul { max-height: 30vh; }
.legend { max-height: calc(100vh - 84px - 30vh - 118px); }
.meets li b { white-space: nowrap; flex: none; }
.meets li small { min-width: 0; }

/* feed score chips: green when liked or in profit */
.fi .score { color: var(--slate-900); }
.fi .score.ok { background: rgba(34,197,94,0.16); color: var(--green-ink); }
.fi .score.bad { background: rgba(239,68,68,0.14); color: var(--red-ink); }
.ag-toks .tok em { color: var(--on-accent); }

/* ---- loading screen: the logo, big, over an endless diagonal drift of itself ---- */
.loading { background: var(--bg); overflow: hidden; }
/* a carousel of the logo, tilted 45deg left, sliding top-right to bottom-left forever at 5% */
.loading::before { content: ''; position: absolute; left: 50%; top: 50%; width: 300vmax; height: 300vmax; margin: -150vmax 0 0 -150vmax; background: url(/img/riize-mark-dark.png) 0 0 / 132px 132px repeat; opacity: 0.05; transform: rotate(-45deg); animation: carousel 3.6s linear infinite; will-change: transform; }
.loading::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, var(--bg) 0, rgba(255, 255, 255, 0.9) 130px, rgba(255, 255, 255, 0) 340px); }
.loading .logo { position: relative; z-index: 1; width: 240px; height: 240px; background: url(/img/riize-mark-dark.png) center / contain no-repeat; animation: bob 2.6s ease-in-out infinite; }
/* slide exactly one tile along the tilted rows (top-right to bottom-left), then repeat: seamless */
@keyframes carousel { from { transform: rotate(-45deg) translate3d(0, 0, 0); } to { transform: rotate(-45deg) translate3d(-132px, 0, 0); } }

/* buzz: a building popping off */
.notice.buzz { box-shadow: 0 0 0 1px #b45309, 0 14px 36px rgba(39, 39, 42, 0.193); }
.notice.buzz b { color: #92400e; }
.fi.buzz { box-shadow: inset 2px 0 0 #b45309; background: rgba(251,191,36,0.07) !important; }

/* ---- layout: the activity feed runs the full left side; the burn race,
   skyline and hype panel sits top right (an open card covers it) ---- */
.feed { top: 84px; bottom: 14px; left: 14px; width: 380px; display: flex; flex-direction: column; }
.feed > header { flex: none; }
.feed ul { flex: 1; min-height: 0; max-height: none !important; overflow-y: auto; }
.legend { left: auto !important; right: 14px; top: 84px; width: 264px; max-height: calc(100vh - 150px) !important; }
@media (max-width: 900px) { .feed { top: auto; height: 180px; } }

/* ---- round 9: contrast, feed cards, incentives ---------------------------------------- */
html, body { background: #ffffff; }
/* sells are red everywhere, buys green */
.fi .tag, .feed li .side { font: 700 11px Inter, system-ui, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; }
.fi .tag.buy, .feed li .side.buy { background: rgba(34,197,94,0.18); color: var(--green-ink); box-shadow: inset 0 0 0 1px rgba(34,197,94,0.35); }
.fi .tag.sell, .feed li .side.sell { background: rgba(239,68,68,0.2); color: #b91c1c; box-shadow: inset 0 0 0 1px rgba(239,68,68,0.45); }
.pop.sell { background: #ef4444; color: #27272a; }

/* feed: taller cards, clear zebra, text never cut off; links sit in the
   right-hand column under the time as small buttons */
.feed { width: 400px; }
.feed ul { padding: 0 8px 10px; }
.feed li.fi { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 11px; align-items: start; padding: 11px 10px; margin-bottom: 5px; min-height: 58px; border-radius: 12px; background: #f5f5f7; border: 1px solid #e8e8ea; }
.feed li.fi:nth-child(even) { background: #ededef; border-color: #e1e1e3; }
.feed li.fi:hover { background: #e6e6e8; border-color: #ceced0; }
.fi-img, .fi .av { width: 40px; height: 40px; border-radius: 11px; }
.fi-t { font-size: 13px; line-height: 1.4; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.fi-s { font-size: 13px; line-height: 1.45; margin-top: 3px; color: #626264; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.fi-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.fi-r time { font: 500 11px Inter, system-ui, sans-serif; color: #939395; white-space: nowrap; }
.fi-r .fi-links { margin: 0; gap: 4px; }
.fi-links a.ic { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border-radius: 7px; background: #f9f9fb; border: 1px solid #d8d8da; }
.fi-links a.ic:hover { border-color: #a4a4a6; background: #ebebed; }
.fi-links a.ic svg { display: block; }
.fi .amt { font-size: 13px; }
.fi .amt em { color: #6e6e70; }
.fi .addr { color: #27272a; border-bottom: 1px dashed #aaaaac; }
.fi .addr:hover { color: #27272a; border-bottom-color: #27272a; }
.fi.trade.buy { box-shadow: inset 3px 0 0 rgba(34,197,94,0.75); }
.fi.trade.sell { box-shadow: inset 3px 0 0 rgba(239,68,68,0.8); }
.fi.deal { box-shadow: inset 3px 0 0 var(--green); }
@media (max-width: 900px) { .feed { width: calc(100% - 20px); height: 220px; } }

/* notices: a little stack under the top bar */
.notices { top: 86px; gap: 8px; }
.notice { min-width: 300px; max-width: 460px; padding: 9px 16px 9px 9px; border: 1px solid #dbdbdd; background: rgba(255, 255, 255, 0.97); }
.notice b { font-size: 13px; }
.notice.plot { box-shadow: 0 0 0 1px #27272a, 0 14px 36px rgba(39, 39, 42, 0.193); }
.notice.meet { box-shadow: 0 0 0 1px #27272a, 0 14px 36px rgba(39, 39, 42, 0.193); }
.notice.bounty { box-shadow: 0 0 0 1px #22c55e, 0 14px 36px rgba(39, 39, 42, 0.193); }
.notice.sell { box-shadow: 0 0 0 1px rgba(239,68,68,0.7), 0 14px 36px rgba(39, 39, 42, 0.193); }
.notice.buy { box-shadow: 0 0 0 1px rgba(34,197,94,0.7), 0 14px 36px rgba(39, 39, 42, 0.193); }

/* incentive panel on project cards */
.inc { margin: 0 16px 12px; padding: 12px; border-radius: 14px; background: linear-gradient(180deg, rgba(34,197,94,0.10), rgba(34,197,94,0.03)); border: 1px solid rgba(34,197,94,0.35); display: grid; gap: 10px; }
.inc.plain { background: var(--paper); border-color: var(--line); }
.inc-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.inc-h b { display: inline-flex; align-items: center; gap: 4px; font: 700 16px Inter, sans-serif; }
.inc-h > span:last-child { color: var(--slate-500); font-size: 13px; width: 100%; }
.inc-tag { font: 700 11px Inter, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; background: var(--green); color: #ffffff; padding: 2px 7px; border-radius: 6px; }
.inc-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.inc-row > div > small { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-500); }
.inc-row b { display: inline-flex; align-items: center; gap: 3px; font: 600 13px Inter, system-ui, sans-serif; }
.inc-row em { display: block; font-style: normal; font-size: 11px; color: var(--slate-500); }
.faces { display: flex; margin-left: auto; }
.faces .face { border: 0; padding: 0; background: none; cursor: pointer; margin-left: -6px; border-radius: 9px; box-shadow: 0 0 0 2px #f7f7f9; }
.faces .face .av { width: 26px; height: 26px; border-radius: 8px; }
.inc-go { width: 100%; justify-content: center; }
.inc-on { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--green-ink); }
.st-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,0.25); animation: pulse 1.6s infinite; }
.inc-owner { margin: 0 16px 10px; padding: 11px 12px; border-radius: 14px; border: 1px dashed #c8c8ca; display: grid; gap: 6px; }
.inc-owner b { font-size: 13px; }
.inc-owner span { font-size: 13px; color: var(--slate-500); }
.inc-owner .btn { justify-self: start; }

/* my projects: the incentive editor */
.proj.focus { border-color: #22c55e; box-shadow: 0 0 0 1px #22c55e; }
.proj-rate { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; margin-bottom: 8px; }
.proj-rate b { display: inline-flex; align-items: center; gap: 3px; }
.rate-in { display: inline-flex; align-items: center; gap: 5px; padding-left: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fafafc; }
.rate-in .input { width: 76px; border: 0; background: transparent; padding: 8px 10px 8px 2px; }
.rate-chips .chip { padding: 5px 11px; }
.proj .hint b { display: inline-flex; align-items: center; gap: 2px; }
.proj-w em { display: block; font-style: normal; font-size: 11px; color: var(--slate-500); }
.proj-fund { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #f9f9fb; }
.proj-fund > div { flex: 1; min-width: 180px; }
.proj-fund small { display: block; color: var(--slate-500); font-size: 11px; font-weight: 600; margin-bottom: 3px; }
.ag-toks .tok em.paid { background: rgba(34,197,94,0.2); color: var(--green-ink); }
.stat b .amt { font: inherit; }
.pop { font-size: 13px; padding: 4px 9px; box-shadow: 0 4px 14px rgba(39, 39, 42, 0.158), 0 0 0 1px rgba(39, 39, 42, 0.108); }
.pop.big { font-size: 13px; padding: 5px 11px; }
/* agent portraits (rendered from the 3D model) */
img.av { display: block; flex: none; object-fit: cover; border-radius: 12px; background: radial-gradient(120% 100% at 50% 15%, #dadadc, #f4f4f6); }

/* ---- deploy v3: portraits, clear steps, proper buttons ---- */
#deploy .sheet { border-radius: 22px; }
.stepper li { padding: 9px 12px; border: 1px solid transparent; transition: background 0.15s, border-color 0.15s; }
.stepper li:hover { border-color: #d6d6d8; }
.stepper li.done i { background: var(--green); color: #ffffff; }
.roles { gap: 14px; }
.role.r2 { flex-direction: row; align-items: stretch; gap: 16px; padding: 14px; border-radius: 18px; background: linear-gradient(180deg, #f1f1f3, #f7f7f9); }
.role.r2:hover { border-color: #a4a4a6; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(39, 39, 42, 0.14); }
.rpic { position: relative; flex: none; }
.rpic img.av { width: 132px; height: 132px; border-radius: 16px; }
.rbadge { position: absolute; left: 8px; bottom: 8px; font: 700 11px Inter, sans-serif; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: rgba(39, 39, 42, 0.3); color: #27272a; }
.rtext { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rtext b { font: 700 18px Inter, sans-serif; }
.rtext > span { font-size: 13px; color: var(--slate-700); }
.rtext ul { margin: 2px 0 0; padding: 0 0 0 16px; color: var(--slate-500); font-size: 13px; line-height: 1.5; }
.rgo { margin-top: auto; font-style: normal; font: 700 13px Inter, sans-serif; color: var(--slate-900); align-self: flex-start; padding: 7px 13px; border-radius: 999px; background: #27272a; color: #ffffff; }
.role.investor .rgo { background: #dfdfe1; color: #27272a; box-shadow: inset 0 0 0 1px #c8c8ca; }
@media (max-width: 760px) { .roles { grid-template-columns: 1fr; } .rpic img.av { width: 96px; height: 96px; } }
.stage .shuffle { position: absolute; right: 10px; top: 8px; }
.ideas { display: flex; gap: 6px; flex-wrap: wrap; }
.idea { border: 1px solid var(--line); background: none; padding: 0; border-radius: 13px; cursor: pointer; overflow: hidden; }
.idea:hover { border-color: #939395; transform: translateY(-1px); }
.idea img.av { width: 52px; height: 52px; border-radius: 12px; }
.idea.more { width: 54px; height: 54px; font-size: 20px; color: var(--slate-500); display: grid; place-items: center; }
.dfoot { position: sticky; bottom: -18px; background: var(--white); padding-bottom: 4px; }
.dfoot .row { gap: 10px; }
.fhint { font-size: 13px; }
.btn.big { padding: 12px 22px; font-size: 13px; }
.btn.go { background: var(--green); border-color: var(--green); color: #ffffff; }
.btn.go:hover { background: #16a34a; }
.tok { transition: border-color 0.15s, transform 0.15s; }
.tok:hover { transform: translateY(-1px); border-color: #b6b6b8; }
/* the top bar never pushes its buttons off screen */
@media (max-width: 1500px) { .search input { width: 170px; } .clock small { white-space: nowrap; } }
@media (max-width: 1400px) { .clocks .clock:nth-child(4) { display: none; } }
@media (max-width: 1250px) { .clocks .clock:nth-child(3) { display: none; } }

/* ---- two feeds: trades above, everything else below ------------------------------------ */
.feed { background: none !important; border: 0 !important; box-shadow: none !important; gap: 10px; }
.fpanel { display: flex; flex-direction: column; min-height: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 14px 36px rgba(39, 39, 42, 0.175); position: relative; }
.fpanel.trades { flex: 1.35; }
.fpanel.activity { flex: 1; }
.fpanel > header { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 10px 8px 13px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--slate-500); }
.fpanel > header b { color: var(--slate-900); font-weight: 700; }
.fpanel > header .ftabs { margin-left: auto; display: flex; gap: 2px; }
.fpanel > header .ftabs button { border: 0; background: none; color: var(--slate-500); font: 600 11px Inter, sans-serif; text-transform: none; letter-spacing: 0; padding: 4px 8px; border-radius: 7px; cursor: pointer; }
.fpanel > header .ftabs button:hover { color: var(--slate-900); }
.fpanel > header .ftabs button.on { background: #27272a; color: #ffffff; }
.fcount { font: 500 11px Inter, system-ui, sans-serif; text-transform: none; letter-spacing: 0; color: var(--slate-500); }
.fbtn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d8d8da; background: #f2f2f4; color: var(--slate-900); font: 600 13px Inter, sans-serif; text-transform: none; letter-spacing: 0; padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.fbtn:hover, .fbtn.on { border-color: #aaaaac; background: #e8e8ea; }
.fbtn em { font-style: normal; min-width: 17px; height: 17px; display: grid; place-items: center; border-radius: 999px; background: var(--green); color: #ffffff; font: 700 11px Inter, sans-serif; padding: 0 4px; }
.fbtn.ghost { margin-left: 0; background: none; }
.fbtn:disabled { opacity: 0.4; cursor: default; }
.fswitch { display: none; }
.feed .flist { flex: 1; min-height: 0; overflow-y: auto; }
.feed li.fempty { display: block; padding: 18px 12px; color: var(--slate-500); font-size: 13px; text-align: center; cursor: default; animation: none; background: none; border: 0; }

/* filter panel */
.filters { flex: none; margin: 0 8px 8px; padding: 12px; border-radius: 13px; background: #fafafc; border: 1px solid #e0e0e2; display: grid; gap: 12px; max-height: 58%; overflow-y: auto; }
.fgroup { display: grid; gap: 6px; }
.fgroup > label, .famt > label { font: 700 11px Inter, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-500); }
.fgroup.two { grid-template-columns: 1fr 1fr; gap: 10px; }
.fgroup.checks { gap: 4px; }
.fwords { display: flex; flex-wrap: wrap; gap: 5px; padding: 5px; border-radius: 10px; background: #f2f2f4; border: 1px solid #dadadc; }
.fwords:focus-within { border-color: #aaaaac; }
.fwords input { flex: 1; min-width: 120px; border: 0; background: none; outline: none; color: var(--slate-900); font: 13px Inter, sans-serif; padding: 4px 5px; }
.fwords input::placeholder { color: #9c9c9e; }
.fchip { display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 7px; background: #27272a; color: #ffffff; font: 600 13px Inter, system-ui, sans-serif; padding: 3px 7px; cursor: pointer; }
.fchip i { font-style: normal; opacity: 0.55; }
.fchip:hover i { opacity: 1; }
.fsub { display: flex; }
.fseg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: #f2f2f4; border: 1px solid #dadadc; }
.fseg button { border: 0; background: none; color: var(--slate-500); font: 600 13px Inter, sans-serif; padding: 5px 11px; border-radius: 7px; cursor: pointer; }
.fseg button:hover { color: var(--slate-900); }
.fseg button.on { background: #27272a; color: #ffffff; }
.fseg button[data-side="buy"].on { background: var(--green); color: #ffffff; }
.fseg button[data-side="sell"].on { background: #ef4444; color: #27272a; }
.famt { display: grid; gap: 6px; min-width: 0; }
.famt-row { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.fnum { display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; height: 30px; border-radius: 9px; background: #f2f2f4; border: 1px solid #dadadc; flex: 1 1 70px; min-width: 70px; }
.fnum:focus-within { border-color: #aaaaac; }
.fnum input { width: 100%; min-width: 0; border: 0; background: none; outline: none; color: var(--slate-900); font: 600 13px Inter, system-ui, sans-serif; -moz-appearance: textfield; }
.fnum input::-webkit-outer-spin-button, .fnum input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fpill { border: 1px solid #dadadc; background: none; color: var(--slate-700); font: 600 11px Inter, system-ui, sans-serif; height: 24px; padding: 0 7px; border-radius: 7px; cursor: pointer; }
.fpill:hover { border-color: #aaaaac; color: var(--slate-900); }
.fpill.on { background: #27272a; border-color: #27272a; color: #ffffff; }
/* custom dropdown */
.dd { position: relative; }
.dd-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 34px; padding: 0 11px; border-radius: 10px; background: #f2f2f4; border: 1px solid #dadadc; color: var(--slate-900); font: 600 13px Inter, sans-serif; cursor: pointer; }
.dd-btn:hover, .dd.open .dd-btn { border-color: #aaaaac; }
.dd-btn svg { transition: transform 0.15s; color: var(--slate-500); }
.dd.open .dd-btn svg { transform: rotate(180deg); }
.feed .dd-list { display: none; position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 5px); margin: 0; padding: 4px; list-style: none; max-height: 240px !important; overflow-y: auto; flex: none; background: #f0f0f2; border: 1px solid #cfcfd1; border-radius: 11px; box-shadow: 0 16px 36px rgba(39, 39, 42, 0.3); }
.dd.open .dd-list { display: block; }
.feed .dd-list li { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-radius: 8px; font: 500 13px Inter, sans-serif; color: var(--slate-700); cursor: pointer; animation: none; min-height: 0; background: none; border: 0; }
.feed .dd-list li:hover { background: #e1e1e3; color: var(--slate-900); }
.feed .dd-list li.on { color: var(--slate-900); font-weight: 600; }
.dd-list li i { font-style: normal; color: var(--green-ink); }
/* custom checkboxes */
.fcheck { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; cursor: pointer; user-select: none; outline: none; }
.fcheck:hover, .fcheck:focus-visible { background: #f0f0f2; }
.fcheck .box { flex: none; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid #b6b6b8; display: grid; place-items: center; color: transparent; transition: background 0.12s, border-color 0.12s; }
.fcheck.on .box { background: var(--green); border-color: var(--green); color: #ffffff; }
.fcheck b { display: block; font: 600 13px Inter, sans-serif; color: var(--slate-900); }
.fcheck small { display: block; font-size: 11px; color: var(--slate-500); }
.ffoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 2px; font-size: 11px; }

@media (max-width: 900px) {
  .feed { height: 250px !important; gap: 6px; }
  .fswitch { display: flex; gap: 4px; flex: none; }
  .fswitch button { flex: 1; border: 1px solid var(--line); background: var(--white); color: var(--slate-500); font: 600 13px Inter, sans-serif; padding: 6px; border-radius: 10px; }
  .fswitch button.on { background: #27272a; color: #ffffff; }
  .fpanel { display: none; }
  .fpanel.on { display: flex; flex: 1; }
  .fgroup.two { grid-template-columns: 1fr; }
}
.fgroup.two { grid-template-columns: 1fr; gap: 10px; }
.famt-row { flex-wrap: nowrap; }
.fnum { flex: 1 1 auto; }
.fpill { flex: none; min-width: 34px; }
.feed li.fi.still { animation: none; }
.role.r2.locked { opacity: 0.6; }
.role.r2.locked .rgo { background: #dfdfe1; color: #b45309; box-shadow: inset 0 0 0 1px rgba(251,191,36,0.35); }
.fi.drop { box-shadow: inset 3px 0 0 #27272a; }

/* ---- connect wallet: standalone tiles -------------------------------------------------- */
#wallet-pick { background: rgba(39, 39, 42, 0.35); }
.wpick { width: min(560px, 100%); }
.wpick > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 0 2px; }
.wpick > header b { display: block; font: 700 22px Inter, sans-serif; letter-spacing: -0.02em; color: #27272a; }
.wpick > header small { color: var(--slate-500); font-size: 13px; }
.wtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.wtile { --brand: #757577; position: relative; overflow: hidden; display: block; height: 176px; padding: 0; border-radius: 20px; border: 1px solid #dfdfe1; background: linear-gradient(160deg, #efeff1, #fafafc); color: #27272a; text-decoration: none; text-align: left; cursor: pointer; font: inherit; box-shadow: 0 18px 40px rgba(39, 39, 42, 0.193); transition: transform 0.2s cubic-bezier(.2,.9,.3,1.2), border-color 0.2s, box-shadow 0.2s; }
.wtile:hover, .wtile:focus-visible { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 70%, transparent); box-shadow: 0 22px 50px rgba(39, 39, 42, 0.3), 0 0 0 1px color-mix(in srgb, var(--brand) 40%, transparent), 0 0 40px -8px var(--brand); outline: none; }
/* the logo as a faint tilted pattern, drifting like the loading screen (5%) */
.wt-pat { position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; margin: -260px 0 0 -260px; background: var(--logo) 0 0 / 46px 46px repeat; opacity: 0.05; transform: rotate(-45deg); animation: wtdrift 14s linear infinite; pointer-events: none; }
.wtile:hover .wt-pat { opacity: 0.08; animation-duration: 5s; }
@keyframes wtdrift { from { transform: rotate(-45deg) translate3d(0, 0, 0); } to { transform: rotate(-45deg) translate3d(-46px, 0, 0); } }
.wt-logo { position: absolute; left: 16px; bottom: 46px; width: 48px; height: 48px; border-radius: 13px; box-shadow: 0 6px 18px rgba(39, 39, 42, 0.158); transition: transform 0.25s; }
.wtile:hover .wt-logo { transform: scale(1.06) rotate(-4deg); }
.wt-name { position: absolute; left: 16px; bottom: 16px; font: 700 16px Inter, sans-serif; letter-spacing: -0.01em; }
.wt-go { position: absolute; right: 14px; bottom: 13px; display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 9px; border-radius: 999px; color: #27272a; background: rgba(39, 39, 42, 0.054); border: 1px solid rgba(39, 39, 42, 0.072); transition: background 0.2s, color 0.2s; }
.wt-go i { font: 600 13px Inter, sans-serif; font-style: normal; max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width 0.3s ease, opacity 0.25s; }
.wtile:hover .wt-go, .wtile.busy .wt-go { background: var(--brand); color: #ffffff; border-color: transparent; }
.wtile:hover .wt-go i, .wtile.busy .wt-go i { max-width: 140px; opacity: 1; }
.wt-go .shackle { transform-origin: 16.5px 10.5px; transition: transform 0.35s cubic-bezier(.3,1.6,.5,1); }
.wtile:hover .wt-go .shackle { transform: translate(0, -2.5px) rotate(28deg); }
.wtile.busy { pointer-events: none; }
.wtile.busy .wt-go .lock { animation: wtpulse 0.9s ease-in-out infinite; }
@keyframes wtpulse { 50% { opacity: 0.35; } }
.wt-none { grid-column: 1 / -1; margin: 2px 2px 0; color: var(--slate-500); font-size: 13px; }
@media (max-width: 480px) { .wtiles { grid-template-columns: 1fr 1fr; } .wtile { height: 150px; } .wt-logo { width: 40px; height: 40px; bottom: 44px; } }
.wpick { width: min(600px, 100%); }
.wtiles { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.wt-name { max-width: calc(100% - 140px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* X button beside the name, top left */
.brand .xbtn { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #efeff1; border: 1px solid var(--line); color: var(--slate-900); text-decoration: none; flex: none; }
.brand .xbtn:hover { background: #27272a; color: #ffffff; border-color: #27272a; }

/* the wallet picker sits in a panel like every other sheet */
.wpick { width: min(640px, 100%); padding: 20px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(39, 39, 42, 0.3); zoom: var(--ui-zoom, 1); }
.wpick > header { margin-bottom: 16px; }
