/* Phase 2.2: gallery navigation and card discovery. No bundled artwork. */
.plaza-wordmark { font-size: 21px; font-weight: 750; letter-spacing: -.6px; color: #f3e8ff; white-space: nowrap; }
.plaza-wordmark span { color: var(--text-narrative); font-weight: 450; }
.plaza-topbar { height: 76px; gap: 20px; padding-inline: 30px; position: sticky; top: 0; z-index: 22; background: rgba(8, 7, 14, .88); backdrop-filter: blur(18px); border-color: var(--border-subtle); }
.plaza-brand-group { flex: none; }
.plaza-search { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 560px; min-width: 100px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .035); border-radius: 24px; padding: 0 6px 0 15px; color: #a696b8; }
.plaza-search:focus-within { border-color: rgba(168, 85, 247, .55); box-shadow: 0 0 0 3px rgba(168, 85, 247, .08); }
.plaza-search>.icon { width: 17px; height: 17px; }
.plaza-search input { width: 100%; min-width: 0; padding: 10px 0; color: var(--text-main); background: transparent; border: 0; outline: 0; box-shadow: none; font-size: 12px; }
.plaza-search input:focus, .plaza-search input:focus-visible { outline: 0; box-shadow: none; }
.plaza-search-submit { height: 32px; width: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #c5afd8; }
.plaza-search-submit:hover { color: #f3e8ff; background: rgba(168, 85, 247, .12); }
.plaza-search-submit .icon { width: 16px; height: 16px; }
.plaza-create { border-radius: 24px; font-size: 12px; padding: 8px 13px; min-height: 36px; color: #dfc6f2; background: rgba(168, 85, 247, .11); border-color: rgba(168, 85, 247, .35); }
.plaza-create .icon { width: 16px; height: 16px; }
.plaza-profile-link { flex: none; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 12px; background: rgba(168, 85, 247, .07); border: 1px solid var(--border-subtle); }
.plaza-profile-link .avatar { width: 32px; height: 32px; border-radius: 11px; }
.topbar-actions { gap: 10px; }
.topbar-admin { display: none; }
.story-availability { display: inline-flex; align-items: center; gap: 6px; color: #8d829b; font-size: 10px; white-space: nowrap; }
.story-availability::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #766680; }
.story-availability.is-ready { color: #c2a7da; }
.story-availability.is-ready::before { background: #c084fc; box-shadow: 0 0 9px #a855f750; }
.plaza-content { max-width: 1536px; padding: 28px 30px 56px; }
.plaza-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.plaza-heading h1 { font-size: 26px; line-height: 1.45; letter-spacing: -.6px; margin-top: 5px; }
.plaza-heading .eyebrow { font-size: 9px; letter-spacing: 1.9px; color: #9b78b3; }
.plaza-heading>.row { flex-wrap: wrap; justify-content: flex-end; }
.plaza-toolbar { margin-bottom: 22px; border-bottom: 1px solid var(--border-subtle); padding-bottom: 18px; }
.plaza-toolbar-main { display: flex; gap: 15px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.plaza-kind-tabs, .plaza-sort-tabs, .plaza-scope-tabs { display: flex; align-items: center; gap: 5px; }
.plaza-kind-tabs button, .plaza-sort-tabs button, .plaza-scope-tabs button { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; border-radius: 12px; font-size: 12px; color: #a598b4; white-space: nowrap; }
.plaza-kind-tabs button .icon { width: 16px; height: 16px; }
.plaza-kind-tabs button.active, .plaza-scope-tabs button.active { color: #f3e8ff; background: rgba(168, 85, 247, .14); box-shadow: inset 0 0 0 1px rgba(168, 85, 247, .25); }
.plaza-kind-tabs button:hover, .plaza-scope-tabs button:hover { color: #f3e8ff; background: rgba(168, 85, 247, .09); }
.plaza-sort-tabs { gap: 3px; background: rgba(255, 255, 255, .025); border: 1px solid var(--border-subtle); padding: 3px; border-radius: 14px; }
.plaza-sort-tabs button { font-size: 11px; padding: 5px 11px; border-radius: 10px; }
.plaza-sort-tabs button.active { background: rgba(168, 85, 247, .14); color: #dec5f1; }
.plaza-tag-strip { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 2px 0 5px; scrollbar-width: thin; scrollbar-color: #4a2f61 transparent; }
.plaza-tag-strip button { flex: none; border: 1px solid var(--border-subtle); border-radius: 24px; font-size: 11px; color: #a69bb4; background: rgba(255, 255, 255, .025); padding: 6px 13px; white-space: nowrap; }
.plaza-tag-strip button:hover { border-color: var(--border-glow); color: #e9d5ff; }
.plaza-tag-strip button.active { color: #fff; background: linear-gradient(#08070e33,#08070e33),var(--brand-primary); border-color: rgba(216, 180, 254, .4); box-shadow: 0 3px 13px rgba(168, 85, 247, .1); }
.plaza-resume { padding: 13px 16px; border: 1px solid rgba(168, 85, 247, .16); border-radius: 16px; background: rgba(168, 85, 247, .045); margin-bottom: 25px; }
.resume-symbol { height: 36px; width: 36px; flex: none; display: grid; place-items: center; background: rgba(168, 85, 247, .1); color: #cba7e7; border-radius: 12px; }
.plaza-resume small { font-size: 10px; color: #9886aa; display: block; }
.plaza-resume strong { font-size: 13px; color: #e0d2eb; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plaza-result-head { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; margin: 0 0 16px; }
.plaza-result-head h2 { font-size: 16px; font-weight: 550; }
.plaza-result-head small { font-size: 10px; color: #8a7b9b; white-space: nowrap; }
.plaza-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.plaza-card { aspect-ratio: 3 / 4; border-radius: 16px; border-color: rgba(255, 255, 255, .08); background: #11101a; }
.plaza-card:hover { border-color: rgba(168, 85, 247, .55); box-shadow: 0 10px 30px rgba(168, 85, 247, .13); }
.plaza-card .card-cover { background: #15121e; }
.plaza-card .card-cover::before, .plaza-card .card-cover::after { content: none; }
.plaza-card .card-cover img { object-position: center 20%; }
.plaza-card .cover-symbol { border: 0; background: none; color: #706078; width: 58px; height: 58px; top: 31%; }
.plaza-card .cover-symbol svg { width: 42px; height: 42px; stroke-width: 1; }
.plaza-card .card-shade { background: linear-gradient(180deg,rgba(8,7,14,.12),transparent 28%,rgba(8,7,14,.3) 44%,rgba(8,7,14,.94) 83%,#08070e); }
.plaza-card.no-portrait .card-shade { background: linear-gradient(180deg,transparent 20%,rgba(8,7,14,.5) 60%,#08070e); }
.plaza-card .gallery-tags { left: 14px; top: 14px; right: 54px; gap: 5px; }
.plaza-card .gallery-tags .tag { background: rgba(8,7,14,.58); color: #d6c2e7; border-color: rgba(255,255,255,.12); border-radius: 8px; font-size: 9px; }
.plaza-card .card-body { padding: 16px; }
.plaza-card .card-body h3 { color: #f3f4f6; letter-spacing: 0; font-size: 21px; }
.plaza-card:hover .card-body h3 { color: #d8b4fe; }
.plaza-card .card-subtitle { color: #b3a7bf; font-size: 10px; margin-top: 4px; }
.plaza-card .card-summary { color: #bcb0c9; font-size: 11px; font-style: italic; line-height: 1.8; -webkit-line-clamp: 1; line-clamp: 1; margin: 7px 0 12px; }
.plaza-card .card-bottom { justify-content: space-between; gap: 6px; padding-top: 10px; }
.plaza-card .gallery-dialogues { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: #aa9bb8; font-size: 10px; }
.plaza-card .gallery-dialogues .icon { display: block; width: 12px; height: 12px; color: #a784c1; }
.plaza-card .favorite-count { color: #b39bc0; font-size: 10px; }
.plaza-card .card-author { color: #746b82; font-size: 9px; display: block; margin-top: 8px; }
.plaza-card .card-favorite { background: rgba(8,7,14,.6); border-color: rgba(255,255,255,.12); }
.plaza-card .card-favorite.is-favorite { background: rgba(97,29,75,.65); border-color: rgba(236,72,153,.4); }
.plaza-empty { border: 1px dashed rgba(168,85,247,.18); border-radius: 16px; background: rgba(20,18,30,.35); }
.plaza-end { display: flex; justify-content: center; padding-top: 24px; }
.plaza-content .library-import-hint { color: #81748f; font-size: 10px; }
@media(min-width:1500px){ .plaza-grid { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media(min-width:761px){
 .plaza-content{padding-top:20px}
 .plaza-heading{margin-bottom:18px}
 .plaza-heading .eyebrow{display:none}
 .plaza-heading h1{margin-top:0;font-size:24px}
 .plaza-toolbar{padding-bottom:12px;margin-bottom:15px}
 .plaza-resume{padding:8px 13px;margin-bottom:12px}
 .plaza-result-head{margin-bottom:12px}
}
@media(max-width:1100px) and (min-width:761px){
 .plaza-topbar { gap: 14px; padding-inline: 24px; }
 .plaza-topbar .story-availability { display: none; }
 .plaza-content { padding-inline: 24px; }
 .plaza-grid { gap: 18px; }
 .plaza-card .card-body { padding: 13px; }
 .plaza-card .card-body h3 { font-size: 19px; }
 .plaza-card .card-bottom { padding-top: 8px; }
}
@media(max-width:900px) and (min-width:761px){ .plaza-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:760px){
 .plaza-topbar { display: grid; grid-template-columns: minmax(0,1fr) auto; height: auto; padding: 11px 14px 12px; gap: 10px; }
 .plaza-wordmark { font-size: 20px; }
 .plaza-brand-group { min-width: 0; gap: 5px; }
 .plaza-search { grid-column: 1/-1; grid-row: 2; width: 100%; max-width: none; }
 .plaza-search input { padding: 8px 0; font-size: 12px; }
 .plaza-topbar .topbar-actions { justify-content: flex-end; gap: 8px; }
 .plaza-topbar .story-availability { display: none; }
 .plaza-create { min-height: 33px; padding: 6px 10px; font-size: 11px; }
 .topbar-admin { display: inline-flex; width: 29px; }
 .plaza-profile-link { width: 31px; height: 31px; }
 .plaza-profile-link .avatar { width: 28px; height: 28px; }
 .plaza-content { padding: 22px 14px 92px; }
 .plaza-heading { gap: 10px; margin-bottom: 20px; align-items: center; }
 .plaza-heading h1 { font-size: 22px; }
 .plaza-heading .eyebrow { font-size: 8px; letter-spacing: 1px; }
 .plaza-heading .btn { padding: 6px 9px; min-height: 33px; font-size: 10px; }
 .plaza-heading .btn .icon { width: 14px; height: 14px; }
 .plaza-heading>.row { gap: 5px; }
 .plaza-toolbar { padding-bottom: 13px; margin-bottom: 18px; }
 .plaza-toolbar-main { gap: 9px; flex-wrap: wrap; margin-bottom: 11px; }
 .plaza-scope-tabs { width: 100%; gap: 4px; }
 .plaza-kind-tabs button, .plaza-scope-tabs button { font-size: 11px; padding: 6px 10px; }
 .plaza-sort-tabs { margin-left: auto; }
 .plaza-sort-tabs button { font-size: 10px; padding: 4px 9px; }
 .plaza-tag-strip { gap: 6px; }
 .plaza-tag-strip button { font-size: 10px; padding: 5px 11px; }
 .plaza-resume { padding: 11px 12px; margin-bottom: 21px; }
 .plaza-resume strong { font-size: 12px; }
 .plaza-resume .btn { min-height: 33px; font-size: 11px; padding: 6px 10px; }
 .plaza-result-head { margin-bottom: 13px; gap: 8px; }
 .plaza-result-head h2 { font-size: 15px; }
 .plaza-result-head small { font-size: 9px; }
 .plaza-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
 .plaza-card .card-body { padding: 12px; }
 .plaza-card .card-body h3 { font-size: 19px; }
 .plaza-card .card-subtitle { font-size: 9px; }
 .plaza-card .card-summary { font-size: 10px; margin: 6px 0 8px; }
 .plaza-card .card-bottom { gap: 4px; padding-top: 8px; }
 .plaza-card .gallery-dialogues, .plaza-card .favorite-count { font-size: 9px; }
 .plaza-card .gallery-dialogues .icon, .plaza-card .favorite-count svg { width: 11px; height: 11px; }
 .plaza-card .card-author { font-size: 8px; margin-top: 6px; }
 .plaza-card .gallery-tags { left: 10px; top: 10px; right: 45px; }
 .plaza-card .gallery-tags .tag { font-size: 8px; padding: 3px 5px; }
 .plaza-card .cover-symbol { top: 26%; width: 42px; height: 42px; }
 .plaza-card .cover-symbol svg { width: 34px; height: 34px; }
}
@media(max-width:370px){
 .plaza-content { padding-inline: 12px; }
 .plaza-topbar { padding-inline: 10px; gap: 8px; }
 .plaza-wordmark { font-size: 18px; }
 .plaza-heading h1 { font-size: 20px; }
 .plaza-heading>.row .btn { padding: 5px 7px; }
 .plaza-card .card-body { padding: 10px; }
 .plaza-card .card-body h3 { font-size: 17px; }
 .plaza-card .card-subtitle { display: none; }
}
