/* Member tools (member-tools/): My API keys, the Prospect Pack, the Email checker. The Academy's
   navy and Inter; the header is the Academy's own (mounted live, like the n8n builder).

   COLOUR (Farrukh, 2026-11-10: "one color looks like AI slop"). Each tool wears the colour of its own
   Tools-menu icon (body class t-prospect / t-sdr / t-email / t-keys / t-mailbox / t-pipeline sets --tool), so the page and the menu
   agree. Every other colour MEANS something: a verdict (valid/invalid/risky/unknown), a fit band
   (low/mid/high), a channel (call/email/LinkedIn), a problem vs an opener. Never decoration. */
:root{
  --navy:#0a1530; --ink:#eaf0ff; --muted:#98a2bf; --hair:rgba(255,255,255,.11);
  --panel:#111a33; --panel2:#0c1328; --acc:#ff5a2b; --acc2:#ff8a5b; --ok:#3ecf8e; --warn:#ffb547; --bad:#ff6b6b;
  --font:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  --tool:var(--acc); --tool-ink:#fff; --tool-rgb:255,90,43;
  /* meanings */
  --c-call:#ff8a5b; --c-mail:#6ea8ff; --c-li:#4d9bf0; --c-problem:#ffb547; --c-opener:#5fd4e6;
  --c-unknown:#a9b4d6;
}
body.t-prospect{--tool:#d93a72;--tool-ink:#fff;--tool-rgb:217,58,114} /* rose (Farrukh, 2026-11-10: not the Academy orange) */
body.t-keys{--tool:#7b5cff;--tool-ink:#fff;--tool-rgb:123,92,255}
body.t-email{--tool:#3ecf8e;--tool-ink:#052417;--tool-rgb:62,207,142}
body.t-mailbox{--tool:#3b82f6;--tool-ink:#fff;--tool-rgb:59,130,246} /* sending: blue, its own colour (2026-11-23) */
body.t-pipeline{--tool:#a3e635;--tool-ink:#1a2e05;--tool-rgb:163,230,53} /* the pipeline: lime, its own colour (2026-11-23) */
body.t-sdr{--tool:#c026d3;--tool-ink:#fff;--tool-rgb:192,38,211;--tool-link:#f0abfc} /* the SDR: fuchsia, its own colour (2026-11-23); white on it is 4.6:1, links use the light tint on navy */
*{box-sizing:border-box}
/* `hidden` always hides. A class that sets display (.row, .join, .chip, .compose…) would otherwise beat it: the
   Tools page showed "Join Agenterage" to signed-in members that way (found 2026-11-23). */
[hidden]{display:none!important}
body{margin:0;background:var(--navy);color:var(--ink);font-family:var(--font);line-height:1.5;min-height:100vh;
  background-image:radial-gradient(900px 560px at 10% -8%,rgba(var(--tool-rgb),.13),transparent 70%),
    radial-gradient(800px 520px at 95% 0%,rgba(86,69,212,.16),transparent 72%)}
a{color:inherit}
#hdr a{text-decoration:none}
.wrap{max-width:980px;margin:0 auto;padding:28px 16px 40px}
.mast{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.mast h1{font-size:clamp(26px,4vw,38px);line-height:1.1;letter-spacing:-1px;margin:0 0 6px;font-weight:800;text-wrap:balance}
.mast h1 span{color:var(--tool)}
.mast p{margin:0;color:var(--muted);max-width:62ch}
.eyebrow{margin:0 0 10px;color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  display:flex;align-items:center;gap:8px}
.eyebrow img{width:22px;height:22px;border-radius:6px;display:block}
.chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--hair);border-radius:999px;padding:6px 12px;
  font-size:13px;color:var(--muted);background:rgba(255,255,255,.03);font-variant-numeric:tabular-nums}
.chip b{color:var(--ink)}
.card{background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.02));border:1px solid var(--hair);
  border-radius:16px;padding:20px}
.grid{display:grid;gap:16px}
.grid.two{grid-template-columns:1fr 1fr}
h2{font-size:18px;margin:0 0 10px;letter-spacing:-.2px}
h3{font-size:14px;margin:0 0 8px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
label{display:block;font-weight:600;font-size:14px;margin:0 0 6px}
.hint{color:var(--muted);font-size:13px;margin:-2px 0 8px}
input,select,textarea{width:100%;background:var(--panel2);color:var(--ink);border:1px solid var(--hair);border-radius:10px;
  padding:10px 12px;font:inherit;font-size:15px}
textarea{min-height:84px;resize:vertical}
input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:2px solid var(--tool);outline-offset:2px}
input:focus,select:focus,textarea:focus{border-color:rgba(var(--tool-rgb),.55);background:#0d1631}
.field{margin-bottom:14px}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.btn{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:10px;padding:10px 16px;font:inherit;font-weight:700;
  cursor:pointer;background:var(--tool);color:var(--tool-ink);text-decoration:none}
.btn:hover{filter:brightness(1.08)}
.btn[disabled]{opacity:.55;cursor:default}
.btn.ghost{background:rgba(255,255,255,.06);color:var(--ink);border:1px solid var(--hair)}
.btn.ghost:hover{background:rgba(255,255,255,.1)}
.btn.small{padding:7px 12px;font-size:13px}
.btn.danger{background:transparent;color:var(--bad);border:1px solid rgba(255,107,107,.35)}
.msg{font-size:14px;color:var(--muted)}
.msg.ok{color:var(--ok)} .msg.bad{color:var(--bad)} .msg.warn{color:var(--warn)}
.muted{color:var(--muted)}
.note{border:1px solid rgba(var(--tool-rgb),.28);padding:12px 14px;background:rgba(var(--tool-rgb),.07);border-radius:12px;
  font-size:14px;color:var(--ink)}
ul.plain{margin:0;padding-left:18px} ul.plain li{margin:4px 0}
.copybox{position:relative;background:var(--panel2);border:1px solid var(--hair);border-radius:12px;padding:14px 14px 12px;
  white-space:pre-wrap;font-size:15px;overflow-wrap:anywhere}
.copybox .copy{position:absolute;top:8px;right:8px}
/* The Copy button sits in a right-hand gutter, so the text starts on the first line. */
.copybox.has-copy{padding-right:84px}
.pill{display:inline-block;border-radius:999px;padding:2px 10px;font-size:12px;font-weight:700;border:1px solid var(--hair)}
.pill.ok{color:var(--ok);border-color:rgba(62,207,142,.4)} .pill.bad{color:var(--bad);border-color:rgba(255,107,107,.4)}
.pill.idle{color:var(--muted)}
#gateHost{margin-top:10px}
.powered{display:flex;align-items:center;justify-content:center;gap:10px;margin:36px 0 0;color:var(--muted);font-size:13px}
.powered img{height:22px;width:auto;display:block;opacity:.9}
.progress{display:none;margin-top:14px;color:var(--muted);font-size:14px}
.progress.on{display:block}
.bar{height:4px;border-radius:99px;background:rgba(255,255,255,.08);overflow:hidden;margin-top:8px}
.bar i{display:block;height:100%;width:30%;background:var(--tool);animation:slide 1.4s ease-in-out infinite}
@keyframes slide{0%{transform:translateX(-100%)}100%{transform:translateX(340%)}}
@media (prefers-reduced-motion:reduce){.bar i{animation:none;width:100%;opacity:.5}}
@media (max-width:720px){.grid.two{grid-template-columns:1fr}.card{padding:16px}}

/* Steps: the form really is two steps (about you, once; then the business), so they are numbered. */
.step{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-weight:700;font-size:15px}
.step i{font-style:normal;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;flex:none;
  background:rgba(var(--tool-rgb),.16);color:var(--tool);font-size:13px;font-weight:800;border:1px solid rgba(var(--tool-rgb),.4)}
.step small{font-weight:500;color:var(--muted);font-size:13px}
/* Section label with a coloured key: the colour says what kind of content follows. */
.k{display:inline-flex;align-items:center;gap:8px}
.k::before{content:"";width:9px;height:9px;border-radius:3px;background:var(--c,var(--tool));flex:none}
ul.keyed{list-style:none;padding:0;margin:0}
ul.keyed li{position:relative;padding-left:18px;margin:6px 0}
ul.keyed li::before{content:"";position:absolute;left:2px;top:.6em;width:7px;height:7px;border-radius:50%;background:var(--c)}
/* Channel tags on the drafts. */
.tag{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:3px 10px 3px 8px;font-size:12px;font-weight:700;
  letter-spacing:.04em;text-transform:uppercase;color:var(--c);background:color-mix(in srgb,var(--c) 14%,transparent);
  border:1px solid color-mix(in srgb,var(--c) 38%,transparent)}
.tag svg{width:14px;height:14px}
.draft .copybox{border-color:color-mix(in srgb,var(--c) 30%,var(--hair))}
/* The follow-up editor (tools.js MT.followups): the Prospect Pack and My pipeline. */
.fu{display:grid;gap:10px}
.fu h4{margin:0;font-size:15px}
/* Each follow-up is its own card: a numbered header, the day, the text (Farrukh, 2026-11-23: the boxes looked
   flat on the panel). */
.fustep{display:grid;gap:10px;padding:12px 14px 14px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid var(--hair)}
.fuhead{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.funum{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:800;background:var(--tool);color:var(--tool-ink);flex:none}
.fuwhen{display:inline-flex;align-items:center;gap:6px;margin-left:auto;font-size:13px;color:var(--muted)}
.fuday{width:60px;padding:6px 8px;text-align:center;font-weight:700}
.fu .fubody{min-height:84px;line-height:1.55;field-sizing:content;max-height:320px}   /* beats .compose textarea (180px) */
/* Text boxes inside a dark panel (the compose box, the follow-up editor, the pipeline's dialogs) are lifted a
   step lighter, so a box reads as a box ("the text boxes background should have a different color"). */
:is(.compose,.fu,dialog) :is(input,select,textarea){background:#18223f;border-color:rgba(255,255,255,.16)}
:is(.compose,.fu,dialog) :is(input,select,textarea):focus{outline:none;border-color:var(--tool);box-shadow:0 0 0 3px rgba(var(--tool-rgb),.25)}
/* Real marks inside buttons and links (tools.js ICON, 2026-11-23): Gmail's own mark on a white chip, Alex's face.
   They say at a glance what a button does: Gmail = it goes from your own Gmail; Alex = Alex writes it. */
.bi{display:inline-grid;place-items:center;flex:none;width:22px;height:22px;border-radius:50%;overflow:hidden;margin:-3px 0 -3px -4px}
.bi-gmail{background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.10)}
.bi-gmail svg{width:15px;height:15px;display:block}
.bi-alex{box-shadow:0 0 0 2px rgba(255,255,255,.22)}
.bi-alex img{width:100%;height:100%;display:block;object-fit:cover}
.btn.small .bi{width:20px;height:20px}
.btn.small .bi-gmail svg{width:13px;height:13px}
a:not(.btn) .bi{width:17px;height:17px;margin:0 6px 0 0;vertical-align:-4px;display:inline-grid}
a:not(.btn) .bi-gmail svg{width:11px;height:11px}
.bi-mail img{width:100%;height:100%;display:block;border-radius:50%}
