/* Private basic-account presentation. Deliberately scoped away from Circle. */
.nwe-account-avatar {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    isolation: isolate;
    width: 88px;
    height: 88px;
    border: 1px solid #794152;
    border-radius: 50%;
    background: #4d1229;
    color: #fff4f8;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}
.nwe-account-avatar img,
[data-nwe-account-photo-preview] {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}
.nwe-account-avatar [hidden],
[data-nwe-account-editor][hidden],
[data-nwe-account-photo-editor] [hidden] { display: none !important; }
.nwe-v3-sidebar__identity .nwe-account-avatar { width: 44px; height: 44px; font-size: 18px; }
.nwe-account-identity { min-width: 0; }
.nwe-account-identity [data-nwe-self-name],
.nwe-account-identity [data-nwe-self-description] { overflow-wrap: anywhere; }
.nwe-account-identity [data-nwe-self-description] { white-space: pre-line; }
.nwe-account-identity__status { color: #bcaeb6; font-size: 13px; line-height: 1.6; }
.nwe-account-editor-link,
[data-nwe-account-photo-editor] [data-nwe-photo-apply] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid #a33156;
    border-radius: 12px;
    background: #800d33;
    color: #fff4f8;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
}
.nwe-account-editor-link:hover,
[data-nwe-account-photo-editor] [data-nwe-photo-apply]:hover { background: #991441; color: #fff; }
#nwe-private-account :is(button[type="submit"], input[type="submit"]),
#nwe-private-photo :is(button[type="submit"], input[type="submit"]) {
    border-color: #a33156;
    background: #800d33;
    color: #fff4f8;
}
#nwe-private-account :is(button[type="submit"], input[type="submit"]):hover,
#nwe-private-photo :is(button[type="submit"], input[type="submit"]):hover { background: #991441; color: #fff; }
#nwe-private-account :is(button[type="submit"], input[type="submit"]):focus-visible,
#nwe-private-photo :is(button[type="submit"], input[type="submit"]):focus-visible { outline: 3px solid #c77d98; outline-offset: 4px; }
.nwe-account-editor-link:focus-visible,
[data-nwe-account-photo-editor] :is(button, input, canvas):focus-visible { outline: 3px solid #c77d98; outline-offset: 4px; }
.nwe-account-identity--catalogue {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin: 20px 0 34px;
    padding: 28px;
    border: 1px solid #4a303a;
    border-radius: 24px;
    background: linear-gradient(130deg, #28151f, #171216 75%);
}
.nwe-account-identity--catalogue > div { flex: 1; min-width: 0; }
.nwe-account-identity--catalogue h1 { margin-top: 0; }
.nwe-account-identity--catalogue [data-nwe-self-description] { max-width: 65ch; color: #d2c5cc; line-height: 1.7; }
[data-nwe-account-photo-editor] {
    position: relative;
    --nwe-account-photo-accent: #800d33;
    --nwe-account-photo-line: #d8c4cc;
}
[data-nwe-account-photo-editor] .nwe-account-avatar { width: 112px; height: 112px; font-size: 36px; box-shadow: 0 8px 28px #2e0a1817; }
[data-nwe-account-photo-editor] input[type="file"] {
    display: block;
    max-width: 100%;
    padding: 12px;
    border: 1px dashed var(--nwe-account-photo-line);
    border-radius: 12px;
    background: #fff;
    color: #2a2025;
    font: inherit;
    font-size: 13px;
}
[data-nwe-account-photo-editor] input[type="file"]::file-selector-button {
    margin-inline-end: 12px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: #f3e7ec;
    color: #68102e;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
[data-nwe-photo-crop] {
    display: grid;
    justify-items: center;
    gap: 16px;
    margin-top: 20px;
    padding: 22px;
    border: 1px solid #51313f;
    border-radius: 20px;
    background: #1b1419;
    color: #fff0f6;
}
[data-nwe-photo-crop] p { margin: 0; color: #d0bec7; font-size: 13px; line-height: 1.6; }
[data-nwe-photo-canvas] {
    display: block;
    width: min(100%, 320px);
    height: auto;
    aspect-ratio: 1;
    border: 2px solid #be6a89;
    border-radius: 50%;
    box-shadow: 0 0 0 7px #37202c;
    background: #171014;
    cursor: grab;
    touch-action: none;
    user-select: none;
}
[data-nwe-photo-canvas].is-dragging { cursor: grabbing; }
[data-nwe-photo-crop] label { width: min(100%, 320px); color: #f5e9ef; font-size: 13px; }
[data-nwe-photo-zoom] { display: block; width: min(100%, 320px); min-height: 36px; accent-color: #bf547b; cursor: pointer; }
[data-nwe-photo-crop] button { min-height: 44px; }
[data-nwe-photo-cancel],
[data-nwe-photo-reset] {
    margin: 2px;
    padding: 10px 14px;
    border: 1px solid #765362;
    border-radius: 10px;
    background: transparent;
    color: #fff0f6;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
[data-nwe-photo-status] { margin: 12px 0 0; max-width: 65ch; color: #66515b; font-size: 13px; line-height: 1.7; }
[data-nwe-photo-status].is-error { color: #9c2137; font-weight: 600; }
[data-nwe-account-photo-editor][aria-busy="true"] { cursor: progress; }
[data-nwe-account-photo-editor] button:disabled { opacity: .55; cursor: wait; }
.nwcc-app [data-nwe-account-photo-editor] input[type="file"] { border-color: #765362; background: #211a20; color: #fff0f6; }
.nwcc-app [data-nwe-account-photo-editor] input[type="file"]::file-selector-button { background: #4d1229; color: #fff0f6; }
.nwcc-app [data-nwe-photo-status] { color: #cbb8c1; }
.nwcc-app [data-nwe-photo-status].is-error { color: #ffb6c8; }
@media (max-width: 600px) {
    .nwe-account-identity--catalogue { gap: 16px; padding: 20px; border-radius: 18px; flex-wrap: wrap; }
    .nwe-account-identity--catalogue .nwe-account-avatar { width: 72px; height: 72px; font-size: 24px; }
    .nwe-account-identity--catalogue > div { flex-basis: 220px; }
    [data-nwe-photo-crop] { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    [data-nwe-account-photo-editor] *, .nwe-account-identity * { scroll-behavior: auto; transition: none !important; }
}
