.profile-form-toolbar { position: sticky; top: 12px; z-index: 3; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; padding: 20px 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); box-shadow: 0 4px 14px #122b4410; }
.profile-form-toolbar > div:first-child { display: grid; gap: 5px; }
.profile-form-toolbar [role=status] { color: var(--muted); font-size: 13px; }
.profile-form-feedback { margin-bottom: 20px; }
.profile-form-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 24px; align-items: start; }
.profile-form-grid > .panel + .panel { margin-top: 0; }
.profile-form-fields, .profile-form-preview { min-width: 0; overflow: hidden; }
.profile-form-section-head, .profile-form-preview-title { padding: 22px 24px; border-bottom: 1px solid var(--border); }
.profile-form-section-head h2, .profile-form-preview-title h2 { margin: 0; font-size: 18px; }
.profile-form-section-head p { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
.profile-form-add { padding: 18px 24px; background: var(--accent-soft); border-bottom: 1px solid var(--border); }
.profile-form-add > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.profile-form-add small { color: var(--muted); font-size: 12px; }
.profile-field-types { margin-top: 18px; }
.profile-field-types > p { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.profile-field-types > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.profile-type-card { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 5px 9px; align-items: center; text-align: left; font: inherit; color: var(--text); border: 1px solid var(--border); border-radius: 9px; padding: 13px; background: var(--panel); cursor: pointer; }
.profile-type-card > span { grid-row: span 2; font-size: 23px; font-weight: 600; color: var(--accent); text-align: center; }
.profile-type-card strong { font-size: 14px; }
.profile-type-card small { line-height: 1.5; }
.profile-type-card:hover { border-color: var(--accent); box-shadow: 0 2px 8px #122b440d; }
.profile-type-card:focus-visible, .profile-field-actions button:focus-visible, .profile-form-archived summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.profile-type-card:disabled { cursor: not-allowed; opacity: .55; }
.profile-field-card { border-bottom: 1px solid var(--border); padding: 18px 24px; }
.profile-field-card:last-child { border-bottom: 0; }
.profile-field-row { display: flex; gap: 12px; align-items: center; }
.profile-field-order { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }
.profile-field-heading { flex: 1; min-width: 0; }
.profile-field-card.is-disabled .profile-field-title { color: var(--muted); }
.profile-field-title { font-weight: 650; overflow-wrap: anywhere; }
.profile-field-heading small { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 6px; color: var(--muted); font-size: 12px; }
.profile-field-heading small span { padding-left: 12px; border-left: 1px solid var(--border); }
.profile-field-card fieldset { padding: 18px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); margin: 14px 0 0; min-width: 0; }
.profile-field-card fieldset > label + label { margin-top: 14px; }
.profile-field-card fieldset > label { display: grid; gap: 7px; font-size: 13px; color: var(--muted); }
.profile-field-card input:not([type=checkbox]), .profile-field-card textarea { width: 100%; min-width: 0; }
.profile-field-options { display: flex; flex-wrap: wrap; justify-content: end; gap: 10px 14px; }
.profile-field-options label { display: flex; align-items: center; gap: 7px; font-size: 12px; white-space: nowrap; cursor: pointer; }
.profile-field-options input[type=checkbox] { width: 16px; min-height: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.profile-field-actions { display: flex; justify-content: end; gap: 8px; margin-top: 12px; }
.profile-field-sort { display: flex; gap: 5px; margin-right: auto; padding-left: 44px; }
.profile-field-actions .btn { padding: 6px 12px; font-size: 12px; min-height: 32px; }
.profile-field-actions .profile-remove { color: var(--danger, #b33e3e); }
.profile-field-editor-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.profile-field-editor-footer > span { color: var(--muted); font-size: 12px; }
.profile-field-editor-footer .btn { padding: 7px 12px; font-size: 12px; }
.profile-form-archived { border-top: 1px solid var(--border); padding: 20px 24px; background: var(--bg); }
.profile-form-archived summary { color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 600; }
.profile-form-archived summary span { display: inline-block; padding: 2px 8px; margin-left: 6px; background: var(--panel); border-radius: 20px; font-size: 12px; }
.profile-form-archived > p { font-size: 12px; line-height: 1.7; color: var(--muted); }
.profile-archived-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.profile-archived-row > div { min-width: 0; }
.profile-archived-row strong { font-size: 14px; overflow-wrap: anywhere; }
.profile-archived-row small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.profile-archived-row .btn { padding: 7px 12px; font-size: 12px; }
.profile-form-preview { position: sticky; top: 110px; }
.profile-form-preview-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.profile-form-preview-title > span { color: var(--muted); font-size: 12px; }
.profile-form-preview-body { padding: 24px; }
.profile-form-preview-body h3 { margin: 0 0 8px; font-size: 20px; }
.profile-form-preview-body > p { margin: 0 0 24px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.profile-form-preview-body > label, .profile-form-optional > div > label { display: block; margin-bottom: 18px; font-size: 14px; overflow-wrap: anywhere; }
.profile-form-optional { border: 1px solid var(--border); border-radius: 9px; margin-bottom: 20px; padding: 14px; }
.profile-form-optional summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.profile-form-optional summary span { float: right; font-size: 12px; }
.profile-form-optional > div { margin-top: 20px; }
.profile-form-optional > div > label:last-child { margin-bottom: 0; }
.profile-form-preview-body input, .profile-form-preview-body textarea, .profile-form-preview-body select { display: block; width: 100%; margin-top: 7px; opacity: 1; color: var(--muted); background: var(--bg); }
.profile-form-preview-body > .btn { width: 100%; }
.profile-required { margin-left: 5px; color: var(--danger, #b33e3e); }
.profile-optional { margin-left: 7px; color: var(--muted); font-size: 12px; }
.profile-form-empty { padding: 24px 0; color: var(--muted); }
.onboarding-custom-facts dd { white-space: pre-wrap; }
@media (max-width: 1000px) { .profile-form-grid { grid-template-columns: minmax(0, 1fr); } .profile-form-preview { position: static; } }
@media (max-width: 760px) { .profile-form-toolbar, .profile-form-section-head, .profile-form-preview-title, .profile-form-preview-body { padding: 18px; } .profile-form-grid { gap: 16px; } .profile-form-add, .profile-field-card, .profile-form-archived { padding: 16px 18px; } .profile-form-toolbar .actions { width: 100%; } .profile-form-toolbar .actions .btn { flex: 1; } .profile-field-row { flex-wrap: wrap; } .profile-field-heading { flex-basis: calc(100% - 44px); } .profile-field-options { width: 100%; justify-content: start; padding-left: 44px; } }
@media (max-width: 420px) { .profile-field-types > div { grid-template-columns: minmax(0, 1fr); } .profile-field-card fieldset { padding: 14px; } }
