/* Your creations is account navigation; the open project owns its workspace. */
body:has(#screen-creations:not([hidden])) { background: #151412; }
.creations {
  min-height: calc(100dvh - var(--topbar-height));
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 32px 64px;
  color: #fff4dc;
}
.creations-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.creations-head h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; letter-spacing: -.035em; }
.creations-head p { margin: 8px 0 0; color: #c8bfb3; font-size: 15px; }
.creations .project-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.creation-search { display: grid; gap: 8px; flex: 1 1 240px; }
.creation-sort { display: grid; gap: 8px; flex: 0 1 200px; }
.creations .project-tools label { font-size: 13px; color: #c8bfb3; }
.creations .project-tools input { min-width: 0; width: 100%; }
.creations .project-tools :is(input, select) { min-height: 44px; border: 1px solid #494139; background: #211d19; color: #fff4dc; padding: 10px 12px; border-radius: 8px; }
.creations .project-tools input::placeholder { color: #baafa3; }
.creations .project-count { flex: 1 1 100%; color: #c8bfb3; font-size: 13px; margin: 4px 0 0; }
.creations #project-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.creation-card { position: relative; min-width: 0; }
.creation-open { display: grid; width: 100%; gap: 8px; padding: 0 0 10px; border: 0; text-align: left; color: inherit; background: transparent; cursor: pointer; }
.creation-copy { display: grid; gap: 3px; min-width: 0; padding-right: 48px; }
.creation-title { font-size: 15px; font-weight: 680; line-height: 1.35; overflow-wrap: anywhere; }
.creation-meta { color: #c8bfb3; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.creation-cover { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; margin-bottom: 4px; overflow: hidden; border: 1px solid #35302c; border-radius: 12px; background: #151412; }
.creation-cover-logo { display: block; width: min(66%, 160px); height: auto; max-height: 48px; object-fit: contain; }
.creation-cover-picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.creation-frame-window { display: grid; grid-template-rows: 16px minmax(0, 1fr); width: 84%; height: 76%; overflow: hidden; border: 1px solid #55483a; border-radius: 8px; background: #211d19; box-shadow: 0 12px 26px #0007; }
.creation-frame-bar { display: flex; align-items: center; gap: 4px; padding: 0 7px; border-bottom: 1px solid #4b4136; background: #2b251f; }
.creation-frame-dot { width: 4px; height: 4px; border-radius: 999px; background: #8c7861; }
.creation-frame-canvas { display: grid; align-content: center; gap: 5px; min-width: 0; padding: 9px 11px; background: radial-gradient(circle at 80% 0%, #3a2b20 0, transparent 54%), #1d1a17; }
.creation-frame-kicker { color: #ffb861; font-size: 7px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.creation-frame-kicker::before, .creation-frame-title::before { content: attr(data-label); }
.creation-frame-title { max-width: 100%; overflow: hidden; color: #fff4dc; font-size: 10px; font-weight: 720; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.creation-frame-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 2px; }
.creation-frame-grid > span { height: 17px; border: 1px solid #4a4035; border-radius: 3px; background: #2a241f; }
.creation-cover[data-frame-tone="1"] .creation-frame-canvas { background: radial-gradient(circle at 80% 0%, #24352d 0, transparent 54%), #1d1a17; }
.creation-cover[data-frame-tone="1"] .creation-frame-kicker { color: #8fe2b2; }
.creation-cover[data-frame-tone="2"] .creation-frame-canvas { background: radial-gradient(circle at 80% 0%, #2b3043 0, transparent 54%), #1d1a17; }
.creation-cover[data-frame-tone="2"] .creation-frame-kicker { color: #9eb8ff; }
.creation-cover[data-frame-tone="3"] .creation-frame-canvas { background: radial-gradient(circle at 80% 0%, #3a2938 0, transparent 54%), #1d1a17; }
.creation-cover[data-frame-tone="3"] .creation-frame-kicker { color: #f3a9de; }
.creation-open:hover .creation-cover { border-color: #ffa722; background: #191714; }
.creation-actions { position: absolute; right: 0; bottom: 4px; z-index: 2; }
.creation-actions summary { display: grid; place-items: center; min-width: 44px; min-height: 44px; list-style: none; border-radius: 8px; cursor: pointer; color: #fff4dc; background: #29231d; }
.creation-actions summary::-webkit-details-marker { display: none; }
.creation-actions[open] { z-index: 3; }
.creation-action-options { position: absolute; right: 0; top: 48px; display: grid; min-width: 184px; padding: 8px; border: 1px solid #494139; border-radius: 10px; background: #211d19; box-shadow: 0 8px 24px #0004; }
.creation-action-options button { min-height: 44px; width: 100%; border: 0; border-radius: 6px; padding: 8px 12px; background: transparent; color: #fff4dc; text-align: left; cursor: pointer; }
.creation-action-options button:hover { background: #3a3024; }
.creations .empty { grid-column: 1 / -1; padding: 40px 0; color: #c8bfb3; font-size: 16px; }
.creations .project-trash-container { grid-column: 1 / -1; border-top: 1px solid #3b3530; padding-top: 24px; }
.creations .project-trash-panel { color: #c8bfb3; }
.creations .project-trash-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.workspace-header { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; max-width: 1600px; margin: 0 auto; padding: 20px 24px 4px; }
.workspace-header h1 { flex: 1 1 200px; min-width: 0; margin: 0; font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.workspace-header #workspace-project-actions { position: relative; }
.workspace-header .creation-actions { position: relative; right: auto; top: auto; }
#screen-builder .builder-grid { grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); }
#screen-builder .work { grid-column: 1; grid-row: auto; min-width: 0; }
#screen-builder .preview { grid-column: 2; grid-row: auto; min-width: 0; }
#screen-builder[data-preview-expanded="true"] .builder-grid { grid-template-columns: minmax(0, 1fr); }
#screen-builder[data-preview-expanded="true"] .preview { grid-column: 1; }
.creations :focus-visible, .workspace-header :focus-visible { outline: 3px solid #ffa722; outline-offset: 4px; }
.creations button:disabled, .workspace-header button:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 900px) {
  #screen-builder .builder-grid { grid-template-columns: minmax(0, 1fr); }
  #screen-builder .work, #screen-builder .preview { grid-column: 1; }
}
@media (max-width: 600px) {
  .creations { padding: 24px 16px 40px; }
  .creations-head { flex-wrap: wrap; align-items: flex-start; gap: 16px; }
  .creations-head h1 { font-size: 28px; }
  .creations #project-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .creation-card { min-height: 82px; border-bottom: 1px solid #302b27; }
  .creation-open { grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 82px; padding: 8px 52px 8px 0; }
  .creation-cover { width: 104px; height: 66px; aspect-ratio: auto; margin: 0; border-radius: 10px; }
  .creation-copy { gap: 2px; padding: 0; }
  .creation-title { font-size: 14px; }
  .creation-meta { font-size: 11px; }
  .creation-frame-window { grid-template-rows: 12px minmax(0, 1fr); width: 88%; height: 78%; border-radius: 6px; }
  .creation-frame-canvas { gap: 3px; padding: 5px 7px; }
  .creation-frame-kicker { font-size: 6px; }
  .creation-frame-title { font-size: 8px; }
  .creation-frame-grid > span { height: 10px; }
  .creation-actions { top: 50%; bottom: auto; transform: translateY(-50%); }
  .workspace-header { padding: 16px; gap: 12px; }
  .workspace-header h1 { flex-basis: calc(100% - 60px); }
}
