/* Ask, inside the shell: the stage and the workspace sit under the shell's bar. */
html, body { height: auto; min-height: 100%; }
.stage { top: var(--piq-bar-h, 52px); }
.work { min-height: calc(100vh - var(--piq-bar-h, 52px)); }
.topbar { top: 0; z-index: 40; padding: 10px 28px; gap: 14px; }
.topbar .prod { padding-left: 0; border-left: 0; }
.rail { top: 78px; }
.msg-user { scroll-margin-top: 84px; }
.stage-center { padding-top: 2vh; }

.stage-recent { position: relative; margin-top: 26px; color: rgba(255,255,255,.5); font-size: 12.5px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.stage-recent[hidden] { display: none; }
.stage-recent > div { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 760px; }
.stage-recent button { border: 0; background: none; color: rgba(255,255,255,.78); font: 600 13px/1.3 inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); cursor: pointer; padding: 4px 8px; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-recent button:hover { color: #fff; text-decoration-color: var(--iq); }

.ctxnote { color: rgba(255,255,255,.8); font-size: 12.5px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 6px 8px 6px 14px; display: inline-flex; gap: 8px; align-items: center; }
.ctxnote[hidden] { display: none; }
.ctxnote b { color: #fff; }
.ctxnote button { border: 0; background: rgba(255,255,255,.12); color: #fff; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; font-size: 14px; line-height: 1; }

.actions .act.primary { background: #28A03C; }
.actions .act.primary:hover { box-shadow: 0 8px 20px rgba(40,160,60,.3); }
.actions .act[disabled] { opacity: .65; cursor: default; transform: none; }
.saveform { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.saveform input { border: 1px solid var(--iq); border-radius: 999px; padding: 9px 16px; font-size: 13px; min-width: min(280px, 100%); outline: none; box-shadow: 0 0 0 3px var(--iq-dim); }
.act.pinned { font-weight: 700; }

.sub .info { min-width: 0; }
.sub .open { text-align: left; font: 700 13px/1.35 var(--display); color: var(--ink); display: block; width: 100%; white-space: normal; overflow-wrap: anywhere; }
.sub .open:hover { color: #22872F; }
.sub .del { border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 4px 6px; border-radius: 6px; flex: 0 0 auto; }
.sub .del:hover { background: #F2F5F9; color: var(--bad); }
.card h3 { margin-bottom: 10px; }

@media (max-width: 560px) {
  .topbar { padding: 10px 14px; }
  .topbar .tenant { display: none; }
  .ctxnote { max-width: 60vw; overflow: hidden; }
  .stage-center { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; }
}
