/* Dedicated creation workspace, using the existing Nex typeface and assets. */
@media (min-width: 641px) and (max-width: 720px) {
  .workspace { display: grid; }
  .sidebar { position: sticky; flex-direction: column; }
  .sidebar nav { display: grid; overflow: visible; }
}
.creating .page-footer { display: none; }
.creating .view { max-width: 1240px; padding: 24px 24px 32px; }
.creating h1 { font-size: 28px; line-height: 1.25; letter-spacing: -1px; font-weight: 520; }
.creating h1:focus { outline: none; }
.creating h2 { font-size: 16px; font-weight: 580; letter-spacing: -.4px; }
.creating .button { min-height: 42px; gap: 8px; padding: 10px 15px; font-size: 13px; }
.creating .button:disabled { cursor: default; }
.creating .creation-back { margin-bottom: 24px; padding-left: 10px; }
.creation-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.creation-heading p { margin-top: 6px; color: #615d68; font-size: 14px; line-height: 1.6; }
.creation-step, #campaign-save-state { color: #615d68; font-size: 12px; white-space: nowrap; }
.resume-editor { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 16px; margin-bottom: 20px; border: 1px solid #ded3ec; border-radius: 13px; background: #f4eefb; text-align: left; box-shadow: 0 1px 0 #fff inset; }
.resume-editor strong, .resume-editor small { display: block; }
.resume-editor strong { font-size: 14px; color: #481f7b; }
.resume-editor small { font-size: 13px; color: #615d68; margin-top: 3px; }
.template-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.template-toolbar .filter-bar { margin: 0; gap: 6px; }
.creating .filter { min-height: 42px; padding: 9px 16px; font-size: 13px; }
.template-search { width: 240px; max-width: 100%; }
.creating #template-search { min-height: 42px; font-size: 14px; }
.template-count { margin: 14px 0; font-size: 12px; color: #615d68; }
.creating .template-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.creating .template-card { animation: none !important; }
.creating .template-cover { height: auto; background: transparent; }
.creating .template-cover img { display: block; width: 100%; height: auto; object-fit: contain; object-position: center; }
.creating .template-card:hover img { transform: none; }
.creating .template-card-info { padding: 16px; gap: 8px; }
.creating .template-card-info h3 { font-size: 14px; padding: 0; margin: 0; color: #29232f; }
.creating .template-type { align-self: flex-start; font-size: 11px; }
.creating .card-meta { margin-top: auto; font-size: 12px; color: #615d68; padding-top: 12px; }
.creating .card-meta strong { font-size: 12px; font-weight: 600; color: #481f7b; }
.creation-editor-header { position: sticky; top: 0; z-index: 10; background: #fffffff5; border-bottom: 1px solid #e5e2e8; padding: 16px 0; margin-top: -16px; backdrop-filter: blur(12px); }
.creation-editor-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.creation-editor-top .creation-back { margin: 0; min-height: 36px; padding: 6px 10px; }
.creation-editor-header .creation-heading { margin-bottom: 16px; }
.creation-editor-header .creation-heading p { font-size: 13px; }
.creating .editor-actions { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.creating .editor-actions .button { flex: 0 1 auto; }
.creating .preview-jump { display: none; margin-left: auto; }
.creating .feedback { font-size: 13px; color: #481f7b; margin-top: 12px; line-height: 1.5; }
.creating .feedback.error { color: #a02137; }
.creating .editor { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; }
.creating .editor-content { padding: 24px; }
.creation-section { margin-bottom: 28px; }
.creation-section > h2 { margin-bottom: 18px; }
.creating .fields { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.creating .form-field { font-size: 13px; color: #38313e; font-weight: 550; gap: 6px; scroll-margin-top: calc(var(--creation-header-height, 230px) + 16px); }
.creating :is(input:not([type=checkbox]):not([type=radio]):not([type=file]), textarea, select) { min-height: 44px; font-size: 14px; }
.creating textarea { min-height: 86px; }
.creating .field-hint, .creating .creation-hint { font-size: 12px; line-height: 1.6; color: #6a6173; font-weight: 400; }
.creating .field-hint.invalid { color: #a02137; }
.creating .upload-row { gap: 8px; }
.creating .upload-button { flex: 0 0 auto; }
.creating .upload-button:focus-within { outline: 3px solid #b8a0f6; outline-offset: 3px; }
.creating .format-fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.creating .format-fieldset legend { margin: 0 0 8px; padding: 0; font-size: 17px; font-weight: 600; color: #29232f; }
.creation-hint { margin-bottom: 12px; }
.creating .format-options { gap: 8px; }
.creating .format-option { min-height: 44px; gap: 9px; font-size: 13px; color: #4d4457; padding: 10px 12px; }
.creation-options { margin: 0 0 14px; padding: 0 16px; border: 1px solid #e3dceb; border-radius: 13px; background: #ffffff70; min-width: 0; }
.creation-options > summary { cursor: pointer; padding: 16px 0; font-size: 14px; font-weight: 550; color: #39303f; }
.creation-options > summary .tag { margin-left: 8px; font-size: 11px; }
.creation-options > .fields { margin: 4px 0 20px; }
.creating .ai-box { background: #f3eef9aa; }
.creating .ai-box > p { color: #61566b; font-size: 13px; margin-bottom: 16px; }
.creating .ai-box .form-field { font-size: 13px; margin-bottom: 12px; }
.creating .ai-settings { grid-template-columns: minmax(0, 1fr); }
.creating .ai-actions { margin-bottom: 12px; }
.creating .ai-actions .button { font-size: 13px; }
.creating .composition-tools { background: transparent; padding: 0; margin-top: 0; border: 0; box-shadow: none; }
.creating .preview-panel { position: sticky; top: var(--creation-header-height, 230px); padding: 18px; scroll-margin-top: var(--creation-header-height, 230px); }
.creating .preview-heading { letter-spacing: 0; gap: 8px; }
.creating .preview-heading h2 { font-size: 16px; color: #29232f; }
.creating .preview-heading .tag { font-size: 11px; color: #61506f; }
.creating .preview-media { display: block; width: fit-content; max-width: 100%; height: auto; min-height: 0; background: transparent; margin: 16px auto; border-radius: 5px; }
.creating .preview-media :is(img, video) { display: block; width: auto; max-width: 100%; height: auto; max-height: max(220px, calc(100dvh - var(--creation-header-height, 230px) - 220px)); }
.creating .preview-panel > p { font-size: 13px; color: #61566b; margin-top: 12px; }
.creating .preview-downloads { gap: 8px; }
.creating .preview-downloads > .button { font-size: 12px; }
.creating .model-note { background: #eeebf3; color: #62506f; font-size: 12px; border-radius: 6px; padding: 12px; }
@media (max-width: 960px) {
  .creating .view { padding: 24px 24px 40px; }
  .creating .editor { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .creating .preview-panel { position: static; }
  .creating .preview-jump { display: inline-flex; }
  .creating .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 540px) {
  .creating .view { padding: 20px 14px 28px; }
  .creating h1 { font-size: 24px; }
  .creation-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .creation-heading p { font-size: 13px; }
  .template-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .template-search { width: 100%; }
  .creating .filter { flex: 1; padding: 8px 12px; }
  .creating .template-grid { grid-template-columns: minmax(0, 1fr); }
  .creation-editor-header { padding-top: 12px; margin-top: -8px; }
  .creation-editor-header .creation-heading { gap: 6px; margin-bottom: 12px; }
  .creating .editor-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creating .editor-actions .button { width: 100%; margin: 0; font-size: 12px; padding: 10px 8px; }
  .creation-options > summary .tag { display: block; width: fit-content; margin: 8px 0 0; }
  .creating .preview-panel { padding: 14px; }
  .creating .editor-content { padding: 18px 14px; }
}
/* The frame follows the media's intrinsic ratio, including portrait video and LED. */
.list-grid { align-items: start; }
.campaign-cover { height: auto; background: transparent; }
.campaign-cover :is(img, video) { display: block; width: 100%; height: auto; max-width: 100%; object-fit: contain; }
.campaign-card:hover .campaign-cover img { transform: none; }
.export-thumb { display: block; width: 100%; max-width: 100%; height: auto; object-fit: contain; background: transparent; }
