/* === agent b3: Lifecycle strip (web/lifecycle.js) - Project tab header, "Before you save" open items, LifecycleMini === */
.lc { background: var(--panel); border-radius: 20px; box-shadow: var(--glass-edge), var(--sh-1); padding: 14px 16px 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tk.gx .lc { -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7); }
.qv-sheet .lc { background: rgb(255 255 255 / .78); }
.lc .sr-only, .lc-mini .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.lc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lc-now { min-width: 0; }
.lc-eye { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mod); }
.lc-stage { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.lc-stage b { font-size: 19px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.lc-days { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lc-ready { font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: var(--r-pill); background: rgb(16 22 43 / .05); color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.lc-ready.ok { background: var(--good-bg); color: var(--good); }
.lc-ready.open { background: rgb(var(--sg-gold-rgb) / .18); color: var(--accent-text); }

/* stepper: a calm track, state shown by fill / ring / dash as well as color */
.lc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); }
.lc-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center; }
.lc-step::before { content: ""; position: absolute; top: 6px; left: -50%; right: 50%; height: 2px; background: var(--line-2); }
.lc-step:first-child::before { display: none; }
.lc-step.done::before, .lc-step.current::before { background: rgb(var(--mod-rgb) / .5); }
.lc-dot { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-3); display: grid; place-items: center; color: #fff; }
.lc-step.done .lc-dot { background: var(--mod); box-shadow: none; }
.lc-step.current .lc-dot { background: #fff; box-shadow: inset 0 0 0 4px var(--mod), 0 0 0 4px rgb(var(--mod-rgb) / .16); }
.lc-step.skip .lc-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.lc-step.skip .lc-dot::after { content: ""; width: 6px; height: 1.5px; border-radius: 1px; background: var(--faint); }
.lc-step-l { font-size: 11px; line-height: 1.25; letter-spacing: -.01em; color: var(--muted); overflow-wrap: normal; hyphens: manual; max-width: 100%; padding: 0 1px; }
.lc-step.current .lc-step-l { color: var(--ink); font-weight: 650; }
.lc-step.skip .lc-step-l { color: var(--faint); }

/* owner / next / due */
.lc-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 10px 16px; margin: 0; }
.lc-facts > div, .lc-st { min-width: 0; }
.lc-facts dt, .lc-st dt { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; }
.lc-facts dd, .lc-st dd { margin: 0; font-size: 13px; color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.lc-facts small, .lc-st small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.lc-facts dd.late { color: var(--bad); }

/* the five statuses: quiet labeled values */
.lc-status { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 14px; margin: 0; padding: 10px 12px; border-radius: 14px; background: rgb(16 22 43 / .03); box-shadow: inset 0 0 0 1px var(--line); }
.lc-st dd a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 2px; }
.lc-st dd a:hover { text-decoration-color: currentColor; }

/* blockers and approvals: color only here, where it means something */
.lc-block { list-style: none; margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--bad-bg); color: var(--bad); display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.lc-block li { display: flex; gap: 8px; align-items: flex-start; }
.lc-block .ico { flex: none; margin-top: 2px; }
.lc-block small { color: inherit; opacity: .75; }
.lc-appr { font-size: 12.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.lc-k { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-right: 8px; }
.lc-appr small { color: var(--muted); }

/* folds */
.lc-folds { display: flex; flex-direction: column; margin: 0 -16px; border-top: 1px solid var(--line); }
.lc-d { border-bottom: 1px solid var(--line); }
.lc-d:last-child { border-bottom: 0; }
.lc-d > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 11px 16px; cursor: pointer; font-size: 13px; font-weight: 650; color: var(--ink); }
.lc-d > summary::-webkit-details-marker { display: none; }
.lc-d > summary:hover { background: rgb(255 255 255 / .45); }
.lc-d > summary:active { background: rgb(var(--mod-rgb) / .06); }
.lc-d > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.lc-d:last-child > summary { border-radius: 0 0 20px 20px; }
.lc-d[open]:last-child > summary { border-radius: 0; }
.lc-sum { flex: 1; font-size: 12px; font-weight: 500; color: var(--muted); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-d > summary .ico { flex: none; color: var(--muted); transition: transform .2s var(--ease-out); }
.lc-d[open] > summary .ico { transform: rotate(180deg); }
.lc-d[open] > summary > span:first-child { color: var(--mod); }
.lc-crit, .lc-docs, .lc-ms { list-style: none; margin: 0; padding: 0 16px 10px; display: flex; flex-direction: column; gap: 2px; }
.lc-crit li, .lc-docs li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 13px; }
.lc-tick { flex: none; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-3); display: grid; place-items: center; color: #fff; margin-top: 1px; }
li.met > .lc-tick { background: var(--good); box-shadow: none; }
.lc-ct { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
li.met > .lc-ct { color: var(--ink-2); }
.lc-folder { font-size: 11.5px; color: var(--muted); }
.lc-ev { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; font: inherit; font-size: 11.5px; line-height: 1.35; color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; text-decoration: none; align-self: flex-start; border-radius: 4px; }
span.lc-ev { color: var(--muted); cursor: default; }
.lc-ev .ico { flex: none; }
.lc-ev-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
a.lc-ev:hover .lc-ev-l, button.lc-ev:hover .lc-ev-l { text-decoration: underline; }
.lc-ev:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lc-ev-m { color: var(--muted); white-space: nowrap; }
.lc-ev-m::before { content: "·"; margin-right: 5px; }
.lc-docs li > .lc-ev { flex: none; margin-top: 2px; max-width: 45%; }
.lc-ms li { display: flex; flex-direction: column; gap: 2px; padding: 6px 0 6px 14px; border-left: 2px solid var(--line-2); font-size: 12.5px; }
.lc-ms li.override { border-left-color: var(--sg-gold-deep); }
.lc-ms-t { color: var(--ink); }
.lc-note { margin: 0 16px 10px; font-size: 11.5px; color: var(--muted); }
/* the ProjectOS stepper inside the strip: no second glass card */
.lc .ps-stage { background: none !important; box-shadow: none !important; border-radius: 0; }
.lc .ps-stage > summary { padding: 11px 16px; border-radius: 0 0 20px 20px; }
.lc .ps-stage[open] > summary { border-radius: 0; }
.lc .ps-stepper { padding: 2px 16px 8px; }

/* loading / could not load */
.lc-msg { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 13px; color: var(--bad); flex-wrap: wrap; }
.lc-skel { padding: 16px; }
.lc-skel div { height: 16px; width: 40%; border-radius: 8px; background: linear-gradient(90deg, rgb(255 255 255 / .4), rgb(255 255 255 / .9), rgb(255 255 255 / .4)); background-size: 200% 100%; animation: lc-shim 1.2s linear infinite; }
.lc-skel div + div { height: 30px; width: 90%; margin-bottom: 14px; }
@keyframes lc-shim { to { background-position: -200% 0; } }

/* "Before you save": what is still open, and the reason */
.lc-unmet { border-radius: 14px; padding: 10px 12px; background: rgb(var(--sg-gold-rgb) / .14); box-shadow: inset 0 0 0 1px rgb(var(--sg-gold-rgb) / .3); font-size: 13px; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.lc-unmet ul { margin: 0; padding-left: 18px; }
.lc-unmet label { font-size: 12px; font-weight: 600; }
.lc-unmet input { border-radius: var(--r-ctl); }

/* LifecycleMini (customer page rows) */
.lc-mini { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; font-size: 12px; color: var(--ink-2); vertical-align: middle; }
.lc-steps.mini { display: inline-flex; gap: 3px; flex: none; }
.lc-steps.mini .lc-step { gap: 0; }
.lc-steps.mini .lc-step::before, .lc-steps.mini .lc-dot .ico, .lc-steps.mini .lc-step.skip .lc-dot::after { display: none; }
.lc-steps.mini .lc-dot { width: 7px; height: 7px; box-shadow: inset 0 0 0 1px var(--line-3); }
.lc-steps.mini .lc-step.done .lc-dot { background: rgb(var(--mod-rgb) / .6); }
.lc-steps.mini .lc-step.current .lc-dot { background: var(--mod); box-shadow: 0 0 0 2px rgb(var(--mod-rgb) / .22); }
.lc-steps.mini .lc-step.skip .lc-dot { opacity: .35; }
.lc-mini-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-mini-t b { font-weight: 600; color: var(--ink); }
.lc-mini .late { color: var(--bad); }
.lc-mini-n { color: var(--muted); }
.lc-mini-skel { width: 120px; height: 10px; border-radius: 5px; background: rgb(16 22 43 / .06); }

@media (max-width: 980px) { .lc-status { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .lc { padding: 12px 14px 0; gap: 10px; }
  .lc-folds { margin: 0 -14px; }
  .lc-step-l { display: none; }
  .lc-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lc-facts .wide { grid-column: 1 / -1; order: -1; }
  .lc-status { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lc-d > summary, .lc .ps-stage > summary { padding: 11px 14px; }
  .lc-crit, .lc-docs, .lc-ms { padding: 0 14px 10px; }
  .lc-note { margin: 0 14px 10px; }
}
@media (prefers-reduced-motion: reduce) { .lc-skel div { animation: none; } .lc-d > summary .ico { transition: none; } }
@media (prefers-contrast: more) { .lc-status, .lc-dot, .lc-tick { box-shadow: inset 0 0 0 1.5px var(--ink); } .lc-step::before { background: var(--muted); } }
