.gallery-open { display: block; width: 100%; height: 100%; text-align: left; padding: 0; border: 0; }
.character-card:focus-within, .world-card:focus-within { border-color: #c084fc; }
.gallery-open:focus-visible, .world-open:focus-visible { outline: 2px solid #d8b4fe; outline-offset: -4px; border-radius: 16px; }
.character-card .gallery-tags { right: 54px; }
.card-favorite { position: absolute; right: 11px; top: 11px; z-index: 3; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #ffffff24; border-radius: 12px; background: #15111ec9; color: #c7bacf; backdrop-filter: blur(8px); }
.card-favorite svg, .favorite-count svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.card-favorite:hover { border-color: #ec489980; color: #f9a8d4; }
.card-favorite.is-favorite { color: #f9a8d4; border-color: #ec489966; background: #4a1d3dce; }
.card-favorite.is-favorite svg { fill: #ec489944; }
.favorite-count { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: #b5a4c4; white-space: nowrap; }
.favorite-count svg { width: 12px; height: 12px; }
.world-card { position: relative; }
.world-open { display: flex; flex-direction: column; width: 100%; height: 100%; text-align: left; padding: 0; flex: 1; min-width: 0; }
.world-card-bottom { align-items: center; gap: 8px; }
.library-import-hint { color: #9e92af; font-size: 11px; line-height: 1.9; margin: 20px 0 0; }
.ai-disclaimer { display: flex; align-items: flex-start; gap: 8px; color: #d3b8e9; background: #a855f710; border: 1px solid #a855f72b; padding: 10px 12px; border-radius: 12px; font-size: 11px; line-height: 1.8; }
.ai-disclaimer .icon { width: 16px; height: 16px; margin-top: 2px; }
.auth-box>.ai-disclaimer { margin: -10px 0 22px; }
.chat-disclaimer { flex: none; padding: 8px 28px 0; background: #100e18; }
.chat-disclaimer .ai-disclaimer { font-size: 10px; padding: 6px 10px; }
.report-chat-button { color: #d9b8ed; }
.message-actions { flex-wrap: wrap; }
.scene-report { display: flex; justify-content: flex-end; margin-top: 6px; font-size: 10px; }
.scene-report button { display: inline-flex; align-items: center; gap: 4px; color: #b79bc8; }
.scene-report .icon { width: 12px; height: 12px; }
.report-intro { color: var(--muted); font-size: 12px; line-height: 1.9; margin: 0 0 16px; }
.note+.report-intro { margin-top: 16px; }
#report-create-form>.field, #report-review-form>.field { margin-top: 18px; }
.report-preview { max-height: 160px; overflow: auto; padding: 13px; margin: 18px 0; background: #0c0c124d; color: #bba8ca; border-left: 2px solid #a855f7; border-radius: 0 12px 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.8; }
.report-filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.report-filter-row label { color: #b9a7c8; font-size: 12px; }
.report-filter-row select { width: auto; min-width: 120px; font-size: 12px; }
.report-row { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.report-row strong { font-size: 13px; }
.report-row p { font-size: 12px; color: #c6b9d1; line-height: 1.9; margin: 10px 0; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.report-row>.btn { flex: none; }
.report-status { display: inline-flex; color: #d8b4fe; background: #a855f71a; border-radius: 12px; padding: 3px 9px; font-size: 10px; }
.report-status.status-resolved { color: #86dfb8; background: #14372a70; }
.report-status.status-dismissed { color: #b3a7be; background: #ffffff08; }
.report-status.status-reviewing { color: #c7d2fe; background: #6366f125; }
.report-id { display: block; color: #93839f; font-size: 10px; overflow-wrap: anywhere; margin-top: 7px; }
.report-detail-section { margin: 22px 0; }
.report-detail-section h3 { color: #d9c3ec; font-size: 13px; margin-bottom: 10px; }
.report-detail-section>p { white-space: pre-wrap; font-size: 12px; line-height: 1.9; color: #c8bdcf; margin-bottom: 8px; overflow-wrap: anywhere; }
.report-snapshot { max-height: 310px; overflow: auto; margin-top: 12px; background: #0c0c1280; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.report-snapshot article+article { border-top: 1px solid var(--line); margin-top: 15px; padding-top: 15px; }
.report-snapshot p { font-size: 12px; line-height: 1.9; color: #c8bdcf; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 7px; }
@media(max-width:760px){
  .world-open { flex-direction: row; }
  .world-card .card-favorite { right: auto; left: 9px; top: 9px; }
  .card-favorite { width: 30px; height: 30px; right: 9px; top: 9px; border-radius: 10px; }
  .character-card .gallery-tags { right: 45px; }
  .favorite-count { font-size: 9px; }
  .favorite-count svg { width: 11px; height: 11px; }
  .library-tools .tabs button { padding-inline: 10px; }
  .chat-disclaimer { padding: 6px 12px 0; }
  .chat-disclaimer .ai-disclaimer { font-size: 9px; }
  .report-chat-button { min-height: 34px; padding: 5px 8px; font-size: 11px; }
  .report-chat-button .icon { width: 14px; height: 14px; }
  .report-row { flex-wrap: wrap; gap: 10px; }
  .report-row>.grow { flex-basis: 100%; }
  .report-row>.btn { margin-left: auto; }
}
