/* ==========================================================================
   Sierra Action Planner — /custom only.

   SCOPE, deliberately narrow: the sign-in gate card and the two creation-path
   tiles that sit behind it. Everything else on planner/custom.html reuses
   planner.css + agents.css classes, the same way agents-plan.html reuses them
   with no stylesheet of its own. If a rule here could have been an agents.css
   class, it belongs in agents.css, not in this file.

   The gate itself carries `class="ag-save cx-gate"` and reuses the WHOLE save
   panel look from agents.css, including its `[data-state]` show/hide machine
   (out -> code -> in). Nothing in this file redefines that; the rules below
   only place the card and dress the two path tiles.
   ========================================================================== */

/* The gate is one column of reading width, centred under the intro. */
.cx-gate { max-width: 620px; margin: 26px auto 0; }
.cx-gate .ag-save-p { max-width: none; }
/* One extra line the plan-page save panel does not have: what signing in buys
   you here, in small print under the button. */
.cx-gate-why { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: #BFCDC0; max-width: 52ch; }
.cx-gate-why b { color: #EBCB8F; font-weight: 700; }

/* The two creation paths, shown once signed in. Tiles are .ag-tcard (agents.css);
   this only lays them out and gives each a full-width action row. */
.cx-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 26px; }
.cx-path { cursor: default; }
.cx-path:hover { transform: none; }
.cx-path .ag-tcard-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.cx-path .ag-tcard-actions > * { flex: 1 1 auto; justify-content: center; }
/* Accent stripe per path: scratch is forest, AI is gold. .ag-tcard::before reads
   --ag-accent, and the nth-child rules in agents.css are scoped to
   .ag-picker-grid, so these two are free to set their own. */
.cx-path-scratch { --ag-accent: #1E4636; }
.cx-path-ai { --ag-accent: #C7913F; }

/* "Your custom plans" — the signed-in list under the two paths. */
.cx-mine { margin-top: 34px; }
.cx-mine-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cx-mine-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

/* The signed-in identity strip above the paths. */
.cx-who { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 22px; background: var(--card-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; font-size: 13.5px; color: var(--ink-soft); }
.cx-who b { color: var(--forest-green); }
.cx-who-out { background: none; border: none; padding: 0; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--cedar-accent); text-decoration: underline; cursor: pointer; }

/* The AI questions step inside the shared AI modal. Optional inputs, one per
   question, above a prominent skip. */
.cx-q-list { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.cx-q-item { display: flex; flex-direction: column; gap: 7px; }
.cx-q-label { font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--forest-green); }
.cx-q-optional { font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); margin-left: 6px; }
.cx-q-skip { background: none; border: 1.5px solid var(--border-2); border-radius: 999px; padding: 12px 20px; font-family: inherit; font-size: 14px; font-weight: 800; color: var(--forest-green); cursor: pointer; }
.cx-q-skip:hover { border-color: var(--green-2); background: var(--card-2); }

/* Tappable example answers under each question.

   A budget question people skip produces a vaguer plan, and typing a figure
   into an empty box is exactly the friction that makes them skip it. A chip
   FILLS the input rather than submitting — the answer stays editable, which is
   why these read as examples rather than as a multiple choice. */
.cx-q-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 1px; }
.cx-q-chip { background: var(--card-2); border: 1.5px solid var(--border-2); border-radius: 999px; padding: 8px 14px; font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--forest-green); cursor: pointer; transition: border-color 0.12s, background 0.12s, color 0.12s; text-align: left; }
.cx-q-chip:hover { border-color: var(--green-2); background: #fff; }
.cx-q-chip:focus-visible { outline: 2px solid var(--cedar-accent); outline-offset: 2px; }
.cx-q-chip.is-picked { background: var(--forest-green); border-color: var(--forest-green); color: #fff; }

/* Fingers need 44px; the chip's own padding leaves it short of that, so the
   floor is added on touch devices only rather than bulking up the mouse UI. */
@media (pointer: coarse) {
  .cx-q-chip { min-height: 44px; padding: 11px 16px; }
}

@media print { .cx-gate, .cx-paths, .cx-mine, .cx-who { display: none; } }

/* Reference documents attached to a generation. A prompt box holds 1000
   characters; a scope of work holds the actual job. */
.ag-ai-doc-p { margin: 4px 0 10px; font-size: 13px; line-height: 1.55; color: var(--muted-2); }
.ag-ai-docs { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.ag-ai-doc { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--card-2); font-size: 13.5px; }
.ag-ai-doc-n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--forest-green); font-weight: 700; }
.ag-ai-doc-s { flex: none; font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.ag-ai-doc-x { flex: none; background: none; border: none; font-size: 19px; line-height: 1; color: var(--muted-2); cursor: pointer; padding: 2px 6px; }
.ag-ai-doc-x:hover { color: #A3341F; }
.ag-ai-doc-err { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: #A3341F; }
@media (pointer: coarse) { .ag-ai-doc-x { min-width: 44px; min-height: 44px; } }
