.tg-editorial-creator,
.tg-editorial-invite {
    --editorial-ink: #242521;
    --editorial-muted: #4e4d47;
    --editorial-panel: #fff;
    --editorial-line: #e4ddd3;
    --editorial-accent: #923a2d;
}

.tg-editorial-creator {
    background: #faf8f4;
    color: var(--editorial-ink);
}

.tg-editorial-creator__inner {
    width: min(1180px, calc(100% - 64px));
    margin-inline: auto;
    padding-block: 24px 74px;
}

.tg-editorial-creator__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    margin-bottom: 8px;
    font-size: .94rem;
    font-weight: 600;
}

.tg-editorial-creator :is(a, button):focus-visible {
    outline: 2px solid var(--editorial-accent);
    outline-offset: 3px;
}

.tg-editorial-creator__hero {
    border: 1px solid var(--editorial-line);
    border-radius: 16px;
    background: var(--editorial-panel);
    position: static;
    padding: 0;
}

.tg-editorial-creator__cover {
    display: block;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    background: #7b6a5d;
}

.tg-editorial-creator__cover img {
    display: block;
    width: 100%;
    height: clamp(172px, 28vw, 330px);
    object-fit: cover;
    object-position: 50% 37%;
}

.tg-editorial-creator__review {
    margin: 20px clamp(18px, 4vw, 48px) 0;
    padding: 12px;
    border: 1px solid #ead7b5;
    border-radius: 8px;
    background: #fff9ed;
    color: #724514;
    font-size: .88rem;
}

.tg-editorial-creator__identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px 20px;
    padding: 27px clamp(18px, 4.2vw, 48px) 23px;
}

.tg-editorial-creator__avatar {
    width: clamp(48px, 6.5vw, 76px);
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    background: #f6e9e2;
}

.tg-editorial-creator__heading h1 {
    margin: 0;
    font-size: clamp(2.08rem, 5vw, 4rem);
    line-height: 1.03;
    letter-spacing: -.035em;
    font-weight: 720;
    overflow-wrap: anywhere;
}

.tg-editorial-creator__handle {
    margin-bottom: 5px;
    color: var(--editorial-accent);
    font-size: .87rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.tg-editorial-creator__tagline {
    margin: 10px 0 0;
}

.tg-editorial-creator__tagline > span {
    color: var(--editorial-muted);
    font-size: clamp(1rem, 1.65vw, 1.17rem);
    overflow-wrap: anywhere;
}

.tg-editorial-creator__place {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 12px 0 0;
    color: var(--editorial-muted);
    font-size: .89rem;
}

.tg-editorial-creator__place svg {
    flex: 0 0 auto;
    color: var(--editorial-accent);
}

.tg-editorial-creator__actions {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 9px;
    min-width: 0;
}

.tg-editorial-creator__actions .claim-page-trigger {
    border-radius: 8px;
}

.tg-editorial-creator__actions .creator-identity__share.article-share-trigger {
    flex: 0 0 44px;
    color: var(--editorial-ink);
    border: 1px solid var(--editorial-line);
    border-radius: 8px;
}

.tg-editorial-creator__actions .creator-identity__share.article-share-trigger:hover {
    background: #fff3ed;
    border-color: #d9aea2;
}

.tg-editorial-creator__credit {
    margin: 0;
    padding: 13px clamp(18px, 4.2vw, 48px);
    border-top: 1px solid var(--editorial-line);
    color: var(--editorial-muted);
    font-size: .86rem;
    line-height: 1.55;
}

.tg-editorial-creator__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(235px, 282px);
    align-items: start;
    gap: clamp(28px, 5.5vw, 88px);
    margin-top: clamp(25px, 4vw, 50px);
}

.tg-editorial-creator__biography {
    grid-area: 1 / 1;
    min-width: 0;
    max-width: 780px;
    padding-inline-start: clamp(0px, 2vw, 26px);
}

.tg-editorial-creator__biography > h2,
.tg-editorial-creator__empty > h3 {
    margin: 0 0 12px;
    font-size: clamp(1.53rem, 3vw, 2.15rem);
    font-weight: 700;
    line-height: 1.17;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.tg-editorial-creator__bio-body,
.tg-editorial-creator__bio-empty {
    color: var(--editorial-muted);
    font-size: clamp(1rem, 1.4vw, 1.095rem);
    line-height: 1.72;
    overflow-wrap: anywhere;
}

.tg-editorial-creator__bio-body p {
    margin-block: 0 15px;
    max-width: 72ch;
}

.tg-editorial-creator__bio-body :is(h2, h3, h4) {
    margin-block: 1.25em .45em;
    font-size: clamp(1.35rem, 2.8vw, 1.9rem);
    font-weight: 700;
    color: var(--editorial-ink);
    line-height: 1.25;
    scroll-margin-top: 110px;
}

.tg-editorial-creator__bio-body :is(ul, ol) {
    margin-block: 0 15px;
    padding-inline-start: 1.4em;
    list-style: revert;
}

.tg-editorial-creator__bio-body figure {
    margin-block: 23px;
}

.tg-editorial-creator__bio-body img {
    max-width: 100%;
    height: auto;
    border-radius: 9px;
}

.tg-editorial-creator__bio-body figcaption {
    margin-top: 8px;
    font-size: .87rem;
    line-height: 1.55;
}

.tg-editorial-creator__bio-body blockquote {
    margin-block: 1em;
    border-inline-start: 2px solid #d8ccc2;
    padding-inline-start: 1em;
}

.tg-editorial-creator__contents {
    margin-block: 22px 28px;
    padding: 16px 20px;
    border: 1px solid var(--editorial-line);
    border-radius: 10px;
    background: var(--editorial-panel);
}

.tg-editorial-creator__contents h3 {
    font-size: 1rem;
    font-weight: 650;
}

.tg-editorial-creator__contents ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 16px;
    margin: 8px 0 0;
}

.tg-editorial-creator__contents a,
.tg-editorial-creator__bio-body a,
.tg-editorial-creator__back {
    color: var(--editorial-accent);
    text-decoration: underline;
    text-underline-offset: .18em;
}

.tg-editorial-creator__contents a {
    display: inline-block;
    padding-block: 4px;
    font-size: .94rem;
    overflow-wrap: anywhere;
}

.tg-editorial-creator__empty {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--editorial-line);
}

.tg-editorial-creator__empty .tg-editorial-creator__empty-card {
    max-width: none;
    margin: 0;
    padding: clamp(24px, 4vw, 42px) clamp(16px, 4vw, 36px);
    border: 1px solid var(--editorial-line);
    border-radius: 12px;
    background: var(--editorial-panel);
}

.tg-editorial-creator__sidebar {
    grid-area: 1 / 2;
    min-width: 0;
}

.tg-editorial-creator__sidebar-toggle {
    display: none;
}

.tg-editorial-creator__sidebar-content {
    display: grid;
    gap: 15px;
}

.tg-editorial-creator__panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--editorial-line);
    border-radius: 12px;
    background: var(--editorial-panel);
}

.tg-editorial-creator__panel h2 {
    margin: 0 0 9px;
    font-size: 1.09rem;
    font-weight: 700;
}

.tg-editorial-creator__stats {
    display: grid;
    gap: 5px;
    margin-block: 0 12px;
    font-size: .89rem;
    line-height: 1.4;
}

.tg-editorial-creator__stats div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 8px;
}

.tg-editorial-creator__stats:not(:has(> :not([hidden]))),
.tg-editorial-creator__stats > [hidden] {
    display: none;
}

.tg-editorial-creator__stats strong {
    margin: 0;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.tg-editorial-creator__community-actions {
    display: grid;
    gap: 8px;
}

.tg-editorial-creator__community-actions .main-btn {
    width: 100%;
    margin: 0;
}

.tg-editorial-creator__community-actions > p,
.tg-editorial-creator__no-links {
    margin: 2px 0 0;
    color: var(--editorial-muted);
    font-size: .86rem;
    line-height: 1.5;
}

.tg-editorial-creator__channel {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding-block: 6px;
    font-size: .93rem;
    font-weight: 650;
    color: var(--editorial-accent);
    overflow-wrap: anywhere;
}

.tg-editorial-creator__channel + .tg-editorial-creator__channel {
    border-top: 1px solid var(--editorial-line);
}

.tg-editorial-creator__channel img {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
}

.tg-editorial-creator__channel span {
    text-decoration: underline;
    text-underline-offset: .18em;
}

.tg-editorial-invite {
    width: min(520px, calc(100% - 28px));
    max-height: calc(100dvh - 28px);
    padding: 0;
    border: 1px solid var(--editorial-line);
    border-radius: 16px;
    background: var(--editorial-panel);
    color: var(--editorial-ink);
}

.tg-editorial-invite::backdrop {
    background: rgb(29 28 25 / 54%);
}

.tg-editorial-invite__panel {
    padding: clamp(18px, 5vw, 28px);
}

.tg-editorial-invite__header {
    position: static;
    display: flex;
    padding: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.tg-editorial-invite__header h2 {
    align-self: center;
    margin: 0;
    font-size: clamp(1.2rem, 4.2vw, 1.5rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.tg-editorial-invite__close {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    height: 44px;
    border: 1px solid var(--editorial-line);
    border-radius: 9px;
    color: var(--editorial-muted);
}

.tg-editorial-invite__close:hover {
    border-color: var(--editorial-accent);
    color: var(--editorial-accent);
}

.tg-editorial-invite :is(a, button):focus-visible {
    outline: 2px solid var(--editorial-accent);
    outline-offset: 3px;
}

.tg-editorial-invite__panel p {
    margin-block: 0 12px;
    color: var(--editorial-muted);
    line-height: 1.5;
}

.tg-editorial-invite__channels {
    margin-block: 14px;
    padding-inline: 12px;
    border: 1px solid var(--editorial-line);
    border-radius: 9px;
}

.tg-editorial-invite [role="status"] {
    display: block;
    margin-top: 6px;
    color: var(--editorial-muted);
    font-size: .88rem;
}

.tg-editorial-invite [role="status"]:empty {
    display: none;
}

.tg-editorial-invite__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

@media (max-width: 740px) {
    .tg-editorial-creator__inner {
        width: calc(100% - 32px);
        padding-block: 17px 44px;
    }

    .tg-editorial-creator__identity {
        grid-template-columns: auto minmax(0, 1fr);
        padding-block: 17px;
        column-gap: 12px;
    }

    .tg-editorial-creator__actions {
        grid-column: 2;
    }

    .tg-editorial-creator__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .tg-editorial-creator__sidebar,
    .tg-editorial-creator__biography {
        grid-area: auto / 1;
    }

    .tg-editorial-creator__biography {
        padding-inline-start: 0;
    }

    .tg-editorial-creator__sidebar-toggle:not([x-cloak]) {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        min-height: 44px;
        padding: 8px 14px;
        border: 1px solid var(--editorial-line);
        border-radius: 8px;
        background: var(--editorial-panel);
        font-size: .91rem;
        font-weight: 650;
        text-align: start;
    }

    .tg-editorial-creator__sidebar-toggle[aria-expanded="true"] svg {
        transform: rotate(180deg);
    }

    .tg-editorial-creator__sidebar-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 10px;
    }

    .tg-editorial-creator__sidebar-content.is-collapsed {
        display: none;
    }
}

@media (max-width: 510px) {
    .tg-editorial-creator__sidebar-content,
    .tg-editorial-creator__contents ul {
        grid-template-columns: minmax(0, 1fr);
    }

    .tg-editorial-creator__panel {
        padding: 13px;
    }
}
