/* AGENTPAD design system. Black with a green tint, one neon green accent (taken from the logo), five agent colours used only on their own cards.
   Bricolage Grotesque for display, Geist for text, Geist Mono for tags and addresses. No backdrop-filter, no heavy filters. */
:root {
  --bg: #040706; --bg2: #08110d; --bg3: #0e1a15; --panel: rgba(190, 255, 225, .04); --panel2: rgba(190, 255, 225, .075); --line: rgba(190, 255, 225, .1); --line2: rgba(190, 255, 225, .2);
  --tx: #eef8f3; --tx2: #a9bfb5; --tx3: #7a9187; --acc: #12f5a0; --acc2: #7dffcb; --ink: #03140d; --bad: #ff7a8d; --warn: #ffc15a;
  --c-brand: #a56bff; --c-shill: #2fe27c; --c-community: #9fd8ee; --c-growth: #ff8a2a; --c-research: #4d8dff;
  --glow: 0 10px 44px -12px rgba(18, 245, 160, .6); --r: 14px; --r2: 22px; --ease: cubic-bezier(.2, .8, .2, 1);
  --disp: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif; --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; } html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; } [hidden] { display: none !important; }
body { background: var(--bg); color: var(--tx); font: 400 15.5px/1.55 var(--sans); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; } button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; } img { max-width: 100%; display: block; }
::selection { background: rgba(18, 245, 160, .35); } :focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: rgba(190, 255, 225, .16); border-radius: 8px; border: 2px solid var(--bg); } ::-webkit-scrollbar-track { background: transparent; }
h1, h2, h3, h4 { font-family: var(--disp); letter-spacing: -.035em; line-height: 1.05; font-weight: 700; } .mono { font-family: var(--mono); overflow-wrap: anywhere; } .muted { color: var(--tx2); } .dim { color: var(--tx3); } .small { font-size: 13.5px; } .tiny { font-size: 12px; }
.wrap { width: min(1240px, 100% - 40px); margin: 0 auto; } .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .col { display: flex; flex-direction: column; gap: 10px; } .grow { flex: 1; min-width: 0; } .sp { flex: 1; } .center { text-align: center; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; } .gap6 { gap: 6px; }

/* buttons: the label always sits inside the frame, centred */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 600; font-size: 14.5px; line-height: 1; background: var(--panel2); border: 1px solid var(--line2); color: var(--tx); transition: transform .3s var(--ease), background .25s, border-color .25s, box-shadow .3s; overflow: hidden; white-space: nowrap; }
.btn:hover { background: rgba(190, 255, 225, .12); border-color: rgba(18, 245, 160, .45); transform: translateY(-1px); } .btn:active { transform: scale(.97); }
.btn.pri { background: var(--acc); color: var(--ink); border-color: var(--acc); box-shadow: var(--glow); font-weight: 700; } .btn.pri:hover { background: var(--acc2); border-color: var(--acc2); box-shadow: 0 14px 56px -8px rgba(18, 245, 160, .8); }
.btn.ghost { background: transparent; } .btn.sm { min-height: 36px; padding: 0 13px; font-size: 13.5px; border-radius: 10px; } .btn.lg { min-height: 56px; padding: 0 30px; font-size: 16.5px; border-radius: 14px; } .btn.danger { color: var(--bad); border-color: rgba(255, 122, 141, .35); } .btn.danger:hover { background: rgba(255, 122, 141, .1); border-color: var(--bad); }
.btn[disabled], .btn.off { opacity: .45; pointer-events: none; } .btn svg { width: 16px; height: 16px; flex: none; } .btn.ic { width: 44px; padding: 0; } .btn.ic.sm { width: 36px; }
.btn.ag { background: color-mix(in srgb, var(--ac) 16%, transparent); border-color: color-mix(in srgb, var(--ac) 55%, transparent); color: var(--tx); } .btn.ag:hover { background: color-mix(in srgb, var(--ac) 28%, transparent); border-color: var(--ac); }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1; background: var(--panel2); border: 1px solid var(--line); color: var(--tx2); white-space: nowrap; }
.chip.ok { color: var(--acc); border-color: rgba(18, 245, 160, .35); background: rgba(18, 245, 160, .08); } .chip.warn { color: var(--warn); border-color: rgba(255, 193, 90, .35); background: rgba(255, 193, 90, .08); } .chip.bad { color: var(--bad); border-color: rgba(255, 122, 141, .35); background: rgba(255, 122, 141, .08); }
.chip.ag { color: var(--ac); border-color: color-mix(in srgb, var(--ac) 45%, transparent); background: color-mix(in srgb, var(--ac) 10%, transparent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tx3); flex: none; display: inline-block; } .dot.ok { background: var(--acc); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); } .dot.work { background: var(--acc); animation: pulse 1.2s infinite; } .dot.live { background: var(--acc); box-shadow: 0 0 0 0 rgba(18, 245, 160, .6); animation: ring 2s infinite; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.7); } } @keyframes ring { to { box-shadow: 0 0 0 9px rgba(18, 245, 160, 0); } }
input, textarea, select { width: 100%; min-height: 46px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line2); border-radius: 12px; padding: 11px 14px; color: var(--tx); font: inherit; transition: border-color .25s, box-shadow .25s, background .25s; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--acc); box-shadow: 0 0 0 3px rgba(18, 245, 160, .16); } textarea { resize: vertical; min-height: 92px; line-height: 1.5; } ::placeholder { color: var(--tx3); } select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tx2) 50%), linear-gradient(135deg, var(--tx2) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input[type=file] { padding: 9px; }
.lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--tx2); letter-spacing: .02em; margin-bottom: 6px; } .hint { font-size: 13px; color: var(--tx3); margin-top: 6px; }
.card { background: linear-gradient(180deg, rgba(190, 255, 225, .05), rgba(190, 255, 225, .02)); border: 1px solid var(--line); border-radius: var(--r2); padding: 22px; position: relative; } .card.flat { background: var(--panel); padding: 16px; border-radius: var(--r); }
.seg { display: inline-flex; padding: 4px; background: rgba(0, 0, 0, .4); border: 1px solid var(--line); border-radius: 12px; gap: 2px; } .seg button { min-height: 36px; padding: 0 15px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--tx2); transition: .25s; display: inline-flex; align-items: center; justify-content: center; } .seg button.on { background: var(--acc); color: var(--ink); } .seg button:not(.on):hover { color: var(--tx); }
.sw { position: relative; width: 46px; height: 26px; border-radius: 999px; background: rgba(190, 255, 225, .16); transition: .25s; flex: none; } .sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); } .sw.on { background: var(--acc); } .sw.on::after { transform: translateX(20px); background: var(--ink); }
.skel { position: relative; overflow: hidden; background: rgba(190, 255, 225, .06); border-radius: 10px; min-height: 14px; } .skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(190, 255, 225, .09), transparent); animation: shimmer 1.4s infinite; } @keyframes shimmer { to { transform: translateX(100%); } }
.bar { height: 6px; border-radius: 99px; background: rgba(190, 255, 225, .1); overflow: hidden; } .bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--acc); transition: width .9s var(--ease); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(190, 255, 225, .22); border-top-color: var(--acc); animation: rot .8s linear infinite; flex: none; } @keyframes rot { to { transform: rotate(360deg); } }
.kbd { font: 600 12px var(--mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line2); color: var(--tx2); }
.empty { text-align: center; padding: 40px 20px; color: var(--tx2); } .empty b { display: block; font: 700 21px var(--disp); color: var(--tx); margin-bottom: 6px; } .empty img.eico { width: 64px; height: 64px; margin: 0 auto 12px; object-fit: contain; } .empty .mt16 { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.err { color: #ffc2cb; background: rgba(255, 122, 141, .08); border: 1px solid rgba(255, 122, 141, .32); border-radius: 12px; padding: 11px 14px; font-size: 14px; }
.note { color: var(--tx2); background: rgba(18, 245, 160, .05); border: 1px solid rgba(18, 245, 160, .2); border-radius: 12px; padding: 11px 14px; font-size: 14px; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* toasts and modals */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 400; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; max-width: min(400px, 92vw); padding: 13px 16px; border-radius: 14px; background: #0c1612; border: 1px solid var(--line2); box-shadow: 0 18px 50px -12px #000; font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; animation: toastin .5s var(--ease) both; } .toast.ok { border-color: rgba(18, 245, 160, .5); } .toast.bad { border-color: rgba(255, 122, 141, .6); } .toast.out { animation: toastout .35s forwards; }
@keyframes toastin { from { opacity: 0; transform: translateY(20px) scale(.94); } } @keyframes toastout { to { opacity: 0; transform: translateX(30px); } }
.scrim { position: fixed; inset: 0; z-index: 300; background: rgba(2, 4, 3, .78); display: grid; place-items: center; padding: 18px; animation: fade .3s both; overflow-y: auto; } @keyframes fade { from { opacity: 0; } }
.modal { width: min(580px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; background: #09120e; border: 1px solid var(--line2); border-radius: 24px; padding: 26px; box-shadow: 0 40px 120px -20px #000, 0 0 0 1px rgba(18, 245, 160, .06); animation: modalin .55s var(--ease) both; } .modal.wide { width: min(880px, 100%); } .modal h3 { font-size: 25px; margin-bottom: 6px; padding-right: 40px; } .modal .x { position: absolute; right: 16px; top: 16px; }
@keyframes modalin { from { opacity: 0; transform: translateY(26px) scale(.96); } }
.wopt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line2); border-radius: 16px; width: 100%; text-align: left; transition: .3s var(--ease); background: var(--panel); } .wopt:hover { border-color: var(--acc); transform: translateX(4px); background: rgba(18, 245, 160, .06); } .wopt b { font-size: 15px; } .wopt .wi { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font: 800 16px var(--disp); background: var(--acc); color: var(--ink); }

/* top bar (landing and app share it) */
.top { position: sticky; top: 0; z-index: 100; background: rgba(4, 7, 6, .92); border-bottom: 1px solid var(--line); transition: transform .5s var(--ease); } .top.hide { transform: translateY(-100%); }
.top-in { height: 66px; display: flex; align-items: center; gap: 16px; } .brand { display: flex; align-items: center; gap: 9px; font: 800 22px var(--disp); letter-spacing: -.04em; white-space: nowrap; } .brand img { width: 34px; height: 34px; object-fit: contain; } .brand b { color: var(--acc); font-weight: 800; }
.nav { display: flex; gap: 4px; margin-left: 12px; } .nav a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--tx2); transition: .25s; } .nav a:hover, .nav a.on { color: var(--tx); background: var(--panel2); }
.bell { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line2); background: var(--panel); transition: .25s; } .bell:hover { border-color: var(--acc); } .bell[data-n]::after { content: attr(data-n); position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--acc); color: var(--ink); font: 800 12px/18px var(--sans); text-align: center; }
.burger { display: none; } .mnav { display: none; }
.pop { position: absolute; right: 0; top: calc(100% + 10px); width: 340px; max-height: 70vh; overflow: auto; background: #09120e; border: 1px solid var(--line2); border-radius: 18px; padding: 8px; box-shadow: 0 30px 80px -20px #000; z-index: 150; animation: modalin .4s var(--ease) both; }
.nitem { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 12px; border-radius: 12px; font-size: 14px; transition: background .2s; } .nitem:hover { background: var(--panel2); } .nitem.unread::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); flex: none; }
@media (max-width: 900px) { .nav { display: none; } .burger { display: inline-flex; } .mnav { position: fixed; inset: 66px 0 auto 0; z-index: 99; background: #060b09; border-bottom: 1px solid var(--line); padding: 12px 20px 18px; display: none; flex-direction: column; gap: 4px; } .mnav.open { display: flex; animation: fade .3s both; } .mnav a { display: flex; align-items: center; min-height: 48px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); } .hide-m { display: none !important; } .top-in { gap: 10px; } .pop { position: fixed; left: 12px; right: 12px; top: 72px; width: auto; } }

.page { padding: 34px 0 100px; } .ph { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; } .ph h1 { font-size: clamp(32px, 4.6vw, 50px); } .ph p { color: var(--tx2); margin-top: 8px; max-width: 640px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .gridauto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }
.logo-tile { width: 62px; height: 62px; border-radius: 17px; object-fit: cover; border: 1px solid var(--line2); background: var(--bg3); flex: none; } .logo-tile.ph0 { display: grid; place-items: center; font: 800 22px var(--disp); color: var(--acc); background: radial-gradient(circle at 30% 20%, rgba(18, 245, 160, .22), var(--bg3)); }
.calm *, html.calm * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
.btn.pri, .seg button.on, .btn.pri:hover { background-origin: border-box; background-clip: border-box; }
.brand, .brand span { white-space: nowrap; }
