.create-body {
    --creator-surface: #dededb;
    --creator-surface-top: rgba(248, 247, 243, 0.86);
    --creator-surface-bottom: rgba(215, 215, 211, 0.98);
    --creator-wash-primary: rgba(73, 65, 56, 0.048);
    --creator-wash-secondary: rgba(33, 39, 41, 0.055);
    --creator-border: rgba(58, 63, 62, 0.16);
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0) 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0)),
        #ebecea;
}

.create-body.creator-palette-deep-emerald {
    --creator-wash-primary: rgba(46, 117, 105, 0.014);
    --creator-wash-secondary: rgba(34, 39, 40, 0.052);
    --creator-border: rgba(58, 63, 62, 0.16);
}

.create-body.creator-palette-slate-blue,
.create-body.creator-palette-navy-steel {
    --creator-wash-primary: rgba(70, 103, 125, 0.016);
    --creator-wash-secondary: rgba(34, 39, 40, 0.052);
    --creator-border: rgba(58, 63, 62, 0.16);
}

.create-body.creator-palette-burgundy {
    --creator-wash-primary: rgba(122, 75, 88, 0.014);
    --creator-wash-secondary: rgba(38, 35, 37, 0.054);
    --creator-border: rgba(62, 58, 58, 0.16);
}

.create-body.creator-palette-sandstone {
    --creator-wash-primary: rgba(119, 103, 78, 0.016);
    --creator-wash-secondary: rgba(48, 45, 40, 0.052);
    --creator-border: rgba(62, 58, 52, 0.158);
}

.create-body.creator-palette-charcoal,
.create-body.creator-palette-graphite {
    --creator-wash-primary: rgba(80, 92, 94, 0.024);
    --creator-wash-secondary: rgba(28, 33, 34, 0.06);
    --creator-border: rgba(55, 60, 60, 0.17);
}

.create-workspace {
    display: grid;
    gap: 18px;
    width: min(100%, 1220px);
    max-width: 100%;
    margin: 0 auto;
    padding: 14px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.create-panel,
.preview-panel {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(82, 95, 104, 0.12);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(31, 45, 55, 0.07);
}

.create-panel {
    min-width: 0;
    overflow-x: hidden;
    padding: 22px;
    background:
        radial-gradient(circle at 12% 4%, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0) 34%),
        radial-gradient(circle at 14% 6%, var(--creator-wash-primary), rgba(255, 255, 255, 0) 42%),
        radial-gradient(circle at 92% 88%, var(--creator-wash-secondary), rgba(255, 255, 255, 0) 40%),
        linear-gradient(180deg, var(--creator-surface-top), var(--creator-surface-bottom)),
        var(--creator-surface);
    border-color: var(--creator-border);
    box-shadow:
        0 34px 92px rgba(25, 33, 38, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.62);
    box-sizing: border-box;
}

.create-panel *,
.create-panel *::before,
.create-panel *::after {
    box-sizing: border-box;
}

.preview-panel {
    min-width: 0;
    padding: 14px;
}

.create-panel-header,
.preview-panel-header {
    display: grid;
    gap: 5px;
    margin-bottom: 16px;
}

.preview-panel-header {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.create-kicker {
    margin: 0;
    color: var(--accent);
    font-size: 0.62rem;
    font-weight: 780;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.create-panel h1,
.preview-panel h2,
.create-panel p {
    margin: 0;
}

.create-panel h1 {
    font-size: 1.32rem;
    line-height: 1.08;
    letter-spacing: -0.01em;
}

.preview-panel h2 {
    font-size: 1rem;
    line-height: 1.2;
}

.preview-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-self: start;
    gap: 8px;
}

.export-preview-toggle,
.export-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid rgba(82, 95, 104, 0.2);
    border-radius: 999px;
    color: var(--ink);
    background: #ffffff;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
}

.export-button {
    border-color: rgba(66, 48, 39, 0.42);
    color: #fff7ea;
    background:
        linear-gradient(180deg, rgba(92, 69, 56, 0.98), rgba(55, 42, 35, 0.98)),
        #3d3028;
    box-shadow:
        inset 0 1px 0 rgba(255, 238, 205, 0.16),
        0 7px 18px rgba(40, 31, 27, 0.18);
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.export-button:hover {
    border-color: rgba(84, 59, 45, 0.52);
    background:
        linear-gradient(180deg, rgba(108, 78, 60, 0.99), rgba(63, 47, 38, 0.99)),
        #46362d;
    box-shadow:
        inset 0 1px 0 rgba(255, 241, 214, 0.19),
        0 9px 22px rgba(40, 31, 27, 0.22);
}

.export-button:active {
    transform: translateY(1px);
    box-shadow:
        inset 0 1px 2px rgba(19, 14, 12, 0.34),
        0 4px 12px rgba(40, 31, 27, 0.16);
}

.export-button:disabled {
    cursor: wait;
    opacity: 0.58;
    transform: none;
}

.export-status {
    color: #6f7a7d;
    font-size: 0.76rem;
    font-weight: 650;
}

.export-preview-toggle input {
    width: auto;
    min-height: auto;
    padding: 0;
}

.create-panel-header p:not(.create-kicker) {
    max-width: 32rem;
    color: #687376;
    font-size: 0.82rem;
    line-height: 1.42;
}

.profile-form,
.form-grid {
    display: grid;
    min-width: 0;
    max-width: 100%;
    gap: 10px;
    box-sizing: border-box;
}

.profile-form {
    gap: 0;
    overflow-x: hidden;
}

.creator-step {
    display: grid;
    min-width: 0;
    max-width: 100%;
    gap: 11px;
    padding: 17px 10px 19px;
    border-top: 1px solid rgba(54, 60, 60, 0.1);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.13)),
        rgba(247, 246, 242, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
    box-sizing: border-box;
}

.creator-step:first-child {
    padding-top: 12px;
    border-top: 0;
}

.creator-step-header {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    min-width: 0;
    max-width: 100%;
    gap: 10px;
    align-items: center;
}

.step-number {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid rgba(43, 53, 53, 0.18);
    border-radius: 999px;
    color: #223334;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 239, 233, 0.82)),
        rgba(249, 247, 242, 0.86);
    box-shadow: 0 1px 3px rgba(31, 45, 55, 0.06);
    font-size: 0.7rem;
    font-weight: 800;
}

.creator-step h2 {
    margin: 0;
    color: #192326;
    font-size: 1rem;
    font-weight: 780;
    line-height: 1.15;
    letter-spacing: 0;
}

.creator-step-body {
    min-width: 0;
    max-width: 100%;
}

.creator-step-body-inner {
    min-width: 0;
    min-height: 0;
    overflow: visible;
    padding-left: 36px;
}

.creator-step p {
    margin: 2px 0 0;
    color: #5f6a6d;
    font-size: 0.75rem;
    line-height: 1.46;
}

.visual-identity-grid,
.bio-writing-grid {
    gap: 12px;
}

.visual-identity-grid {
    align-items: start;
}

.bio-writing-grid .bio-input {
    grid-column: 1 / -1;
}

.review-note {
    padding: 9px 11px;
    border-left: 2px solid rgba(46, 117, 105, 0.24);
    border-radius: 10px;
    background: rgba(237, 245, 242, 0.32);
}

fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.form-grid > label,
.form-grid > .bio-input {
    display: grid;
    min-width: 0;
    max-width: 100%;
    align-content: start;
}

legend,
.profile-form label > span,
.bio-input-header label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
    color: #3c494c;
    font-size: 0.71rem;
    font-weight: 720;
    letter-spacing: 0;
    text-transform: none;
}

.label-copy {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 5px;
}

.helper-tooltip {
    position: relative;
    z-index: 2;
    display: inline-grid;
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(47, 55, 55, 0.16);
    border-radius: 999px;
    color: #4d595a;
    background: rgba(250, 249, 245, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    font-size: 0.58rem;
    font-weight: 760;
    line-height: 1;
    cursor: help;
}

.helper-tooltip:focus-visible {
    outline: 2px solid rgba(46, 117, 105, 0.16);
    outline-offset: 2px;
}

.helper-tooltip-content {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    width: max-content;
    max-width: 190px;
    padding: 8px 9px;
    border: 1px solid rgba(51, 58, 58, 0.12);
    border-radius: 9px;
    color: #303a3c;
    background: rgba(255, 253, 247, 0.98);
    box-shadow: 0 14px 34px rgba(24, 32, 36, 0.16);
    font-size: 0.68rem;
    font-weight: 570;
    line-height: 1.36;
    opacity: 0;
    pointer-events: none;
    text-align: left;
    transform: translate(-50%, 4px);
    transition: opacity 140ms ease, transform 140ms ease;
}

.helper-tooltip-content-right {
    right: 0;
    left: auto;
    transform: translate(0, 4px);
}

.helper-tooltip:hover .helper-tooltip-content,
.helper-tooltip:focus .helper-tooltip-content {
    opacity: 1;
    transform: translate(-50%, 0);
}

.helper-tooltip:hover .helper-tooltip-content-right,
.helper-tooltip:focus .helper-tooltip-content-right {
    transform: translate(0, 0);
}

.char-counter {
    color: #5c686b;
    font: inherit;
    font-size: 0.67rem;
    font-weight: 720;
    text-transform: none;
}

.bio-input-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    margin-bottom: 7px;
}

.bio-input-header label {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
}

.writing-assist-action {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
}

.writing-assist-button {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(43, 51, 52, 0.15);
    border-radius: 999px;
    color: #293739;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 243, 238, 0.84)),
        rgba(250, 249, 245, 0.88);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 1px 2px rgba(31, 45, 55, 0.04);
    font: inherit;
    font-size: 0.68rem;
    font-weight: 720;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.writing-assist-button:hover {
    border-color: rgba(43, 51, 52, 0.24);
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 246, 242, 0.9)),
        #ffffff;
}

.writing-assist-button:disabled {
    color: #5f6a6d;
    cursor: wait;
    opacity: 0.82;
}

.writing-assist-button.is-loading::after {
    content: "";
    display: inline-block;
    width: 0.42rem;
    height: 0.42rem;
    margin-left: 5px;
    border: 1px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -0.05rem;
    animation: writing-assist-spin 760ms linear infinite;
}

.writing-assist-button:focus-visible {
    outline: 2px solid rgba(46, 117, 105, 0.12);
    outline-offset: 3px;
}

.writing-assist-meta {
    display: grid;
    min-width: 0;
    gap: 6px;
    margin-top: 8px;
}

.writing-assist-meta .field-help {
    margin-top: 0;
    color: #536064;
    font-size: 0.68rem;
    line-height: 1.48;
}

.writing-assist-status {
    color: #435154;
    font-size: 0.68rem;
    font-weight: 670;
    line-height: 1.44;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.writing-assist-status.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.writing-assist-status.is-error {
    color: #8a4f58;
}

.writing-assist-suggestion {
    display: grid;
    gap: 12px;
    margin-top: 13px;
    padding: 14px;
    border: 1px solid rgba(54, 62, 62, 0.14);
    border-radius: 11px;
    color: #354043;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 246, 241, 0.7)),
        rgba(244, 243, 238, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 6px 18px rgba(31, 45, 55, 0.04);
}

.writing-assist-suggestion[hidden] {
    display: none;
}

.writing-assist-suggestion p {
    margin: 0;
    color: #3f4d50;
    font-size: 0.69rem;
    font-weight: 700;
    line-height: 1.36;
}

.writing-assist-suggestion-text {
    color: #2f393b;
    font-size: 0.81rem;
    line-height: 1.58;
    white-space: pre-line;
}

.writing-assist-suggestion-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.writing-assist-suggestion-actions button {
    min-height: auto;
    width: auto;
    padding: 5px 8px;
    border: 1px solid rgba(82, 95, 104, 0.14);
    border-radius: 7px;
    color: #45575b;
    background: rgba(255, 255, 255, 0.68);
    font-size: 0.66rem;
    font-weight: 650;
    cursor: pointer;
}

.writing-assist-suggestion-actions button:hover {
    border-color: rgba(82, 95, 104, 0.2);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.82);
}

@keyframes writing-assist-spin {
    to {
        transform: rotate(1turn);
    }
}

.name-field input,
.tagline-field input {
    border-color: rgba(82, 95, 104, 0.13);
    background: #ffffff;
}

.name-field input {
    font-size: 0.94rem;
    font-weight: 680;
}

.tagline-field input {
    color: #3f4a4c;
}

.field-help {
    display: block;
    margin-top: 5px;
    color: #626e71;
    font-size: 0.68rem;
    line-height: 1.46;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.identity-choice-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    max-width: 100%;
    gap: 1px;
    padding: 1px;
    border: 1px solid rgba(68, 78, 82, 0.12);
    border-radius: 9px;
    background: rgba(236, 240, 241, 0.58);
    box-sizing: border-box;
}

.palette-field {
    display: grid;
    gap: 0;
}

.palette-field legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.palette-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    gap: 10px;
    padding: 2px 0 4px;
}

.palette-option {
    position: relative;
    display: block;
}

.palette-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.palette-option span {
    display: block;
    width: 36px;
    height: 36px;
    overflow: hidden;
    border: 1px solid rgba(55, 65, 68, 0.18);
    border-radius: 6px;
    color: transparent;
    background: var(--chip-color, #2e7569);
    box-shadow: none;
    font-size: 0;
    line-height: 0;
    text-indent: -999px;
    white-space: nowrap;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.palette-option input:checked + span {
    border-color: rgba(24, 32, 34, 0.48);
    box-shadow:
        0 0 0 2px rgba(236, 240, 241, 0.98),
        0 0 0 3px rgba(24, 32, 34, 0.22);
    transform: translateY(-1px);
}

.palette-option input:focus-visible + span {
    outline: 2px solid rgba(46, 117, 105, 0.18);
    outline-offset: 3px;
}

.palette-option-deep-emerald { --chip-color: #2e7569; }
.palette-option-slate-blue { --chip-color: #456a82; }
.palette-option-graphite { --chip-color: #3f4748; }
.palette-option-burgundy { --chip-color: #7b3845; }
.palette-option-navy-steel { --chip-color: #2f5068; }
.palette-option-sandstone { --chip-color: #8a7357; }
.palette-option-charcoal { --chip-color: #252b2d; }

.photo-position-field {
    display: grid;
    min-width: 0;
    max-width: 100%;
    gap: 7px;
    grid-column: 1 / -1;
    opacity: 0.52;
}

.photo-position-field.is-enabled {
    opacity: 1;
}

.position-control-row {
    display: grid;
    grid-template-columns: minmax(150px, 2fr) minmax(96px, 1fr);
    min-width: 0;
    max-width: 100%;
    gap: 14px;
    align-items: center;
    padding: 11px;
    border: 1px solid rgba(54, 62, 62, 0.1);
    border-radius: 17px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(245, 244, 239, 0.48)),
        rgba(243, 242, 237, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46);
    box-sizing: border-box;
}

.position-preview {
    display: grid;
    min-width: 0;
}

.position-preview-frame {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 170px;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(54, 62, 62, 0.12);
    border-radius: 22px;
    background:
        radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0) 35%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(229, 228, 222, 0.76)),
        #e8e7e2;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.68),
        0 12px 28px rgba(31, 45, 55, 0.075);
}

.position-preview-frame:not(.has-image) {
    background:
        radial-gradient(ellipse at 50% 43%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 38%),
        radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0) 35%),
        linear-gradient(180deg, rgba(250, 249, 244, 0.88), rgba(224, 223, 216, 0.78)),
        #e6e4dd;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.72),
        inset 0 -20px 44px rgba(47, 55, 55, 0.035),
        0 12px 28px rgba(31, 45, 55, 0.075);
}

.position-preview-frame::before,
.position-preview-frame::after {
    position: absolute;
    left: 50%;
    opacity: 1;
    pointer-events: none;
    transform: translateX(-50%);
    transition: opacity 160ms ease;
}

.position-preview-frame::before {
    content: "";
    top: calc(50% - 30px);
    width: 38px;
    height: 30px;
    border: 1px solid rgba(37, 46, 47, 0.3);
    border-radius: 9px;
    background:
        radial-gradient(circle at 70% 32%, rgba(37, 46, 47, 0.5) 0 2px, transparent 3px),
        linear-gradient(135deg, transparent 43%, rgba(37, 46, 47, 0.34) 44% 58%, transparent 59%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(242, 240, 233, 0.72));
    box-shadow:
        0 0 0 7px rgba(255, 255, 255, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 6px 14px rgba(31, 45, 55, 0.07);
}

.position-preview-frame::after {
    content: "Adjust after upload";
    top: calc(50% + 15px);
    width: max-content;
    color: #465154;
    font-size: 0.72rem;
    font-weight: 710;
    letter-spacing: 0;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.52);
}

.position-preview-frame.has-image::before,
.position-preview-frame.has-image::after {
    opacity: 0;
}

.position-preview-media {
    display: grid;
    width: 112px;
    height: 112px;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
        linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    box-shadow:
        0 16px 34px rgba(6, 22, 23, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.position-preview-frame.is-professional .position-preview-media {
    width: 148px;
    height: 148px;
    border-radius: 30px;
}

.position-preview-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: 7px;
    object-fit: contain;
    object-position: center;
    transform-origin: center center;
}

.position-preview-frame.is-photo .position-preview-media img {
    padding: 0;
    object-fit: cover;
}

.position-range-stack {
    display: grid;
    min-width: 0;
    max-width: 100%;
    gap: 8px;
    align-content: center;
}

.photo-position-field label {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.photo-position-field label > span {
    margin-bottom: 0;
    color: #5d686b;
    font-size: 0.62rem;
    font-weight: 700;
}

.photo-position-field input[type="range"] {
    min-height: 14px;
    padding: 0;
    background: transparent;
    accent-color: var(--accent);
    -webkit-appearance: none;
    appearance: none;
}

.photo-position-field input[type="range"]::-webkit-slider-runnable-track {
    height: 2px;
    border-radius: 999px;
    background: rgba(82, 95, 104, 0.14);
}

.photo-position-field input[type="range"]::-webkit-slider-thumb {
    width: 10px;
    height: 10px;
    margin-top: -4px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 1px 3px rgba(31, 45, 55, 0.16);
    -webkit-appearance: none;
    appearance: none;
}

.identity-choice-group label {
    display: block;
    min-width: 0;
}

.identity-choice-group input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.identity-choice-group span {
    display: grid;
    min-height: 29px;
    place-items: center;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #657073;
    background: transparent;
    font-size: 0.77rem;
    font-weight: 620;
    line-height: 1;
    text-align: center;
    transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, background-color 160ms ease;
}

.identity-choice-group input:checked + span {
    border-color: rgba(46, 117, 105, 0.2);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 1px 3px rgba(31, 45, 55, 0.045);
    font-weight: 710;
}

.identity-choice-group input:focus-visible + span {
    outline: 2px solid rgba(46, 117, 105, 0.12);
    outline-offset: 2px;
}

.identity-choice-group label:hover span {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.5);
}

input,
select,
textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    border: 1px solid rgba(43, 51, 52, 0.13);
    border-radius: 12px;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(251, 250, 246, 0.97)),
        #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.86),
        0 1px 2px rgba(31, 45, 55, 0.035);
    box-sizing: border-box;
    font: inherit;
    font-size: 0.88rem;
    text-overflow: clip;
    white-space: normal;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input::placeholder,
textarea::placeholder {
    color: #9aa3a5;
}

input,
select {
    min-height: 34px;
    padding: 0 10px;
}

.upload-field {
    padding: 13px;
    border: 1px solid rgba(54, 62, 62, 0.11);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(247, 246, 242, 0.58)),
        rgba(244, 243, 238, 0.46);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.image-moderation-status {
    display: block;
    min-height: 0.9rem;
    margin-top: 7px;
    color: #5e696c;
    font-size: 0.67rem;
    font-weight: 650;
    line-height: 1.38;
    opacity: 1;
}

.image-moderation-status.is-checking {
    color: #4f5c5f;
}

.image-moderation-status.is-approved {
    color: #455b5e;
}

.image-moderation-status.is-rejected,
.image-moderation-status.is-error {
    color: #8a4f58;
}

input[type="file"] {
    min-height: 44px;
    padding: 8px 10px;
    color: #5f6a6d;
    background: rgba(253, 254, 253, 0.86);
    border-color: rgba(68, 78, 82, 0.12);
    font-size: 0.78rem;
}

input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 6px 10px;
    border: 1px solid rgba(82, 95, 104, 0.12);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    font: inherit;
    font-size: 0.74rem;
    font-weight: 700;
}

select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #6f7a7d 50%), linear-gradient(135deg, #6f7a7d 50%, transparent 50%);
    background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 28px;
}

textarea {
    resize: vertical;
    min-height: 132px;
    padding: 13px 14px;
    line-height: 1.56;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(252, 250, 246, 0.98)),
        #ffffff;
}

input:hover,
select:hover,
textarea:hover {
    border-color: rgba(54, 65, 66, 0.22);
    background: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(46, 117, 105, 0.38);
    outline: 2px solid rgba(46, 117, 105, 0.1);
    box-shadow:
        0 0 0 4px rgba(46, 117, 105, 0.055),
        0 6px 16px rgba(31, 45, 55, 0.045);
}

.export-button:focus {
    border-color: rgba(104, 75, 57, 0.58);
    outline: 2px solid rgba(105, 75, 57, 0.16);
    box-shadow:
        0 0 0 4px rgba(105, 75, 57, 0.105),
        inset 0 1px 0 rgba(255, 241, 214, 0.19),
        0 9px 22px rgba(40, 31, 27, 0.22);
}

.test-controls {
    display: none;
    padding: 9px 10px;
    border: 1px dashed rgba(82, 95, 104, 0.16);
    border-radius: 12px;
    background: rgba(247, 249, 249, 0.46);
}

.create-body.is-debug .test-controls {
    display: block;
}

.test-controls summary {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 720;
    cursor: pointer;
    text-transform: none;
}

.test-control-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.test-controls button {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(82, 95, 104, 0.18);
    border-radius: 999px;
    color: var(--ink);
    background: #ffffff;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

.test-controls button:hover {
    border-color: rgba(46, 117, 105, 0.45);
    color: var(--accent);
}

.preview-frame {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    min-width: 0;
    padding: 10px;
    background: #E9EEF2;
    border-radius: 14px;
}

.included-page-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 136px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(82, 95, 104, 0.09);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(247, 249, 249, 0.34)),
        rgba(247, 249, 249, 0.26);
}

.included-page-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.included-page-copy p {
    max-width: 29rem;
    margin: 0;
    color: #8a9395;
    font-size: 0.68rem;
    line-height: 1.4;
}

.included-page-copy .included-page-label {
    color: #3f4a4c;
    font-size: 0.78rem;
    font-weight: 720;
}

.included-page-mini {
    display: grid;
    width: 128px;
    height: 146px;
    align-content: start;
    justify-items: center;
    gap: 8px;
    padding: 11px 11px 10px;
    border: 1px solid rgba(82, 95, 104, 0.13);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 252, 252, 0.88));
    box-shadow: 0 10px 22px rgba(31, 45, 55, 0.05);
}

.included-page-mini-badge {
    justify-self: start;
    color: #7f898b;
    font-size: 0.52rem;
    font-weight: 760;
    line-height: 1;
}

.included-page-mini-qr {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    padding: 4px;
    border: 1px solid rgba(82, 95, 104, 0.14);
    border-radius: 7px;
    background: #ffffff;
}

.included-page-mini-qr img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.82;
}

.included-page-mini-lines {
    display: grid;
    width: 100%;
    gap: 5px;
    margin-top: 2px;
}

.included-page-mini-lines span {
    display: block;
    height: 4px;
    border-radius: 999px;
    background: rgba(82, 95, 104, 0.13);
}

.included-page-mini-lines span:nth-child(2) {
    width: 84%;
}

.included-page-mini-lines span:nth-child(3) {
    width: 68%;
}

.preview-watermark-layer {
    position: absolute;
    inset: 10px;
    z-index: 2;
    overflow: hidden;
    border-radius: 14px;
    pointer-events: none;
    opacity: 0.14;
    background:
        repeating-linear-gradient(135deg, rgba(31, 45, 55, 0.032) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(45deg, rgba(46, 117, 105, 0.026) 0 1px, transparent 1px 42px),
        radial-gradient(circle at 18% 18%, rgba(46, 117, 105, 0.05), transparent 34%),
        radial-gradient(circle at 84% 76%, rgba(31, 45, 55, 0.045), transparent 36%);
    mix-blend-mode: multiply;
}

.preview-watermark-layer::before {
    position: absolute;
    inset: -12px;
    background-image: radial-gradient(circle, rgba(31, 45, 55, 0.075) 0 0.6px, transparent 0.7px);
    background-size: 22px 22px;
    content: "";
    opacity: 0.2;
}

.export-mobile-note {
    display: none;
    margin: 0 0 10px;
    color: #6f7a7d;
    font-size: 0.78rem;
    line-height: 1.35;
}

.export-renderer {
    /* Future export targets: html2canvas capture, PDF rendering, retina scale factors, social-share crops, and QR placement hook here. */
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
}

.export-renderer .identity-sheet {
    /* Export-safe baseline: stable wrapping, contained media, clean backgrounds, and predictable sheet edges. */
    margin-block: 0;
}

.preview-panel:not(.is-export-preview) .identity-sheet {
    width: min(100%, 820px);
    max-width: 100%;
}

.preview-panel.is-export-preview .preview-panel-header {
    margin-bottom: 10px;
}

.preview-panel.is-export-preview .preview-frame {
    padding: 18px;
    background: #ffffff;
    border: 1px solid rgba(82, 95, 104, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.preview-panel.is-export-preview .preview-watermark-layer {
    display: none;
}

.preview-panel.is-export-preview .export-renderer {
    width: max-content;
    max-width: 100%;
}

.preview-panel.is-export-preview .identity-sheet {
    width: 820px;
    max-width: 100%;
    box-shadow: 0 28px 76px rgba(31, 45, 55, 0.09);
}

.create-body.is-export-preview .create-workspace {
    width: min(100%, 920px);
    grid-template-columns: 1fr;
}

.create-body.is-export-preview .create-panel {
    display: none;
}

@media (max-width: 680px) {
    .preview-panel.is-export-preview .export-mobile-note {
        display: block;
    }

    .preview-panel.is-export-preview .preview-frame {
        padding: 10px;
    }

    .preview-panel.is-export-preview .profile-card {
        box-shadow: 0 24px 64px rgba(20, 36, 38, 0.12);
    }

    .preview-panel.is-export-preview .bio-section {
        margin-top: 10px;
    }
}

.pdf-export-host {
    position: fixed;
    top: 0;
    left: -10000px;
    width: max-content;
    background: #ffffff;
    pointer-events: none;
}

.pdf-export-host .identity-sheet {
    box-shadow: none;
}

@media (min-width: 980px) {
    .create-workspace {
        grid-template-columns: minmax(340px, 0.72fr) minmax(0, 1.28fr);
        align-items: stretch;
        height: 100vh;
        min-height: 0;
        padding: 20px;
    }

    .create-panel,
    .preview-panel {
        max-height: calc(100vh - 40px);
        min-height: 0;
        overflow: hidden;
    }

    .create-panel {
        position: sticky;
        top: 20px;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        padding: 20px;
    }

    .profile-form {
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 4px;
    }

    .preview-panel {
        position: sticky;
        top: 20px;
        display: grid;
        grid-template-rows: auto auto minmax(0, 1fr);
    }

    .preview-frame {
        min-height: 0;
    }

    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 9px;
        row-gap: 10px;
    }

    .full-field {
        grid-column: 1 / -1;
    }

    .bio-input {
        grid-column: 1 / -1;
    }

    .preview-panel-header {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .preview-actions {
        justify-self: end;
    }

    .create-body.is-export-preview .create-workspace {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
    }

    .create-body.is-export-preview .preview-panel {
        position: static;
        max-height: none;
    }
}
