/* LabAnvil's projects menu in the Virtual Orchestra's top bar (projects.js). Uses the
   orchestra's own colours from app/src/ui.css. */
.lp { position: relative; flex: 0 0 auto; }
.lp-btn { display: flex; align-items: center; gap: 7px; max-width: 210px; }
/* The project's name takes the brand's place in the bar (the page around the orchestra already
   says what it is), and the piece menu gives way first when the bar is short of room. */
#top .brand { display: none; }
#top #piece { flex: 0 1 auto; min-width: 0; }
.lp-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-caret { color: var(--dim); font-size: 10px; }
.lp-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.lp-dot[data-state=local] { background: #ffc35a; box-shadow: 0 0 0 3px rgba(255, 195, 90, 0.18); }
.lp-dot[data-state=saved] { background: #4ade80; }
.lp-dot[data-state=busy] { background: var(--accent); animation: lp-pulse 0.9s ease-in-out infinite alternate; }
.lp-dot[data-state=problem] { background: var(--accent2); }
@keyframes lp-pulse { to { opacity: 0.3; } }

/* The panel sits inside the (blurred) top bar, so it brings its own solid background. */
.lp-panel, .lp-nudge {
  position: absolute; top: calc(100% + 16px); left: -8px; width: 340px; z-index: 6;
  display: flex; flex-direction: column; gap: 10px; padding: 14px;
  background: rgba(15, 18, 26, 0.97); border: 1px solid var(--line2); border-radius: 14px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5); white-space: normal;
}
.lp-panel[hidden], .lp-nudge[hidden], .lp-cta[hidden] { display: none; }
.lp-label, .lp-h { margin: 0; color: var(--dim); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.lp-h { margin-top: 4px; }
.lp-input { width: 100%; padding: 7px 10px; font-size: 14px; user-select: text; }
.lp-status { margin: -2px 0 0; font-size: 12px; color: var(--dim); }
.lp-status[data-state=saved] { color: #7ee2a4; }
.lp-status[data-state=local] { color: #ffc35a; }
.lp-status[data-state=problem] { color: #ff8a70; }
.lp-cta { display: flex; flex-direction: column; gap: 9px; padding: 11px 12px; border: 1px solid rgba(255, 195, 90, 0.35); border-radius: 10px; background: rgba(255, 164, 28, 0.07); }
.lp-cta p, .lp-nudge p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text); }
.lp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lp-actions button { flex: 1; }
.lp-primary {
  display: inline-block; padding: 6px 12px; border-radius: 8px; font-weight: 600; text-decoration: none;
  background: var(--accent); color: #17120a;
}
.lp-primary:hover { background: #ffb84a; }
.lp-link { color: var(--text); font-size: 12.5px; }
.lp-list { display: flex; flex-direction: column; gap: 3px; max-height: min(38vh, 300px); overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.lp-item { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 6px 9px; text-align: left; border-color: transparent; background: transparent; }
.lp-item:hover { background: rgba(255, 255, 255, 0.07); }
.lp-item.on { border-color: var(--accent); background: rgba(255, 164, 28, 0.1); }
.lp-item-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-item small { color: var(--dim); font-size: 11px; }
.lp-foot { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--dim); }
.lp-nudge { width: 310px; border-color: rgba(255, 195, 90, 0.45); }
.lp-nudge b { font-size: 13.5px; }
