    #post_container {
        font-size: 15px;
    }
    .spice-text {
        color: var(--spice-text);
        line-height: 1.5rem;
    }
    #post_container article {
        box-shadow: 0 0 0.3rem var(--shadow);
        height: 20rem;
    }
    #post_container article.seen::after {
        content: "Avattu";
        position: absolute;
        right: 0.4rem;
        bottom: 0.4rem;
        padding: 0.22rem 0.2rem;
        border-radius: inherit;
        background: wheat;
        color: var(--muted);
        font-size: 0.6rem;
        line-height: 1;
        pointer-events: none;
    }
    #post_container .skeleton {
        height: 20rem;
    }
    #post_container:empty::before {
        content: "Täältä ei löytynyt postauksia...";
        display: block;
        font-size: 1rem;
        opacity: 0.7;
        text-align: center;
        padding: 1rem 0;
    }
    .message-container {
        height: 0;
        overflow: clip;
        transition: height 500ms ease;
    }
    .message-details[open] > .message-container {
        height: auto;
    }
    article {
        position: relative;
        display: flex;
        overflow: hidden;
        flex-direction: column;
        gap: 0.5em;
        border-radius: 0.5rem;
        padding: 0.4rem 0.6rem 0 0.6rem;
        padding-bottom: 0;
        background-color: var(--bg3);
        background-image:linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.00) 40%);
    }
    .post-source {
        all: unset;              /* remove button look */
        display: inline;         /* behave like text/link */
        cursor: pointer;
        width: fit-content;
        text-transform: lowercase;
        font-size: 0.6rem;
        color: red;
        text-decoration: underline;
        text-underline-offset: 0.12em;
    }
    article time {
        color: var(--txt1);
        font-size: 0.8rem;
        white-space: nowrap;
    }
    article .wrapper-div {
        display: flex;   
        gap: 0.5rem;
        align-items: center;
        border-bottom: 0.05rem dashed var(--border1);
        padding: 0.2rem;
    }
    article .wrapper-div > div {
        display: flex; 
        flex-direction: column;
        gap: 0.3rem;
    }
    article .wrapper-div img {
        height: 2.5em;
        width: 2.5em;
        aspect-ratio: 1;
        border-radius: 50%;
        border: 0.05rem solid var(--border1);
    }
    article .wrapper-div > div p {
        color: var(--bg4);
        white-space: nowrap;
        font-size: 0.7rem;
    }
    article .wrapper-div h3 {
        font-size: 0.9rem;
        text-decoration: none;
        /* allow wrapping + break long words */
        overflow-wrap: anywhere;   /* best for super long strings */
        word-break: break-word;    /* fallback */
        white-space: normal;       /* ensure it can wrap */
        min-height: 2.5rem;
    }
    article .wrapper-div h3 a {
        text-decoration: none;
        color: var(--txt1); 
        pointer-events: none;
    }
    .post-body {
        word-break: break-word;
        white-space: pre-wrap;
        font-size: 0.9rem;
        color: var(--txt1);
    }
    .edit-div {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        padding: 0.5rem;
        background-color: var(--bg5);
        color: var(--txt1);
    }
    .edit-div p {
        word-break: break-word;
        font-size: 0.9rem;
    }
    .edit-div span {
        font-size: 0.7rem;
        color: var(--muted);
    }
    .edit-div form {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
    }
    .edit-div form input {
        width: 100%;
        font-size: 0.8rem;
        padding: 0 0.5rem;
        border: 0.05rem solid var(--border1);
        height: 2rem;
    }
    .extra-link {
        background: #ffffff63;
        padding: 0 0.2rem;
        min-height: fit-content;
        overflow: hidden;
        overflow-wrap: break-word;
    }
    .message-details {
        color: var(--txt1);
        font-size: 0.8rem;
        position: relative;
        border-top: 0.05rem dashed var(--border1);
    }
    #post_container .message-details {
        margin-top: auto;
    }
    .open-messages-summary {
        padding: 0.6rem 0;
        font-size: 0.7rem;
        user-select: none;
        width: 100%;
    }
    .open-messages-summary::marker {
        margin-right: 0.3rem
    }
    .open-messages-summary .message-count {
        font-weight: 600;
    }
    /* default */
    .answer-details > summary .message-count {
        color: var(--cool);
    }
    /* if THIS details has an empty direct child answer-container */
    .answer-details:not(:has(> .answer-container > .message)) > summary .message-count {
        color: var(--muted);
    }
    .answer-details summary {
        font-size: 0.6rem;
        color: var(--muted);
        padding: 0.3rem 0;
        width: fit-content;
        text-align: start;
    }
    .answer-details[open] > summary::marker {
        color: var(--cool);
    }
    .answer-btn {
        all: unset;
        text-decoration: underline;
        cursor: pointer;
        position: absolute;
        right: 0.2rem;
        font-size: 0.6rem;
        color: var(--txt1);
    }
    .answer-btn::after { content: " ➥"; }
    .answer-btn[data-is-opened] { color: var(--cool); }
    .message-container {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        margin-bottom: 1rem;
    }
    .message-container:empty::before {
        content: "Ei vielä kommentteja";
        margin-top: 0.5rem;
    }

    .message-container > .message {
        border-bottom: 0.05rem solid var(--border2);
    }
    .message {
        position: relative;
        padding: 1rem 0;
    }
    .name {
        font-size: 0.8rem;
        color: var(--bg4);
        line-height: 1.2rem;
    }
    .message-container time {
        color: var(--muted);
        font-size: 0.7rem;
    }
    .message-body {
        font-size: 0.8rem;
        margin-top: 0.25rem;
        margin-left: 0.1rem;
        margin-bottom: 0.2rem;
        word-break: break-word;
        white-space: pre-wrap;
    }
    .message-details[open] .open-messages-summary {
        width: 50%;
    }
/* message form -------- START */
    .add-message-btn {
        all: unset;
        font-size: 0.7rem;
        text-align: center;
        width: 50%;
        position: absolute;
        top: 0;        
        right: 0;
        background: var(--c1);
        color: var(--txt2);
        border-left: 0.05rem solid var(--border1);
        padding: 0.6rem 0;
    }
  .message-form {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    align-items: end;
    gap: 0.3rem;
    width: 100%;
    border-radius: 0.5rem;
  }
  .message-form textarea {
    border-radius: inherit;
    padding: 0.5rem;
    width: 100%;
    resize: vertical;
    min-height: 15rem;
    font-size: 0.7rem;
  }
  .message-form textarea::placeholder {
    font-size: 0.9rem;
  }
/* message form -------- END */
    .answer-form {
        display: flex;
        flex-direction: column;
        position: sticky;
        gap: 0.2rem;
        bottom: 0.5rem;
        z-index: 2;
        border-radius: 0.5rem;
        padding: 0.3rem;
    }
    .answer-form .btn-div {
        display: flex;
        gap: 0.2rem;
        border-radius: inherit;
    }
    .answer-form textarea {
        font-size: 0.8rem;
    }
    .answer-form .btn-div .close-ans-form-btn {
        cursor: pointer;
        background: var(--bg3);
        border-radius: inherit;
        width: fit-content;
        padding: 0 1rem;
        height: stretch;
        border: 0.05rem solid var(--border2);
    }
    .answer-form textarea {
        resize: none;
        padding: 0.3rem;
        width: 100%;
        height: 5rem;
        border-radius: inherit;
    }
    .answer-form textarea:focus {
        outline: none;
    }
    .post-meta {
        display: flex;
        gap: 0.25rem;
        white-space: nowrap;
    }   
    .post-meta p {
        font-size: 0.7rem;
        color: var(--muted);
    }
    .post-meta p::before {
        content: "• ";
    }
    .like-btn {
        position: absolute;
        align-self: end;
        color: var(--txt1);
        border: 0.05rem solid var(--border2);
        background: var(--input-bg);
        font-size: 0.6rem;
        font-weight: 600;
        border-radius: 0.5rem;
        padding: 0.2rem 0.2rem;
    }    
    .like-btn::after {
        content: " ▲";
    }
/* ------------- */
.action-btn-div {
    position: absolute;
    max-width: 60%;
    flex-wrap: wrap;
    top: 0.5rem;
    left: 0.5rem;
    gap: 0.5rem;
}
.action-btn-div button {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    border-radius: 0.2rem;
}
.edit-btn {
    all: unset;
    background-color: var(--muted);
    color: var(--txt2);
}
.delete-btn {
    all: unset;
    background-color: var(--bg2);
    color: var(--txt2);
}
.share-btn {
    all: unset;
    color: white;
    border: none;
    background: var(--bg4);
}
.save-btn {
    all: unset;
    background: var(--bg3);
    color: var(--txt1);
    border: 0.05rem solid var(--border2);
}
#post_container .action-btn-div {
    display: none;
}
#post_container .post-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    white-space: pre-wrap;
    word-break: break-word;
}
.post-dialog .post-body {
    height: auto;
}
/* postdialog pop animation */
.post-dialog {
  opacity: 1;
  transform: scale(1);
  transition: opacity 220ms ease, transform 220ms ease;
}
.post-dialog .message-details {
   margin-bottom: 10rem;
}
@starting-style {
  .post-dialog[open] {
    opacity: 0;
    transform: scale(0.96);
  }
}
/* postdialog pop animation */

.post-dialog .action-btn-div {
    display: flex;
}
.post-dialog article {
    padding-top:    calc(6rem + env(safe-area-inset-top));
    padding-right:  calc(3vw + env(safe-area-inset-right));
    padding-left:   calc(3vw + env(safe-area-inset-left));

    /* optional older iOS fallback */
    padding-top:    calc(1rem + constant(safe-area-inset-top));
    padding-right:  calc(1rem + constant(safe-area-inset-right));
    padding-bottom: calc(1rem + constant(safe-area-inset-bottom));
    padding-left:   calc(1rem + constant(safe-area-inset-left));

    overflow-y: scroll;   /* always show / reserve scrollbar */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
    border-radius: 0;
}
/* ------------- */ 
    @media (min-width: 800px) {
        .post-dialog .close-dialog-btn {
            display: none;
        }
    }
    .answer-container {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding-left: 0.3rem;
        border-left: 0.05rem solid var(--cool);
        margin-left: 0.17rem;
        height: 0;
        overflow: clip;
        transition: height 500ms ease;
    }
    .answer-details[open] > .answer-container {
        height: auto;
    }
    .answer-container > div {
        padding: 0.5rem;
        padding-left: 0.25rem;
        padding-right: 0;
        background: var(--bg5);
    }
    .answer-container:empty::before {
        content: "Ei vastauksia";
        display: block;
        font-size: 0.9rem;
        opacity: 0.7;
        padding: 0.25rem 0;
    }
    .answer-container > .message::before {
        content: "";
        position: absolute;
        left: -0.3rem;
        top: 0.5rem;
        width: 0.3rem;
        border-top: 0.05rem solid var(--cool);
    }
/*  */
#post_container article .like-btn,
#post_container article .post-source {
  pointer-events: none;
}
#post_container article .post-source {
  text-decoration: none;
}
#post_container article .extra-link {
  display: none;
}
#post_container article .edit-div {
  display: none;
}
/*  */
.pseudonym-div {
    display: flex;
    width: 100%;
    gap: 0.3rem;
    border-radius: 0.5rem;
    border: 0.1rem dashed var(--border2);
    align-items: center;
}
.pseudonym-div input[type="checkbox"] {
    height: 2rem;
    aspect-ratio: 1;
    margin-left: 1rem;
}
.pseudonym-div label {
    width: 100%;
    line-height: 3rem;
}
/*  */
.post-hero-box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg5);
}
.post-hero-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: max-width 180ms ease, max-height 180ms ease;
}
#post_container .post-hero-box {
    pointer-events: none;
}
#post_container .post-hero-img {
    height: 5rem;
}
dialog .post-hero-box {
    cursor: zoom-in;
}
dialog .post-hero-img {
    max-width: 10rem;
    max-height: 30rem;
}
dialog .post-hero-box.is-open {
    cursor: zoom-out;
}
dialog .post-hero-box.is-open .post-hero-img {
    max-width: 100%;
    max-height: none;
}
.meme-picker {
    width: 100%;
}
.meme-picker summary {
    color: var(--txt1);
    background: var(--bg5);
    width: 100%;
    padding: 0.3rem;
}
.meme-select {
    overflow-x: scroll;
    overflow-y: hidden;
    scrollbar-width: 0;
    display: flex;
    -ms-overflow-style: none;
    width: 100%;
}
.meme-select::-webkit-scrollbar {
    height: 0;
    width: 0;
}
.meme-picker button {
    all: unset;
    background-color: var(--bg2);
    height: 100%;
    width: 4rem;
}
.meme-picker button:not(:first-of-type) {
    border-left: none;
}
.meme-picker button img {
    height: 4rem;
    width: 4rem;
}
.meme-picker button {
    transition: filter 0.12s ease, transform 0.12s ease, outline-color 0.12s ease;
}
.meme-picker button {
    transition: opacity 0.12s ease, transform 0.12s ease, border-color 0.12s ease;
}
.meme-picker button.selected-meme {
    border: 0.05rem solid var(--cool);
    opacity: 1;
}
.meme-picker button:not(.selected-meme) {
    opacity: 0.8;
    border: 0.05rem solid var(--border2);
}
.meme-picker button:not(.selected-meme):hover {
    opacity: 0.7;
}
.meme-picker button:active {
    transform: scale(0.97);
}
.message-meme {
    display: block;
    max-width: 10rem;
    aspect-ratio: 1;
    margin-top: 0.5rem;
}
/*  */
.read-thread-btn {
    top: -5.5rem;
    border: 0.05rem solid var(--border2);
    background-color: var(--bg2);
    position: sticky;
    color: var(--txt2);
    z-index: 8;
    padding: 0.25rem 0.5rem;
}
.highlight-txt {
    text-decoration: underline; 
    text-decoration-thickness: 0.1rem; 
    text-decoration-color: #02ff0a;
    text-underline-offset: 0.25em;
}
