/* Owner workspace: persistent desktop settings and a mobile settings drawer. */
.identity-editor-page .body { background: #faf9fb; }
.identity-editor { height: calc(100dvh - var(--identity-editor-header, 100px)); min-height: 420px; display: flex; flex-direction: column; position: relative; color: #26232c; }
.identity-editor [hidden] { display: none !important; }
.identity-editor-toolbar { flex: 0 0 auto; min-height: 56px; display: none; align-items: center; justify-content: flex-end; background: #fff; border-bottom: 1px solid #ece9f0; }
.identity-editor-title { min-width: 0; flex: 1; display: grid; gap: 6px; }
.identity-editor-title > strong { min-width: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; line-height: 1.5; }
.identity-editor-title-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #8a8493; font-size: 11px; }
.identity-editor-status { font-size: 9px; line-height: 1.5; color: #77717f; border-radius: 20px; background: #f5f3f7; padding: 3px 7px; white-space: nowrap; }
.identity-editor-status.is-public { color: #278264; background: #eef8f3; }
.identity-editor-menu-button { flex: 0 0 44px; width: 44px; height: 44px; padding: 11px; align-items: center; justify-content: center; color: #81798d; background: #fff; border: 1px solid #e8e4ee; border-radius: 12px; cursor: pointer; }
.identity-editor-menu-button svg { display: block; width: 20px; height: 20px; }
.identity-editor-mobile-toggle, .identity-editor-menu-heading .identity-editor-menu-button, .identity-editor-backdrop { display: none; }
.identity-editor-menu-heading { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #efedf3; }
.identity-editor-workspace { display: flex; flex: 1; min-height: 0; }
.identity-editor-sidebar { flex: 0 0 400px; width: 400px; min-width: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 24px; background: #fff; border-right: 1px solid #ece9f0; scrollbar-width: none; scrollbar-gutter: auto; }
.identity-editor-sidebar::-webkit-scrollbar { display: none; width: 0; height: 0; }
.identity-editor-sidebar h2 { font: 600 13px/1.5 Poppins, sans-serif; margin: 0 0 3px; letter-spacing: 0; text-transform: none; }
.identity-editor-visibility { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.identity-editor-visibility > div > span { font-size: 11px; color: #8a8493; }
.identity-editor .identity-editor-switch { display: inline-flex; align-items: center; flex-shrink: 0; width: 38px; height: 22px; padding: 3px; border: 0; border-radius: 20px; background: #d9d5df; cursor: pointer; }
.identity-editor-switch > span { display: block; height: 16px; width: 16px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px #29233326; transition: transform .15s; }
.identity-editor .identity-editor-switch[aria-checked="true"] { background: #6b39f4; }
.identity-editor-switch[aria-checked="true"] > span { transform: translateX(16px); }
.identity-editor-share-section { padding-bottom: 20px; }
.identity-editor .is-primary { color: #fff; background: #6b39f4; border-color: #6b39f4; }
.identity-editor button:disabled { opacity: .5; cursor: wait; }
.identity-editor button:hover:not(:disabled):not(.identity-editor-switch) { filter: brightness(.96); }
.identity-editor :focus-visible { outline: 2px solid #9673ed; outline-offset: 3px; }
.identity-editor-stage { position: relative; flex: 1; min-width: 0; min-height: 0; }
.identity-editor-stage iframe { display: block; width: 100%; height: 100%; border: 0; background: #faf9fb; }
.identity-editor-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; color: #81798d; }
.identity-editor-spinner { width: 20px; height: 20px; border: 2px solid #e8e1f5; border-top-color: #6b39f4; border-radius: 50%; animation: identity-editor-spin .8s linear infinite; }
@keyframes identity-editor-spin { to { transform: rotate(360deg); } }
.identity-editor-sidebar form { margin: 0; }
.identity-editor-sidebar details { box-sizing: border-box; border-top: 1px solid #efedf3; padding: 16px 0; }
.identity-editor-sidebar details.is-transitioning { overflow: hidden; }
.identity-editor-sidebar summary { font-size: 12px; font-weight: 600; cursor: pointer; }
.identity-editor-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; padding-top: 16px; }
.identity-editor-fields > *, .identity-editor-file-group > * { min-width: 0; }
.identity-editor-sidebar label { display: grid; gap: 7px; min-width: 0; margin: 0; color: #66606e; font-size: 11px; font-weight: 400; overflow-wrap: anywhere; }
.identity-editor-sidebar input:not([type="checkbox"]), .identity-editor-sidebar textarea, .identity-editor-sidebar select { width: 100%; min-width: 0; border: 1px solid #e8e4ee; border-radius: 9px; background: #fff; padding: 10px 12px; color: #292433; font: 400 12px/1.6 Poppins, sans-serif; box-shadow: none; }
.identity-editor-sidebar textarea { resize: vertical; }
.identity-editor-sidebar .identity-editor-check { display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; cursor: pointer; }
.identity-editor-check > span { min-width: 0; }
.identity-editor-check input { width: 15px; height: 15px; flex: 0 0 15px; margin: 1px 0 0; accent-color: #6b39f4; }
.identity-editor-hint, .identity-editor-sidebar p { font-size: 11px; line-height: 1.7; color: #8a8493; margin: 0; }
.identity-editor-section { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid #f1eff4; font-size: 11px; }
.identity-editor-section > label, .identity-editor-section > span { flex: 1; min-width: 0; }
.identity-editor-file-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; margin-top: 16px; }
.identity-editor-file-group > strong { font-size: 10px; color: #9b95a3; font-weight: 500; }
.identity-editor-action { display: block; width: 100%; margin-top: 14px; border: 1px solid #e6e1ed; background: #faf9fc; color: #55505d; border-radius: 9px; padding: 11px 14px; font: 500 11px/1.5 Poppins, sans-serif; cursor: pointer; }
.identity-editor-link { margin-top: 16px; display: flex; gap: 8px; align-items: flex-end; }
.identity-editor-link label { min-width: 0; flex: 1; }
.identity-editor-link button { border: 0; color: #6b39f4; background: #f5f1fe; border-radius: 8px; padding: 11px 10px; font-size: 10px; white-space: nowrap; cursor: pointer; }
.identity-editor-invites { padding: 0; margin: 14px 0 0; list-style: none; }
.identity-editor-invites li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; font-size: 10px; overflow-wrap: anywhere; }
.identity-editor-invites button { background: none; border: 0; font-size: 10px; color: #81798d; cursor: pointer; }
.identity-editor-upgrade { display: block; font-size: 12px; margin-top: 24px; color: #6b39f4; }

.identity-editor-sidebar .identity-editor-client { padding-block: 18px; }
.identity-editor-client .identity-editor-link, .identity-editor-client .identity-editor-action { margin-top: 0; }
.identity-editor-client details form { margin-top: 14px; }
.identity-editor-section { cursor: grab; border-radius: 6px; min-height: 44px; }
.identity-editor-section.is-dragging { background: #f4efff; outline: 1px solid #c8b4fa; cursor: grabbing; }
.identity-editor-section > .identity-editor-drag { flex: 0 0 28px; width: 28px; height: 32px; padding: 6px; display: inline-flex; align-items: center; justify-content: center; color: #a39baa; border: 0; background: transparent; cursor: grab; touch-action: none; }
.identity-editor-drag svg { width: 16px; height: 20px; }
.identity-editor-section small { font-size: 9px; color: #8a8493; white-space: nowrap; }
.identity-editor-section.is-dragging, .identity-editor-section.is-dragging * { user-select: none; }
.identity-editor-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 701px) and (max-width: 1000px) { .identity-editor-sidebar { flex-basis: 280px; width: 280px; padding: 20px; } }
@media (max-width: 700px) {
 .identity-editor { min-height: 0; }
 .identity-editor-toolbar { display: flex; padding: 8px 12px; }
 .identity-editor-mobile-toggle { display: inline-flex; }
 .identity-editor-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 12050; width: min(360px, calc(100% - 24px)); height: 100dvh; max-height: 100dvh; padding: 0 20px max(24px, env(safe-area-inset-bottom)); box-shadow: 12px 0 40px #29233320; transform: translateX(-100%); visibility: hidden; transition: transform .24s ease, visibility 0s linear .24s; }
 .identity-editor-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 1; background: #fff; padding: max(12px, env(safe-area-inset-top)) 0 12px; margin-bottom: 20px; border-bottom: 1px solid #efedf3; }
 .identity-editor-menu-heading .identity-editor-menu-button { display: inline-flex; }
 .identity-editor-backdrop { display: block; position: fixed; inset: 0; z-index: 12040; background: #29233355; opacity: 0; visibility: hidden; transition: opacity .24s ease, visibility 0s linear .24s; }
 .identity-editor.is-settings-open .identity-editor-sidebar { transform: translateX(0); visibility: visible; transition-delay: 0s; }
 .identity-editor.is-settings-open .identity-editor-backdrop { opacity: 1; visibility: visible; transition-delay: 0s; }
}
@media (prefers-reduced-motion: reduce) { .identity-editor-spinner { animation: none; } .identity-editor-switch > span, .identity-editor-sidebar, .identity-editor-backdrop { transition: none; } }

/* Uploaded presentation images keep their own section-order entries. */
.identity-custom-mockups { border-top: 1px solid #efedf3; padding-top: 20px; min-width: 0; }
.identity-custom-mockups-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.identity-custom-mockups-heading h3 { margin: 0; font: 600 13px/1.5 Poppins, sans-serif; letter-spacing: 0; text-transform: none; }
.identity-custom-mockups-heading > span { color: #8a8493; font-size: 11px; white-space: nowrap; }
.identity-editor .identity-mockup-upload { width: 100%; padding: 20px 12px; border: 1px dashed #cfc5e5; border-radius: 12px; color: #6b39f4; background: #faf8ff; font: 500 12px/1.6 Poppins, sans-serif; cursor: pointer; }
.identity-mockup-upload > span { font-size: 20px; margin-right: 6px; vertical-align: middle; }
.identity-custom-mockups.is-file-over { outline: 2px solid #6b39f4; outline-offset: 6px; border-radius: 8px; }
.identity-mockup-guidance { margin-top: 10px; line-height: 1.8; }
.identity-mockup-item { margin: 0 0 18px; min-width: 0; }
.identity-mockup-item > img { display: block; width: 100%; max-height: 150px; object-fit: contain; background: #f7f5f9; border-radius: 8px; }
.identity-mockup-item-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin: 8px 0; font-size: 11px; }
.identity-mockup-item-heading > div { display: flex; gap: 12px; }
.identity-editor .identity-mockup-item-heading button { background: none; border: 0; padding: 5px 0; color: #766b87; font-size: 11px; cursor: pointer; }
.identity-mockup-item textarea { width: 100%; resize: vertical; }
.identity-mockup-locked { border: 1px solid #eae5f3; background: #faf8ff; padding: 16px; border-radius: 12px; margin-bottom: 14px; font-size: 12px; }
.identity-mockup-locked p { margin: 7px 0; font-size: 11px; line-height: 1.7; }
.identity-mockup-locked a { color: #6b39f4; font-weight: 500; }
