.creation-dialog { width:min(1220px,96vw); max-height:92dvh; }
.creation-dialog .library-hint { color:var(--muted); line-height:1.6; margin:0 0 20px; }
.creation-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:20px 0 14px; }
.creation-search-label { flex:1; min-width:210px; }
.creation-search-label span { display:block; font-size:12px; color:var(--muted); margin-bottom:6px; }
#creation-search { width:100%; min-height:44px; padding:11px 14px; border:1px solid var(--border); border-radius:12px; background:var(--bg); color:var(--text); font:inherit; }
.creation-filters { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:15px; }
.creation-filters button { min-height:38px; padding:8px 13px; border:1px solid var(--border); border-radius:20px; background:transparent; color:var(--muted); font:inherit; font-size:13px; cursor:pointer; }
.creation-filters button[aria-pressed="true"] { color:var(--text); background:var(--bg); border-color:var(--accent); }
.creations-library { margin-top:18px; border-top:1px solid var(--border); padding-top:18px; }
.creations-library-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.creations-library-heading h3 { margin:0; font-size:17px; }
#creation-count { color:var(--muted); font-size:13px; }
#creation-library-status { color:var(--muted); min-height:1.4em; margin:4px 0; font-size:13px; }
.creations-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.creation-tile { min-width:0; display:flex; flex-direction:column; text-align:left; padding:0; border:1px solid var(--border); border-radius:15px; overflow:hidden; background:var(--bg); color:var(--text); font:inherit; cursor:pointer; }
.creation-tile:hover { border-color:var(--accent); }
.creation-tile[aria-pressed="true"] { outline:2px solid var(--accent); outline-offset:2px; }
.creation-thumbnail { display:flex; width:100%; height:175px; align-items:center; justify-content:center; background:var(--surface); overflow:hidden; }
.creation-thumbnail img { width:100%; height:100%; object-fit:contain; }
.creation-type-mark { font-size:32px; color:var(--muted); font-weight:700; letter-spacing:.04em; }
.creation-thumbnail[data-kind="video"] .creation-type-mark { font-size:52px; }
.creation-thumbnail[data-kind="site"] .creation-type-mark { color:var(--accent); }
.creation-tile-info { display:flex; flex-direction:column; gap:8px; width:100%; padding:16px; }
.creation-tile-info strong { overflow-wrap:anywhere; font-size:14px; line-height:1.5; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.creation-tile-info small { color:var(--muted); font-size:12px; line-height:1.5; }
.creation-expiry.expires-soon { color:var(--accent); }
.creations-empty { grid-column:1/-1; text-align:center; padding:50px 20px; color:var(--muted); }
.creation-gallery-preview { border-top:1px solid var(--border); padding-top:24px; margin-top:28px; scroll-margin-top:20px; }
.creation-preview-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; }
.creation-preview-heading h3 { margin:0 0 12px; font-size:21px; overflow-wrap:anywhere; }
.creation-preview-heading button { flex-shrink:0; }
.creation-full-image,.creation-full-video { display:block; width:100%; max-height:65dvh; object-fit:contain; border-radius:12px; background:var(--bg); }
.creation-site-frame { display:block; width:100%; height:560px; border:1px solid var(--border); border-radius:12px; background:white; }
.creation-document { padding:10px 0; line-height:1.7; overflow-wrap:anywhere; }
.creation-document details summary { cursor:pointer; }
.creation-delete { margin-left:auto; }
.creation-compose { margin-top:20px; }
.creation-compose > summary { cursor:pointer; color:var(--muted); }
.creation-compose .creation-options { align-items:flex-end; }
.creation-dialog button:focus-visible,.creation-dialog a:focus-visible,.creation-dialog input:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
@media(max-width:850px) { .creations-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:500px) {
  .creations-grid { grid-template-columns:1fr; }
  .creation-thumbnail { height:220px; }
  .creation-toolbar { align-items:stretch; }
  .creation-search-label { flex-basis:100%; }
  .creation-filters button { min-height:44px; }
  .creation-preview-heading { flex-direction:column; }
  .creation-delete { margin-left:0; }
  .creation-site-frame { height:430px; }
}
