/* Backgrounds */
* {
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        "Open Sans",
        "Helvetica Neue",
        sans-serif;
}

p.title {
    font-size: 20px;
}

p {
    height: max-content;
}

header {
    background-color: hsla(200, 23%, 97%, 30%);
    border: solid hsl(220, 38%, 11%, 20%) 0.12em;
    border-top: none;
    border-left: none;
    border-right: none;
    display: grid;
    grid-template-columns: 25% 50% 25%;
    justify-items: center;
    z-index: 101;
    width: 100vw;
    height: 6em;
    align-items: center;
    align-content: center;
    left: 0;
    top: 0;
}

nav {
    display: flex;
    flex-direction: column;
    width: 25%;
    justify-self: start;
    z-index: 0;
    left: 0;
    position: fixed;
}

header {
    /*background-color: hsla(0, 0%, 96%, 30%);*/
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    position: fixed;
}

body,
.main {
    background-color: hsl(200, 23%, 97%);
}

.nav {
    width: 20em;
    justify-self: end;
    z-index: 100;
}

.main {
    display: grid;
    margin: 7em 25% 0 25%;
    width: calc(100% - 50%);
    /*min-height: calc(100vh - 7em);*/
}

.main-center {
    height: calc(100vh - 7.5em);
}

.horizontal {
    display: flex;
}

hr {
    width: 100%;
    border: solid 0.1em hsl(0, 0%, 78%);
    border-top: none;
}

hr.full.height {
    width: 0;
    border: solid 0.1em hsl(0, 0%, 78%);
    margin: 1em;
}

.vertical.flex {
    flex-direction: column;
    justify-content: start;
    flex-wrap: wrap;
}

input {
    border-radius: 0.3em;
    min-height: 1.5em;
    width: 100%;
    border: solid 0.1em hsl(200, 23%, 97%);
}

textarea {
    border-radius: 0.3em;
    min-height: 7em;
    width: 100%;
    border: solid 0.1em hsl(200, 23%, 97%);
    resize: vertical;
    padding: 0.5em;
}

input[type="checkbox"] {
    width: auto;
    min-height: auto;
}

a.nav-link,
button,
a.button {
    background-color: hsla(200, 23%, 90%);
    border: solid hsl(220, 38%, 11%, 10%) 1px;
    border-radius: 0.3em;
    text-decoration: none;
    color: black;
    padding: 0.5em;
    margin: 0.25em;
}

a.nav-link p,
button p,
a.button p {
    margin: 0;
    padding: 0;
}

a.nav-link p.icon,
button p.icon,
a.button p.icon {
    margin: 0;
    padding: 0;
}

a.nav-link,
a.nav-link-main {
    text-align: right;
    justify-content: start;
    width: 8em;
}

a.nav-link:hover,
button:hover,
a.button:hover {
    background-color: hsl(161.4, 94%, 30%);
    border-color: hsla(145, 63.4%, 30%, 80%);
    cursor: pointer;
}

a.nav-link-main,
button.active,
a.button.active,
button.main,
a.button.main {
    background-color: #10b981;
    border: solid hsla(145, 63.4%, 40%, 80%) 0.12em;
    border-radius: 0.3em;
    text-decoration: none;
    color: #111827;
    padding: 0.5em;
    margin: 0.25em;
}

a.nav-link-main {
    text-align: right;
    justify-content: end;
}

a.nav-link-main:hover,
button.active:hover,
a.button.active:hover,
button.main:hover,
a.button.main:hover {
    background-color: hsl(161.4, 94%, 30%);
    border-color: hsla(145, 63.4%, 30%, 80%);
}

i {
    font-size: 18px;
}

.header {
    height: 4em;
    width: auto;
}

a.button.header {
    width: initial;
}

.flex.start {
    justify-content: start;
}

.small.button {
    width: min-content;
}

/* Custom */

.profile-grid {
    display: grid;
    grid-template-columns: max-content max-content max-content;
    height: 10em;
    justify-content: space-between;
    align-items: baseline;
}

.avatar {
    height: 8em;
    border-radius: 0.3em;
    clip-path: inset(0 round 1em);
    z-index: 1;
    position: relative;
    display: flex;
    margin: 1em;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: 50% 50%;
}

.small.avatar {
    height: 3em;
    margin: 0.75em;
    border-radius: 100%;
}

.background {
    width: calc(100% + 2em);
    height: 12vw;
    margin: -1em;
    margin-bottom: -4em;
    border-radius: 20px 20px 0px 0px;
    object-fit: cover;
    object-position: 50% 50%;
    -webkit-mask-image: linear-gradient(black, rgba(0, 0, 0, 0.5), transparent);
    mask-image: linear-gradient(black, rgba(0, 0, 0, 0.5), transparent);
    clip-path: inset(0 round 20px 20px 0 0);
    z-index: 0;
    position: relative;
}

.profile-avatar-crop-frame {
    height: 8em;
    border-radius: 0.4em;
    overflow: hidden;
    z-index: 1;
    position: relative;
    display: flex;
    margin: 1em;
    aspect-ratio: 1 / 1;
}

.profile-avatar-crop-frame > .avatar {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: inherit;
    clip-path: none;
    display: block;
}

.profile-background-crop-frame {
    width: calc(100% + 2em);
    height: 12vw;
    margin: -1em;
    margin-bottom: -4em;
    border-radius: 0.3em 0.3em 0 0;
    overflow: hidden;
    z-index: 0;
    position: relative;
    -webkit-mask-image: linear-gradient(black, rgba(0, 0, 0, 0.5), transparent);
    mask-image: linear-gradient(black, rgba(0, 0, 0, 0.5), transparent);
}

.profile-background-crop-frame > .background {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    clip-path: none;
    -webkit-mask-image: none;
    mask-image: none;
    display: block;
}

.settings-crop-preview-frame {
    overflow: hidden;
    display: block;
}

.settings-crop-preview-frame > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform-origin: center center;
}

.settings-crop-preview-frame-profile {
    width: 128px;
    height: 128px;
    border-radius: 999px;
}

.settings-crop-preview-frame-background {
    width: 100%;
    max-width: 680px;
    max-height: 220px;
    border-radius: 0.75rem;
}

.box {
    background-color: hsl(200, 23%, 97%);
    border-radius: 0.3em;
    border: solid hsl(200, 38%, 11%, 20%) 1px;
    padding: 1em;
}

.content.box {
    background-color: hsla(200, 23%, 97%);
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.1);
    border: solid hsla(220, 38%, 11%, 20%) 1px;
    border-radius: 0.3em;
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    margin-bottom: 1.75em;
}

[popover]:where(:not(:popover-open)) {
    display: none;
}

.title {
    text-decoration: none;
}

.title img {
    width: 4em;
    border-radius: 8px;
    box-shadow: 0px 2px 2px 0px hsla(0, 0%, 0%, 10%);
}

.title p {
    margin: 0;
    text-decoration: none;
    color: black;
}

#notifications,
#user,
#share,
#options,
[data-options-popover],
[data-share-popover] {
    background-color: hsla(200, 23%, 97%, 30%);
    border-radius: 0.3em;
    min-width: 5em;
    min-height: 5em;
    border: hsl(220, 38%, 11%, 20%) 1px solid;
    backdrop-filter: blur(10px) saturate(150%);
    inset: auto;
    top: calc(anchor(bottom) + 0.5em);
    right: anchor(right);
}

#share,
[data-share-popover] {
    top: calc(anchor(bottom) + 0.5em);
    right: initial;
    left: anchor(left);
}

#notifications {
    max-height: 24em;
    overflow-y: auto;
}

.group {
    display: grid;
    grid-auto-flow: column;
    margin: 1em;
}

.group .left,
.group .center,
.group right {
    height: 2em;
    width: fit-content;
    font-size: 12px;
    padding: 1em;
    align-content: center;
}

.group .button.left {
    display: grid;
    grid-auto-flow: column;
    align-items: center;
}

.group .left {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-right: 0;
}

.group .center {
    border-radius: 0;
    margin: 0;
}

.group .right {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: 0;
}

ul.dropdown-list {
    padding: 1em;
    margin: 0;
}

div.dropdown-list {
    display: flex;
    flex-direction: column;
    padding: 1em;
}

div.dropdown-list a.button,
div.dropdown-list button {
    width: calc(100% - 1.5em);
}

.dropdown-list li {
    list-style-type: none;
}

button.full-width {
    width: 100%;
}

.dropdown.user.box {
    background-color: hsla(0, 0%, 96%, 80%);
    display: none;
    flex-direction: column;
    z-index: 101;
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    position: fixed;
    margin-top: -0.4em;
}

.dropdown.user:hover .dropdown.user.box {
    display: flex;
}

.dropdown.notification {
    position: relative;
}

.dropdown.notification.box {
    background-color: hsla(0, 0%, 96%, 96%);
    display: none;
    flex-direction: column;
    z-index: 102;
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    position: absolute;
    right: 0;
    top: calc(100% + 0.2em);
    min-width: 22em;
    max-width: 26em;
    max-height: 24em;
    overflow-y: auto;
}

.dropdown.notification:hover .dropdown.notification.box,
.dropdown.notification.open .dropdown.notification.box {
    display: flex;
}

.notification-trigger {
    width: auto;
    white-space: nowrap;
}

.notification-badge {
    background-color: #d32f2f;
    color: white;
    border-radius: 999px;
    padding: 0.12em 0.45em;
    min-width: 1.4em;
    text-align: center;
    font-size: 0.78em;
    line-height: 1.2;
}

.notification-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5em;
    margin-bottom: 0.4em;
}

.notification-menu-actions {
    display: flex;
    align-items: center;
    gap: 0.25em;
    margin-left: auto;
}

.notification-menu-actions form {
    margin: 0;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 0.45em;
}

.notification-item.box {
    background-color: hsla(200, 23%, 97%, 90%);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5em;
    width: auto;
    margin: 0;
    padding: 0.65em;
}

.notification-item.box.unread {
    background: linear-gradient(
        135deg,
        hsl(161.4, 94%, 30%) 0%,
        hsla(200, 23%, 97%, 1) 100%
    );
}

.notification-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    min-width: 0;
    flex: 1;
}

.notification-item-link p {
    margin: 0.25em 0;
    min-height: auto;
    overflow-wrap: anywhere;
}

.notification-item-link small {
    color: hsl(0, 0%, 40%);
}

.notification-message-count {
    display: block;
    margin-top: 0.15em;
    color: hsl(145, 50%, 34%);
    font-weight: 600;
}

.notification-item-actions {
    margin: 0;
    flex-shrink: 0;
}

.notification-item-actions .small.button {
    margin: 0;
}

.messenger-composer-row {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.messenger-composer-row #chat-input {
    margin: 0;
}

.emoji-picker {
    position: relative;
}

.emoji-toggle.small.button {
    width: auto;
    margin: 0;
    padding: 0.4em 0.55em;
    font-size: 1.1em;
    line-height: 1;
}

.emoji-panel.box {
    position: absolute;
    left: 0;
    bottom: calc(100% + 0.35em);
    width: min(92vw, 28em);
    max-height: 17em;
    overflow-y: auto;
    z-index: 6;
    margin: 0;
    padding: 0.6em;
}

.emoji-panel-title {
    font-size: 0.84em;
    color: hsl(0, 0%, 42%);
    margin-bottom: 0.45em;
}

.emoji-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(2em, 1fr));
    gap: 0.25em;
}

.emoji-item {
    width: 2em;
    height: 2em;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 0.3em;
    cursor: pointer;
    font-size: 1em;
    line-height: 1;
}

.emoji-item:hover {
    background: hsla(145, 63.4%, 41.8%, 15%);
}

#chat-form {
    display: flex;
    flex-direction: column;
    gap: 0.45em;
}

#messages {
    list-style: none;
    margin: 0 0 0.6em;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45em;
    max-height: 58vh;
    overflow-y: auto;
}

.message-header-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.45em;
    margin-bottom: 0.2em;
}

.message-header {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2em;
}

.message-sender-avatar {
    width: 1.4em;
    height: 1.4em;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.message-actions-dropdown {
    margin-left: auto;
}

.message-actions-dropdown .post-actions-trigger.small.button {
    width: auto;
    padding: 0.2em 0.45em;
}

#chat-form #chat-file {
    margin: 0;
}

.whole.page.box {
    height: 89vh;
}

.flex {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    align-content: center;
    justify-content: center;
    flex-direction: row;
    padding: 1em;
}

.no.margin {
    margin: 0;
}

.no.padding {
    padding: 0;
}

.end {
    align-content: end;
}

.full.height {
    height: 100%;
}

.left.flex {
    justify-content: left;
    align-items: start;
}

.right.flex {
    justify-content: right;
    align-items: end;
}

.grow.flex {
    flex-grow: 1;
}

.grow.two.flex {
    flex-grow: 2;
}

.grow.three.flex {
    flex-grow: 3;
}

.grow.four.flex {
    flex-grow: 4;
}

.vertical.flex {
    flex-direction: column;
    justify-content: start;
    flex-wrap: wrap;
}

.pad.one,
.pad {
    padding: 1em;
}

.user.flex {
    border: solid 0.1em hsl(220, 38%, 11%, 20%);
    border-right: none;
    border-top: none;
    position: fixed;
    z-index: 12;
    top: 4vh;
    right: 2vh;
    padding: 1em;
}

.full.width {
    width: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 0.45em;
}

.scroll {
    overflow-y: scroll;
    overflow-x: hidden;
    height: 100%;
}

.scroll.flex {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
}

.top.scroll.flex {
    justify-content: start;
}

.bottom.scroll.flex,
.bottom.scroll {
    justify-content: end;
}

.round.button {
    aspect-ratio: 2.1/1;
    border-radius: 100%;
}

.round p {
    aspect-ratio: 1/1;
    align-content: center;
}

.max.height {
    max-height: 100%;
}

.max.height.screen {
    max-height: 90vh;
}

.grid {
    display: grid;
}

.grid.vertical {
    grid-template-rows: 5em 75vh 10em;
}

.grid.horizontal {
    grid-template-columns: auto auto;
}

.grid.chat {
    grid-template-columns: 30% auto;
}

.message.block {
    background-color: hsl(200, 23%, 97%);
    max-width: 40%;
    border-radius: 0.3em;
    padding: 1em;
    margin: 1em;
    align-items: start;
}

.owning.message.block {
    background-color: hsl(161.4, 94%, 30%);
    align-items: end;
    margin-left: 60%;
}

.message.content {
    overflow-wrap: break-word;
    max-width: 100%;
}

.post-create-card {
    margin-bottom: 1em;
}

.pst-create-card {
    margin-bottom: 1em;
}

.post-create-form {
    display: flex;
    flex-direction: column;
    gap: 0.6em;
}

.post-feed-list {
    display: flex;
    flex-direction: column;
}

.post-card {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}

.post-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
}

.post-meta-actions {
    display: inline-flex;
    align-items: center;
    justify-content: end;
    gap: 0.45em;
}

.post-actions-dropdown {
    position: relative;
}

.post-actions-dropdown summary {
    list-style: none;
}

.post-actions-dropdown summary::-webkit-details-marker {
    display: none;
}

.post-actions-trigger.small.button {
    width: auto;
    margin: 0;
}

.post-actions-menu.box {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.2em);
    z-index: 3;
    min-width: 8.5em;
    gap: 0.3em;
    padding: 0.5em;
}

.post-actions-dropdown[open] .post-actions-menu.box {
    display: flex;
    flex-direction: column;
}

.post-actions-form {
    margin: 0;
}

.post-actions-menu .small.button {
    width: 100%;
    margin: 0;
}

.post-edit-form {
    display: flex;
    flex-direction: column;
    gap: 0.45em;
}

.post-edit-form label {
    font-size: 0.9em;
    color: hsl(0, 0%, 36%);
}

.post-author-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    text-decoration: none;
    color: inherit;
    width: auto;
}

.post-author-avatar {
    width: 2.5em;
    height: 2.5em;
    border-radius: 50%;
    object-fit: cover;
}

.post-date {
    color: hsl(0, 0%, 40%);
}

.post-body {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.post-inline-link {
    overflow-wrap: anywhere;
}

.post-body-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}

.post-body-clamp.is-overflowing {
    mask-image: linear-gradient(180deg, black 72%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, black 72%, transparent 100%);
}

.post-see-more-link {
    width: fit-content;
}

.post-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10em, 1fr));
    gap: 0.6em;
}

.post-image {
    width: 100%;
    max-height: 24em;
    object-fit: cover;
    border-radius: 0.3em;
    border: solid 0.08em hsl(0, 0%, 84%);
}

.post-image-carousel {
    position: relative;
}

.post-image-grid.post-image-carousel-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.post-image-grid.post-image-carousel-track::-webkit-scrollbar {
    display: none;
}

.post-image-grid.post-image-carousel-track > .post-image-slide {
    display: block;
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.post-image-grid.post-image-carousel-track .post-image {
    display: block;
    width: 100%;
    max-height: 32em;
}

.post-image-carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.1em;
    height: 2.1em;
    border-radius: 50%;
    border: solid 0.08em hsla(0, 0%, 100%, 0.45);
    background: hsla(0, 0%, 8%, 0.44);
    color: hsl(0, 0%, 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
}

.post-image-carousel-button.prev {
    left: 0.45em;
}

.post-image-carousel-button.next {
    right: 0.45em;
}

.post-image-carousel-button:disabled {
    opacity: 0.32;
    cursor: default;
}

.post-image-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.34em;
    margin-top: 0.35em;
}

.post-image-carousel-dot {
    width: 0.55em;
    height: 0.55em;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: hsl(0, 0%, 76%);
    cursor: pointer;
}

.post-image-carousel-dot.active {
    background: hsl(161.4, 94%, 30%);
    border-radius: 50%;
}

.post-image-preview-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.post-image-preview-full {
    max-width: min(96vw, 1600px);
    max-height: 92vh;
    object-fit: contain;
    border-radius: 0.5rem;
}

.post-image-preview-modal #post-image-preview-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.1rem;
    height: 2.1rem;
    min-width: 2.1rem;
    padding: 0;
    border-radius: 50%;
    z-index: 4;
}

.post-image-preview-modal #post-image-preview-edit-profile-photo {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 4;
}

.post-image-preview-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: solid 0.08em hsla(0, 0%, 100%, 0.5);
    background: hsla(0, 0%, 8%, 0.48);
    color: hsl(0, 0%, 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    cursor: pointer;
}

.post-image-preview-nav.prev {
    left: 0.8rem;
}

.post-image-preview-nav.next {
    right: 0.8rem;
}

.post-image-preview-nav:disabled {
    opacity: 0.3;
    cursor: default;
}

.post-image-preview-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.38rem;
    z-index: 3;
    border-radius: 50%;
}

.post-image-preview-dot {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: hsl(0, 0%, 65%);
    cursor: pointer;
}

.post-image-preview-dot.active {
    background: hsl(161.4, 94%, 46%);
    border-radius: 50%;
}

.post-link-preview.box {
    display: flex;
    align-items: flex-start;
    gap: 0.8em;
    width: auto;
    text-decoration: none;
    color: inherit;
    margin: 0;
    padding: 0.75em;
}

.post-link-image-anchor {
    display: block;
    width: auto;
    text-decoration: none;
    margin: 0;
}

.post-link-first-image {
    width: 100%;
    max-height: 24em;
    object-fit: cover;
    border-radius: 0.3em;
    border: solid 0.08em hsl(0, 0%, 84%);
}

.post-link-preview-image {
    width: 9em;
    min-width: 9em;
    height: 6em;
    object-fit: cover;
    border-radius: 0.3em;
    border: solid 0.08em hsl(0, 0%, 84%);
}

.post-link-preview-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2em;
}

.post-link-preview-meta p {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: auto;
}

.post-link-preview-meta small {
    color: hsl(0, 0%, 42%);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-interactions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45em;
    align-items: center;
}

.post-interaction-form {
    margin: 0;
}

.post-interaction-form .small.button {
    width: auto;
    margin: 0;
}

.post-interaction-pill {
    font-size: 0.85em;
    color: hsl(0, 0%, 32%);
    border: solid 0.08em hsl(0, 0%, 82%);
    border-radius: 999px;
    background: hsl(0, 0%, 97%);
    padding: 0.18em 0.6em;
}

.post-comments {
    display: flex;
    flex-direction: column;
    gap: 0.45em;
}

.post-comment-empty {
    margin: 0;
    color: hsl(0, 0%, 42%);
}

.post-comment-item {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    border: solid 0.08em hsl(0, 0%, 86%);
    border-radius: 0.3em;
    background: hsl(0, 0%, 99%);
    padding: 0.45em 0.55em;
}

.post-comment-item-reply {
    margin-left: min(calc(var(--comment-thread-depth, 1) * 1.35rem), 4rem);
    border-left: solid 0.16em hsl(161.4, 64%, 70%);
    padding: 0.35em 0.45em;
    font-size: 0.93em;
    gap: 0.2em;
}

.post-comment-item-reply .post-comment-avatar {
    width: 1.25em;
    height: 1.25em;
}

.post-comment-item-reply .post-comment-reply-preview {
    padding: 0.24em 0.36em;
}

.post-comment-author {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    text-decoration: none;
    color: inherit;
    width: auto;
}

.post-comment-avatar {
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    object-fit: cover;
}

.post-comment-body {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.post-comment-reply-preview {
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    border: solid 0.08em hsl(0, 0%, 84%);
    border-radius: 0.3em;
    background: hsl(0, 0%, 97%);
    padding: 0.32em 0.45em;
}

.post-comment-reply-preview small {
    color: hsl(0, 0%, 35%);
}

.post-comment-reply-preview p {
    margin: 0;
    color: hsl(0, 0%, 30%);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    -moz-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.post-comment-interactions {
    display: flex;
    align-items: center;
    gap: 0.4em;
    flex-wrap: wrap;
}

.post-comment-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45em;
    margin: 0;
}

.post-comment-reply-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45em;
    border: solid 0.08em hsl(0, 0%, 84%);
    border-radius: 0.3em;
    background: hsl(0, 0%, 98%);
    padding: 0.35em 0.5em;
}

.post-comment-reply-state-text {
    display: flex;
    flex-direction: column;
    gap: 0.15em;
    min-width: 0;
}

.post-comment-reply-state-text small {
    color: hsl(0, 0%, 40%);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.post-comment-form-main {
    display: flex;
    align-items: center;
    gap: 0.45em;
}

.post-comment-form-main input {
    flex: 1 1 auto;
    margin: 0;
}

.post-comment-form-main .small.button {
    width: auto;
    margin: 0;
}

.post-comment-edit-form {
    display: flex;
    flex-direction: column;
    gap: 0.45em;
    margin: 0;
}

.post-comment-edit-form input {
    margin: 0;
}

.post-comment-edit-form .small.button {
    width: auto;
    margin: 0;
}

.message-link-image-anchor {
    display: inline-block;
    margin-top: 0.35em;
    width: auto;
}

.message-link-image {
    max-width: min(100%, 20em);
    max-height: 14em;
    object-fit: cover;
    border-radius: 0.3em;
    border: solid 0.08em hsl(0, 0%, 84%);
}

.message-attachments {
    display: flex;
    flex-direction: column;
    gap: 0.35em;
    margin-top: 0.35em;
    width: min(100%, 28em);
}

.message-attachments-multi-image {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8em, 1fr));
}

.message-attachment-image-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.message-attachment-image {
    width: 100%;
    max-height: 14em;
    object-fit: cover;
    border-radius: 0.3em;
    border: solid 0.08em hsl(0, 0%, 84%);
    cursor: zoom-in;
}

.message-attachment-video {
    max-width: min(100%, 22em);
    border-radius: 0.3em;
}

.message-attachment-file {
    overflow-wrap: anywhere;
}

.message-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.message-inline-link {
    overflow-wrap: anywhere;
}

.message-user {
    height: 4em;
}

.profile-tab-controls {
    display: flex;
    gap: 0.6em;
    align-items: center;
}

.profile-tab-button {
    width: auto;
}

.profile-tab-panel {
    display: block;
}

.profile-friend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11em, 1fr));
    gap: 0.7em;
}

.profile-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12em, 1fr));
    gap: 0.75em;
}

.profile-upload-card.box {
    display: flex;
    flex-direction: column;
    gap: 0.45em;
    width: auto;
    margin: 0;
}

.profile-upload-image {
    width: 100%;
    height: 10em;
    object-fit: cover;
    border-radius: 0.3em;
    border: solid 0.08em hsl(0, 0%, 84%);
}

.profile-upload-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5em;
}

.profile-upload-meta small {
    color: hsl(0, 0%, 42%);
}

.profile-upload-card form {
    margin: 0;
}

.profile-friend-card.box {
    display: flex;
    align-items: center;
    gap: 0.6em;
    text-decoration: none;
    color: inherit;
    width: auto;
    margin: 0;
}

.friend-list-row {
    display: flex;
    align-items: center;
    gap: 0.6em;
    margin-bottom: 0.55em;
}

.friend-list-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    text-decoration: none;
    color: inherit;
    margin-right: auto;
    width: auto;
}

.friend-list-meta {
    display: flex;
    flex-direction: column;
    gap: 0.05em;
}

.friend-list-meta small {
    color: hsl(0, 0%, 42%);
}

.friend-list-row .profile-friend-card.box.friend-list-link {
    margin-right: auto;
}

.community-page-layout {
    display: grid;
    align-items: start;
}

.community-feed-column {
    width: 100%;
}

.community-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    position: sticky;
    top: 7em;
}

.community-tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35em;
    margin-bottom: 0.6em;
}

.profile-bio-box h3 {
    margin-top: 0;
}

.profile-bio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11em, 1fr));
    gap: 0.8em;
}

.profile-bio-item p {
    margin: 0.25em 0 0;
    min-height: auto;
}

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

.profile-bio-description {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.profile-bio-form {
    display: flex;
    flex-direction: column;
    gap: 0.45em;
    margin-top: 0.8em;
}

.profile-bio-form textarea {
    min-height: 6.5em;
    resize: vertical;
}

.settings-crop-hint {
    margin: 0.35em 0 0.6em;
    font-size: 0.92em;
    color: hsl(208, 20%, 38%);
}

.settings-image-crop-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
}

.settings-image-crop-panel {
    width: min(100%, 980px);
    max-height: calc(100vh - 2rem);
    overflow: auto;
}

.settings-image-crop-canvas {
    width: 100%;
    max-height: 68vh;
    border-radius: 0.3rem;
    border: solid 1px hsla(0, 0%, 100%, 0.25);
    background: hsl(210, 24%, 10%);
    cursor: grab;
    display: block;
    margin: 0.6rem 0;
}

.settings-image-crop-canvas:active {
    cursor: grabbing;
}

.settings-image-crop-controls {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.2rem 0 0.7rem;
}

.settings-image-crop-controls input[type="range"] {
    flex: 1 1 auto;
}

@keyframes main-button {
    from {
        background-color: hsla(145, 63.4%, 41.8%, 60%);
        box-shadow: 0 4px 8px 0 hsla(145, 63.4%, 70%, 80%);
        border: solid hsla(145, 63.4%, 75%, 80%) 0.12em;
    }

    to {
        background-color: hsla(145, 63.4%, 41.8%, 80%);
        box-shadow: 0 6px 10px 0 hsla(145, 63.4%, 70%, 90%);
        border: solid hsla(145, 63.4%, 75%, 90%) 0.12em;
    }
}

@keyframes hover {
    from {
        background-color: hsla(0, 0%, 96%, 30%);
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.07);
        border: solid hsl(0, 0%, 100%) 0.12em;
    }
    to {
        background-color: hsla(145, 63.4%, 41.8%, 80%);
        box-shadow: 0 4px 16px hsla(145, 63.4%, 41.8%, 80%);
        border-color: hsla(145, 63.4%, 70%, 80%);
    }
}

@keyframes hover-main {
    from {
        background-color: hsla(145, 63.4%, 41.8%, 60%);
        box-shadow: 0 4px 8px 0 hsla(145, 63.4%, 70%, 80%);
        border: solid hsla(145, 63.4%, 75%, 80%) 0.12em;
    }
    to {
        background-color: hsla(145, 63.4%, 41.8%, 80%);
        box-shadow: 0 4px 16px hsla(145, 63.4%, 41.8%, 80%);
        border-color: hsla(145, 63.4%, 70%, 80%);
    }
}

.vertical-grid {
    display: grid;
    grid-auto-rows: auto;
    justify-content: normal;
}

.vertical-grid > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    justify-self: stretch;
}
