/* The meeting page (#3).
 *
 * Self-contained on purpose: no CDN, no webfont, no library. The shell
 * (app.css) pulls Tailwind and three Google faces off the internet, which is
 * fine for a placeholder nobody outside the team opens. This page gets sent to
 * Focus staff on a Focus network, and a page that half-loads is a bad advert
 * for a team arguing it should be trusted with more software.
 *
 * It is a DOCUMENT, not app chrome: no sidebar, one scrollbar, and the contents
 * rail is `sticky` so nothing ever scrolls inside anything.
 */

:root {
  --bg: #f5f7fc;
  --ink: #0d1330;
  --muted: #5d6688;
  --line: #e2e7f2;
  --card: #ffffff;
  --primary: #0052ff;
  --magenta: #ff2d87;
  --ok: #147a52;
  --warn-bg: #fff7e6;
  --warn-line: #f0d9a8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------- sign-in ------------------------------- */

.sign-in-body { display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px; }
.signin { background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 32px 30px; width: 100%; max-width: 460px; }
.signin-brand { font-weight: 700; letter-spacing: .04em; font-size: 14px; }
.signin-brand span { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.signin h1 { font-size: 24px; margin: 20px 0 8px; letter-spacing: -.01em; }
.signin .lede { color: var(--muted); margin: 0 0 18px; }
.signin label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 12px; }
.signin input { display: block; width: 100%; margin-top: 5px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.signin input:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.primary { display: block; width: 100%; padding: 11px 16px; border: 0; border-radius: 9px;
  background: var(--primary); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.primary:hover { filter: brightness(1.07); }
.primary:disabled { opacity: .6; cursor: default; }
.fine { font-size: 13px; color: var(--muted); line-height: 1.5; }
.error { font-size: 13.5px; color: #a3341f; background: #fbeeeb; border: 1px solid #eccdc5;
  border-radius: 8px; padding: 10px 12px; margin: 0 0 16px; }
.notice { background: #f1f4fb; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; font-size: 14px; }
.notice ul { margin: 8px 0 12px; padding-left: 20px; }
.notice li { margin: 0 0 7px; }
.preview-door { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.preview-door .tag { display: inline-block; font-size: 10.5px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--magenta);
  border: 1px solid currentColor; border-radius: 4px; padding: 2px 6px; margin-bottom: 8px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em;
  background: #eaeefb; border-radius: 4px; padding: 1px 5px; }

/* -------------------------------- the page ------------------------------- */

.preview-banner { background: var(--magenta); color: #fff; font-size: 13.5px;
  font-weight: 500; padding: 9px 20px; text-align: center; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px 90px; }

.hero { padding: 52px 0 26px; border-bottom: 2px solid var(--ink); }
.eyebrow { margin: 0 0 12px; font-size: 11.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted); font-weight: 600; }
.hero h1 { font-size: clamp(34px, 5.5vw, 56px); line-height: 1.04; margin: 0 0 14px;
  letter-spacing: -.02em; font-weight: 700; }
.hero .lede { margin: 0; max-width: 56ch; font-size: 19px; line-height: 1.45; font-weight: 500; }
.hero .reading { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

.layout { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 54px;
  align-items: start; margin-top: 34px; }

.toc { position: sticky; top: 22px; }
.toc h2 { margin: 0 0 10px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc ol a { display: block; padding: 6px 0 6px 26px; position: relative; font-size: 13px;
  line-height: 1.3; color: var(--muted); text-decoration: none;
  border-left: 2px solid transparent; margin-left: -2px; }
.toc ol a::before { content: counter(toc, decimal-leading-zero); position: absolute;
  left: 6px; top: 6px; font-family: ui-monospace, monospace; font-size: 10.5px; opacity: .6; }
.toc ol a:hover { color: var(--ink); }
/* Weight and a rule as well as colour, so it survives a greyscale screenshot. */
.toc ol a.is-here { color: var(--ink); font-weight: 600; border-left-color: var(--primary); }

.progress { margin: 22px 0 0; }
.progress .bar { height: 4px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress .bar span { display: block; height: 100%; background: var(--primary);
  transition: width .3s ease; }
.progress p { margin: 7px 0 0; font-size: 12px; color: var(--muted); }
.who { margin: 18px 0 0; font-size: 12.5px; color: var(--muted); }
.export { display: inline-block; margin-top: 10px; font-size: 12.5px;
  color: var(--primary); text-decoration: none; }
.export:hover { text-decoration: underline; }

.doc { max-width: 68ch; }
.sec + .sec { margin-top: 46px; }
.sec h2 { font-size: 29px; line-height: 1.12; margin: 0 0 14px; letter-spacing: -.015em;
  scroll-margin-top: 22px; font-weight: 700; }
.doc p { margin: 0 0 15px; font-size: 16.5px; line-height: 1.62; }
.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px;
  padding: 13px 15px; font-size: 14.5px; margin: 0 0 28px; }

/* ------------------------------ the question ----------------------------- */

.ask { margin: 26px 0 0; padding: 20px 22px; background: var(--card);
  border: 1px solid var(--line); border-left: 3px solid var(--primary);
  border-radius: 4px 12px 12px 4px; }
.ask-mark { margin: 0 0 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--primary); }
.ask-prompt { margin: 0 0 6px !important; font-size: 18.5px !important; line-height: 1.34 !important;
  font-weight: 600; }
.ask-help { margin: 0 0 14px !important; font-size: 13.5px !important; color: var(--muted); }

.lenses { display: flex; gap: 6px; margin: 0 0 12px; flex-wrap: wrap; }
.lens { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 13px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; }
.lens.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.lens .n { opacity: .6; font-weight: 500; }

.field.hidden { display: none; }
.box { position: relative; }
.box textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; font-size: 15.5px; line-height: 1.5; resize: vertical;
  background: #fff; color: var(--ink); }
.box textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.box textarea:disabled { background: #f3f5fa; color: var(--muted); }

.mic { position: absolute; right: 9px; bottom: 9px; display: inline-flex; align-items: center;
  gap: 6px; font: inherit; font-size: 12.5px; font-weight: 600; padding: 5px 11px;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; cursor: pointer; }
.mic:hover { color: var(--ink); border-color: var(--muted); }
.mic .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mic.rec { color: #fff; background: var(--magenta); border-color: var(--magenta); }
.mic.rec .dot { background: #fff; animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.state { margin: 7px 0 0; font-size: 12.5px; color: var(--muted); min-height: 1.2em; }
.state.ok { color: var(--ok); }
.state.bad { color: #a3341f; }

.others { margin: 14px 0 0; }
.others .locked { margin: 0; font-size: 13px; color: var(--muted); font-style: italic; }
.others h4 { margin: 0 0 9px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; }
.other { border-top: 1px solid var(--line); padding: 11px 0; }
.other .name { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.other .body { margin: 4px 0 7px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.agree { font: inherit; font-size: 12.5px; font-weight: 600; padding: 3px 10px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; }
.agree.on { background: #e8efff; border-color: var(--primary); color: var(--primary); }

/* ------------------------------- the builds ------------------------------ */

.builds { display: grid; gap: 14px; margin: 22px 0 0; }
.build { background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; transition: border-color .15s, box-shadow .15s; }
.build.is-picked { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.build header { display: flex; align-items: flex-start; gap: 14px; justify-content: space-between; }
.build h3 { margin: 0; font-size: 18px; line-height: 1.28; font-weight: 700; }
.pick { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; font: inherit;
  font-size: 13px; font-weight: 600; padding: 7px 14px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; }
.pick .tick { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; }
.build.is-picked .pick { background: var(--primary); border-color: var(--primary); color: #fff; }
.build.is-picked .pick .tick { background: #fff; border-color: #fff; }
.build .what { margin: 12px 0 10px; font-size: 15.5px; line-height: 1.55; }
.build .saves, .build .already { margin: 0 0 8px; font-size: 14px; line-height: 1.5;
  color: var(--muted); }
.build .k { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink); opacity: .55; margin-bottom: 2px; }
.build .rank { display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
  font-weight: 600; margin: 6px 0 0; }
.build .rank select { font: inherit; padding: 5px 9px; border: 1px solid var(--line);
  border-radius: 7px; background: #fff; }
.build .comment { display: block; margin: 12px 0 0; font-size: 13px; font-weight: 600; }
.build .comment textarea { width: 100%; margin-top: 5px; padding: 9px 11px; font: inherit;
  font-size: 14.5px; border: 1px solid var(--line); border-radius: 9px; resize: vertical; }

.end { margin: 54px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.end p { font-size: 14.5px; color: var(--muted); }

/* -------------------------------- narrow -------------------------------- */

@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .toc { position: static; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .toc ol { display: flex; flex-wrap: wrap; gap: 0 14px; }
  .toc ol a { padding-left: 0; border-left: 0; margin-left: 0; }
  .toc ol a::before { display: none; }
  .toc ol a.is-here { border-left: 0; text-decoration: underline; }
  .doc { max-width: none; }
  .wrap { padding: 0 18px 70px; }
  .hero { padding-top: 34px; }
  .build header { flex-direction: column; align-items: stretch; gap: 10px; }
  .pick { width: 100%; justify-content: center; }
}

/* ------------------------------- the map --------------------------------
 * The IRA systems map (IRA_RnD #15), at the node map tool's own coordinates.
 * It is 1370px wide and the document column is not, so it scrolls inside its
 * own frame. The page body must never scroll sideways.
 */

.map { margin: 24px 0 0; max-width: 100%;
  /* Above the sticky contents rail, which the widened figure passes under. */
  position: relative; z-index: 2; }
.map-frame, .map-detail { max-width: 100%; }
.map-frame { overflow-x: auto; overflow-y: hidden; border: 1px solid var(--line);
  border-radius: 12px; background: #fbfcfe; -webkit-overflow-scrolling: touch; }
.map-canvas { position: relative; transform-origin: 0 0; }
.map-wires { position: absolute; inset: 0; pointer-events: none; }
.map-labels { position: absolute; inset: 0; pointer-events: none; }
.map-labels span { position: absolute; transform: translate(-50%, -50%);
  font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap;
  background: #fbfcfe; border: 1px solid var(--line); border-radius: 999px;
  padding: 1px 7px; }

.map-box { position: absolute; border: 1.5px solid; border-radius: 10px;
  padding: 11px 13px; box-sizing: border-box; }
.map-box.openable { cursor: pointer; transition: box-shadow .12s, transform .12s; }
.map-box.openable:hover { box-shadow: 0 3px 12px rgba(13,19,48,.13); transform: translateY(-1px); }
.map-box.openable:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.map-box.is-open { box-shadow: 0 0 0 2px var(--primary); }
.map-title { margin: 0 0 4px !important; font-size: 14.5px !important; font-weight: 700;
  line-height: 1.25 !important; }
.map-line { margin: 0 0 3px !important; font-size: 12.5px !important; line-height: 1.4 !important;
  opacity: .88; }
.map-count { margin: 6px 0 0 !important; font-size: 11px !important; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; opacity: .62; }
.map-plus { position: absolute; top: 8px; right: 10px; width: 18px; height: 18px;
  border-radius: 50%; border: 1.5px solid currentColor; opacity: .5;
  font-size: 13px; line-height: 15px; text-align: center; font-weight: 700; }
.map-box.openable:hover .map-plus { opacity: 1; }

.map-detail { position: relative; margin: 12px 0 0; background: var(--card);
  border: 1px solid var(--line); border-left: 3px solid var(--primary);
  border-radius: 4px 12px 12px 4px; padding: 16px 42px 16px 18px; }
.map-close { position: absolute; top: 8px; right: 10px; border: 0; background: none;
  font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.map-close:hover { color: var(--ink); }
.map-detail-title { margin: 0 0 3px !important; font-size: 17px !important; font-weight: 700; }
.map-detail-conf { margin: 0 0 9px !important; font-size: 10.5px !important; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ok); }
.map-detail-conf.assumed { color: #8a5a12; }
.map-detail-conf.not-found { color: #a3341f; }
.map-detail-text { margin: 0 !important; font-size: 15px !important; line-height: 1.55 !important; }
.map-detail-inside { margin: 10px 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 6px; }
.map-detail-inside li { font-size: 12.5px; font-weight: 600; padding: 4px 10px;
  background: #eef1f8; border-radius: 999px; color: var(--muted); }
.map-detail-src { margin: 10px 0 0 !important; font-size: 12.5px !important; }
.map-detail-src a { color: var(--primary); }
.map-detail-src span { color: var(--muted); }
.map figcaption { margin: 9px 0 0; font-size: 12.5px; color: var(--muted); }
.map figcaption a { color: var(--primary); }

@media (max-width: 860px) {
  .map-frame { border-radius: 10px; }
  .map-detail { padding-right: 38px; }
}
