.static-page {
    padding: clamp(48px, 6vw, 86px) 0;
}


.static-page__inner {
    max-width: 920px;
}

.static-page__header {
    margin-bottom: 28px;
}

.static-page__header span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.static-page__header h1 {
    font-family: var(--font-editorial);
    font-weight: 700;
    margin: 8px 0 18px;
    max-width: 880px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
}

.static-content {
    display: grid;
    gap: 0;
    color: var(--text);
    font-family: var(--font);
}

.static-content p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.78;
}

.static-content h2 {
    margin: 34px 0 14px;
    color: var(--text);
    font-size: 25px;
    line-height: 1.22;
}

.static-content h2:first-child {
    margin-top: 0;
}

.static-content b,
.static-content strong {
    color: var(--text);
}

.static-content a {
    color: var(--brand-2);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--brand) 72%, transparent);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.static-content dl {
    display: grid;
    grid-template-columns: minmax(150px, 220px) 1fr;
    gap: 0;
    margin: 0 0 26px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.static-content dt,
.static-content dd {
    margin: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
}

.static-content dt {
    color: var(--muted);
    font-weight: 700;
}

.static-content dd {
    color: var(--text);
    font-weight: 700;
}

.static-content dt:last-of-type,
.static-content dd:last-of-type {
    border-bottom: 0;
}

.contact-page {
    max-width: 1120px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 24px;
    align-items: start;
}

.contact-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    padding: clamp(22px, 4vw, 34px);
}

.contact-panel p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.76;
}

.contact-panel p:last-child {
    margin-bottom: 0;
}

.contact-lead {
    color: var(--text) !important;
    font-size: clamp(24px, 3vw, 34px) !important;
    font-weight: 700;
    line-height: 1.18 !important;
}

.contact-steps {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin: 28px 0;
    background: color-mix(in srgb, var(--brand) 8%, var(--surface));
    padding: 22px;
}

.contact-steps h2,
.contact-details h2 {
    margin: 0 0 18px;
    color: var(--text);
    font-size: 22px;
    line-height: 1.2;
}

.contact-steps ol {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: contact-step;
}

.contact-steps li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: var(--text);
    font-weight: 700;
    counter-increment: contact-step;
}

.contact-steps li::before {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #111111;
    content: counter(contact-step);
    font-size: 13px;
    font-weight: 700;
}

.contact-details {
    position: sticky;
    top: 104px;
}

.contact-details dl {
    display: grid;
    gap: 12px;
    margin: 0 0 22px;
}

.contact-details dl div {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
    padding: 14px;
}

.contact-details dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.contact-details dd {
    margin: 6px 0 0;
    color: var(--text);
    font-weight: 700;
}

.contact-details a:not(.solid-button) {
    color: var(--text);
}

.contact-copy-link {
    display: inline;
    border: 0;
    background: transparent;
    color: var(--text);
    padding: 0;
    font: inherit;
    font-weight: 700;
    text-align: left;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--brand) 70%, transparent);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.contact-copy-link:hover {
    color: var(--brand);
}

.contact-details .solid-button,
.contact-copy-button {
    width: 100%;
}

.contact-copy-button {
    border: 0;
}

.contact-copy-status {
    min-height: 22px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.error-page {
    position: relative;
    display: grid;
    min-height: clamp(460px, 58vh, 640px);
    align-items: center;
    overflow: hidden;
    padding: clamp(58px, 8vw, 110px) 0;
}

@media (max-width: 860px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-details {
        position: static;
    }
}

.error-page__inner {
    position: relative;
    display: grid;
    justify-items: center;
    max-width: 760px;
    text-align: center;
}

.error-page__code {
    color: var(--brand);
    font-size: clamp(118px, 17vw, 190px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 0.82;
    text-shadow: 0 16px 34px rgba(252, 189, 1, 0.22);
}

.error-page__content {
    display: grid;
    justify-items: center;
    max-width: 620px;
}

.error-page__content h1 {
    margin: 22px 0 14px;
    color: var(--text);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.08;
}

.error-page__content p {
    max-width: 560px;
    margin: 0 0 34px;
    color: var(--muted);
    font-size: 18px;
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.error-page .solid-button {
    min-height: 48px;
    border-radius: 10px;
    background: var(--brand);
    color: #111111;
    box-shadow: 0 14px 28px rgba(252, 189, 1, 0.22);
}

.error-page .solid-button:hover {
    color: #111111;
    box-shadow: 0 18px 34px rgba(252, 189, 1, 0.3);
}

.preference-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.profile-page,
.settings-page {
    padding: clamp(58px, 8vw, 112px) 0;
}

.profile-page__inner,
.settings-page__inner {
    max-width: 1040px;
}

.profile-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    padding: clamp(22px, 4vw, 34px);
}

.profile-avatar {
    position: relative;
    display: inline-flex;
    width: clamp(72px, 9vw, 96px);
    height: clamp(72px, 9vw, 96px);
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand);
    color: #111111;
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 700;
    overflow: hidden;
    box-shadow: 0 18px 34px rgba(252, 189, 1, 0.22);
}

.profile-avatar > span:not(.profile-avatar__edit) {
    color: #111111;
    font-size: clamp(34px, 5.4vw, 48px);
    font-weight: 700;
    line-height: 1;
    text-transform: none;
}

.profile-avatar--image .avatar-fallback {
    display: none;
}

.profile-avatar.is-avatar-missing .avatar-fallback {
    display: inline-flex;
}

.profile-avatar.is-avatar-missing img {
    display: none;
}

.profile-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar--interactive {
    cursor: pointer;
    transition: transform 180ms var(--ease);
}

.profile-avatar--interactive:hover,
.profile-avatar--interactive:focus-visible {
    transform: translateY(-2px);
}

.profile-avatar__edit {
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    background: rgba(17, 17, 17, 0.72);
    color: #ffffff;
    padding: 5px 4px;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0;
    transition: opacity 180ms var(--ease);
}

.profile-avatar--interactive:hover .profile-avatar__edit,
.profile-avatar--interactive:focus-visible .profile-avatar__edit {
    opacity: 1;
}

.profile-flash {
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 700;
}

.profile-flash--success {
    color: var(--teal);
}

.profile-flash--error {
    color: var(--red);
}

.profile-page__inner > .profile-flash {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    padding: 14px 16px;
}

.avatar-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.avatar-modal[hidden],
.avatar-modal[aria-hidden="true"],
.avatar-editor[hidden] {
    display: none !important;
}

.avatar-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, 0.62);
    backdrop-filter: blur(6px);
}

.avatar-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(860px, 100%);
    max-height: min(92vh, 780px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.avatar-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    border-bottom: 1px solid var(--line);
    padding: 18px clamp(18px, 3vw, 26px);
}

.avatar-modal__header h2 {
    margin: 0;
    font-size: 20px;
}

.avatar-modal__close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--text);
    font-size: 20px;
    line-height: 1;
}

.avatar-modal__hint {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.avatar-modal__body {
    display: grid;
    min-height: 0;
    overflow-y: auto;
    gap: 16px;
    padding: 18px clamp(18px, 3vw, 26px);
}

.avatar-modal__pick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    border-radius: 14px;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.avatar-modal:not(.is-avatar-ready) .avatar-modal__pick {
    width: 100%;
    min-height: 176px;
    border: 1px dashed color-mix(in srgb, var(--brand) 58%, var(--line));
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--brand) 12%, transparent), transparent 52%),
        var(--surface-2);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--surface) 62%, transparent);
}

.avatar-modal:not(.is-avatar-ready) .avatar-modal__pick:hover {
    border-color: var(--brand);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, transparent), transparent 52%),
        var(--surface-2);
}

.avatar-modal.is-avatar-ready .avatar-modal__hint {
    display: none;
}

.avatar-modal__pick .solid-button {
    cursor: pointer;
}

.avatar-editor {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) 220px;
    gap: 18px;
    align-items: start;
}

.avatar-cropper__stage {
    --avatar-crop-inset: 10%;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        linear-gradient(45deg, color-mix(in srgb, var(--surface-2) 74%, var(--surface)) 25%, transparent 25%),
        linear-gradient(-45deg, color-mix(in srgb, var(--surface-2) 74%, var(--surface)) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, color-mix(in srgb, var(--surface-2) 74%, var(--surface)) 75%),
        linear-gradient(-45deg, transparent 75%, color-mix(in srgb, var(--surface-2) 74%, var(--surface)) 75%),
        var(--surface);
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    background-size: 20px 20px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    touch-action: none;
    overscroll-behavior: contain;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}

.avatar-cropper__stage:active {
    cursor: grabbing;
}

.avatar-cropper__stage img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    max-width: none;
    pointer-events: none;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.avatar-cropper__overlay {
    position: absolute;
    inset: var(--avatar-crop-inset);
    z-index: 2;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.34);
}

.avatar-cropper__frame {
    position: absolute;
    inset: var(--avatar-crop-inset);
    z-index: 3;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.22), 0 16px 48px rgba(0, 0, 0, 0.22);
}

.avatar-cropper__grid {
    position: absolute;
    inset: var(--avatar-crop-inset);
    z-index: 4;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.36;
    background:
        linear-gradient(to right, transparent 32.8%, rgba(255, 255, 255, 0.92) 33%, rgba(255, 255, 255, 0.92) 33.4%, transparent 33.6%, transparent 66.2%, rgba(255, 255, 255, 0.92) 66.5%, rgba(255, 255, 255, 0.92) 66.9%, transparent 67.1%),
        linear-gradient(to bottom, transparent 32.8%, rgba(255, 255, 255, 0.92) 33%, rgba(255, 255, 255, 0.92) 33.4%, transparent 33.6%, transparent 66.2%, rgba(255, 255, 255, 0.92) 66.5%, rgba(255, 255, 255, 0.92) 66.9%, transparent 67.1%);
}

.avatar-cropper__panel {
    display: grid;
    gap: 14px;
}

.avatar-cropper__preview {
    display: grid;
    justify-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
    padding: 14px;
}

.avatar-cropper__preview span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.avatar-cropper__preview canvas {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.avatar-cropper__tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.avatar-cropper__tools button {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.avatar-cropper__tools button:hover {
    border-color: var(--brand);
    background: var(--brand);
    color: #111111;
}

.avatar-cropper__controls label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
}

.avatar-cropper__controls input[type="range"] {
    width: 100%;
    accent-color: var(--brand);
}

.avatar-modal__footer {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding: 16px clamp(18px, 3vw, 26px);
}

.avatar-modal:not(.is-avatar-ready) .avatar-modal__footer {
    display: none;
}

.profile-page__inner {
    display: grid;
    gap: 22px;
    max-width: 980px;
}

.profile-summary,
.profile-tabs,
.profile-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.profile-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding: clamp(22px, 4vw, 32px);
}

.profile-summary .profile-avatar {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    overflow: visible;
    box-shadow: 0 14px 28px color-mix(in srgb, var(--brand) 24%, transparent);
}

.profile-summary .profile-avatar > span:not(.profile-avatar__edit) {
    font-size: 38px;
}

.profile-summary .profile-avatar__edit {
    inset: auto -3px -3px auto;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 2px solid var(--surface);
    border-radius: 50%;
    background: var(--brand);
    color: #111111;
    box-shadow: var(--shadow-soft);
    font-size: 0;
    opacity: 1;
    padding: 0;
}

.profile-summary .profile-avatar__edit::before {
    content: none;
}

.profile-summary .profile-avatar__edit svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.profile-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.profile-title-row h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.1;
}

.profile-role-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid var(--brand);
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    color: var(--text);
    padding: 0 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.profile-summary__main p,
.profile-summary__main small {
    display: block;
    margin: 8px 0 0;
    color: var(--muted);
}

.profile-summary__main small {
    font-size: 13px;
    font-weight: 750;
}

.profile-summary__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.profile-public-link {
    min-height: 42px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    padding: 0 16px;
}

.profile-public-link:hover {
    border-color: var(--brand);
}

.profile-admin-link {
    align-self: start;
}

.profile-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 5px;
    scrollbar-width: none;
}

.profile-tabs::-webkit-scrollbar {
    display: none;
}

.profile-tab {
    position: relative;
    flex: 1 0 150px;
    min-height: 50px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.profile-tab:hover,
.profile-tab.is-active {
    color: var(--text);
    background: var(--surface-2);
}

.profile-tab.is-active {
    box-shadow: inset 0 -2px 0 var(--brand);
}

.profile-panel[hidden] {
    display: none !important;
}

.profile-panel--stack {
    display: grid;
    gap: 22px;
}

.profile-card {
    display: grid;
    gap: 22px;
    padding: clamp(22px, 4vw, 32px);
}

.profile-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}

.profile-card__header h2 {
    font-family: var(--font-editorial);
    font-weight: 700;
    margin: 0;
    color: var(--text);
    font-size: 20px;
}

.profile-card__header p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.profile-card__header > div {
    min-width: 0;
}

.profile-add-button {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: #111;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
}

.profile-add-button:hover,
.profile-add-button:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.03);
    outline: 0;
}

.profile-add-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
}

.profile-new-article-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--brand);
    border-radius: 7px;
    background: var(--brand);
    color: #111111;
    padding: 0 15px;
    font-size: 13px;
    font-weight: 700;
    transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
}

.profile-new-article-button:hover,
.profile-new-article-button:focus-visible {
    outline: 0;
    color: #111111;
    filter: brightness(1.04);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 20%, transparent);
    transform: translateY(-1px);
}

.profile-new-article-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
}

.profile-form-grid .wide {
    grid-column: 1 / -1;
}

.profile-form-grid label,
.profile-security-form label,
.profile-author-form label {
    display: grid;
    gap: 8px;
}

.profile-form-grid span,
.profile-security-form span,
.profile-author-form span {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.profile-form-grid small,
.profile-security-form small,
.profile-author-form small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.profile-form-grid input,
.profile-form-grid textarea,
.profile-security-form input,
.profile-author-form input,
.profile-author-form select,
.profile-author-form textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    padding: 0 14px;
    font: inherit;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.profile-form-grid textarea {
    min-height: 124px;
    resize: vertical;
    padding-top: 12px;
}

.profile-form-grid input:focus,
.profile-form-grid textarea:focus,
.profile-security-form input:focus,
.profile-author-form input:focus,
.profile-author-form select:focus,
.profile-author-form textarea:focus {
    outline: 0;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.profile-public-setting {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    padding: 14px 16px;
}

.profile-public-setting > span:last-child {
    display: grid;
    gap: 4px;
}

.profile-public-setting strong {
    color: var(--text);
    font-size: 14px;
}

.profile-public-setting .profile-switch {
    width: auto;
}

.profile-public-setting .profile-switch > span {
    display: none;
}

.public-profile {
    padding: clamp(48px, 7vw, 92px) 0;
}

.public-profile__inner {
    display: grid;
    gap: 30px;
    max-width: 1180px;
}

.public-profile__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 26px;
    padding-bottom: 30px;
}

.public-profile__header .profile-avatar {
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    box-shadow: 0 16px 34px color-mix(in srgb, var(--brand) 22%, transparent);
}

.public-profile__identity {
    min-width: 0;
}

.public-profile__identity h1 {
    font-family: var(--font-editorial);
    font-weight: 700;
    margin: 0;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.05;
}

.public-profile__identity > p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
}

.public-profile__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 16px;
}

.public-profile__facts span,
.public-profile__facts a {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.public-profile__facts a:hover {
    color: var(--text);
}

.public-profile__facts svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: var(--brand);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.public-profile__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(112px, 1fr));
    gap: 1px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
}

.public-profile__stats div {
    display: grid;
    align-content: center;
    min-height: 100px;
    background: var(--surface);
    padding: 16px;
    text-align: center;
}

.public-profile__stats dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
}

.public-profile__stats dd {
    margin: 7px 0 0;
    color: var(--text);
    font-size: 26px;
    font-weight: 700;
}

.public-profile__about {
    max-width: 780px;
}

.public-profile__about h2,
.public-profile__articles h2 {
    margin: 0;
    color: var(--text);
    font-size: 24px;
}

.public-profile__about > p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.public-profile__reputation {
    margin-top: 18px;
}

.public-profile__articles {
    display: grid;
    gap: 20px;
    border-top: 1px solid var(--line);
    padding-top: 28px;
}

.public-profile__articles > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.public-profile__articles > header > span {
    display: inline-grid;
    min-width: 34px;
    min-height: 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #111111;
    font-size: 13px;
    font-weight: 700;
}

.public-profile__article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.profile-author-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
}

.profile-author-form .wide {
    grid-column: 1 / -1;
}

.profile-author-form textarea {
    min-height: 120px;
    resize: vertical;
    padding-top: 12px;
}

.author-submit-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 24px;
}

.author-submit-modal[hidden],
.author-submit-modal[aria-hidden="true"] {
    display: none !important;
}

.author-submit-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(7px);
}

.author-submit-modal__dialog {
    position: relative;
    width: min(820px, 100%);
    max-height: min(820px, calc(100vh - 48px));
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
    padding: clamp(20px, 4vw, 30px);
}

.author-submit-modal__header {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
}

.author-submit-modal__header h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(24px, 4vw, 34px);
}

.author-submit-modal__header p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.author-submit-modal__close {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.profile-cover-source {
    display: grid;
    gap: 10px;
}

.profile-cover-source > span {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.profile-cover-source > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.profile-cover-source label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    padding: 0 14px;
    color: var(--text);
    font-weight: 700;
}

.profile-cover-source input[type="radio"] {
    align-self: center;
    box-sizing: border-box;
    flex: 0 0 22px;
    inline-size: 22px;
    block-size: 22px;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    max-width: 22px;
    max-height: 22px;
    line-height: 1;
}

.profile-page input[type="checkbox"],
.profile-page input[type="radio"] {
    position: relative;
    display: inline-grid;
    width: 21px;
    height: 21px;
    min-width: 21px;
    flex: 0 0 21px;
    place-items: center;
    appearance: none;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    cursor: pointer;
    padding: 0;
    transition: border-color 160ms var(--ease), background 160ms var(--ease), box-shadow 160ms var(--ease);
}

.profile-page input[type="radio"] {
    border-radius: 50%;
}

.profile-page input[type="checkbox"]::after {
    width: 10px;
    height: 6px;
    border-bottom: 2px solid #111111;
    border-left: 2px solid #111111;
    content: "";
    opacity: 0;
    transform: translateY(-1px) rotate(-45deg) scale(0.72);
    transition: opacity 140ms var(--ease), transform 140ms var(--ease);
}

.profile-page input[type="radio"]::after {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #111111;
    content: "";
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 140ms var(--ease), transform 140ms var(--ease);
}

.profile-page input[type="checkbox"]:checked,
.profile-page input[type="radio"]:checked {
    border-color: var(--brand);
    background: var(--brand);
    box-shadow: 0 10px 24px rgba(252, 189, 1, 0.18);
}

.profile-page input[type="checkbox"]:checked::after {
    opacity: 1;
    transform: translateY(-1px) rotate(-45deg) scale(1);
}

.profile-page input[type="radio"]:checked::after {
    opacity: 1;
    transform: scale(1);
}

.profile-cover-source small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.profile-file-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    padding: 7px;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.profile-file-picker:hover,
.profile-file-picker:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}

.profile-file-picker__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 40px;
    border-radius: 8px;
    background: var(--brand);
    color: #111111;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 700;
}

.profile-file-picker__name {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-author-table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.profile-author-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-author-table th,
.profile-author-table td {
    border-bottom: 1px solid var(--line);
    padding: 14px;
    text-align: left;
    vertical-align: top;
}

.profile-author-table tr:last-child td {
    border-bottom: 0;
}

.profile-author-table th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.profile-author-table td strong,
.profile-author-table td a {
    display: block;
}

.profile-author-table td a {
    margin-top: 6px;
    color: var(--brand);
    font-weight: 700;
}

.profile-inline-form {
    display: inline-flex;
    margin: 0;
}

.profile-table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.profile-muted {
    display: inline-block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.text-button--danger {
    color: #ef4444;
}

.profile-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 15%, var(--surface));
    color: var(--text);
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
}

.profile-status--published {
    background: rgba(34, 197, 94, 0.16);
}

.profile-status--approved {
    background: rgba(34, 197, 94, 0.16);
}

.profile-status--needs_changes {
    background: color-mix(in srgb, var(--brand) 18%, var(--surface));
}

.profile-status--rejected,
.profile-status--archived {
    background: rgba(239, 68, 68, 0.14);
}

.profile-empty {
    margin: 0;
    border: 1px dashed var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--muted);
    padding: 18px;
}

.profile-author-list {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.profile-author-list .profile-card__header {
    padding-bottom: 18px;
}

.profile-article-list {
    display: grid;
    gap: 12px;
}

.profile-article-item {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr) minmax(112px, 132px);
    gap: 18px;
    min-width: 0;
    border: 1px solid var(--line);
    border-left: 3px solid color-mix(in srgb, var(--brand) 65%, var(--line));
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    padding: 16px;
    transition: border-color var(--transition), background var(--transition);
}

.profile-article-item--published,
.profile-article-item--approved {
    border-left-color: #2ca95a;
}

.profile-article-item--rejected,
.profile-article-item--archived {
    border-left-color: #dc4a4a;
}

.profile-article-item:hover {
    border-top-color: color-mix(in srgb, var(--brand) 34%, var(--line));
    border-right-color: color-mix(in srgb, var(--brand) 34%, var(--line));
    border-bottom-color: color-mix(in srgb, var(--brand) 34%, var(--line));
    background: color-mix(in srgb, var(--surface-2) 38%, var(--surface));
}

.profile-article-item__cover {
    position: relative;
    display: grid;
    width: 168px;
    height: 112px;
    place-items: center;
    align-self: start;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-2);
}

.profile-article-item__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-article-item__cover .cover-placeholder__mark {
    min-width: 72px;
    padding: 9px 12px 8px;
}

.profile-article-item__cover .cover-placeholder__mark strong {
    font-size: 18px;
}

.profile-article-item__cover--empty {
    color: var(--muted);
}

.profile-article-item__cover--empty svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
}

.profile-article-item__content {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 8px;
}

.profile-article-item__category {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    min-height: 24px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface-2);
    color: var(--text);
    padding: 0 8px;
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.profile-article-item__side {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    border-left: 1px solid var(--line);
    padding-left: 16px;
}

.profile-article-item .profile-status {
    justify-content: center;
    min-height: 28px;
    border: 1px solid color-mix(in srgb, var(--brand) 32%, transparent);
    border-radius: 4px;
    padding: 0 9px;
    font-size: 10px;
    text-align: center;
}

.profile-article-item .profile-status--published,
.profile-article-item .profile-status--approved {
    border-color: rgba(34, 197, 94, 0.32);
    color: #16843f;
}

.profile-article-item .profile-status--rejected,
.profile-article-item .profile-status--archived {
    border-color: rgba(239, 68, 68, 0.3);
    color: #dc3f3f;
}

[data-theme="dark"] .profile-article-item .profile-status--published,
[data-theme="dark"] .profile-article-item .profile-status--approved {
    color: #78dc98;
}

[data-theme="dark"] .profile-article-item .profile-status--rejected,
[data-theme="dark"] .profile-article-item .profile-status--archived {
    color: #ff8080;
}

.profile-article-item h3,
.profile-article-item p {
    margin: 0;
}

.profile-article-item h3 {
    font-family: var(--font-editorial);
    font-weight: 700;
    color: var(--text);
    font-size: 20px;
    line-height: 1.25;
}

.profile-article-item h3 a {
    color: inherit;
    text-decoration: none;
}

.profile-article-item h3 a:hover,
.profile-article-item h3 a:focus-visible {
    color: var(--brand-strong);
    outline: 0;
}

.profile-article-item__excerpt {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.profile-article-item__comment {
    border-left: 3px solid var(--brand);
    padding: 5px 0 5px 11px;
}

.profile-article-item__comment strong {
    color: var(--text);
    font-size: 12px;
}

.profile-article-item__comment p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.profile-article-item__lock {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

.profile-article-item__lock svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.profile-edit-request-result {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface) 84%, transparent);
    padding: 14px;
}

.profile-edit-request-result--processed {
    border-left-color: var(--success, #16a34a);
}

.profile-edit-request-result--rejected {
    border-left-color: var(--danger, #dc2626);
}

.profile-edit-request-result > header,
.profile-edit-request-result__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
}

.profile-edit-request-result > header > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.profile-edit-request-result > header span,
.profile-edit-request-result__meta,
.profile-edit-request-result__text small {
    color: var(--muted);
    font-size: 11px;
}

.profile-edit-request-result__status {
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 14%, transparent);
    color: var(--brand-strong) !important;
    padding: 5px 9px;
    font-weight: 800;
}

.profile-edit-request-result--processed .profile-edit-request-result__status {
    background: color-mix(in srgb, var(--success, #16a34a) 13%, transparent);
    color: var(--success, #16843f) !important;
}

.profile-edit-request-result--rejected .profile-edit-request-result__status {
    background: color-mix(in srgb, var(--danger, #dc2626) 12%, transparent);
    color: var(--danger, #dc2626) !important;
}

.profile-edit-request-result__text {
    display: grid;
    gap: 5px;
}

.profile-edit-request-result__text strong {
    color: var(--text);
    font-size: 12px;
}

.profile-edit-request-result__text p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.profile-edit-request-result__text--decision {
    border-top: 1px solid var(--line);
    padding-top: 11px;
}

.profile-edit-request {
    margin-top: 12px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.profile-edit-request summary {
    width: max-content;
    cursor: pointer;
    color: var(--text);
    font-weight: 700;
}

.profile-edit-request form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.profile-edit-request label,
.profile-edit-request label span {
    display: grid;
    gap: 6px;
}

.profile-edit-request textarea {
    min-height: 96px;
    resize: vertical;
}

.profile-edit-request .solid-button {
    justify-self: start;
}

.profile-edit-request__feedback {
    margin: 0;
    border: 1px solid currentColor;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.profile-edit-request__feedback--error {
    background: color-mix(in srgb, var(--danger, #dc2626) 9%, transparent);
    color: var(--danger, #dc2626);
}

.profile-edit-request__feedback--success {
    margin-top: 12px;
    background: color-mix(in srgb, var(--success, #16a34a) 9%, transparent);
    color: var(--success, #16a34a);
}

.profile-edit-request__pending {
    margin: 12px 0 0;
    color: var(--brand);
    font-weight: 700;
}

.profile-article-item__stats,
.profile-article-item__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.profile-article-item__stats {
    gap: 14px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.profile-article-item__stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.profile-article-item__stats svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.profile-article-item__actions {
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 7px;
}

.profile-article-action {
    position: relative;
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-2);
    color: var(--text);
    padding: 0;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}

.profile-article-action:hover,
.profile-article-action:focus-visible {
    outline: 0;
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 12%, var(--surface-2));
    transform: translateY(-1px);
}

.profile-article-action--danger {
    color: #ef4444;
}

.profile-article-action--danger:hover,
.profile-article-action--danger:focus-visible {
    border-color: rgba(239, 68, 68, 0.55);
    background: rgba(239, 68, 68, 0.1);
}

.profile-article-action svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

@media (hover: hover) and (pointer: fine) {
    .profile-article-action[data-tooltip]::after {
        position: absolute;
        right: 0;
        bottom: calc(100% + 8px);
        z-index: 20;
        border: 1px solid rgb(255 255 255 / 12%);
        border-radius: 5px;
        background: #111111;
        color: #ffffff;
        box-shadow: 0 8px 22px rgb(0 0 0 / 24%);
        content: attr(data-tooltip);
        opacity: 0;
        padding: 7px 9px;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.25;
        pointer-events: none;
        transform: translateY(3px);
        transition: opacity 140ms ease, transform 140ms ease;
        white-space: nowrap;
    }

    .profile-article-action[data-tooltip]:hover::after,
    .profile-article-action[data-tooltip]:focus-visible::after {
        opacity: 1;
        transform: translateY(0);
    }
}

.author-editor-page {
    padding: clamp(28px, 5vw, 64px) 0 72px;
}

.author-editor-page__inner {
    display: grid;
    max-width: 1040px;
    gap: 18px;
}

.author-editor-page__back {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.author-editor-page__back svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.author-editor-page__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
}

.author-editor-page__header span:first-child {
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.author-editor-page__header h1 {
    margin: 5px 0 7px;
    color: var(--text);
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.08;
}

.author-editor-page__header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.author-editor-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.author-editor-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: clamp(18px, 3vw, 26px);
}

.author-editor-section > header {
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 13px;
}

.author-editor-section > header h2 {
    margin: 0;
    color: var(--text);
    font-size: 18px;
}

.author-editor-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
}

.author-editor-form__grid .wide {
    grid-column: 1 / -1;
}

.author-editor-section--content .rich-text-field {
    min-width: 0;
}

.author-editor-actions {
    position: sticky;
    bottom: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: var(--shadow);
    padding: 12px 14px;
    backdrop-filter: blur(12px);
}

label.profile-public-setting .profile-switch {
    position: relative;
    display: block;
    width: 48px;
    height: 28px;
}

label.profile-public-setting .profile-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

label.profile-public-setting .profile-switch > span {
    position: absolute;
    inset: 0;
    display: block;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

label.profile-public-setting .profile-switch > span::after {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--muted);
    content: "";
    transition: transform var(--transition), background var(--transition);
}

label.profile-public-setting .profile-switch input:checked + span {
    border-color: var(--brand);
    background: var(--brand);
}

label.profile-public-setting .profile-switch input:checked + span::after {
    background: #111111;
    transform: translateX(20px);
}

label.profile-public-setting .profile-switch input:focus-visible + span {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);
}

.profile-card__actions {
    display: flex;
    justify-content: center;
}

.profile-card__actions .solid-button {
    min-width: min(280px, 100%);
}

.profile-security-form {
    display: grid;
    gap: 18px;
    max-width: 780px;
    margin: 0 auto;
    width: 100%;
}

.profile-two-factor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    padding: 16px;
}

.profile-two-factor strong {
    display: block;
    color: var(--text);
    font-size: 16px;
}

.profile-two-factor p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.profile-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
}

.profile-switch input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

.profile-security-list {
    display: grid;
    gap: 10px;
    margin: 0;
    border-radius: 8px;
    background: var(--surface-2);
    padding: 18px;
}

.profile-security-list div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.profile-security-list dt {
    color: var(--text);
    font-weight: 700;
}

.profile-security-list dd {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.profile-hero span,
.profile-grid span,
.settings-header span,
.settings-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.profile-hero h1,
.settings-header h1 {
    margin: 4px 0 6px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.06;
}

.profile-hero p,
.settings-header p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.profile-actions,
.settings-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.profile-grid,
.settings-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.profile-grid article,
.settings-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    padding: 18px;
}

.profile-grid strong {
    display: block;
    margin-top: 8px;
    overflow: hidden;
    color: var(--text);
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-header {
    max-width: 720px;
    margin-bottom: 22px;
}

.settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-card {
    display: grid;
    gap: 18px;
}

.settings-card--account {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.settings-card h2 {
    margin: 4px 0 0;
    font-size: 24px;
}

.settings-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.settings-options--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-options a {
    display: grid;
    gap: 4px;
    min-height: 86px;
    align-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
    padding: 14px;
}

.settings-options a.is-active {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 18%, var(--surface));
}

.settings-options strong {
    color: var(--text);
}

.settings-options small {
    color: var(--muted);
    font-weight: 700;
}

body .profile-avatar > span:not(.profile-avatar__edit) {
    color: #111111;
    font-size: clamp(34px, 5.4vw, 48px);
    font-weight: 700;
    line-height: 1;
    text-transform: none;
}

.profile-monetization {
    gap: 26px;
}

.profile-monetization--compact > .profile-money-workspace,
.profile-monetization--compact > .profile-money-section {
    display: none;
}

.profile-monetization--compact .profile-card__header {
    border-bottom: 0;
    padding-bottom: 0;
}

.profile-monetization--compact .profile-money-summary {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.profile-money-compact-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.profile-money-compact-actions p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.profile-payout-requisites-note {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.55;
}

.profile-payout-requisites-warning {
    margin: 18px 0 0;
    border-left: 3px solid var(--brand);
    border-radius: 0 6px 6px 0;
    background: color-mix(in srgb, var(--brand) 8%, transparent);
    color: var(--text);
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
}

.profile-money-compact-actions .solid-button {
    flex: 0 0 auto;
}

.money-detail-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    min-height: 170px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        radial-gradient(circle at 88% 20%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 24%),
        linear-gradient(135deg, color-mix(in srgb, var(--brand) 9%, var(--surface)) 0%, var(--surface) 52%, var(--surface-2) 100%);
    box-shadow: var(--shadow-soft);
    padding: clamp(24px, 3vw, 34px) clamp(24px, 4vw, 48px);
}

.money-detail-hero::after {
    position: absolute;
    right: -70px;
    bottom: -125px;
    width: 285px;
    height: 285px;
    border: 36px solid color-mix(in srgb, var(--brand) 18%, transparent);
    border-radius: 50%;
    content: "";
}

.money-detail-hero > div {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 7px;
}

.money-detail-hero a,
.money-detail-hero > div > span {
    color: var(--muted);
    font-size: 12px;
}

.money-detail-hero h1 {
    margin: 0;
    color: var(--text);
    font-family: var(--font-editorial);
    max-width: 720px;
    font-size: clamp(34px, 4.3vw, 54px);
    line-height: .96;
}

.money-detail-hero p {
    margin: 0;
    color: var(--muted);
}

.monetization-detail-page .profile-page__inner {
    display: grid;
    gap: 28px;
}

.monetization-detail-page .profile-money-summary {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.money-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(270px, .65fr);
    gap: 20px;
}

.money-dashboard-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.money-chart-card,
.money-period-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.money-chart-card > header,
.money-period-card > header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    padding: 22px 24px 18px;
}

.money-chart-card header span,
.money-period-card header span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.money-chart-card h2,
.money-period-card h2 {
    margin: 4px 0 0;
    color: var(--text);
    font-family: var(--font-editorial);
    font-size: 22px;
}

.money-chart-total > strong {
    color: var(--brand);
    font-family: var(--font-data);
    font-size: 26px;
}

.money-chart-head-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.money-chart-total {
    display: grid;
    min-width: 110px;
    gap: 2px;
    text-align: right;
}

.money-chart-total small {
    color: var(--muted);
    font-size: 10px;
}

.money-period-picker {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    padding: 4px;
}

.money-period-picker a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    border-radius: 7px;
    color: var(--muted);
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.money-period-picker a:hover {
    color: var(--text);
}

.money-period-picker a.is-active {
    background: var(--brand);
    color: #111;
    box-shadow: 0 5px 14px color-mix(in srgb, var(--brand) 24%, transparent);
}

.money-line-chart {
    position: relative;
    padding: 25px 24px 20px 72px;
}

.money-line-chart svg {
    display: block;
    width: 100%;
    height: 260px;
    overflow: visible;
}

.money-chart-grid line {
    stroke: var(--line);
    stroke-dasharray: 4 7;
    stroke-width: 1;
}

.money-chart-line {
    fill: none;
    stroke: var(--brand);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
    vector-effect: non-scaling-stroke;
}

.money-line-chart circle {
    fill: var(--surface);
    stroke: var(--brand);
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.money-chart-scale {
    position: absolute;
    top: 24px;
    bottom: 40px;
    left: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--muted);
    font-family: var(--font-data);
    font-size: 10px;
}

.money-chart-dates {
    display: flex;
    justify-content: space-between;
    padding-top: 8px;
    color: var(--muted);
    font-size: 10px;
}

.money-period-card > header {
    display: block;
}

.money-period-card article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 92px;
    padding: 18px 22px;
}

.money-period-card article + article {
    border-top: 1px solid var(--line);
}

.money-period-card article > div {
    display: grid;
    gap: 5px;
}

.money-period-card article > div:last-child {
    text-align: right;
}

.money-period-card article span,
.money-period-card article strong {
    color: var(--text);
    font-weight: 800;
}

.money-period-card article strong {
    font-family: var(--font-data);
    font-size: 18px;
}

.money-period-card article small {
    color: var(--muted);
    font-size: 11px;
}

.monetization-detail-page .profile-money-workspace,
.monetization-detail-page .profile-money-section {
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.monetization-detail-page .profile-money-section {
    border: 1px solid var(--line);
    padding: 22px;
}

.profile-money-periods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 8px;
}
.profile-money-periods article { display: grid; gap: 6px; padding: 18px; }
.profile-money-periods article + article { border-left: 1px solid var(--line); }
.profile-money-periods span, .profile-money-periods small { color: var(--muted); font-size: 12px; }
.profile-money-periods strong { font-size: 22px; }
.profile-money-chart { display: flex; height: 150px; align-items: end; gap: 5px; margin-top: 20px; border-bottom: 1px solid var(--line); padding-top: 10px; overflow-x: auto; }
.profile-money-chart > div { display: grid; width: 24px; min-width: 24px; height: 100%; grid-template-rows: 1fr auto; align-items: end; gap: 6px; }
.profile-money-chart i { display: block; width: 100%; min-height: 4px; border-radius: 3px 3px 0 0; background: var(--brand); }
.profile-money-chart span { color: var(--muted); font-size: 9px; transform: rotate(-45deg); transform-origin: center; white-space: nowrap; }
@media (max-width: 700px) {
    .profile-money-periods { grid-template-columns: 1fr; }
    .profile-money-periods article + article { border-left: 0; border-top: 1px solid var(--line); }
    .profile-money-compact-actions,
    .money-detail-hero { align-items: stretch; flex-direction: column; }
}

@media (max-width: 980px) {
    .money-dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .money-line-chart { padding-left: 54px; }
    .money-line-chart svg { height: 210px; }
    .monetization-detail-page .profile-money-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .monetization-detail-page .profile-money-summary > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
    .monetization-detail-page .profile-money-summary > div:nth-child(4) { border-top: 1px solid var(--line); }
    .money-chart-card > header { align-items: stretch; flex-direction: column; }
    .money-chart-head-actions { align-items: stretch; flex-direction: column-reverse; gap: 12px; }
    .money-chart-total { text-align: left; }
    .money-period-picker { width: 100%; overflow-x: auto; }
    .money-period-picker a { flex: 1 0 auto; justify-content: center; }
}

.profile-monetization__state {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.profile-monetization__state::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.profile-monetization__state.is-enabled {
    border-color: color-mix(in srgb, #14945f 38%, var(--line));
    background: color-mix(in srgb, #14945f 11%, var(--surface));
    color: #14945f;
}

[data-theme="dark"] .profile-monetization__state.is-enabled {
    color: #53d69a;
}

.profile-money-notice {
    border-left: 3px solid var(--brand);
    background: color-mix(in srgb, var(--brand) 10%, var(--surface-2));
    color: var(--text);
    padding: 13px 15px;
    font-size: 13px;
    line-height: 1.55;
}

.profile-monetization-application__header {
    align-items: flex-start;
}

.profile-monetization-application__header > div {
    max-width: 760px;
}

.profile-monetization-application__eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-monetization-application__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.profile-monetization-application__steps > div {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface-2) 72%, transparent);
    padding: 14px;
}

.profile-monetization-application__steps strong {
    display: grid;
    width: 30px;
    min-width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 10px;
    background: var(--brand);
    color: #111111;
    font-size: 13px;
}

.profile-monetization-application__steps span {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.profile-monetization-application__steps b {
    font-size: 14px;
}

.profile-monetization-application__steps small,
.profile-monetization-application__form small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.profile-money-notice--application,
.profile-money-notice--rejected {
    display: grid;
    gap: 5px;
    margin-top: 16px;
}

.profile-money-notice--application span,
.profile-money-notice--rejected span {
    color: var(--muted);
}

.profile-monetization-application__cancel {
    margin-top: 8px;
}

.profile-application-cancel-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid color-mix(in srgb, var(--danger, #dc2626) 48%, var(--line));
    border-radius: 11px;
    background: color-mix(in srgb, var(--danger, #dc2626) 7%, transparent);
    color: var(--danger, #dc2626);
    padding: 0 14px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.profile-application-cancel-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.profile-application-cancel-button:hover {
    border-color: var(--danger, #dc2626);
    background: var(--danger, #dc2626);
    color: #ffffff;
    transform: translateY(-1px);
}

.profile-application-cancel-button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--danger, #dc2626) 24%, transparent);
    outline-offset: 2px;
}

.profile-money-notice--rejected {
    border-left-color: var(--danger, #dc2626);
    background: color-mix(in srgb, var(--danger, #dc2626) 10%, var(--surface));
}

.profile-monetization-application__form {
    margin-top: 18px;
}

.profile-monetization-application__form textarea {
    min-height: 132px;
}

@media (max-width: 760px) {
    .profile-monetization-application__steps {
        grid-template-columns: 1fr;
    }
}

.profile-money-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-block: 1px solid var(--line);
}

.profile-money-summary > div {
    display: grid;
    min-width: 0;
    gap: 6px;
    padding: 20px;
}

.profile-money-summary > div + div {
    border-left: 1px solid var(--line);
}

.profile-money-summary span,
.profile-money-section-heading span,
.profile-money-section > header span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-money-summary strong {
    overflow: hidden;
    color: var(--text);
    font-family: var(--font-editorial);
    font-size: clamp(23px, 2.6vw, 32px);
    font-weight: 700;
    line-height: 1.05;
    text-overflow: ellipsis;
}

.profile-money-summary > div:first-child strong {
    color: color-mix(in srgb, var(--brand) 72%, var(--text));
}

.profile-money-summary small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.profile-money-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: visible;
}

.profile-money-withdrawal,
.profile-money-terms {
    min-width: 0;
    padding: 22px;
}

.profile-money-terms {
    border-left: 1px solid var(--line);
    background: var(--surface-2);
}

.profile-money-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.profile-money-section-heading h3,
.profile-money-section > header h3 {
    margin: 4px 0 0;
    color: var(--text);
    font-family: var(--font-editorial);
    font-size: 18px;
    line-height: 1.25;
}

.profile-money-section-heading > svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--brand);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.profile-withdrawal-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.profile-withdrawal-form label {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.profile-withdrawal-form label.wide {
    grid-column: 1 / -1;
}

.profile-withdrawal-form label > span {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.profile-withdrawal-form input,
.profile-withdrawal-form select,
.profile-withdrawal-form textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    padding: 0 13px;
    font: inherit;
}

.profile-withdrawal-form textarea {
    min-height: 104px;
    padding-block: 11px;
    resize: vertical;
}

.profile-withdrawal-form input:focus,
.profile-withdrawal-form textarea:focus {
    outline: 0;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}

.profile-withdrawal-form small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.profile-withdrawal-form .solid-button {
    grid-column: 1 / -1;
    justify-self: start;
}

.profile-money-inline-status {
    margin: 0;
    border-left: 3px solid var(--brand);
    color: var(--muted);
    padding: 4px 0 4px 13px;
    font-size: 13px;
    line-height: 1.55;
}

.profile-money-terms dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.profile-money-terms dl > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--line);
    padding: 12px 0;
}

.profile-money-terms dt {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.profile-money-terms dd {
    margin: 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    text-align: right;
}

.profile-money-terms > p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.profile-money-section {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.profile-money-section > header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.profile-money-section > header small {
    color: var(--muted);
    font-size: 11px;
}

.profile-money-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.profile-money-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    color: var(--text);
    font-size: 13px;
}

.profile-money-table th,
.profile-money-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.profile-money-table th {
    background: var(--surface-2);
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.profile-money-table tbody tr:last-child td {
    border-bottom: 0;
}

.profile-money-table tbody tr:hover {
    background: color-mix(in srgb, var(--brand) 5%, transparent);
}

.profile-money-table td:first-child {
    max-width: 370px;
}

.profile-money-table td > a {
    color: var(--text);
    font-weight: 700;
    line-height: 1.35;
}

.profile-money-table td > a:hover,
.profile-money-table td > a:focus-visible {
    color: color-mix(in srgb, var(--brand) 72%, var(--text));
}

.profile-money-table td > small {
    display: block;
    max-width: 360px;
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.4;
}

.profile-payout-status {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.profile-payout-status--pending {
    background: color-mix(in srgb, var(--brand) 15%, var(--surface));
    color: color-mix(in srgb, var(--brand) 70%, var(--text));
}

.profile-payout-status--approved {
    background: color-mix(in srgb, #2f75da 12%, var(--surface));
    color: #2f75da;
}

.profile-payout-status--paid {
    background: color-mix(in srgb, #14945f 12%, var(--surface));
    color: #14945f;
}

.profile-payout-status--rejected,
.profile-payout-status--cancelled {
    background: color-mix(in srgb, #c64545 10%, var(--surface));
    color: #c64545;
}

[data-theme="dark"] .profile-payout-status--approved {
    color: #74a9f5;
}

[data-theme="dark"] .profile-payout-status--paid {
    color: #53d69a;
}

[data-theme="dark"] .profile-payout-status--rejected,
[data-theme="dark"] .profile-payout-status--cancelled {
    color: #f08080;
}

.profile-money-cancel {
    border: 0;
    background: transparent;
    color: #c64545;
    padding: 5px 0;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.profile-money-cancel:hover,
.profile-money-cancel:focus-visible {
    outline: 0;
    text-decoration: underline;
}

.profile-payout-history__list {
    display: grid;
    gap: 12px;
}

.profile-payout-history__item {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
}

.profile-payout-history__item > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    background: var(--surface-2);
}

.profile-payout-history__item > header > div:first-child,
.profile-payout-history__summary {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-payout-history__item > header small,
.profile-payout-history__facts dt,
.profile-payout-history__details span,
.profile-payout-history__result span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.profile-payout-history__summary {
    align-items: flex-end;
}

.profile-payout-history__facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    border-top: 1px solid var(--line);
}

.profile-payout-history__facts > div {
    min-width: 0;
    padding: 14px 18px;
    border-right: 1px solid var(--line);
}

.profile-payout-history__facts > div:last-child {
    border-right: 0;
}

.profile-payout-history__facts dt {
    margin-bottom: 5px;
}

.profile-payout-history__facts dd {
    overflow-wrap: anywhere;
    margin: 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.profile-payout-history__details {
    border-top: 1px solid var(--line);
}

.profile-payout-history__details summary {
    cursor: pointer;
    padding: 13px 18px;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}

.profile-payout-history__details > div,
.profile-payout-history__result {
    padding: 0 18px 15px;
}

.profile-payout-history__details p,
.profile-payout-history__result p {
    margin: 5px 0 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 13px;
    line-height: 1.55;
}

.profile-payout-history__result {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    border-top: 1px solid var(--line);
    padding-top: 15px;
}

.profile-payout-history__actions {
    border-top: 1px solid var(--line);
    padding: 10px 18px;
}

@media (max-width: 820px) {
    .public-profile__header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .public-profile__stats {
        grid-column: 1 / -1;
        width: 100%;
    }

    .public-profile__article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .avatar-editor {
        grid-template-columns: 1fr;
    }

    .avatar-cropper__panel {
        grid-template-columns: minmax(112px, auto) minmax(0, 1fr);
        align-items: start;
    }

    .avatar-cropper__tools {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .profile-money-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-money-summary > div:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .profile-money-summary > div:nth-child(4) {
        border-top: 1px solid var(--line);
    }

    .profile-money-workspace {
        grid-template-columns: 1fr;
    }

    .profile-payout-history__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-payout-history__facts > div:nth-child(2n) {
        border-right: 0;
    }

    .profile-payout-history__facts > div:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .profile-money-terms {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .profile-article-item {
        grid-template-columns: 132px minmax(0, 1fr);
        gap: 14px 16px;
    }

    .profile-article-item__cover {
        grid-column: 1;
        grid-row: 1;
        width: 132px;
        height: 88px;
    }

    .profile-article-item__content {
        grid-column: 2;
        grid-row: 1;
    }

    .profile-article-item__side {
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: row;
        align-items: center;
        border-top: 1px solid var(--line);
        border-left: 0;
        padding-top: 12px;
        padding-left: 0;
    }
}

@media (max-width: 640px) {
    .profile-payout-history__item > header {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 14px;
    }

    .profile-payout-history__summary {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .profile-payout-history__facts,
    .profile-payout-history__result {
        grid-template-columns: 1fr;
    }

    .profile-payout-history__facts > div,
    .profile-payout-history__facts > div:nth-child(2n) {
        border-top: 1px solid var(--line);
        border-right: 0;
        padding: 12px 14px;
    }

    .profile-payout-history__details summary,
    .profile-payout-history__details > div,
    .profile-payout-history__result,
    .profile-payout-history__actions {
        padding-right: 14px;
        padding-left: 14px;
    }

    .error-page {
        min-height: 460px;
    }

    .error-page__code {
        font-size: clamp(92px, 30vw, 138px);
    }

    .static-content dl {
        grid-template-columns: 1fr;
    }

    .static-content dt {
        border-bottom: 0;
        padding-bottom: 3px;
    }

    .static-content dd {
        padding-top: 0;
    }

    .profile-hero,
    .settings-card--account {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .profile-summary {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .profile-summary__actions {
        justify-content: center;
    }

    .public-profile__header {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .public-profile__facts {
        justify-content: center;
    }

    .public-profile__stats {
        grid-column: auto;
    }

    .public-profile__article-grid {
        grid-template-columns: 1fr;
    }

    .profile-title-row {
        justify-content: center;
    }

    .profile-admin-link {
        align-self: auto;
    }

    .profile-tabs,
    .profile-form-grid,
    .profile-author-form {
        grid-template-columns: 1fr;
    }

    .profile-article-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
    }

    .profile-article-item__cover {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .profile-article-item__content {
        grid-column: 1;
        grid-row: 3;
    }

    .profile-article-item__side {
        grid-column: 1;
        grid-row: 2;
        border-top: 0;
        border-bottom: 1px solid var(--line);
        padding-top: 0;
        padding-bottom: 12px;
    }

    .profile-author-list .profile-card__header {
        flex-direction: column;
    }

    .profile-new-article-button {
        width: 100%;
    }

    .author-editor-page__header {
        flex-direction: column;
        gap: 12px;
    }

    .author-editor-form__grid {
        grid-template-columns: 1fr;
    }

    .author-editor-form__grid .wide {
        grid-column: auto;
    }

    .author-editor-actions {
        bottom: 8px;
    }

    .profile-card__header,
    .author-submit-modal__header {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-monetization__state {
        align-self: flex-start;
    }

    .profile-money-summary {
        grid-template-columns: 1fr;
    }

    .profile-money-summary > div + div,
    .profile-money-summary > div:nth-child(3) {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .profile-money-withdrawal,
    .profile-money-terms {
        padding: 18px;
    }

    .profile-withdrawal-form {
        grid-template-columns: 1fr;
    }

    .profile-withdrawal-form label.wide,
    .profile-withdrawal-form .solid-button {
        grid-column: auto;
    }

    .profile-withdrawal-form .solid-button {
        width: 100%;
    }

    .profile-money-section > header {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-cover-source > div {
        grid-template-columns: 1fr;
    }

    .author-submit-modal {
        align-items: stretch;
        padding: 8px;
    }

    .author-submit-modal__dialog {
        max-height: calc(100vh - 16px);
        border-radius: 14px;
    }

    .profile-two-factor {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .profile-actions,
    .settings-actions {
        justify-content: center;
    }

    .profile-grid,
    .settings-grid,
    .settings-options,
    .settings-options--two {
        grid-template-columns: 1fr;
    }

    .avatar-modal {
        align-items: stretch;
        padding: 8px;
    }

    .avatar-modal__dialog {
        max-height: calc(100vh - 16px);
        border-radius: 14px;
    }

    .avatar-cropper__panel {
        grid-template-columns: 1fr;
    }

    .avatar-cropper__tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
