[data-piper-work-surface][hidden] { display: none; }
[data-piper-work-surface] { display: grid; gap: .8rem; max-width: 100%; min-width: 0; margin: .7rem 0; }
[data-piper-work-surface] > * { min-width: 0; }
.piper-project-card { padding: .9rem; border: 1px solid #826a3f; border-radius: .6rem; background: #15171b; color: #f6f2e9; overflow-wrap: anywhere; }
.piper-project-card h3, .piper-project-card h4 { margin: 0 0 .5rem; color: #f7d68b; }
.piper-project-card p { margin: .45rem 0; max-height: none; white-space: pre-line; }
.piper-project-card :is(button,summary), [data-piper-work-surface] summary { min-height: 44px; white-space: normal; }
.piper-project-card :is(button,textarea,fieldset,iframe,video,pre) { max-width: 100%; box-sizing: border-box; }
.piper-project-card button { margin: .15rem .25rem .15rem 0; }
.piper-project-card pre, .piper-inline-manuscript { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.piper-project-card iframe { width: 100%; height: min(55dvh,42rem); border: 0; background: white; }
.piper-short-choices { display: flex; flex-wrap: wrap; gap: .3rem; }
.piper-short-choices button[aria-pressed=true] { outline: 2px solid #ebcb83; }
.piper-short-preview { margin-top: .8rem; }
.piper-short-preview video, .piper-storyboard { display: block; width: min(100%,16rem); aspect-ratio: 9/16; max-height: 54dvh; background: #101318; border: 1px solid #826a3f; border-radius: .5rem; }
.piper-storyboard { display: flex; flex-direction: column; justify-content: center; gap: .5rem; padding: .75rem; overflow: auto; box-sizing: border-box; }
.piper-storyboard small { color: #e6c580; }
.piper-project-card fieldset { margin: .6rem 0; padding: .7rem; border: 1px solid #826a3f; min-width: 0; }
.piper-project-card summary { display: list-item; cursor: pointer; padding: .5rem .15rem; }
@media (max-width: 600px) {
  .piper-project-card { padding: .65rem; }
  .piper-project-card fieldset button { width: 100%; margin: .2rem 0; }
  .piper-short-preview video, .piper-storyboard { width: min(100%,13.5rem); }
}
