body.platform .character-photo-studio { padding-top: 22px; color: var(--vv-text); }
body.platform .character-photo-studio > .studio-top { display: none; }
body.platform .character-photo-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#character-draft-state { font-size: 12px; color: var(--vv-muted); white-space: nowrap; }
#character-draft-state.saved { color: var(--vv-success); }
.character-photo-tabs { display: flex; align-items: center; gap: 20px; padding: 7px; background: var(--vv-surface); border: 1px solid var(--vv-border); border-radius: 13px; margin-bottom: 16px; overflow-x: auto; }
.character-photo-tabs button { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding: 11px 18px; border: 0; background: none; border-radius: 9px; color: var(--vv-text); font: 13px 'DM Sans',sans-serif; cursor: pointer; }
.character-photo-tabs .active { background: var(--vv-accent-soft); color: var(--vv-accent); }
body.platform .character-photo-grid { display: grid; grid-template-columns: minmax(0,1.9fr) minmax(300px,1fr); gap: 18px; align-items: start; max-width: none; }
body.platform .character-photo-form,body.platform .character-photo-aside { padding: 22px 24px 16px; background: var(--vv-surface); border: 1px solid var(--vv-border); border-radius: 14px; box-shadow: 0 3px 16px var(--vv-shadow); min-width: 0; }
body.platform .character-photo-form > h3 { color: var(--vv-text); font-size: 23px; line-height: 1.3; letter-spacing: -.6px; margin: 0 0 4px; }
body.platform .character-photo-form .character-form-intro { margin: 0 0 16px; color: var(--vv-muted); font-size: 14px; }
body.platform .character-photo-form label,.character-description-heading label { color: var(--vv-text); font-size: 12px; font-weight: 700; margin: 14px 0 6px; }
body.platform .character-photo-form input:not([type=checkbox]):not([type=file]),body.platform .character-photo-form textarea { width: 100%; min-width: 0; border: 1px solid var(--vv-border); border-radius: 8px; background: var(--vv-raised); color: var(--vv-text); margin-top: 6px; padding: 10px 13px; font: 13px/1.5 'DM Sans',sans-serif; box-shadow: none; }
body.platform .character-photo-form textarea { display: block; min-height: 88px; height: 88px; margin: 0; resize: vertical; }
body.platform .character-photo-form .style-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 6px 0 16px; }
body.platform .character-photo-form .style-options button { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 5px; border: 1px solid var(--vv-border); border-radius: 10px; background: var(--vv-surface); color: var(--vv-text); text-align: left; box-shadow: none; overflow: hidden; }
body.platform .character-photo-form .style-options button[aria-pressed=true] { outline: 0; border-color: var(--vv-accent); background: var(--vv-surface); }
body.platform .character-photo-form .style-options img { display: block; width: 100%; height: 170px; aspect-ratio: auto; object-fit: cover; object-position: center top; border: 0; border-radius: 6px; }
body.platform .character-photo-form .style-options button > span { display: grid; gap: 5px; padding: 10px 7px 8px; }
body.platform .character-photo-form .style-options strong { font-size: 14px; }
body.platform .character-photo-form .style-options small { font-size: 11px; font-weight: 400; color: var(--vv-muted); line-height: 1.5; }
.character-photo-form .style-options i { display: none; position: absolute; top: 10px; right: 10px; place-items: center; width: 26px; height: 26px; color: var(--vv-on-accent); background: var(--vv-accent); border-radius: 50%; font-style: normal; }
.character-photo-form .style-options [aria-pressed=true] i { display: grid; }
.character-description-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 16px 0 7px; }
body.platform .character-description-heading label { margin: 0; }
body.platform .character-description-heading .text-button { color: var(--vv-accent); padding: 0; font-size: 12px; font-weight: 400; }
.character-prompt-count { display: block; color: var(--vv-muted); font-size: 11px; text-align: right; margin: 4px 0 12px; }
.character-photo-form #character-ideas { margin: 0 0 14px; }
.character-upload-section > label { display: block; }
.character-photo-upload { display: flex; align-items: center; gap: 16px; justify-content: space-between; min-height: 78px; padding: 14px; border: 1px dashed var(--vv-border); border-radius: 9px; }
.character-photo-upload.dragging { background: var(--vv-raised); border-color: var(--vv-accent); }
.character-upload-copy { display: flex; gap: 15px; align-items: center; min-width: 0; }
.character-upload-copy > svg { width: 32px; height: 32px; flex-shrink: 0; color: var(--vv-muted); }
.character-upload-copy > div { display: grid; gap: 5px; min-width: 0; }
.character-upload-copy strong { font-size: 12px; overflow-wrap: anywhere; }
.character-upload-copy small { font-size: 10px; color: var(--vv-muted); }
body.platform .character-photo-upload .button { padding: 9px 15px; border: 1px solid var(--vv-accent); background: var(--vv-raised); color: var(--vv-accent); font-size: 12px; border-radius: 8px; white-space: nowrap; font-weight: 400; }
.character-reference { position: relative; width: 62px; flex: 0 0 62px; }
.character-reference img { display: block; width: 62px; height: 60px; object-fit: contain; border-radius: 5px; background: var(--vv-surface); }
.character-reference button { position: absolute; top: -9px; right: -8px; width: 25px; height: 25px; padding: 0; border: 1px solid var(--vv-border); border-radius: 50%; background: var(--vv-surface); color: var(--vv-muted); font-size: 19px; cursor: pointer; }
body.platform .character-photo-form .check { display: flex; align-items: flex-start; gap: 10px; color: var(--vv-muted); font-size: 11px; font-weight: 400; line-height: 1.6; margin: 15px 0 18px; }
body.platform .character-photo-form .check input { flex: 0 0 15px; height: 15px; width: 15px; margin: 2px 0 0; accent-color: var(--vv-accent); }
.character-form-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 13px; border-top: 1px solid var(--vv-border); }
.character-save-note { display: flex; align-items: center; gap: 9px; color: var(--vv-muted); font-size: 10px; line-height: 1.5; margin-right: auto; }
.character-save-note svg { flex: 0 0 22px; }
body.platform .character-photo-form .character-charge { margin: 0; padding: 0; border: 0; background: none; flex-shrink: 0; }
body.platform .character-charge summary { color: var(--vv-muted); font-size: 10px; font-weight: 400; min-height: 0; cursor: pointer; }
body.platform .character-photo-form .character-charge[open] { flex: 1 1 100%; order: 3; border-top: 1px solid var(--vv-border); padding-top: 12px; }
.character-form-footer:has(.character-charge[open]) { flex-wrap: wrap; }
body.platform .character-form-footer .button.primary { width: auto; max-width: 100%; background: var(--vv-accent); border: 1px solid var(--vv-accent); color: var(--vv-on-accent); border-radius: 9px; padding: 11px 18px; font-size: 12px; white-space: nowrap; flex-shrink: 0; box-shadow: none; }
body.platform .character-photo-form .draft-status { margin: 8px 0 0; font-size: 11px; }
body.platform .character-photo-form .draft-status.product-draft-quiet { display: none; }
body.platform .character-photo-form .error { font-size: 12px; }
.character-photo-form .error:empty { display: none; }
body.platform .character-photo-aside { padding: 18px; }
body.platform .character-result-eyebrow { margin: 0 0 12px; font-size: 10px; font-weight: 700; color: var(--vv-muted); letter-spacing: 1.5px; }
.character-result-image { display: block; width: 100%; height: 420px; object-fit: contain; border-radius: 9px; background: var(--vv-surface); }
.character-result-status { display: grid; place-content: center; justify-items: center; min-height: 360px; padding: 24px; background: var(--vv-surface); border-radius: 9px; color: var(--vv-muted); text-align: center; }
.character-result-status > svg { width: 40px; height: 40px; color: var(--vv-accent); }
body.platform .character-result-state { font-size: 11px; color: var(--vv-muted); margin: 10px 0 5px; }
body.platform .character-result-state.ready { color: var(--vv-success); }
body.platform .character-photo-aside h3 { font-size: 24px; color: var(--vv-text); letter-spacing: -.6px; margin: 0 0 7px; overflow-wrap: anywhere; }
.character-result-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--vv-accent-soft); color: var(--vv-accent); padding: 7px 11px; border-radius: 7px; font-size: 12px; }
.character-result-actions { display: grid; gap: 9px; margin-top: 12px; }
body.platform .character-result-actions .button { padding: 10px; width: 100%; text-align: center; border: 1px solid var(--vv-accent); color: var(--vv-accent); background: var(--vv-surface); border-radius: 8px; font-size: 13px; font-weight: 400; }
body.platform .character-result-actions .button.primary { color: var(--vv-on-accent); background: var(--vv-accent); border-color: var(--vv-accent); font-weight: 700; }
body.platform .character-result-actions .text-button { font-size: 12px; color: var(--vv-muted); font-weight: 400; text-decoration: underline; justify-self: center; padding: 2px; }
body.platform .character-photo-studio .button:disabled { background: var(--vv-surface); border-color: var(--vv-border); color: var(--vv-muted); cursor: not-allowed; }
.character-photo-tip { display: flex; align-items: flex-start; gap: 12px; padding: 16px 14px; margin-top: 16px; border-radius: 10px; background: var(--vv-accent-soft); }
.character-photo-tip > svg { width: 25px; height: 25px; flex-shrink: 0; color: var(--vv-accent); }
.character-photo-tip strong { font-size: 12px; color: var(--vv-accent); }
body.platform .character-photo-tip p { font-size: 12px; color: var(--vv-muted); margin: 5px 0 0; line-height: 1.6; }
.character-photo-studio [hidden] { display: none !important; }
.character-photo-studio :focus-visible { outline: 2px solid var(--vv-accent); outline-offset: 3px; }
@media(max-width:1280px) { body.platform .character-photo-grid { grid-template-columns: minmax(0,1.6fr) minmax(280px,1fr); } body.platform .character-photo-form { padding: 20px; } .character-form-footer { flex-wrap: wrap; } .character-save-note { flex: 1 1 100%; } .character-form-footer .button { margin-left: auto; } .character-photo-upload { flex-wrap: wrap; } }
@media(max-width:1050px) { body.platform .character-photo-grid { grid-template-columns: minmax(0,1fr); } body.platform .character-photo-aside { width: 100%; max-width: 480px; justify-self: center; } }
@media(max-width:600px) {
  body.platform .character-photo-heading { flex-direction: column; align-items: flex-start; gap: 8px; }
  .character-photo-tabs { gap: 4px; } .character-photo-tabs button { padding: 11px 12px; font-size: 12px; gap: 7px; }
  body.platform .character-photo-form { padding: 18px 16px; }
  body.platform .character-photo-form > h3 { font-size: 21px; }
  body.platform .character-photo-form .style-options { grid-template-columns: minmax(0,1fr); gap: 9px; }
  body.platform .character-photo-form .style-options button { flex-direction: row; align-items: center; gap: 8px; }
  body.platform .character-photo-form .style-options img { width: 90px; height: 85px; flex: 0 0 90px; }
  .character-description-heading { align-items: flex-start; gap: 8px; flex-wrap: wrap; }
  .character-upload-copy > svg { display: none; }
  .character-upload-copy { flex: 1; }
  body.platform .character-photo-upload .button { width: 100%; }
  .character-form-footer { gap: 13px; }
  .character-save-note { order: 3; justify-content: center; }
  body.platform .character-form-footer .button.primary { width: 100%; margin: 0; }
  .character-result-image { height: auto; max-height: 420px; }
}

/* Compact creation workspace: controls, canvas and result details. */
body.platform .character-photo-studio { padding: 12px 20px 20px; }
body.platform .character-photo-heading { margin-bottom: 10px; }
body.platform .character-photo-heading h2 { font-size: 18px; margin: 0; }
body.platform .character-photo-heading p { display: none; }
.character-photo-tabs { margin-bottom: 12px; padding: 0 10px; gap: 18px; border-radius: 14px; }
.character-photo-tabs button { padding: 13px 3px; font-size: 12px; border-radius: 0; gap: 7px; }
.character-photo-tabs .active { color: var(--vv-text); background: none; box-shadow: inset 0 -2px var(--vv-text); }
body.platform .character-photo-grid { grid-template-columns: 320px minmax(0,1fr); gap: 12px; align-items: stretch; }
body.platform .character-photo-form { padding: 14px; border-radius: 18px; box-shadow: none; }
body.platform .character-photo-form > h3 { font-size: 16px; letter-spacing: -.2px; }
body.platform .character-photo-form .character-form-intro { font-size: 11px; margin-bottom: 12px; }
body.platform .character-photo-form .style-options { gap: 6px; margin-bottom: 10px; }
body.platform .character-photo-form .style-options img { height: 72px; }
body.platform .character-photo-form .style-options button > span { padding: 7px 2px; }
body.platform .character-photo-form .style-options strong { font-size: 10px; }
body.platform .character-photo-form .style-options small { display: none; }
.character-photo-form .style-options i { width: 18px; height: 18px; top: 6px; right: 6px; font-size: 11px; }
body.platform .character-photo-form label { font-size: 11px; margin-top: 10px; }
body.platform .character-photo-form input:not([type=checkbox]):not([type=file]),body.platform .character-photo-form textarea { font-size: 12px; padding: 9px 10px; }
.character-description-heading { flex-wrap: wrap; gap: 5px; margin-top: 12px; }
body.platform .character-description-heading .text-button { font-size: 10px; }
.character-photo-upload { flex-wrap: wrap; padding: 12px; gap: 10px; background: var(--vv-raised); }
.character-upload-copy { gap: 8px; }
.character-upload-copy strong { font-size: 11px; }
.character-upload-copy > svg { width: 24px; }
body.platform .character-photo-upload .button { width: 100%; font-size: 11px; }
body.platform .character-photo-form .check { margin: 12px 0; font-size: 10px; }
.character-form-footer { position: sticky; bottom: 0; z-index: 2; background: var(--vv-surface); padding: 10px 0 0; gap: 8px; }
.character-save-note { display: none; }
body.platform .character-form-footer .button.primary { width: 100%; margin: 0; order: 2; font-size: 12px; min-height: 42px; }
body.platform .character-photo-aside { display: grid; grid-template-columns: minmax(0,1fr) 210px; grid-template-rows: auto 1fr; gap: 14px; padding: 16px; border-radius: 18px; box-shadow: none; max-width: none; }
body.platform .character-result-eyebrow { grid-column: 1 / -1; margin: 0; font-size: 10px; }
.character-preview-canvas { display: grid; place-items: center; min-width: 0; min-height: 440px; background: #1c1f20; border-radius: 15px; overflow: hidden; }
.character-result-image { width: 100%; height: 100%; max-height: calc(100dvh - 215px); min-height: 400px; object-fit: contain; border-radius: 0; background: transparent; }
.character-result-status { background: transparent; min-height: 400px; font-size: 13px; }
.character-preview-details { display: flex; flex-direction: column; padding: 14px; border: 1px solid var(--vv-border); border-radius: 15px; min-width: 0; }
body.platform .character-photo-aside h3 { font-size: 18px; letter-spacing: -.3px; }
.character-result-tag { font-size: 10px; align-self: flex-start; }
body.platform .character-result-actions .button { font-size: 11px; }
.character-photo-tip { margin-top: auto; padding: 14px 0 0; background: none; }
.character-photo-tip > svg { width: 18px; }
.character-photo-tip strong,body.platform .character-photo-tip p { font-size: 11px; }
@media(min-width:1101px) {
  body.platform .character-photo-grid { height: calc(100dvh - 180px); min-height: 540px; }
  body.platform .character-photo-form { overflow-y: auto; scrollbar-width: thin; }
  body.platform .character-photo-aside { overflow-y: auto; }
}
@media(max-width:1100px) {
  body.platform .character-photo-grid { grid-template-columns: 300px minmax(0,1fr); }
  body.platform .character-photo-aside { grid-template-columns: minmax(0,1fr); width: auto; justify-self: stretch; }
  .character-preview-canvas { min-height: 340px; }
  .character-result-image { min-height: 0; height: 400px; }
  .character-preview-details { gap: 6px; }
}
@media(max-width:700px) {
  body.platform .character-photo-studio { padding: 12px; }
  body.platform .character-photo-heading { flex-direction: row; align-items: center; }
  body.platform .character-photo-heading h2 { font-size: 16px; }
  #character-draft-state { font-size: 10px; }
  .character-photo-tabs { gap: 14px; }
  .character-photo-tabs button { font-size: 11px; }
  body.platform .character-photo-grid { grid-template-columns: minmax(0,1fr); }
  body.platform .character-photo-form .style-options { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body.platform .character-photo-form .style-options button { flex-direction: column; gap: 0; }
  body.platform .character-photo-form .style-options img { width: 100%; height: 85px; flex: auto; }
  body.platform .character-photo-aside { padding: 12px; }
  .character-result-image { height: 420px; max-height: none; }
}
body.platform .character-photo-grid #preview.character-photo-aside { width: 100%; max-width: none; justify-self: stretch; align-self: stretch; }
