/* ==========================================
   LOSTVERSE
   MAIN STYLESHEET
   Global Design System & Homepage
========================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700;800&display=swap');

/* ==========================================
   01. DESIGN SYSTEM
========================================== */

:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-light: #eff6ff;

    --navy: #101a30;
    --navy-dark: #030b1d;

    --bg: #f0f4fc;
    --surface: #ffffff;
    --surface-soft: #f8fafc;

    --text: #17233d;
    --muted: #64748b;
    --border: #dce3ee;

    --success: #15803d;
    --danger: #b91c1c;
    --warning: #b45309;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, .04);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
    --shadow-lg: 0 24px 70px rgba(15, 23, 42, .16);

    --container: 1160px;
    --transition: 180ms ease;

    --font: 'Noto Sans Thai', Tahoma, sans-serif;
}

/* ==========================================
   02. RESET & GLOBAL
========================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--navy);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
}

[hidden] {
    display: none !important;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
    border: 0;
    background: var(--surface);
    border-radius: 9px;
    font-weight: 600;
    padding: 9px 15px;
    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

button:not(:disabled):hover {
    filter: brightness(.97);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--blue);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid #93b4ed;
    outline-offset: 3px;
}

img {
    max-width: 100%;
}

svg {
    width: 25px;
    height: 25px;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

::selection {
    background: #dbeafe;
    color: var(--navy);
}

h1,
h2,
h3,
h4 {
    overflow-wrap: anywhere;
}

h1 {
    font-size: 38px;
    line-height: 1.27;
    margin: 0 0 14px;
    font-weight: 700;
    letter-spacing: -.7px;
}

h2 {
    font-size: 24px;
    line-height: 1.4;
    margin: 0;
}

h3 {
    line-height: 1.5;
}

.primary {
    background: var(--blue);
    color: #ffffff;
}

.primary:not(:disabled):hover {
    background: var(--blue-dark);
    color: #ffffff;
}

.muted,
.account-stats {
    color: var(--muted);
}

/* ==========================================
   03. NAVIGATION
========================================== */

header {
    background: var(--surface);
}

nav {
    width: 100%;
    max-width: 1200px;
    min-height: 60px;
    height: 60px;
    margin: auto;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
}

nav button {
    padding: 10px 8px;
    white-space: nowrap;
}

nav a {
    white-space: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
    flex-shrink: 0;
}

.logo svg {
    width: 34px;
    height: 34px;
    color: var(--blue);
}

.logo strong {
    display: block;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.5px;
}

.logo small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #475569;
}

nav .active {
    background: #dbe6ff;
    color: var(--blue);
    padding: 7px 12px;
    border-radius: 8px;
}

#profile {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

#account-menu {
    font-size: 22px;
    line-height: 1;
}

/* ==========================================
   04. HOMEPAGE HERO
========================================== */

.hero {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    background: var(--navy-dark);
    color: #ffffff;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            #030b1d 20%,
            #030b1d00 55%,
            #030b1d 88%
        ),
        url('../assets/map.png')
        65% center / auto 125% no-repeat;

    mask-image:
        linear-gradient(
            90deg,
            transparent 25%,
            black 45%,
            black 70%,
            transparent 85%
        );

    opacity: .98;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    max-width: var(--container);
    margin: auto;
    padding: 30px 0 55px;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.hero h1 {
    color: #ffffff;
}

.hero h1 span {
    color: #b9e7ff;
}

.hero p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 12px;
}

.post-hint {
    display: block;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.actions button {
    width: 165px;
    min-height: 44px;
    color: var(--navy);
}

.actions .primary {
    background: var(--blue);
    color: #ffffff;
}

/* ==========================================
   05. HOMEPAGE FEATURES
========================================== */

.hero aside {
    width: 310px;
    flex-shrink: 0;
    background: #3b5579;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    padding: 0 17px;
    margin-top: 4px;
}

.hero aside button {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 10px 3px;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    text-align: left;
}

.hero aside button + button {
    border-top: 1px solid #7991b0;
}

.hero aside b {
    font-size: 16px;
}

.hero aside small {
    display: block;
    color: #d1e0f4;
    font-size: 12px;
    font-weight: 400;
}

.hero aside svg {
    width: 24px;
    height: 24px;
}

/* ==========================================
   06. SEARCH & FORM ELEMENTS
========================================== */

.search-area {
    position: relative;
    max-width: var(--container);
    margin: -28px auto 0;
}

form {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border-radius: 40px;
    padding: 11px 18px 11px 36px;
    margin: 0 10px;
}

input,
select {
    border: 0;
    background: var(--surface);
    min-width: 0;
    padding: 10px 4px;
}

input {
    flex: 1;
}

select {
    width: 185px;
}

textarea {
    width: 100%;
    min-width: 0;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--blue);
    flex: 0 0 auto;
}

form button {
    width: 108px;
}

#search {
    padding: 7px 14px;
    border-radius: 14px;
    gap: 10px;
}

.search-area #search {
    box-shadow: var(--shadow-sm);
}

/* ==========================================
   07. CATEGORIES
========================================== */

#categories {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

#categories button {
    min-width: 0;
    min-height: 70px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;
    padding: 8px;

    border-radius: 12px;
    text-align: center;
}

#categories svg {
    width: 25px;
    height: 25px;
}

#categories .selected {
    outline: 2px solid var(--blue);
    color: var(--blue);
}

/* ==========================================
   08. POST LISTINGS
========================================== */

.listings {
    max-width: var(--container);
    margin: 30px auto 0;
}

.section-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.tabs button {
    padding: 9px 22px;
}

#all {
    margin-left: auto;
    background: transparent;
    color: var(--blue);
    padding: 0;
}

#cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.item {
    position: relative;
    min-width: 0;
    padding: 7px;
    overflow: hidden;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;

    transition:
        box-shadow var(--transition),
        border-color var(--transition);
}

.item:hover {
    border-color: #b8c8e0;
    box-shadow: var(--shadow-sm);
}

.item img {
    display: block;
    width: 100%;
    height: 132px;
    object-fit: cover;
    border-radius: 8px;
}

.item-body {
    padding: 0 9px 9px;
    min-width: 0;
}

.item h3 {
    font-size: 16px;
    margin: 5px 0 2px;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.item p {
    font-size: 13px;
    margin: 3px 0;
    overflow-wrap: anywhere;
}

.item p svg {
    width: 15px;
    height: 15px;
    margin-right: 6px;
}

.item small {
    color: var(--muted);
    font-size: 12px;
    margin-left: 22px;
}

.item .save {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 5px;
    border-radius: 50%;
    background: #ffffff;
}

.save svg {
    width: 19px;
    height: 19px;
}

.save.saved svg {
    fill: var(--blue);
    stroke: var(--blue);
}

/* ==========================================
   09. POST STATUS
========================================== */

.tag {
    display: inline-block;
    position: relative;
    vertical-align: top;

    margin-top: 5px;
    padding: 2px 10px;

    border-radius: 20px;

    font-size: 11px;
    font-weight: 700;

    background: #fee2e2;
    color: #b91c1c;
}

.tag.found {
    background: #dcfce7;
    color: #047857;
}

.resolved-label {
    display: inline-block;
    padding: 4px 8px;

    background: #dcfce7;
    color: #047857;

    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
}

/* ==========================================
   10. POST IMAGE PLACEHOLDER
========================================== */

.post-placeholder {
    height: 132px;
    background: #e8edf5;
    border-radius: 8px;

    display: grid;
    place-items: center;

    color: #94a3b8;
}

.post-placeholder svg {
    width: 38px;
    height: 38px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 6px;

    font-size: 12px;
    color: var(--muted);

    padding-top: 10px;
    margin-top: 10px;

    border-top: 1px solid #e2e8f0;

    overflow-wrap: anywhere;
}

.post-author svg {
    width: 17px;
    height: 17px;
}

/* ==========================================
   11. EMPTY STATES
========================================== */

#empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--muted);
}

#empty svg {
    width: 42px;
    height: 42px;
    color: #94a3b8;
}

#empty h3 {
    color: var(--navy);
    margin: 14px 0 6px;
}

#empty p {
    margin: 0;
}

/* ==========================================
   12. MODALS
========================================== */

dialog {
    width: 90%;
    max-width: 540px;
    max-height: 88vh;
    max-height: 88dvh;

    padding: 28px;

    border: 0;
    border-radius: 14px;

    background: var(--surface);
    color: var(--navy);

    overflow: auto;
    overscroll-behavior: contain;
}

dialog::backdrop {
    background: rgba(7, 21, 47, .6);
}

#close {
    float: right;
    padding: 0 10px;
    font-size: 22px;
}

#modal-body img {
    width: 100%;
    border-radius: 12px;
}

#modal-body form {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

#modal-body label {
    display: grid;
    gap: 4px;
    font-weight: 500;
}

#modal-body input,
#modal-body select {
    width: 100%;
    padding: 10px;

    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

#modal-body button {
    width: auto;
}

/* ==========================================
   13. GHOST MODE & IDENTITY
========================================== */

#modal-body .identity-options {
    display: grid;
    gap: 8px;

    border: 0;
    padding: 0;
    margin: 8px 0;
}

.identity-options legend {
    font-weight: 600;
    margin-bottom: 10px;
}

#modal-body .identity-option {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px;

    border: 1px solid var(--border);
    border-radius: 8px;

    cursor: pointer;
}

#modal-body .identity-option:has(input:checked) {
    border-color: var(--blue);
    background: #f5f8ff;
}

#modal-body .identity-option input {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    accent-color: var(--blue);
    margin: 0;
}

.identity-option strong {
    display: block;
    font-size: 14px;
}

.identity-option small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
    font-weight: 400;
}

/* ==========================================
   14. PHOTO PREVIEW
========================================== */

#photo-preview,
#edit-photo-preview {
    width: 100%;
    max-height: 220px;

    object-fit: contain;

    border-radius: 8px;
    background: #f1f5f9;
}

#photo-preview[hidden],
#edit-photo-preview[hidden] {
    display: none !important;
}

/* ==========================================
   15. SAFETY & MODERATION
========================================== */

.post-warning {
    padding: 12px;
    background: #f1f5f9;
    border-radius: 6px;
    color: #475569;
    font-size: 12px;
    line-height: 1.7;
}

#report-error,
#edit-error {
    color: var(--danger);
    margin: 0;
    overflow-wrap: anywhere;
}

.form-error,
.moderation-error {
    color: var(--danger);
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.form-success {
    color: var(--success);
    font-size: 13px;
    line-height: 1.6;
}

.safety-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 14px 16px;

    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 10px;

    color: #1e40af;
    font-size: 13px;
    line-height: 1.7;
}

.safety-notice svg {
    width: 20px;
    height: 20px;
}

/* ==========================================
   16. INCIDENT DATE
========================================== */

.incident-date-field {
    display: grid;
    gap: 8px;
}

.date-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr 1.2fr;
    gap: 10px;
}

#modal-body .date-grid label {
    display: grid;
    gap: 5px;
    font-size: 12px;
    color: var(--muted);
}

#modal-body .date-grid select {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 8px;

    font-size: 13px;
    color: var(--navy);

    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

/* ==========================================
   17. ACCOUNT MENU
========================================== */

.account-links {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.account-links button {
    text-align: left;
    background: #f1f5f9;
}

.account-links button:hover {
    background: #e8eef7;
}

/* ==========================================
   18. SHARED COMPONENTS
   For Future LOSTVERSE Features
========================================== */

.lv-panel {
    min-width: 0;
    padding: 24px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);
}

.lv-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;

    margin-bottom: 18px;
}

.lv-panel-header h2,
.lv-panel-header h3 {
    margin: 0;
}

.lv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 40px;
    padding: 10px 16px;

    border: 1px solid transparent;
    border-radius: 9px;

    font-size: 13px;
    font-weight: 600;
}

.lv-button-primary {
    background: var(--blue);
    color: #ffffff;
}

.lv-button-primary:hover {
    background: var(--blue-dark);
    color: #ffffff;
}

.lv-button-secondary {
    background: #ffffff;
    border-color: var(--border);
    color: var(--navy);
}

.lv-button-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: var(--danger);
}

.lv-button svg {
    width: 18px;
    height: 18px;
}

.lv-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.lv-field label {
    font-size: 13px;
    font-weight: 600;
}

.lv-field input,
.lv-field select,
.lv-field textarea {
    width: 100%;
    padding: 11px 12px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: #ffffff;
}

.lv-field small {
    color: var(--muted);
    font-size: 12px;
}

.lv-form {
    display: grid;
    gap: 16px;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

.lv-form button {
    width: auto;
}

.lv-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.lv-divider {
    height: 1px;
    border: 0;
    background: var(--border);
    margin: 20px 0;
}

/* ==========================================
   19. SHARED STATUS BADGES
========================================== */

.lv-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    width: fit-content;
    padding: 4px 9px;

    border-radius: 6px;

    font-size: 11px;
    font-weight: 600;
}

.lv-badge-neutral {
    background: #f1f5f9;
    color: #475569;
}

.lv-badge-info {
    background: #eff6ff;
    color: #1d4ed8;
}

.lv-badge-success {
    background: #dcfce7;
    color: #15803d;
}

.lv-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.lv-badge-danger {
    background: #fee2e2;
    color: #b91c1c;
}

/* ==========================================
   20. NOTIFICATIONS & REPUTATION
   Shared UI Foundations
========================================== */

.lv-notification-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lv-notification-count {
    position: absolute;
    top: 0;
    right: 0;

    min-width: 17px;
    height: 17px;
    padding: 0 4px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #ffffff;
    border-radius: 20px;

    background: #dc2626;
    color: #ffffff;

    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.lv-reputation {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 5px 9px;

    border: 1px solid #bbf7d0;
    border-radius: 6px;

    background: #f0fdf4;
    color: #15803d;

    font-size: 12px;
    font-weight: 600;
}

.lv-reputation svg {
    width: 16px;
    height: 16px;
}

/* ==========================================
   21. LOADING STATES
========================================== */

.lv-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 28px;

    color: var(--muted);
    font-size: 13px;
}

.lv-spinner {
    width: 20px;
    height: 20px;

    border: 2px solid #dbeafe;
    border-top-color: var(--blue);
    border-radius: 50%;

    animation: lv-spin .8s linear infinite;
}

@keyframes lv-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   22. FOOTER
========================================== */

footer {
    max-width: var(--container);
    margin: 20px auto;

    color: #475569;
    font-size: 13px;
}

/* ==========================================
   23. RESPONSIVE - DESKTOP
========================================== */

@media (max-width: 1370px) {

    nav,
    .hero-inner,
    .search-area,
    .listings,
    footer {
        margin-left: 5%;
        margin-right: 5%;
        width: auto;
    }

    .logo {
        margin-right: 8px;
    }

}

/* ==========================================
   24. RESPONSIVE - TABLET
========================================== */

@media (max-width: 1000px) {

    nav {
        height: auto;
        min-height: 60px;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
        padding: 12px 0;
    }

    .hero-inner {
        flex-wrap: wrap;
        padding: 24px 0 55px;
    }

    .hero aside {
        width: 100%;
    }

    .hero::before {
        opacity: .6;
    }

    #categories {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

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

    form {
        flex-wrap: wrap;
    }

}

/* ==========================================
   25. RESPONSIVE - MOBILE
========================================== */

@media (max-width: 600px) {

    body {
        font-size: 13px;
    }

    nav,
    .hero-inner,
    .search-area,
    .listings,
    footer {
        margin-left: 16px;
        margin-right: 16px;
    }

    nav {
        gap: 6px;
    }

    nav a,
    nav button {
        font-size: 12px;
    }

    .logo {
        width: 100%;
        margin-bottom: 6px;
    }

    .logo strong {
        font-size: 21px;
    }

    .logo small {
        font-size: 10px;
    }

    h1 {
        font-size: 30px;
        letter-spacing: -.4px;
    }

    h2 {
        font-size: 21px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-inner {
        gap: 18px;
        padding-top: 28px;
    }

    .actions {
        gap: 8px;
    }

    .actions button {
        width: auto;
        flex: 1 1 130px;
    }

    .search-area #search {
        display: flex;
        flex-wrap: wrap;
        margin: 0;
        padding: 12px;
    }

    .search-area #search input {
        flex: 1 1 100%;
        width: 100%;
    }

    .search-area #search select {
        flex: 1;
        width: auto;
    }

    .search-area #search button {
        width: auto;
    }

    #categories {
        gap: 8px;
    }

    #categories button {
        min-height: 74px;
        padding: 8px 4px;
        font-size: 11px;
    }

    #categories svg {
        width: 23px;
        height: 23px;
    }

    #cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .section-head {
        flex-wrap: wrap;
        gap: 10px;
    }

    .tabs button {
        padding: 8px 12px;
        font-size: 12px;
    }

    select {
        width: auto;
    }

    dialog {
        width: calc(100% - 24px);
        max-height: 92dvh;
        padding: 18px;
    }

    .date-grid {
        gap: 6px;
    }

    #modal-body .date-grid select {
        padding: 6px;
        font-size: 12px;
    }

    .lv-panel {
        padding: 16px;
    }

    .lv-form-actions {
        gap: 8px;
    }

    .lv-form-actions button {
        flex: 1;
    }

}

/* ==========================================
   26. ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

}
/* Post Like Button */

button[data-like] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

button[data-like] svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

button[data-like] span {
    font-size: 13px;
    line-height: 1.5;
}

button[data-like] [data-like-count] {
    font-size: 13px;
}
/* Unified Post Interaction Icons */

button[data-like],
button[data-comments] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
}

button[data-like] svg.interaction-heart,
button[data-comments] svg {
    display: block;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    flex-shrink: 0;
}

button[data-like] span,
button[data-comments] span {
    font-size: 13px;
    line-height: 1.5;
}

button[data-like].liked {
    color: #e11d48;
}

button[data-like].liked svg.interaction-heart {
    fill: currentColor;
    stroke: currentColor;
}