/* ═══ AgencyOS — new-project-v5.css: V5 Blue New Project page (reference css/newproject.css, .aos → .v5p; tokens from workspace-integrations-v5.css) ═══ */
#viewNewProject { background: var(--st-bg); color: var(--st-ink); font-family: var(--app-font, Inter, 'Outfit', system-ui, sans-serif); font-size: 16px; line-height: 1.55; overflow: auto; }
.np5 { width: 100%; padding: 24px; }
/* ===== New project page (wizard) ===== */
.v5p .npPage { display: grid; gap: 22px; max-width: 1100px; }
.v5p .npHead { display: flex; align-items: center; gap: 16px; }
.v5p .npHead h1 { margin: 2px 0 4px; font-size: 26px; letter-spacing: -.01em; }
.v5p .npHead p { margin: 0; color: var(--muted); font-size: 14px; }
.v5p .npClose {
  display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--muted); cursor: pointer; transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.v5p .npClose:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); color: var(--primary); background: var(--orange-soft); }
.v5p .npClose svg { width: 18px; height: 18px; }
.v5p .npLayout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 22px; align-items: start; }
.v5p .npAside { position: sticky; top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.v5p .npSteps { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.v5p .npSteps li { position: relative; }
.v5p .npSteps li:not(:last-child)::after { content: ""; position: absolute; left: 25px; top: 46px; bottom: -6px; width: 2px; background: var(--line); }
.v5p .npSteps li.done:not(:last-child)::after { background: var(--teal); }
.v5p .npSteps button {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); text-align: left; cursor: pointer;
  transition: background-color .15s ease;
}
.v5p .npSteps button:disabled { cursor: default; opacity: .75; }
.v5p .npSteps button:not(:disabled):hover { background: var(--surface-2); }
.v5p .npSteps li.active button { background: color-mix(in srgb, var(--primary) 9%, var(--surface)); color: var(--text); }
.v5p .npSteps i {
  display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border: 2px solid var(--line); border-radius: 50%; background: var(--surface);
  font-size: 13px; font-style: normal; font-weight: 800; color: var(--muted); transition: all .2s ease;
}
.v5p .npSteps i svg { width: 15px; height: 15px; stroke-width: 3; }
.v5p .npSteps li.active i { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.v5p .npSteps li.done i { border-color: var(--teal); background: var(--teal); color: #fff; }
.v5p .npSteps span { display: grid; gap: 1px; }
.v5p .npSteps strong { font-size: 14px; }
.v5p .npSteps small { font-size: 12px; color: var(--muted); }
.v5p .npSteps li.done strong { color: var(--teal); }

.v5p .npMain { display: grid; gap: 20px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.v5p .npMainHead { display: grid; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.v5p .npStepOf { color: var(--primary); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.v5p .npMainHead h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.v5p .npBody { display: grid; gap: 20px; animation: npIn .35s ease both; }
@keyframes npIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }
.v5p .npField { display: grid; gap: 8px; margin: 0; }
.v5p .npField > span { font-size: 14px; font-weight: 700; color: var(--text); }
.v5p .npField > span em { margin-left: 6px; color: var(--muted); font-size: 12.5px; font-style: normal; font-weight: 600; }
.v5p .npField > span em.req { padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); font-size: 11px; font-weight: 800; }
.v5p .npField small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.v5p .npField input, .v5p .npField textarea, .v5p .npInline input {
  width: 100%; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--ink);
  font: inherit; font-size: 14.5px; outline: none; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.v5p .npField input, .v5p .npInline input { height: 48px; }
.v5p .npField textarea { padding: 12px 14px; line-height: 1.6; resize: vertical; }
.v5p .npField input:focus, .v5p .npField textarea:focus, .v5p .npInline input:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 13%, transparent); }
.v5p .npTwo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.v5p .npNarrow { max-width: 280px; }
.v5p .npChips { display: flex; flex-wrap: wrap; gap: 8px; }
.v5p .npChips button {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--text); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.v5p .npChips button:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.v5p .npChips button.active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, var(--surface)); color: var(--primary); }
.v5p .npChips button i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 14%, var(--surface)); color: var(--primary); font-size: 10px; font-style: normal; font-weight: 800; }
.v5p .npCount.ok { color: var(--teal); font-weight: 700; }
.v5p .npInline { display: flex; gap: 10px; }
.v5p .npInline .btn { flex: 0 0 auto; min-height: 48px; }
.v5p .npRefs, .v5p .npFiles { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.v5p .npRefs li, .v5p .npFiles li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.v5p .npRefs li span, .v5p .npFiles li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v5p .npFiles small { color: var(--muted); text-transform: capitalize; }
.v5p .npRefs li svg, .v5p .npFiles li svg { width: 15px; height: 15px; color: var(--primary); }
.v5p .npRefs button, .v5p .npFiles button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.v5p .npRefs button:hover, .v5p .npFiles button:hover { background: var(--surface); color: var(--text); }
.v5p .npRefs button svg, .v5p .npFiles button svg { width: 13px; height: 13px; color: inherit; }
.v5p .npLead { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.v5p .npTiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.v5p .npTile {
  color: var(--st-ink); position: relative; display: grid; justify-items: center; gap: 6px; padding: 24px 12px; border: 2px dashed var(--line); border-radius: 16px; background: var(--surface-2);
  text-align: center; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.v5p .npTile:hover { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, var(--surface)); transform: translateY(-2px); }
.v5p .npTileIcon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 4px; border-radius: 14px; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); }
.v5p .npTileIcon svg { width: 22px; height: 22px; }
.v5p .npTile strong { font-size: 14.5px; }
.v5p .npTile small { color: var(--muted); font-size: 12px; }
.v5p .npTile em { margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--teal) 14%, var(--surface)); color: var(--teal); font-size: 11.5px; font-style: normal; font-weight: 800; }

.v5p .npSummary { margin: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.v5p .npRow { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 12px 18px; }
.v5p .npRow + .npRow { border-top: 1px solid var(--line); }
.v5p .npRow dt { color: var(--muted); font-size: 13.5px; }
.v5p .npRow dd { margin: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.v5p .npNone { color: var(--muted); }
.v5p .npBriefPreview { font-style: italic; font-weight: 500; color: var(--text); }
.v5p .npNext { display: grid; gap: 10px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--primary) 5%, var(--surface)); }
.v5p .npNext > div { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.v5p .npNext svg { width: 17px; height: 17px; color: var(--primary); }
.v5p .npError { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid rgba(214, 69, 69, .35); border-radius: 12px; background: rgba(214, 69, 69, .08); color: #d64545; font-size: 13.5px; font-weight: 600; animation: npShake .4s ease both; }
@keyframes npShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.v5p .npFooter { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.v5p .npFooter .btn { min-height: 46px; padding: 0 20px; gap: 8px; }
.v5p .npFooter .btn svg { width: 16px; height: 16px; }
.v5p .npDots { display: flex; align-items: center; gap: 8px; }
.v5p .npDots i { width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: all .25s ease; }
.v5p .npDots i.done { background: var(--teal); }
.v5p .npDots i.active { width: 26px; background: var(--primary); }
@media (max-width: 900px) {
  .v5p .npLayout { grid-template-columns: 1fr; }
  .v5p .npAside { position: static; }
  .v5p .npSteps { grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; }
  .v5p .npSteps li::after { display: none; }
  .v5p .npTiles, .v5p .npTwo { grid-template-columns: 1fr; }
  .v5p .npRow { grid-template-columns: 1fr; gap: 2px; }
}

/* Full-width layout: step header on top, content below */
.v5p .npPage { max-width: none; }
.v5p .npLayout, .v5p .npAside { display: none; }
.v5p .npStepBar { padding: 6px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.v5p .npStepBar .npSteps { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.v5p .npStepBar .npSteps li::after { display: none; }
.v5p .npStepBar .npSteps button { padding: 12px 16px; border-radius: 14px; }
.v5p .npStepBar .npSteps li:not(:last-child) button::after {
  content: ""; margin-left: auto; width: 28px; height: 2px; border-radius: 2px; background: var(--line);
}
.v5p .npStepBar .npSteps li.done:not(:last-child) button::after { background: var(--teal); }
.v5p .npMain { width: 100%; padding: 28px 32px; }
.v5p .npCols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.v5p .npGroup { display: grid; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.v5p .npGroup h3 { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.v5p .npGroup .npField input, .v5p .npGroup .npField textarea, .v5p .npGroup .npInline input { background: var(--surface); }
.v5p .npCols > .npSummary { background: var(--surface); }
@media (max-width: 1000px) {
  .v5p .npCols { grid-template-columns: 1fr; }
  .v5p .npStepBar .npSteps { grid-auto-columns: minmax(180px, 1fr); overflow-x: auto; }
  .v5p .npMain { padding: 22px 18px; }
}
.v5p .npAssetList { margin-top: 14px; }
.v5p .npGroup, .v5p .npGroup > *, .v5p .npField, .v5p .npRefs, .v5p .npFiles, .v5p .npInline { min-width: 0; max-width: 100%; }
.v5p .npGroup input, .v5p .npGroup textarea { max-width: 100%; box-sizing: border-box; }
.v5p .npInline input { flex: 1; min-width: 0; }
.v5p .npField textarea { min-height: 200px; height: auto; display: block; }
.v5p #np_links { min-height: 120px; }
.v5p .npRefs, .v5p .npFiles { width: 100%; overflow: hidden; }
.v5p .npRefs li, .v5p .npFiles li { min-width: 0; max-width: 100%; overflow: hidden; }
.v5p .npRefs li span, .v5p .npFiles li span { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v5p .npRefs li svg, .v5p .npFiles li svg, .v5p .npRefs li button, .v5p .npFiles li button, .v5p .npFiles li small { flex: none; }
