/* start-from-project.css — Fire Strategy's New report menu and the
   "Start from a project" picker (owner, 23 Oct 2026, option C).

   Built to the pictures the owner approved, in all their states, and
   from the app's own tokens (css/guide-x.css :root), so it reads as part of
   Guidex. Every class is gx-sfp-, so nothing here can reach another screen.
   The dialog reuses the brief's shell (.gf-brief-box: title, line under it,
   ✕, body, foot); only its width and its two columns are its own. */

/* ── The menu under New report ──────────────────────────────────────── */
/* The landing's controls row holds the menu, right-aligned with the button.
   Its search icon is placed by .gf-pl-search, which is positioned itself, so
   this moves nothing. */
#projectsLanding .gf-pl-controls { position: relative; }
.gx-sfp-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lift); padding: 6px;
}
.gx-sfp-menu-item {
  display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 11px 12px;
  border: 0; background: none; border-radius: var(--r); text-align: left; cursor: pointer;
  font-family: var(--font); color: var(--ink);
}
.gx-sfp-menu-item:hover, .gx-sfp-menu-item:focus-visible { background: var(--hover); outline: none; }
.gx-sfp-menu-item svg { width: 16px; height: 16px; color: var(--ink-soft); flex: none; margin-top: 2px; }
.gx-sfp-menu-item strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.gx-sfp-menu-item small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.gx-sfp-menu-chev { margin-left: auto; }

/* ── The picker ─────────────────────────────────────────────────────── */
/* Two classes, so the brief shell's own !important width (760px, set in
   guide-x-adapter.css) gives way whatever order the sheets load in. */
.gf-brief-box.gx-sfp-box { width: min(880px, 92vw) !important; max-width: min(880px, 92vw) !important; }
.gx-sfp-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 760px) { .gx-sfp-cols { grid-template-columns: 1fr; } }
.gx-sfp-cols > div { min-width: 0; }

.gx-sfp-search { position: relative; margin-bottom: 12px; }
.gx-sfp-search svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--muted-2); pointer-events: none;
}
.gx-sfp-search input {
  width: 100%; height: 40px; padding: 0 14px 0 36px; box-sizing: border-box;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  font-family: var(--font); font-size: 13.5px; color: var(--ink); outline: 0;
}
.gx-sfp-search input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--flame-tint); }
.gx-sfp-search input::placeholder { color: var(--muted-2); }

/* The list scrolls inside its own box: the app's thin scrollbar (as
   .pdf-body in css/guide-x.css), and a soft fade along the bottom while
   there is more below. */
.gx-sfp-list-wrap { position: relative; }
.gx-sfp-list {
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface);
  max-height: 318px; overflow-y: auto; outline: 0;
}
.gx-sfp-list:focus-visible { border-color: var(--ink); box-shadow: 0 0 0 3px var(--flame-tint); }
.gx-sfp-list::-webkit-scrollbar { width: 8px; }
.gx-sfp-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
.gx-sfp-list-wrap.has-more::after {
  content: ""; position: absolute; left: 1px; right: 9px; bottom: 1px; height: 40px; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, 0), var(--surface));
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.gx-sfp-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; border-top: 1px solid var(--border);
  text-align: left; cursor: pointer; font-family: var(--font);
}
.gx-sfp-row:first-child { border-top: 0; }
.gx-sfp-row:hover { background: var(--paper); }
.gx-sfp-dot {
  width: 16px; height: 16px; border-radius: 50%; flex: none; box-sizing: border-box;
  border: 1.5px solid var(--border-strong); background: var(--surface);
  display: grid; place-items: center;
}
.gx-sfp-row.is-on .gx-sfp-dot { border-color: var(--ink); }
.gx-sfp-row.is-on .gx-sfp-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.gx-sfp-row-name {
  flex: 1 1 auto; min-width: 0; font-size: 13.5px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gx-sfp-row.is-on .gx-sfp-row-name { font-weight: 600; }
.gx-sfp-row-when { flex: none; font-size: 12px; color: var(--muted); }
.gx-sfp-note { padding: 18px 14px; font-size: 13px; color: var(--muted); }

/* What the report starts with. */
.gx-sfp-sum {
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface);
  padding: 16px 16px 14px;
}
.gx-sfp-sum-title { font-size: 12.5px; font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.gx-sfp-sum-item { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 13.5px; color: var(--ink); line-height: 1.4; }
.gx-sfp-sum-item svg { width: 15px; height: 15px; flex: none; color: var(--muted); margin-top: 2px; }
.gx-sfp-sum-empty { font-size: 13px; color: var(--muted); padding: 6px 0; }
/* While the preview loads: three quiet grey bars where the lines will be. */
.gx-sfp-bar { height: 12px; border-radius: 999px; background: var(--sidebar-soft); margin: 11px 0; }
.gx-sfp-bar:nth-child(2) { width: 62%; }
.gx-sfp-bar:nth-child(3) { width: 78%; }
.gx-sfp-bar:nth-child(4) { width: 48%; }

.gx-sfp-name { margin-top: 14px; }
.gx-sfp-name label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.gx-sfp-name input {
  width: 100%; box-sizing: border-box; padding: 9px 12px; border-radius: var(--r);
  border: 1px solid var(--border); background: var(--surface);
  font-family: var(--font); font-size: 13.5px; color: var(--ink); outline: 0;
}
.gx-sfp-name input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--flame-tint); }

/* Start report could not run: one line, beside the buttons. */
.gx-sfp-error { font-size: 13px; color: var(--red); align-self: center; }
.gx-sfp-box #gxSfpStart[disabled] { opacity: .45; cursor: not-allowed; }
.gx-sfp-box.is-busy .gx-sfp-list { pointer-events: none; }
