/* Clickable controls use filled pill shapes; descriptive tags remain plain labels. */
.button, .text-link, .text-button, .view-tabs a, .role-filter {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: 999px; min-height: 44px;
  padding: 12px 20px; text-decoration: none; font: 600 13px/1.4 StudioSans, sans-serif;
  cursor: pointer; text-align: center; max-width: 100%;
}
.text-link, .text-button, .button-secondary, .view-tabs a { background: var(--blue-soft); color: var(--ink); }
.button-primary { background: var(--blue); color: #fff; }
.button:hover, .text-link:hover, .text-button:hover, .view-tabs a:hover { filter: brightness(.96); text-decoration: none; }
.text-link:hover, .text-button:hover { background: var(--blue-soft); color: var(--ink); }
.button:active, .text-button:active { transform: translateY(1px); }
.button:focus-visible, .text-link:focus-visible, .text-button:focus-visible, .role-filter:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.danger-text, .button-danger { background: var(--pink-soft); color: #812d24; }
.text-button { margin: 0; width: auto; }
.view-tabs { gap: 10px; border-bottom: 0; padding: 8px 0; }
.view-tabs a { border-bottom: 1px solid transparent; padding: 12px 20px; }
.view-tabs .active { background: var(--ink); color: #fff; border-color: var(--ink); }
.role-slot summary, .undo-decision summary, .project-management summary, .photo-controls summary, .editor-gallery summary, .role-preference > summary, .conversation-team summary, .studio-profile-section > summary {
  padding: 12px 18px; background: var(--blue-soft); border-radius: 24px; width: fit-content; max-width: 100%; font-weight: 600;
}
.undo-decision summary, .project-management summary { background: var(--pink-soft); }
.main-nav { gap: 8px; }
.main-nav a, .main-nav .nav-signout { padding: 10px 14px; min-height: 42px; display: inline-flex; align-items: center; gap: 5px; border-radius: 30px; background: var(--blue-wash); color: var(--ink); font-weight: 600; }
.main-nav a:hover, .main-nav .nav-signout:hover { background: var(--blue-soft); }
.conversation-heading .button-secondary { background: var(--blue-soft); border-color: transparent; }
.creative-icon { width: 24px; height: 24px; flex-shrink: 0; }
.project-discovery-link { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 18px 0; padding: 16px 20px; background: var(--pink-soft); border-radius: 20px; }
.project-discovery-link p { margin: 0; font-size: 13px; }
.project-discovery-link .button { margin: 0; }

/* Project discovery comes before the profile on the signed-in home page. */
.studio-dashboard { padding-top: 30px; }
.studio-dashboard > .editor-heading { margin: 0 0 32px; align-items: center; }
.studio-dashboard > .editor-heading h1 { font-size: 34px; margin: 0 0 8px; letter-spacing: -.9px; }
.studio-dashboard > .editor-heading .eyebrow { display: none; }
.studio-dashboard > .editor-heading .intro { font-size: 13px; margin: 0; }
.studio-dashboard > .editor-heading .button { margin: 0; }
.discovery-section { scroll-margin-top: 20px; }
.discovery-heading { display: flex; gap: 25px; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.discovery-heading h2 { font: 52px/1.1 Georgia, serif; letter-spacing: -1.5px; margin: 12px 0; }
.discovery-heading h2 em { color: var(--blue); font-weight: 400; }
.discovery-heading p { font-size: 14px; margin: 0; }
.discovery-heading .eyebrow { font-size: 9px; letter-spacing: 1.7px; }
.discovery-heading > a { flex-shrink: 0; }
.role-filter-pills { display: flex; gap: 10px; overflow-x: auto; padding: 5px 3px 15px; scrollbar-width: thin; scroll-padding: 3px; }
.role-filter { background: var(--blue-soft); color: var(--ink); white-space: nowrap; flex-shrink: 0; min-height: 51px; padding: 12px 21px; }
.role-filter:nth-child(even) { background: var(--pink-soft); }
.role-filter.selected { background: var(--ink); color: #fff; border-color: var(--ink); }
.role-filter:hover { box-shadow: inset 0 0 0 2px var(--blue); }
.discovery-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 6px 0 15px; }
.discovery-location { display: flex; align-items: center; gap: 10px; margin: 0; }
.discovery-location label { font-size: 12px; font-weight: 600; }
.discovery-location input:not([type=hidden]) { max-width: 200px; border-radius: 24px; padding: 10px 16px; min-height: 44px; font: 14px StudioSans, sans-serif; background: var(--surface); border: 1px solid var(--field-line); }
.discovery-tools > p { font-size: 11px; color: var(--muted); max-width: 300px; margin: 0; line-height: 1.6; }
.discovery-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; margin-bottom: 15px; }
.discovery-meta > div { display: flex; align-items: center; gap: 10px; }
.discovery-meta form { margin: 0; }
.discovery-meta .text-link, .discovery-meta .text-button { background: transparent; border: 1px solid var(--line); padding: 8px 14px; font-size: 11px; }
.discovery-status:empty { display: none; }
.discovery-status { background: var(--blue-wash); border-radius: 14px; padding: 15px 20px; font-size: 13px; line-height: 1.6; }
.discovery-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: var(--surface); box-shadow: 0 10px 35px #22345d0d; }
.discovery-visual { min-height: 450px; background: var(--blue-soft); position: relative; overflow: hidden; }
.discovery-visual > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.project-poster { position: absolute; inset: 0; display: flex; align-items: center; flex-direction: column; justify-content: center; overflow: hidden; background: #cad6ef; color: var(--ink); }
.art-1 .project-poster { background: #ebc6db; }
.art-2 .project-poster { background: #dce3f7; }
.art-3 .project-poster { background: #d2cde9; }
.poster-orbit { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: #fff5; top: -100px; right: -90px; }
.orbit-two { top: auto; bottom: -155px; left: -60px; background: #a9b4dc88; }
.art-1 .orbit-two, .art-3 .orbit-two { background: #e9abc099; }
.poster-label { letter-spacing: 4px; font-size: 11px; z-index: 1; }
.poster-icon { display: grid; place-content: center; width: 150px; height: 150px; margin: 22px 0 12px; transform: rotate(-12deg); border: 1px solid #22345d3a; border-radius: 36px; background: #ffffff60; }
.poster-icon .creative-icon { width: 92px; height: 92px; stroke-width: 1; }
.poster-word { font: italic 63px/1 Georgia, serif; position: relative; }
.poster-star { position: absolute; bottom: 30px; right: 30px; font-size: 65px; opacity: .65; }
.discovery-test { position: absolute; left: 18px; top: 18px; background: #fffdfce8; color: var(--ink); border: 1px solid #22345d1a; border-radius: 20px; padding: 8px 12px; font-size: 8px; font-weight: 700; letter-spacing: .6px; }
.discovery-body { padding: 34px; display: flex; flex-direction: column; min-width: 0; }
.discovery-body .eyebrow { font-size: 9px; margin: 0 0 13px; }
.discovery-body h3 { font: 38px/1.1 Georgia, serif; letter-spacing: -1px; margin: 0; overflow-wrap: anywhere; }
.discovery-when { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; font-weight: 600; margin: 17px 0; }
.discovery-description { font-size: 13px; line-height: 1.8; margin: 0 0 12px; overflow-wrap: anywhere; }
.discovery-byline { color: var(--muted); font-size: 11px; margin: 0 0 18px; }
.discovery-roles { display: flex; flex-wrap: wrap; gap: 7px 14px; margin: 0 0 24px; font-size: 11px; line-height: 1.6; }
.discovery-roles > span { border-bottom: 2px solid var(--pink-soft); padding: 3px 0; }
.card-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: auto; }
.card-actions form { margin: 0; }
.card-actions .button { margin: 0; padding: 12px 10px; width: 100%; min-height: 54px; font-size: 13px; gap: 8px; }
.card-actions .button span { font-size: 23px; line-height: 1; font-weight: 400; }
.card-skip { background: var(--blue-wash); color: var(--ink); border-color: var(--line); }
.card-review { background: var(--blue-soft); color: var(--ink); }
.card-apply { background: var(--pink); color: var(--ink); }
.swipe-instructions { text-align: center; color: var(--muted); font-size: 10px; margin: 14px 0 0; }
.card-expanded { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 28px 34px; background: var(--blue-wash); }
.card-expanded h4 { font: 29px/1.2 Georgia, serif; margin: 8px 0 16px; }
.card-expanded p { font-size: 13px; line-height: 1.8; }
.card-expanded .studio-form { max-width: 750px; }
.card-expanded .field { min-width: 0; }
.card-expanded .field select { border-radius: 12px; }
.card-expanded textarea { border-radius: 12px; }
.card-expanded .brief-actions { margin-bottom: 0; }
.discovery-empty { border: 1px dashed var(--field-line); background: var(--blue-wash); border-radius: 26px; padding: 42px; }
.discovery-empty h3 { font: 38px/1.1 Georgia, serif; margin: 12px 0; }
.discovery-empty p { font-size: 14px; line-height: 1.8; }
.empty-spark { float: right; color: var(--blue); font-size: 60px; }
.studio-shortcuts { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 36px; }
.studio-profile-section > summary { margin-bottom: 24px; }
.discovery-gesture-guide { display: none; }
[data-gestures] .discovery-gesture-guide { display: flex; align-items: center; justify-content: space-between; gap: 15px; background: var(--blue-wash); border-radius: 16px; padding: 13px 18px; margin-bottom: 16px; font-size: 12px; line-height: 1.6; }
.discovery-gesture-guide p { margin: 0; }
.discovery-gesture-guide > span { white-space: nowrap; font-weight: 600; }
.gesture-touch { display: none; }
.discovery-card-frame { overflow: clip; padding: 14px; margin: -14px; }
[data-gestures] .discovery-card { transform: translateX(var(--drag-x, 0px)) rotate(var(--drag-rotation, 0deg)); }
[data-gestures] .discovery-card [data-swipe-surface] { touch-action: pan-y pinch-zoom; cursor: grab; user-select: none; -webkit-user-select: none; }
[data-gestures] .discovery-card [data-swipe-surface] a, [data-gestures] .discovery-card [data-swipe-surface] button { cursor: pointer; }
[data-gestures] .discovery-card.is-dragging [data-swipe-surface] { cursor: grabbing; }
.swipe-hint { position: absolute; top: 45%; border: 3px solid var(--ink); background: var(--pink-soft); padding: 12px 16px; border-radius: 16px; font-size: 20px; font-weight: 700; display: none; pointer-events: none; }
.swipe-hint-left { left: 20px; transform: rotate(-9deg); }
.swipe-hint-right { right: 20px; transform: rotate(9deg); }
.is-drag-left .swipe-hint-left, .is-drag-right .swipe-hint-right { display: block; }
.discovery-section[aria-busy=true] .discovery-card { opacity: .6; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .discovery-card:not(.is-dragging) { transition: transform 180ms ease; }
}
@media (pointer: coarse) {
  .gesture-desktop { display: none; }
  .gesture-touch { display: block; }
}
@media (max-width: 900px) {
  .discovery-heading { align-items: start; }
  .discovery-heading h2 { font-size: 42px; }
  .discovery-card { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .discovery-body { padding: 25px; }
  .discovery-body h3 { font-size: 31px; }
  .discovery-tools > p { max-width: 220px; }
  .card-actions .button { gap: 5px; font-size: 12px; }
}
@media (max-width: 700px) {
  .site-header:has(.nav-signout) { padding-top: 15px; padding-bottom: 12px; gap: 12px; }
  .site-header:has(.nav-signout) .main-nav { column-gap: 6px; row-gap: 7px; padding: 0; }
  .main-nav a, .main-nav .nav-signout { padding: 8px 11px; min-height: 38px; font-size: 11px; }
  .studio-dashboard { padding-top: 22px; }
  .studio-dashboard > .editor-heading { flex-direction: row; align-items: center; gap: 12px; margin-bottom: 25px; }
  .studio-dashboard > .editor-heading h1 { font-size: 25px; margin: 0; }
  .studio-dashboard > .editor-heading .intro { display: none; }
  .studio-dashboard > .editor-heading .button { font-size: 11px; padding: 10px 14px; white-space: nowrap; min-height: 42px; }
  .discovery-heading { display: block; margin-bottom: 16px; }
  .discovery-heading h2 { font-size: 36px; letter-spacing: -1px; margin: 10px 0; }
  .discovery-heading p:not(.eyebrow) { font-size: 12px; }
  .discovery-heading > a { margin-top: 12px; min-height: 36px; padding: 8px 14px; font-size: 11px; }
  .role-filter { min-height: 46px; padding: 10px 17px; font-size: 12px; }
  .role-filter-pills { margin-right: -10px; gap: 8px; }
  .discovery-tools { flex-direction: column; align-items: stretch; gap: 8px; }
  .discovery-location { flex-wrap: wrap; gap: 8px; }
  .discovery-location label { width: 100%; font-size: 11px; }
  .discovery-location input:not([type=hidden]) { max-width: none; flex: 1; min-width: 0; width: 100px; font-size: 16px; }
  .discovery-tools > p { max-width: none; font-size: 10px; }
  .discovery-meta { flex-wrap: wrap; gap: 6px; font-size: 11px; }
  .discovery-meta .text-link, .discovery-meta .text-button { font-size: 10px; padding: 8px 12px; min-height: 38px; }
  .discovery-card { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
  .discovery-visual { min-height: 185px; }
  .poster-icon { width: 80px; height: 80px; margin: 0; border-radius: 20px; position: absolute; left: 28px; top: 66px; }
  .poster-icon .creative-icon { width: 52px; height: 52px; }
  .poster-label { font-size: 8px; letter-spacing: 2px; margin: 20px 0 12px 60px; }
  .poster-word { font-size: 40px; margin-left: 86px; }
  .poster-star { right: 18px; bottom: 13px; font-size: 37px; }
  .poster-orbit { width: 240px; height: 240px; top: -120px; }
  .orbit-two { top: auto; bottom: -140px; }
  .discovery-test { left: 13px; top: 12px; padding: 6px 9px; font-size: 7px; }
  .discovery-body { padding: 22px; }
  .discovery-body h3 { font-size: 29px; }
  .discovery-when { margin: 12px 0; font-size: 11px; }
  .discovery-description { font-size: 12px; line-height: 1.7; }
  .discovery-roles { margin-bottom: 18px; }
  .card-actions { gap: 7px; }
  .card-actions .button { min-height: 48px; padding: 9px 5px; font-size: 11px; }
  .card-actions .button span { font-size: 20px; }
  .card-expanded { padding: 23px; }
  .card-expanded .brief-actions { gap: 10px; }
  .card-expanded .button { width: 100%; }
  .studio-shortcuts { gap: 9px; }
  .studio-shortcuts .text-link { font-size: 11px; padding: 10px 14px; }
  .discovery-empty { padding: 25px; }
  .view-tabs a { padding: 10px 14px; }
}
@media (max-width: 700px) {
  .main-nav a, .main-nav .nav-signout { min-height: 44px; }
  .discovery-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
  .discovery-heading h2 { font-size: 31px; }
  .discovery-heading .eyebrow, .discovery-heading p:not(.eyebrow), .discovery-tools > p { display: none; }
  .discovery-heading > a { max-width: 93px; margin: 0; min-height: 44px; }
  .discovery-location { flex-wrap: nowrap; }
  .discovery-location label { width: auto; max-width: 60px; flex-shrink: 0; line-height: 1.5; }
  .discovery-visual { min-height: 165px; }
  .poster-icon { top: 57px; }
  [data-gestures] .discovery-gesture-guide { flex-direction: column; align-items: start; gap: 4px; font-size: 11px; padding: 12px 15px; }
}

/* Posting is a primary action on both browsing pages, with a full-width phone target. */
.editor-heading.posting-heading > .post-project-action {
  min-height: 64px; min-width: 240px; padding: 18px 28px; gap: 12px;
  font-size: 18px; line-height: 1.3; font-weight: 700; flex-shrink: 0;
  white-space: normal; box-shadow: 0 5px 0 var(--pink-soft), 0 10px 24px #22345d16;
}
.post-project-action svg { width: 25px; height: 25px; flex-shrink: 0; }
@media (max-width: 700px) {
  .editor-heading.posting-heading { flex-direction: column; align-items: stretch; gap: 18px; }
  .editor-heading.posting-heading > .post-project-action { width: 100%; min-width: 0; }
}

/* Private preparation and the saved idea shelf. */
.draft-preview, .shoot-plan { padding: clamp(22px, 4vw, 40px); margin: 24px 0 32px; border: 2px solid var(--line, #d9dce5); border-radius: 24px; background: #eef4ff; }
.draft-preview { background: #fff0f7; }
.draft-preview h2, .shoot-plan h2 { margin: 0 0 16px; }
.draft-preview details { margin-top: 22px; }
.shoot-plan h3 { font-size: 17px; margin-bottom: 6px; }
.shoot-plan .button { margin-top: 18px; }
.card-save-form { margin-top: 14px; }
.card-save-form .button { width: 100%; min-height: 48px; }
.saved-row { gap: 24px; align-items: center; }
.saved-row h2 { overflow-wrap: anywhere; }
@media (max-width: 640px) { .saved-row { align-items: stretch; flex-direction: column; } .saved-row .button { width: 100%; } }
