.ooi-identity-editor,
.ooi-identity-editor__gate {
    --editor-ink: #10233f;
    --editor-muted: #68758a;
    --editor-violet: #7270ac;
    --editor-cyan: #80c5cf;
    --editor-orange: #ffab4e;
    --editor-line: rgba(16, 35, 63, .12);
    color: var(--editor-ink);
}

.ooi-identity-editor {
    width: min(1440px, calc(100% - 32px));
    margin: 24px auto 60px;
}

.ooi-identity-editor__hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding: 42px;
    border: 1px solid var(--editor-line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 18%, rgba(128, 197, 207, .22), transparent 29%),
        linear-gradient(120deg, #f6f1e9, #fff 60%, #eef8f7);
    box-shadow: 0 18px 50px rgba(16, 35, 63, .07);
}

.ooi-identity-editor__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--editor-violet);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .17em;
}

.ooi-identity-editor h1,
.ooi-identity-editor h2,
.ooi-identity-editor p {
    margin-top: 0;
}

.ooi-identity-editor h1 {
    max-width: 850px;
    margin-bottom: 12px;
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 500;
    line-height: 1;
}

.ooi-identity-editor__hero p {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--editor-muted);
    font-size: 17px;
    line-height: 1.6;
}

.ooi-identity-editor__progress {
    display: grid;
    width: 122px;
    height: 122px;
    flex: 0 0 122px;
    place-content: center;
    border-radius: 50%;
    background:
        radial-gradient(circle, #fff 57%, transparent 59%),
        conic-gradient(var(--editor-cyan) var(--ooi-editor-progress), #dfe5eb 0);
    text-align: center;
}

.ooi-identity-editor__progress strong {
    font-size: 25px;
}

.ooi-identity-editor__progress small {
    color: var(--editor-muted);
    font-size: 11px;
}

.ooi-identity-editor__notice {
    display: grid;
    gap: 3px;
    margin: 18px 0;
    padding: 16px 20px;
    border: 1px solid var(--editor-line);
    border-radius: 16px;
}

.ooi-identity-editor__notice--success {
    border-color: rgba(62, 150, 104, .3);
    background: #edf8f1;
}

.ooi-identity-editor__notice--warning {
    border-color: rgba(255, 171, 78, .5);
    background: #fff7e9;
}

.ooi-identity-editor__notice--error {
    border-color: rgba(184, 70, 70, .3);
    background: #fff0f0;
}

.ooi-identity-editor__form {
    margin-top: 22px;
}

.ooi-identity-editor__layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
    gap: 22px;
}

.ooi-identity-editor__preview,
.ooi-identity-editor__section {
    border: 1px solid var(--editor-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 16px 42px rgba(16, 35, 63, .06);
}

.ooi-identity-editor__preview {
    position: sticky;
    top: 24px;
    display: grid;
    justify-items: center;
    gap: 20px;
    padding: 30px;
}

.ooi-identity-editor__photo-ring {
    display: grid;
    width: 190px;
    height: 190px;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--editor-cyan) var(--ooi-editor-progress), #e1e5ec 0);
    box-shadow: 0 14px 30px rgba(16, 35, 63, .12);
}

.ooi-identity-editor__photo-ring img {
    width: 166px;
    height: 166px;
    border: 7px solid #fff;
    border-radius: 50%;
    object-fit: cover;
}

.ooi-identity-editor__upload {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 15px;
    border: 1px dashed rgba(114, 112, 172, .4);
    border-radius: 16px;
    cursor: pointer;
    text-align: center;
}

.ooi-identity-editor__upload small {
    color: var(--editor-muted);
}

.ooi-identity-editor__upload input {
    width: 100%;
    margin-top: 8px;
    font-size: 12px;
}

.ooi-identity-editor__public-link {
    color: var(--editor-violet);
    font-weight: 750;
    text-decoration: none;
}

.ooi-identity-editor__sections {
    display: grid;
    gap: 22px;
}

.ooi-identity-editor__section {
    padding: 30px;
}

.ooi-identity-editor__section > header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.ooi-identity-editor__section > header > span {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 13px;
    background: rgba(114, 112, 172, .1);
    color: var(--editor-violet);
    font-weight: 800;
}

.ooi-identity-editor h2 {
    margin-bottom: 5px;
    font-size: clamp(25px, 3vw, 36px);
}

.ooi-identity-editor__section header p {
    margin-bottom: 0;
    color: var(--editor-muted);
}

.ooi-identity-editor__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.ooi-identity-editor__fields label,
.ooi-identity-editor__map-label {
    display: grid;
    gap: 8px;
}

.ooi-identity-editor__fields label > span,
.ooi-identity-editor__map-label > span {
    font-size: 13px;
    font-weight: 750;
}

.ooi-identity-editor__fields .is-wide {
    grid-column: 1 / -1;
}

.ooi-identity-editor input[type="text"],
.ooi-identity-editor input[type="tel"],
.ooi-identity-editor input[type="url"],
.ooi-identity-editor select,
.ooi-identity-editor textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid rgba(16, 35, 63, .17);
    border-radius: 13px;
    background: #fff;
    color: var(--editor-ink);
    font: inherit;
}

.ooi-identity-editor textarea {
    resize: vertical;
}

.ooi-identity-editor input:focus,
.ooi-identity-editor select:focus,
.ooi-identity-editor textarea:focus {
    border-color: var(--editor-cyan);
    outline: 3px solid rgba(128, 197, 207, .18);
}

.ooi-identity-editor__toggles {
    display: grid;
    gap: 14px;
}

.ooi-identity-editor__toggles > label:not(.ooi-identity-editor__map-label) {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--editor-line);
    border-radius: 16px;
}

.ooi-identity-editor__toggles input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    accent-color: var(--editor-cyan);
}

.ooi-identity-editor__toggles span {
    display: grid;
    gap: 3px;
}

.ooi-identity-editor__toggles small {
    color: var(--editor-muted);
}

.ooi-identity-editor__locked {
    padding: 22px;
    border: 1px dashed rgba(255, 171, 78, .6);
    border-radius: 18px;
    background: #fff8ee;
}

.ooi-identity-editor__locked p {
    margin: 6px 0 10px;
    color: var(--editor-muted);
}

.ooi-identity-editor__locked a {
    color: #b85e08;
    font-weight: 750;
}

.ooi-identity-editor__footer {
    position: sticky;
    z-index: 4;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 22px;
    padding: 16px 20px;
    border: 1px solid var(--editor-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 40px rgba(16, 35, 63, .14);
    backdrop-filter: blur(12px);
}

.ooi-identity-editor__footer p {
    margin-bottom: 0;
    color: var(--editor-muted);
    font-size: 13px;
}

.ooi-identity-editor__footer button {
    min-height: 50px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--editor-ink);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.ooi-identity-editor__gate {
    width: min(800px, calc(100% - 32px));
    margin: 50px auto;
    padding: 40px;
    border: 1px solid rgba(16, 35, 63, .12);
    border-radius: 24px;
    background: #fff;
}

.ooi-identity-editor__gate a {
    color: #7270ac;
    font-weight: 750;
}

@media (max-width: 900px) {
    .ooi-identity-editor__layout {
        grid-template-columns: 1fr;
    }

    .ooi-identity-editor__preview {
        position: static;
        grid-template-columns: auto 1fr;
        justify-items: start;
    }

    .ooi-identity-editor__photo-ring {
        grid-row: 1 / 4;
    }
}

@media (max-width: 640px) {
    .ooi-identity-editor {
        width: calc(100% - 20px);
        margin-top: 12px;
    }

    .ooi-identity-editor__hero {
        align-items: flex-start;
        padding: 26px;
        border-radius: 22px;
    }

    .ooi-identity-editor__progress {
        width: 86px;
        height: 86px;
        flex-basis: 86px;
    }

    .ooi-identity-editor__progress small {
        display: none;
    }

    .ooi-identity-editor__preview {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .ooi-identity-editor__photo-ring {
        grid-row: auto;
    }

    .ooi-identity-editor__section {
        padding: 22px;
    }

    .ooi-identity-editor__fields {
        grid-template-columns: 1fr;
    }

    .ooi-identity-editor__fields .is-wide {
        grid-column: auto;
    }

    .ooi-identity-editor__footer {
        align-items: stretch;
        flex-direction: column;
    }
}

