@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@700&family=Cormorant+Garamond:wght@700&family=Nunito:wght@800&family=Playfair+Display:wght@700&display=swap");

:root {
    --site-container-width: 1200px;
    --site-container-padding: 18px;
    --text-primary: #f5f5f5;
    --text-soft-primary: #d9d9d9;
    --text-secondary: #9aa9b9;
    --text-muted: #7f8b99;
    --text-link: #8eafd0;
    --page-header-padding-top: 32px;
}

/* Keep mobile taps on controls and links from entering text/image selection. */
@media (max-width: 700px) and (pointer: coarse) {
    a,
    button,
    [role="button"] {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    a > img,
    button img,
    [role="button"] img {
        -webkit-user-drag: none;
        -webkit-user-select: none;
        user-select: none;
    }
}

html {
    background: #14151b;
    overflow-x: clip;
    overflow-y: scroll;
    scrollbar-color: rgba(127, 139, 153, 0.55) #14151b;
    scrollbar-width: thin;
}

html::-webkit-scrollbar-track {
    background: #14151b;
}

html::-webkit-scrollbar-thumb {
    background: rgba(127, 139, 153, 0.55);
    border-radius: 999px;
}

body {
    background: #14151b;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

body > main {
    flex: 1 0 auto;
}

.sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.site-header {
    background: #0f1014;
    border-bottom: 1px solid rgba(132, 151, 174, 0.14);
    color: var(--text-primary);
    overflow: visible;
    position: relative;
    z-index: 10;
}

.site-header__inner {
    align-items: center;
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr auto 1fr;
    margin: 0 auto;
    max-width: var(--site-container-width);
    min-height: 64px;
    padding: 0 var(--site-container-padding);
}

.site-header__brand {
    align-items: center;
    color: var(--text-primary);
    display: inline-flex;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-weight: 400;
    gap: 12px;
    line-height: 1;
    text-decoration: none;
}

.site-header__name span {
    color: var(--text-link);
    font-weight: 400;
}

.site-header__mark {
    display: block;
    flex: 0 0 auto;
    height: 43px;
    object-fit: cover;
    width: 43px;
}

.site-header__nav {
    display: flex;
    gap: 40px;
    justify-content: center;
    padding-top: 1px;
}

.site-header__nav a {
    color: var(--text-soft-primary);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
}

.site-header__brand:hover,
.site-header__nav a:hover,
.site-header__avatar:hover {
    color: var(--text-link);
}

.site-header__avatar {
    align-items: center;
    background:
        radial-gradient(circle at 36% 32%, #fff7e7 0 16%, transparent 17%),
        radial-gradient(circle at 66% 40%, #9fd4ff 0 18%, transparent 19%),
        radial-gradient(circle at 48% 68%, #e8b28f 0 22%, transparent 23%),
        #eef6ff;
    border: 1px solid #a8d1f2;
    border-radius: 999px;
    box-shadow: 0 0 13px rgba(143, 194, 255, 0.2);
    color: transparent;
    display: inline-flex;
    font-size: 0;
    font-weight: 700;
    height: 34px;
    justify-content: center;
    justify-self: end;
    text-decoration: none;
    width: 34px;
}

.site-header__avatar img {
    border-radius: inherit;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.site-header__avatar img[hidden],
.site-header__avatar-placeholder[hidden] {
    display: none;
}

.site-header__avatar-placeholder {
    background: #1b1e26;
    border: 1px solid rgba(132, 151, 174, 0.28);
    border-radius: inherit;
    box-sizing: border-box;
    display: block;
    height: 100%;
    width: 100%;
}

.site-header__avatar--guest {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

@media (min-width: 701px) {
    .site-header__nav {
        gap: 48px;
    }

    .site-header__nav a {
        color: var(--text-soft-primary);
        font-family: Arial, Helvetica, sans-serif;
        font-size: 17px;
        font-weight: 500;
        position: relative;
    }

    .site-header__nav a.is-active::after {
        background: var(--text-link);
        border-radius: 999px;
        bottom: -9px;
        content: "";
        height: 2px;
        left: 0;
        opacity: 0.72;
        position: absolute;
        right: 0;
    }
}

/* Give tablet widths a second header row before the desktop three-column grid
   becomes wide enough for the brand, navigation, and account controls. */
@media (min-width: 701px) and (max-width: 1140px) {
    .site-header__inner {
        gap: 14px 18px;
        grid-template-areas:
            "brand account"
            "nav nav";
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 0;
        padding-bottom: 13px;
        padding-top: 13px;
    }

    .site-header__brand {
        grid-area: brand;
        min-width: 0;
    }

    .site-header__nav {
        flex-wrap: wrap;
        gap: 18px 28px;
        grid-area: nav;
        justify-content: flex-start;
        padding-top: 0;
    }

    .site-header__account {
        grid-area: account;
    }
}
.site-header__account {
    align-items: center;
    display: flex;
    gap: 15px;
    justify-self: end;
    position: relative;
    z-index: 1;
}

.site-header__account .site-header__avatar {
    margin-left: 7px;
    justify-self: unset;
}

.site-header__message-link {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--text-secondary);
    display: inline-flex;
    height: 32px;
    justify-content: center;
    padding: 0;
    position: relative;
    text-decoration: none;
    transform: translateY(3px);
    width: 32px;
}

.site-header__message-link img {
    display: block;
    filter: invert(73%) sepia(12%) saturate(465%) hue-rotate(169deg) brightness(91%);
    height: 19px;
    opacity: 0.9;
    width: 19px;
}

.site-header__admin-link img {
    height: 17px;
    width: 17px;
}

.site-header__message-link:hover,
.site-header__message-link:focus-visible {
    background: rgba(143, 194, 255, 0.08);
    outline: 0;
}

.site-header__message-link {
    position: relative;
}

.header-icon-badge {
    align-items: center;
    background: #b66f80;
    border: 2px solid #0f1014;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font: 700 9px/1 Arial, Helvetica, sans-serif;
    height: 16px;
    justify-content: center;
    min-width: 16px;
    padding: 0 2px;
    position: absolute;
    right: -8px;
    top: -3px;
}

.site-header__notifications {
    position: relative;
    transform: translateY(3px);
}

.site-header__theme-toggle {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    font-size: 18px;
    height: 32px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transform: translateY(3px);
    width: 32px;
}

.site-header__theme-toggle:hover,
.site-header__theme-toggle:focus-visible {
    background: rgba(142, 175, 208, 0.08);
    border-color: rgba(255, 255, 255, 0.07);
    color: var(--text-link);
    outline: 0;
}

.site-header__notification-button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    padding: 0;
    position: relative;
    width: 32px;
}

.site-header__notification-button:hover,
.site-header__notification-button:focus-visible {
    background: rgba(143, 194, 255, 0.08);
    outline: 0;
}

.site-header__notification-icon {
    display: block;
    filter: invert(73%) sepia(12%) saturate(465%) hue-rotate(169deg) brightness(91%);
    height: 21px;
    opacity: 0.9;
    width: 21px;
}

.notifications-panel {
    background: #14161b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    position: absolute;
    right: 0;
    top: calc(100% + 28px);
    transform: translateY(4px);
    width: min(360px, calc(100vw - 28px));
    z-index: 30;
}

@media (min-width: 701px) {
    .notifications-panel {
        top: calc(100% + 12px);
        transform: none;
    }
}

.notifications-panel[hidden] {
    display: none;
}

.notifications-panel__header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 13px 15px;
}

.notifications-panel__header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    gap: 12px;
}

.notifications-panel__header h2 {
    color: var(--text-primary);
    font: 600 16px/1.2 Arial, Helvetica, sans-serif;
    margin: 0;
}

.notifications-panel__header button {
    color: var(--text-link);
    font: 400 11px/1.3 Arial, Helvetica, sans-serif;
}

.notifications-panel__header button {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.notifications-panel__header button:hover {
    color: var(--text-primary);
}

.notifications-panel__list {
    max-height: 330px;
    overflow-y: auto;
}

.notifications-panel__empty {
    color: var(--text-secondary);
    font: 400 12px/1.4 Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 24px 20px;
    text-align: center;
}

.notification-item {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    padding: 12px 15px;
}

.notifications-panel a.notification-item,
.notifications-panel a.notification-item:hover,
.notifications-panel a.notification-item:focus-visible {
    text-decoration: none;
}

.notifications-panel a.notification-item:hover .notification-item__content strong,
.notifications-panel a.notification-item:focus-visible .notification-item__content strong {
    color: var(--text-primary);
}

.notification-item__icon {
    align-items: center;
    color: var(--color-accent, #9fc9ff);
    display: inline-flex;
    flex: 0 0 1.5rem;
    font-size: 1rem;
    justify-content: center;
}

.notification-item + .notification-item {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.notification-item.is-unread {
    background: rgba(91, 133, 178, 0.08);
}

.notification-item__status {
    background: transparent;
    border-radius: 50%;
    flex: 0 0 6px;
    height: 6px;
    margin-top: 5px;
    width: 6px;
}

.notification-item.is-unread .notification-item__status {
    background: #8eafd0;
}

.notification-item__content {
    min-width: 0;
}

.notification-item__content strong {
    color: var(--text-soft-primary);
    display: block;
    font: 400 12px/1.35 Arial, Helvetica, sans-serif;
}

.notification-item__content p {
    color: var(--text-secondary);
    font: 400 12px/1.4 Arial, Helvetica, sans-serif;
    margin: 3px 0 2px;
}

.notification-item__content time {
    color: var(--text-muted);
    display: block;
    font: 400 10px/1.3 Arial, Helvetica, sans-serif;
}

.home-hero {
    align-items: end;
    display: grid;
    gap: 28px;
    grid-template-columns: 1fr auto;
    margin: 0 auto;
    max-width: var(--site-container-width);
    padding: 32px var(--site-container-padding) 34px;
}

.home-hero__intro h1 {
    color: var(--text-primary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.1;
    margin: 0 0 8px;
}

.home-hero__intro p {
    color: var(--text-secondary);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    max-width: 620px;
}

.home-hero__tools {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: end;
}

.home-search input {
    background: #101116;
    border: 1px solid rgba(132, 151, 174, 0.2);
    border-radius: 999px;
    color: var(--text-primary);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    height: 36px;
    min-width: 210px;
    outline: 0;
    padding: 0 15px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.home-search input::placeholder {
    color: var(--text-muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 400;
}

@media (min-width: 701px) {
    .home-search input {
        min-width: 250px;
        width: 250px;
    }
}

.home-search input:focus {
    border-color: rgba(143, 194, 255, 0.58);
    box-shadow: 0 0 0 3px rgba(143, 194, 255, 0.1);
}

.view-toggle {
    display: inline-flex;
    gap: 7px;
}

.view-toggle__button {
    align-items: center;
    background: #101116;
    border: 1px solid rgba(132, 151, 174, 0.2);
    border-radius: 10px;
    color: var(--text-link);
    cursor: pointer;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    padding: 0;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
    width: 36px;
}

.view-toggle__button--active,
.view-toggle__button:hover {
    background: rgba(143, 194, 255, 0.1);
    border-color: rgba(143, 194, 255, 0.4);
    color: var(--text-link);
}

.view-toggle__icon {
    background-color: currentColor;
    display: block;
    height: 18px;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: 18px 18px;
    width: 18px;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 18px 18px;
}

.view-toggle__icon--grid {
    mask-image: url('/images/icons/layout-grid.svg');
    -webkit-mask-image: url('/images/icons/layout-grid.svg');
}

.view-toggle__icon--list {
    mask-image: url('/images/icons/layout-list.svg');
    -webkit-mask-image: url('/images/icons/layout-list.svg');
}

.project-section {
    margin: 0 auto;
    max-width: var(--site-container-width);
    padding: 0 var(--site-container-padding) 56px;
}

.project-section__header {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    padding-bottom: 12px;
}

.project-section__header h2 {
    align-items: center;
    color: var(--text-soft-primary);
    display: flex;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 400;
    gap: 10px;
    line-height: 1;
    margin: 0;
}

.project-section__header h2 span {
    background: #66af92;
    border-radius: 999px;
    height: 7px;
    width: 7px;
}

.project-section__header a {
    color: var(--text-link);
    font-size: 0.75rem;
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none;
}

.project-section__header a:hover {
    color: var(--text-primary);
}

.project-section--ongoing .project-section__header h2 span {
    background: #66af92;
}

.project-section--paused .project-section__header h2 span {
    background: #c36d7b;
}

.project-section--planned .project-section__header h2 span {
    background: #6799cf;
}

.project-section--finished .project-section__header h2 span {
    background: #9178c7;
}

.project-grid {
    display: grid;
    gap: 30px 34px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 1160px;
}

[data-home-project-item][hidden] {
    display: none !important;
}

.home-search__empty {
    color: var(--text-secondary);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    margin: 0 auto 56px;
    max-width: var(--site-container-width);
    padding: 0 var(--site-container-padding);
}

.project-view--list {
    display: none;
    margin: 0 auto;
    max-width: 1160px;
}

.is-list-view .project-view--grid {
    display: none;
}

.is-list-view .project-view--list {
    display: block;
}

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

.project-list__item {
    align-items: center;
    color: inherit;
    display: flex;
    gap: 14px;
    min-height: 140px;
    text-decoration: none;
}

.project-list__cover {
    aspect-ratio: 166 / 180;
    border-radius: 7px;
    flex: 0 0 120px;
    height: auto;
    overflow: hidden;
    position: relative;
}

.project-list__cover-link {
    display: block;
    inset: 0;
    position: absolute;
}

.project-list__cover img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.project-card__image,
.project-list__cover-link > img:not(.project-list__age),
.project-info__cover {
    --cover-scale: 1;
    --cover-x: 50%;
    --cover-y: 50%;
    inset: 0;
    max-width: 100%;
    object-position: var(--cover-x) var(--cover-y);
    position: absolute;
    transform: scale(var(--cover-scale));
    transform-origin: 0 0;
}

.project-card__image {
    transform-origin: var(--cover-x) var(--cover-y);
}

.project-list__cover-link > img:not(.project-list__age),
.project-info__cover {
    transform-origin: var(--cover-x) var(--cover-y);
}

.project-list__cover img.project-list__age {
    bottom: auto;
    display: block;
    left: auto;
    height: 22px;
    object-fit: contain;
    position: absolute;
    right: 6px;
    top: 6px;
    width: 22px;
}

.project-list__content {
    align-self: stretch;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 3px 0;
}

.project-list__heading {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    min-height: 28px;
}

.project-list__heading h3 {
    color: var(--text-soft-primary);
    font: 700 16px/1.2 Georgia, "Times New Roman", serif;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-list__heading h3 a {
    color: inherit;
    text-decoration: none;
}

.project-list__updates {
    display: grid;
    gap: 2px;
    margin-top: 5px;
}

.project-list__planned-note {
    align-self: stretch;
    background: rgba(8, 9, 13, 0.64);
    border-radius: 12px;
    color: var(--text-secondary);
    font: 12px/1.2 Arial, Helvetica, sans-serif;
    margin-top: 5px;
    padding: 6px 8px;
}

.project-section--planned .project-list {
    gap: 6px;
}

.project-list__item--planned .project-list__content {
    align-self: flex-start;
    padding-top: 3px;
}

.project-list__update {
    align-items: center;
    background: rgba(8, 9, 13, 0.64);
    border-radius: 12px;
    color: var(--text-muted);
    display: grid;
    font: 12px/1.2 Arial, Helvetica, sans-serif;
    grid-template-columns: minmax(0, 1fr) auto 110px;
    min-height: 23px;
    padding: 0 7px;
}

.project-list__update:hover {
    background: rgba(142, 175, 208, 0.08);
}

.project-list__chapter {
    align-items: center;
    color: color-mix(in srgb, var(--text-link) 84%, var(--text-muted));
    display: inline-flex;
    font: 600 12px/1.2 Arial, Helvetica, sans-serif;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-list__chapter-subtitle {
    color: var(--text-muted);
    font: 400 11px/1.2 Arial, Helvetica, sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-list__updated {
    color: var(--text-muted);
    font: 11px/1.2 Arial, Helvetica, sans-serif;
    white-space: nowrap;
}

.project-list__stats {
    align-items: center;
    color: var(--text-muted);
    display: inline-flex;
    font: 11px/1.2 Arial, Helvetica, sans-serif;
    gap: 8px;
    white-space: nowrap;
}

.project-list__stat {
    align-items: center;
    display: inline-flex;
    gap: 4px;
}

.project-list__stat[data-chapter-read-count].is-empty,
.project-chapter__stat[data-chapter-read-count].is-empty {
    visibility: hidden;
}

.project-list__stat[data-chapter-read-count] > [data-chapter-read-count-value],
.project-chapter__stat[data-chapter-read-count] > [data-chapter-read-count-value] {
    font-variant-numeric: tabular-nums;
    min-width: 3ch;
    text-align: right;
}

.project-list__stat img {
    filter: invert(62%) sepia(8%) saturate(300%) hue-rotate(175deg) brightness(88%) contrast(86%);
    height: 13px;
    width: 13px;
}

.project-list__uploader {
    align-items: center;
    color: var(--text-soft-primary);
    display: inline-flex;
    gap: 6px;
    justify-self: end;
    min-width: 0;
    white-space: nowrap;
}

.project-list__uploader > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-list__uploader img,
.project-list__uploader-avatar {
    border: 1px solid rgba(143, 194, 255, 0.35);
    border-radius: 999px;
    flex: 0 0 18px;
    height: 18px;
    object-fit: cover;
    width: 18px;
}

.project-list__uploader-avatar {
    align-items: center;
    background: #2b3540;
    color: var(--text-primary);
    display: inline-flex;
    font: 700 10px/1 Arial, Helvetica, sans-serif;
    justify-content: center;
}

a.project-list__update {
    text-decoration: none;
}

@media (min-width: 701px) {
    .project-list__cover {
        flex-basis: 166px;
        margin-block: 0;
    }
}

.project-list__translator {
    align-items: center;
    color: var(--text-soft-primary);
    display: inline-flex;
    font-weight: 700;
    gap: 6px;
    justify-self: end;
    white-space: nowrap;
}

.project-list__translator img {
    border: 1px solid rgba(143, 194, 255, 0.55);
    border-radius: 999px;
    height: 18px;
    object-fit: cover;
    width: 18px;
}

.project-list__likes {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 1px solid rgba(143, 194, 255, 0.24);
    border-radius: 999px;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    font: 12px/1 Arial, Helvetica, sans-serif;
    gap: 4px;
    justify-self: end;
    padding: 6px 9px;
    white-space: nowrap;
}

.project-list__cover > .project-list__likes {
    background: rgba(8, 9, 13, 0.72);
    bottom: 8px;
    justify-self: initial;
    left: 8px;
    position: absolute;
    z-index: 2;
}

.project-list__likes > span:not(.icon-heart) {
    color: var(--text-secondary);
    font-size: 10px;
    line-height: 1;
}

.project-list__likes .icon-heart {
    color: var(--text-link);
    font-size: 12px;
}

.project-list__likes {
    gap: 3px;
    padding: 5px 6px;
}

.project-list__likes.is-liked .icon-heart {
    color: #8fc4ff;
}

.project-list__likes.is-unlike-armed .icon-heart {
    color: #d98a96;
}

.project-list__likes.is-liked .icon-heart svg {
    fill: currentColor;
}

.project-list__likes:hover {
    border-color: rgba(143, 194, 255, 0.42);
}

.project-list__likes:focus-visible {
    outline: 2px solid rgba(142, 175, 208, 0.8);
    outline-offset: 2px;
}

.project-directory {
    margin: 0 auto;
    max-width: var(--site-container-width);
    padding: 30px var(--site-container-padding) 54px;
}

.home-hero,
.project-directory {
    padding-top: var(--page-header-padding-top);
}

.project-directory__header {
    align-items: end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.project-directory__header h1 {
    color: var(--text-primary);
    font: 400 24px/1.1 Georgia, "Times New Roman", serif;
    margin: 0 0 8px;
}

.project-directory__header p {
    color: var(--text-secondary);
    font: 14px/1.5 Arial, Helvetica, sans-serif;
    margin: 0;
}

.project-directory__tools {
    align-items: center;
    display: flex;
    gap: 10px;
}

.project-directory__search input {
    min-width: 210px;
}

.project-directory__sort select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: #101116;
    background-image: none;
    border: 1px solid rgba(132, 151, 174, 0.2);
    border-radius: 999px;
    color: var(--text-secondary);
    color-scheme: dark;
    font: 12px/1.25 Arial, Helvetica, sans-serif;
    height: 34px;
    padding: 0 30px 0 12px;
}

.project-directory__sort {
    display: inline-flex;
    position: relative;
}

.project-directory__sort::after {
    border-bottom: 1px solid var(--text-muted);
    border-right: 1px solid var(--text-muted);
    content: '';
    height: 6px;
    pointer-events: none;
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-65%) rotate(45deg);
    width: 6px;
}

.project-directory__sort select::-ms-expand {
    display: none;
}

.project-directory__sort input[type="number"] {
    -moz-appearance: textfield;
}

.project-directory__sort input[type="number"]::-webkit-inner-spin-button,
.project-directory__sort input[type="number"]::-webkit-outer-spin-button {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
}

.project-directory__filters {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    gap: 20px;
    margin-bottom: 27px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 5px;
}

.project-directory__filters a {
    color: var(--text-muted);
    display: inline-block;
    font: 14px/1.2 Arial, Helvetica, sans-serif;
    padding-bottom: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.project-directory__filters a:hover,
.project-directory__filters a.is-active {
    color: var(--text-link);
}

.project-directory__filters a.is-active {
    border-bottom: 1px solid rgba(142, 175, 208, 0.7);
    margin-bottom: -11px;
}

.project-directory__item {
    display: contents;
}

.project-directory__empty {
    color: var(--text-muted);
    font: 13px/1.4 Arial, Helvetica, sans-serif;
    margin: 28px 0 0;
    text-align: center;
}

.auth-page {
    margin: 0 auto;
    max-width: var(--site-container-width);
    padding: var(--page-header-padding-top) var(--site-container-padding) 54px;
}

.auth-page--login {
    background: transparent;
    border: 0;
    border-radius: 0;
    margin-top: 32px;
    max-width: 460px;
    padding: 20px 0;
}

.maintenance-page {
    margin: 0 auto;
    max-width: var(--site-container-width);
    padding: 96px var(--site-container-padding) 120px;
    text-align: center;
}

.maintenance-page h1 {
    color: var(--text-primary);
    font: 400 28px/1.2 Georgia, "Times New Roman", serif;
    margin: 0 0 12px;
}

.maintenance-page > p:last-child {
    color: var(--text-secondary);
    font: 14px/1.6 Arial, Helvetica, sans-serif;
    margin: 0 auto;
    max-width: 620px;
    white-space: pre-line;
}

.auth-page__intro {
    margin: 0 auto 24px;
    max-width: 500px;
}

.auth-page--login .auth-page__intro {
    margin-bottom: 18px;
}

.auth-page__intro h1 {
    color: var(--text-primary);
    font: 400 24px/1.1 Georgia, "Times New Roman", serif;
    margin: 0 0 8px;
}

.auth-page__intro p,
.auth-page__switch {
    color: var(--text-secondary);
    font: 14px/1.5 Arial, Helvetica, sans-serif;
    margin: 0;
}

.auth-form {
    display: grid;
    gap: 16px;
    margin: 0 auto;
    max-width: 480px;
}

.auth-page--login .auth-form {
    gap: 14px;
    max-width: none;
}

.auth-form label {
    display: grid;
    gap: 7px;
}

.auth-form label > span {
    color: var(--text-secondary);
    font: 13px/1.2 Arial, Helvetica, sans-serif;
}

.auth-form__check {
    align-items: start;
    display: flex !important;
    gap: 9px;
}

.auth-form__options {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    min-height: 24px;
}

.auth-form__options .auth-form__check {
    align-items: center;
    min-width: 0;
}

.auth-page--login .auth-form__options .auth-form__check input {
    margin: 0;
}

.auth-page--login .auth-form > label > span:not(.auth-form__password) {
    text-indent: 6px;
}

.auth-page--login .auth-form__options .auth-form__check {
    padding-left: 4px;
}

.auth-page--login .auth-form__options .auth-form__check span,
.auth-page--login .auth-form__options .auth-form__forgot {
    line-height: 1.3 !important;
}

.auth-page--login .auth-form__options .auth-form__check input:focus {
    outline: none;
}

.auth-page--login .auth-form__options .auth-form__check input:focus-visible {
    outline: 2px solid rgba(142, 175, 208, 0.6);
    outline-offset: 2px;
}

.auth-form__check input {
    accent-color: #8eafd0;
    appearance: none;
    background: #171a20;
    border: 1px solid rgba(102, 126, 150, 0.45);
    border-radius: 4px;
    flex: 0 0 auto;
    height: 15px;
    margin: 1px 0 0;
    min-height: 0;
    width: 15px;
}

.auth-form__check input:hover {
    border-color: rgba(126, 151, 176, 0.62);
}

.auth-form__check input:checked {
    background: #8eafd0;
    border-color: #8eafd0;
}

.auth-form__check span {
    line-height: 1.4 !important;
}

.auth-page--register .auth-form__check {
    padding-left: 4px;
}

.auth-form__check a {
    color: var(--text-link);
    text-decoration: none;
}

.auth-form__check a:hover {
    text-decoration: underline;
}

.auth-form input:not([type="checkbox"]) {
    background: #101116;
    border: 1px solid rgba(132, 151, 174, 0.2);
    border-radius: 24px;
    box-sizing: border-box;
    color: var(--text-primary);
    font: 14px/1.4 Arial, Helvetica, sans-serif;
    outline: none;
    min-height: 50px;
    padding: 11px 12px;
    width: 100%;
}

.auth-form input:not([type="checkbox"]):focus {
    border-color: rgba(142, 175, 208, 0.55);
    box-shadow: 0 0 0 2px rgba(142, 175, 208, 0.1);
}

.auth-form__password {
    display: block;
    position: relative;
}

.auth-form__password input {
    padding-right: 48px;
}

.auth-form__password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    height: 36px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
}

.auth-form__password-toggle img {
    filter: invert(75%) sepia(10%) saturate(450%) hue-rotate(174deg);
    height: 18px;
    opacity: 0.8;
    width: 18px;
}

.auth-form__password-toggle:hover img {
    opacity: 1;
}

.auth-form__password-toggle:focus-visible {
    border-radius: 6px;
    outline: 2px solid rgba(142, 175, 208, 0.55);
    outline-offset: 1px;
}

.auth-form__check input {
    accent-color: #8eafd0;
    flex: 0 0 auto;
    height: 15px;
    margin: 1px 0 0;
    padding: 0;
    width: 15px;
}

.auth-form__submit,
.auth-form__forgot,
.auth-page__switch a {
    color: var(--text-link);
    font: 13px/1.3 Arial, Helvetica, sans-serif;
}

.auth-form__submit {
    background: rgba(142, 175, 208, 0.12);
    border: 1px solid rgba(142, 175, 208, 0.32);
    border-radius: 10px;
    cursor: pointer;
    justify-self: stretch;
    min-height: 48px;
    padding: 10px 16px;
}

.auth-form__submit:hover {
    background: rgba(142, 175, 208, 0.08);
}

.auth-page--login .auth-form__submit {
    background: rgba(23, 26, 32, 0.98);
    border-color: rgba(102, 126, 150, 0.22);
    border-radius: 24px;
}

.auth-page--login .auth-form__submit:hover {
    background: rgba(29, 33, 40, 0.98);
    border-color: rgba(112, 137, 162, 0.3);
}

.auth-form__forgot,
.auth-page__switch a {
    text-decoration: none;
}

.auth-form__forgot:hover,
.auth-page__switch a:hover {
    text-decoration: underline;
}

.auth-page__switch {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 6px auto 0;
    max-width: none;
    padding-top: 16px;
}

.auth-page__switch span,
.auth-page__switch a {
    line-height: 18px;
}

.auth-page--login .auth-page__switch {
    border-top: 0;
    margin-top: 22px;
    padding-top: 0;
}

.auth-page--login .auth-form__message {
    color: var(--text-secondary);
    font: 14px/1.5 Arial, sans-serif;
    margin: 12px 0;
}

.auth-page--login .auth-form__message:empty {
    display: none;
}

.auth-page--login .auth-page__switch + .auth-form__message {
    margin: 18px 0 0;
    text-align: left;
}

.profile-page {
    margin: 0 auto;
    max-width: var(--site-container-width);
    padding: var(--page-header-padding-top) var(--site-container-padding) 54px;
}

.profile-page__identity {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    overflow: visible;
    padding-bottom: 24px;
}

.profile-page__identity-main {
    align-items: center;
    display: flex;
    gap: 18px;
    min-width: 0;
}

.profile-page__identity-copy {
    min-width: 0;
    overflow: visible;
    padding-block: 4px;
}

.profile-page__avatar {
    background: #101116;
    box-sizing: border-box;
    border-radius: 999px;
    display: block;
    height: 76px;
    object-fit: contain;
    padding: 4px;
    width: 76px;
}

.profile-page__identity-copy h1 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.1;
    margin: 0 0 10px;
}

.profile-page__name-row {
    align-items: center;
    display: inline-flex;
    gap: 4px;
}

.profile-page__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-page__badge {
    align-items: center;
    border: 1px solid rgba(142, 175, 208, 0.22);
    border-radius: 999px;
    color: var(--text-secondary);
    display: inline-flex;
    font: 12px/1 Arial, Helvetica, sans-serif;
    gap: 6px;
    padding: 6px 9px;
}

.profile-page__badge-icon {
    height: 16px;
    object-fit: contain;
    width: 16px;
}

.profile-page__badge--blue {
    background: rgba(75, 111, 153, 0.12);
}

.profile-page__badge--purple {
    background: rgba(112, 87, 145, 0.12);
}

.profile-page__body {
    display: grid;
    gap: 48px;
    grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
    padding: 28px 0;
}

.profile-page__details,
.profile-page__bio {
    min-width: 0;
}

.profile-page__body h2 {
    color: var(--text-primary);
    font: 400 16px/1.2 Georgia, "Times New Roman", serif;
    margin: 0 0 14px;
}

.profile-page__data-list {
    margin: 0;
}

.profile-page__data-list > div {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
    padding: 13px 0;
}

.profile-page__data-list dt,
.profile-page__data-list dd,
.profile-page__bio p {
    color: var(--text-secondary);
    font: 14px/1.5 Arial, Helvetica, sans-serif;
    margin: 0;
}

.profile-page__data-list dt {
    color: var(--text-muted);
}

.profile-page__bio p {
    max-width: 700px;
}

.profile-page__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    justify-content: flex-end;
}

.profile-page__action {
    border: 1px solid rgba(132, 151, 174, 0.2);
    border-radius: 999px;
    color: var(--text-secondary);
    font: 13px/1 Arial, Helvetica, sans-serif;
    padding: 10px 15px;
    text-decoration: none;
}

.profile-page__action:hover,
.profile-page__action--primary {
    background: rgba(142, 175, 208, 0.08);
    border-color: rgba(142, 175, 208, 0.36);
    color: var(--text-link);
}

.profile-modal[hidden] {
    display: none;
}

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

.profile-modal__backdrop {
    background: rgba(7, 8, 12, 0.72);
    inset: 0;
    position: absolute;
}

.profile-modal__dialog {
    background: #14151b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-sizing: border-box;
    max-height: min(760px, calc(100vh - 40px));
    max-width: 700px;
    overflow-y: auto;
    padding: 22px;
    position: relative;
    scrollbar-color: rgba(127, 139, 153, 0.55) transparent;
    scrollbar-width: thin;
    width: 100%;
}

.profile-modal__dialog::-webkit-scrollbar {
    width: 8px;
}

.profile-modal__dialog::-webkit-scrollbar-track {
    background: transparent;
}

.profile-modal__dialog::-webkit-scrollbar-thumb {
    background: rgba(127, 139, 153, 0.55);
    border-radius: 999px;
}

.profile-modal__dialog::-webkit-scrollbar-thumb:hover {
    background: rgba(142, 175, 208, 0.7);
}

.profile-modal__header {
    align-items: start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
}

.profile-modal__header h2 {
    color: var(--text-primary);
    font: 400 20px/1.2 Georgia, "Times New Roman", serif;
    margin: 0 0 6px;
}

.profile-modal__header p,
.profile-modal__help {
    color: var(--text-muted);
    font: 13px/1.5 Arial, Helvetica, sans-serif;
    margin: 0;
}

.profile-modal__close {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
    font: 24px/1 Arial, Helvetica, sans-serif;
    padding: 0 2px;
}

.profile-modal__form {
    display: grid;
    gap: 16px;
}

.profile-modal__form > label,
.profile-modal__field,
.profile-modal__extra-grid label {
    display: grid;
    gap: 7px;
}

.profile-modal__form label > span,
.profile-modal__field > span,
.profile-modal__extras legend {
    color: var(--text-secondary);
    font: 13px/1.2 Arial, Helvetica, sans-serif;
}

.profile-modal__form input[type="text"],
.profile-modal__form select,
.profile-modal__form textarea {
    background: #101116;
    border: 1px solid rgba(132, 151, 174, 0.2);
    border-radius: 16px;
    box-sizing: border-box;
    color: var(--text-primary);
    font: 14px/1.4 Arial, Helvetica, sans-serif;
    min-width: 0;
    outline: none;
    padding: 10px 11px;
    width: 100%;
}

.profile-modal__form textarea {
    resize: vertical;
}

.profile-modal__form input[type="text"],
.profile-modal__form textarea {
    border-radius: 24px;
    min-height: 50px;
    padding: 11px 12px;
}

.profile-modal__form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(142, 175, 208, 0.78) 50%), linear-gradient(135deg, rgba(142, 175, 208, 0.78) 50%, transparent 50%);
    background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    border-radius: 24px;
    min-height: 50px;
    padding: 11px 40px 11px 12px;
}

.profile-modal__form input[type="text"]::placeholder,
.profile-modal__form textarea::placeholder {
    color: var(--text-muted);
}

.profile-modal__form input:focus,
.profile-modal__form select:focus,
.profile-modal__form textarea:focus {
    border-color: rgba(142, 175, 208, 0.55);
}

.profile-modal__form input[type="text"]:focus,
.profile-modal__form textarea:focus,
.profile-modal__form select:focus {
    box-shadow: 0 0 0 2px rgba(142, 175, 208, 0.1);
}

.profile-modal__extras:disabled {
    opacity: 0.72;
}

.profile-modal__extras:disabled input,
.profile-modal__extras:disabled select {
    color: var(--text-secondary);
    cursor: not-allowed;
}

.profile-modal__extra-locked {
    color: var(--text-muted);
    font: 12px/1.5 Arial, Helvetica, sans-serif;
    margin: 8px 0 14px;
}

.profile-modal__extras:disabled > .profile-modal__extra-locked {
    margin-top: 4px;
}

.profile-modal__extra-locked .profile-modal__badge-link {
    display: block;
    margin: 7px 0 0;
}

.profile-modal__form small {
    color: var(--text-muted);
    font: 11px/1.3 Arial, Helvetica, sans-serif;
}

.profile-modal__extras {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 4px 0 0;
    padding: 18px 0 0;
}

.profile-modal__extras legend {
    align-items: center;
    display: flex;
    gap: 10px;
    padding: 0;
}

.profile-modal__extras legend em {
    background: rgba(102, 175, 146, 0.14);
    border: 1px solid rgba(102, 175, 146, 0.34);
    border-radius: 999px;
    color: #84c2a5;
    font: 700 11px/1 Arial, Helvetica, sans-serif;
    padding: 5px 8px;
}

.profile-modal__extras:disabled legend em {
    background: rgba(182, 111, 128, 0.14);
    border-color: rgba(182, 111, 128, 0.36);
    color: #e3a6b5;
}

.profile-modal__extras:disabled {
    opacity: 0.6;
}

.profile-modal__help {
    margin: 10px 0 14px;
}

.profile-modal__badge-link {
    color: var(--text-link);
    display: inline-block;
    font: 12px/1.3 Arial, Helvetica, sans-serif;
    margin-bottom: 14px;
    text-decoration: none;
}

.profile-modal__badge-link:hover {
    text-decoration: underline;
}

.profile-modal__extra-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
    margin-top: 0;
}

.profile-modal__preview {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    gap: 12px;
    margin-top: 16px;
    min-height: 62px;
    overflow: visible;
    padding: 14px 0 4px;
}

.profile-modal__preview > span {
    color: var(--text-muted);
    font: 11px/1 Arial, Helvetica, sans-serif;
}

.profile-modal__preview strong {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
}

.profile-name,
.profile-preview-name {
    box-sizing: content-box;
    display: inline-block;
    flex: 0 0 auto;
    font-size: calc(1em * var(--name-font-scale, 1));
    font-weight: 700;
    justify-self: start;
    line-height: 1.3;
    max-width: 100%;
    overflow: visible;
    padding-bottom: .12em;
    padding-top: .02em;
    vertical-align: baseline;
    width: fit-content;
}

.profile-modal__preview strong.profile-name {
    font-size: calc(16px * var(--name-font-scale, 1));
}

.name-style-default { --name-accent: var(--text-link); --name-gradient: linear-gradient(90deg, var(--text-link), var(--text-link)); color: var(--text-primary); }
.name-style-rose { --name-accent: #ff9fc8; --name-gradient: linear-gradient(90deg, #ff9fc8, #ff9fc8); color: #ff9fc8; text-shadow: 0 0 10px rgba(255, 120, 176, .18); }
.name-style-blue { --name-accent: #8fc7ff; --name-gradient: linear-gradient(90deg, #8fc7ff, #8fc7ff); color: #8fc7ff; text-shadow: 0 0 10px rgba(119, 180, 255, .16); }
.name-style-gold { --name-accent: #ffd77c; --name-gradient: linear-gradient(90deg, #ffd77c, #ffd77c); color: #ffd77c; text-shadow: 0 0 10px rgba(255, 199, 92, .18); }
.name-style-violet { --name-accent: #c9a6ff; --name-gradient: linear-gradient(90deg, #c9a6ff, #c9a6ff); color: #c9a6ff; text-shadow: 0 0 10px rgba(188, 143, 255, .18); }

.name-style-dawn,
.name-style-aurora,
.name-style-pearl,
.name-style-ember,
.name-style-midnight,
.name-style-sakura,
.name-style-citrus,
.name-style-berry,
.name-style-lagoon,
.name-style-copper,
.name-style-opal,
.name-style-metal,
.name-style-glass,
.name-style-rainbow {
    color: #fff;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    --name-accent: var(--text-link);
    --name-gradient: linear-gradient(90deg, var(--text-link), var(--text-link));
}

.name-style-dawn { --name-accent: #8fc7ff; --name-gradient: linear-gradient(90deg, #8fc7ff, #c9a6ff, #ff9fc8); background-image: var(--name-gradient); }
.name-style-aurora { --name-accent: #7fe6c7; --name-gradient: linear-gradient(90deg, #7fe6c7, #8fc7ff, #ffd77c); background-image: var(--name-gradient); }
.name-style-pearl { --name-accent: #b9d8ff; --name-gradient: linear-gradient(90deg, #f4fbff, #b9d8ff, #f1c8ff); background-image: var(--name-gradient); }
.name-style-ember { --name-accent: #ffae73; --name-gradient: linear-gradient(90deg, #ffe29a, #ffae73, #ff8fb7); background-image: var(--name-gradient); }
.name-style-midnight { --name-accent: #9ecbff; --name-gradient: linear-gradient(90deg, #9ecbff, #b8a7ff, #f0d6ff); background-image: var(--name-gradient); }
.name-style-sakura { --name-accent: #ff9fc8; --name-gradient: linear-gradient(90deg, #ffd1dc, #ff9fc8, #c9a6ff); background-image: var(--name-gradient); }
.name-style-citrus { --name-accent: #b7f56b; --name-gradient: linear-gradient(90deg, #fff07a, #b7f56b, #64e6c3); background-image: var(--name-gradient); }
.name-style-berry { --name-accent: #ff6fae; --name-gradient: linear-gradient(90deg, #ff6fae, #c77dff, #7aa7ff); background-image: var(--name-gradient); }
.name-style-lagoon { --name-accent: #64f4d4; --name-gradient: linear-gradient(90deg, #64f4d4, #5cc8ff, #4f8dff); background-image: var(--name-gradient); }
.name-style-copper { --name-accent: #ffbf7a; --name-gradient: linear-gradient(90deg, #ffbf7a, #d97b48, #ffd6a5); background-image: var(--name-gradient); }
.name-style-opal { --name-accent: #9fb8ff; --name-gradient: linear-gradient(90deg, #d7fff1, #9fb8ff, #ffb7e5, #ffe6a7); background-image: var(--name-gradient); }
.name-style-metal { --name-accent: #f8e8b0; --name-gradient: linear-gradient(90deg, #f8e8b0, #fff7dc, #c9a76a, #fff0b8); background-image: var(--name-gradient); text-shadow: 0 0 10px rgba(255, 215, 130, .20); }
.name-style-glass { --name-accent: #a8d8ff; --name-gradient: linear-gradient(90deg, #fff, #a8d8ff, #f6fbff, #c9a6ff); background-image: var(--name-gradient); text-shadow: 0 0 12px rgba(180, 220, 255, .24); }
.name-style-rainbow { --name-accent: #ff8fb7; --name-gradient: linear-gradient(90deg, #ff8fb7, #ffd77c, #8ee6b2, #8fc7ff, #c9a6ff); background-image: var(--name-gradient); }

.name-font-default { --name-font-scale: 1; font-family: Arial, Helvetica, sans-serif; font-weight: 700; }
.name-font-serif { --name-font-scale: 1; font-family: "Playfair Display", Georgia, "Times New Roman", serif !important; font-weight: 700 !important; font-variant-numeric: lining-nums; }
.name-font-hand { --name-font-scale: 1.22; font-family: "Caveat", "Segoe Script", "Lucida Handwriting", "Brush Script MT", cursive !important; font-weight: 700 !important; letter-spacing: .015em; }
.name-font-soft { --name-font-scale: .98; font-family: "Nunito", "Trebuchet MS", "Arial Rounded MT Bold", "Segoe UI", sans-serif !important; font-weight: 800 !important; letter-spacing: .004em; }
.name-font-classic { --name-font-scale: 1.20; font-family: "Cormorant Garamond", "Palatino Linotype", "Book Antiqua", Georgia, serif !important; font-weight: 700 !important; letter-spacing: .02em; }

.name-effect-neon { filter: drop-shadow(0 0 4px rgba(127, 244, 255, .54)) drop-shadow(0 0 11px rgba(255, 111, 174, .26)); }
.name-effect-shimmer { background-size: 220% 100%; animation: nameShimmer 4.8s ease-in-out infinite; filter: brightness(1.04) drop-shadow(0 0 6px rgba(255, 255, 255, .16)); }
.name-effect-glow { filter: brightness(1.08) drop-shadow(0 0 8px rgba(150, 210, 255, .32)); }
.name-effect-metallic { filter: contrast(1.12) saturate(1.16) drop-shadow(0 0 5px rgba(255, 220, 140, .34)) drop-shadow(0 0 12px rgba(255, 176, 76, .22)); }

@keyframes nameShimmer {
    0%, 100% { background-position: 0% 50%; filter: brightness(1.03) drop-shadow(0 0 5px rgba(255, 255, 255, .14)); }
    50% { background-position: 100% 50%; filter: brightness(1.24) drop-shadow(0 0 12px rgba(255, 255, 255, .32)); }
}

@media (prefers-reduced-motion: reduce) {
    .name-effect-shimmer { animation: none; background-position: 0% 50%; filter: brightness(1.04) drop-shadow(0 0 6px rgba(255, 255, 255, .16)); }
}

.profile-page__status,
.profile-modal__status {
    color: var(--text-link);
    min-height: 18px;
}

.profile-page__status:empty,
.profile-modal__status:empty {
    display: none;
}

.profile-page__avatar--fallback {
    align-items: center;
    background: #1b1e26;
    border: 1px solid rgba(132, 151, 174, 0.28);
    display: inline-flex;
    justify-content: center;
}

.profile-modal__actions {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-top: 4px;
    padding-top: 16px;
}

.profile-modal__action-buttons {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
    margin-left: auto;
}

.profile-modal__button {
    background: transparent;
    border: 1px solid rgba(132, 151, 174, 0.2);
    border-radius: 16px;
    box-sizing: border-box;
    color: var(--text-secondary);
    cursor: pointer;
    font: 13px/1 Arial, Helvetica, sans-serif;
    height: 34px;
    min-width: 78px;
    padding: 0 15px;
    text-align: center;
}

.profile-modal__button--primary {
    border-color: rgba(142, 175, 208, 0.36);
    color: var(--text-link);
}

.profile-modal__button:hover {
    background: rgba(142, 175, 208, 0.08);
}

.profile-modal__actions .profile-modal__status {
    flex: 1 1 240px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.35;
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.profile-modal__danger {
    align-items: center;
    background: rgba(38, 25, 31, 0.38);
    border: 1px solid rgba(182, 111, 128, 0.28);
    border-radius: 18px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: space-between;
    margin-top: 42px;
    padding: 16px 18px;
}

.profile-modal__danger > div {
    flex: 1 1 280px;
    min-width: 0;
}

.profile-modal__danger h3 {
    color: #d7a1ab;
    font: 700 14px/1.3 Arial, Helvetica, sans-serif;
    margin: 0 0 5px;
}

.profile-modal__danger p {
    color: var(--text-muted);
    font: 12px/1.45 Arial, Helvetica, sans-serif;
    margin: 0;
    max-width: 520px;
}

.profile-modal__button--danger {
    border-color: rgba(182, 111, 128, 0.42);
    color: #d7a1ab;
}

.profile-modal__button--danger:hover {
    background: rgba(182, 111, 128, 0.1);
    border-color: rgba(215, 161, 171, 0.62);
}

.account-delete-modal[hidden] {
    display: none;
}

.account-delete-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 30;
}

.account-delete-modal__backdrop {
    background: rgba(7, 8, 12, 0.78);
    inset: 0;
    position: absolute;
}

.account-delete-modal__dialog {
    background: #14151b;
    border: 1px solid rgba(182, 111, 128, 0.28);
    border-radius: 12px;
    box-sizing: border-box;
    max-width: 520px;
    padding: 22px;
    position: relative;
    width: 100%;
}

.account-delete-modal__header {
    align-items: start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 16px;
}

.account-delete-modal__header h2 {
    color: #e3a6b5;
    font: 400 20px/1.2 Georgia, "Times New Roman", serif;
    margin: 0 0 8px;
}

.account-delete-modal__header p {
    color: var(--text-muted);
    font: 13px/1.55 Arial, Helvetica, sans-serif;
    margin: 0;
}

.account-delete-modal__close {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
    font: 24px/1 Arial, Helvetica, sans-serif;
    padding: 0 2px;
}

.account-delete-modal__form {
    display: grid;
    gap: 16px;
}

.account-delete-modal__field {
    display: grid;
    gap: 7px;
}

.account-delete-modal__field > span {
    color: var(--text-secondary);
    font: 13px/1.2 Arial, Helvetica, sans-serif;
}

.account-delete-modal__field input {
    background: #101116;
    border: 1px solid rgba(132, 151, 174, 0.2);
    border-radius: 16px;
    box-sizing: border-box;
    color: var(--text-primary);
    font: 14px/1.4 Arial, Helvetica, sans-serif;
    min-width: 0;
    outline: none;
    padding: 10px 11px;
    width: 100%;
}

.account-delete-modal__field input:focus {
    border-color: rgba(215, 161, 171, 0.58);
}

.account-delete-modal__status {
    color: #e3a6b5;
    font: 13px/1.4 Arial, Helvetica, sans-serif;
    margin: 0;
    min-height: 18px;
    overflow-wrap: anywhere;
}

.account-delete-modal__status:empty {
    display: none;
}

.account-delete-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.legal-page {
    margin: 0 auto;
    max-width: 920px;
    padding: var(--page-header-padding-top) var(--site-container-padding) 56px;
}

.legal-page__intro {
    margin-bottom: 30px;
    max-width: 820px;
}

.legal-page__intro h1 {
    color: var(--text-primary);
    font: 400 24px/1.1 Georgia, "Times New Roman", serif;
    margin: 0 0 10px;
}

.legal-page__intro p,
.legal-page__section p,
.legal-page__section li {
    color: var(--text-secondary);
    font: 14px/1.65 Arial, Helvetica, sans-serif;
}

.legal-page__intro p,
.legal-page__section p {
    margin: 0 0 12px;
}

.legal-page__meta {
    color: var(--text-muted) !important;
    font-size: 12px !important;
    margin-top: 14px !important;
}

.legal-page__section {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 22px 0 10px;
}

.legal-page__section h2 {
    color: var(--text-primary);
    font: 400 17px/1.25 Georgia, "Times New Roman", serif;
    margin: 0 0 11px;
}

.legal-page__section ul {
    margin: 0 0 12px;
    padding-left: 22px;
}

.legal-page__section li + li {
    margin-top: 5px;
}

.legal-page__link,
.legal-page__link:visited {
    color: var(--text-link);
    text-decoration: none;
}

.legal-page__link:hover {
    color: var(--text-primary);
}

.legal-page__link:focus-visible {
    outline: 2px solid rgba(142, 175, 208, 0.65);
    outline-offset: 2px;
}

.legal-page__note {
    color: var(--text-muted) !important;
    font-size: 12px !important;
}

.legal-page__section--pending {
    border-top-color: rgba(213, 170, 111, 0.2);
}

.legal-page__section--pending h2 {
    color: #d8b47e;
}

.legal-page code {
    color: var(--text-primary);
    font: 0.95em/1.3 Consolas, monospace;
}

@media (max-width: 700px) {
    .legal-page {
        padding: var(--page-header-padding-top) 14px 42px;
    }

    .legal-page__intro h1 {
        font-size: 22px;
    }

    .legal-page__intro p,
    .legal-page__section p,
    .legal-page__section li {
        font-size: 13px;
        line-height: 1.65;
    }
}

.support-page {
    margin: 0 auto;
    max-width: var(--site-container-width);
    padding: var(--page-header-padding-top) var(--site-container-padding) 54px;
}

.support-page__intro {
    margin-bottom: 28px;
    max-width: 900px;
}

.support-page__intro h1 {
    color: var(--text-primary);
    font: 400 24px/1.1 Georgia, "Times New Roman", serif;
    margin: 0 0 8px;
}

.support-page__intro p,
.support-page__note p,
.support-option p {
    color: var(--text-secondary);
    font: 14px/1.5 Arial, Helvetica, sans-serif;
    margin: 0;
}

.support-page__content {
    max-width: none;
}

.support-section {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 22px 0 24px;
}

.support-section h2,
.support-page__note h2 {
    color: var(--text-primary);
    font: 400 16px/1.2 Georgia, "Times New Roman", serif;
    margin: 0 0 12px;
}

.support-section p {
    color: var(--text-secondary);
    font: 14px/1.6 Arial, Helvetica, sans-serif;
    margin: 0 0 10px;
    max-width: 950px;
}

.support-section--options {
    padding-bottom: 20px;
}

.support-page__action {
    background: transparent;
    border: 1px solid rgba(142, 175, 208, 0.32);
    border-radius: 999px;
    color: var(--text-link);
    display: inline-flex;
    font: 13px/1.3 Arial, Helvetica, sans-serif;
    margin-top: 8px;
    padding: 10px 15px;
    text-decoration: none;
}

.support-page__action:hover {
    background: rgba(142, 175, 208, 0.08);
}

.support-page__inline-link,
.support-page__inline-link:visited {
    color: var(--text-link);
    text-decoration: none;
    transition: color 160ms ease;
}

.support-page__inline-link:hover,
.support-page__inline-link:focus-visible {
    color: var(--text-primary);
    text-decoration: none;
}

.support-page__inline-link:focus-visible {
    outline: 2px solid rgba(142, 175, 208, 0.65);
    outline-offset: 2px;
}

.support-option-list {
    display: grid;
    gap: 32px 56px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
}

.support-option {
    align-items: center;
    display: grid;
    gap: 24px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 18px 0 0;
}

.support-option__copy {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.support-option__media {
    align-self: center;
    display: block;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    max-width: 100%;
}

.support-option h3 {
    color: var(--text-primary);
    font: 400 15px/1.2 Georgia, "Times New Roman", serif;
    margin: 0 0 6px;
}

.support-option p {
    margin-bottom: 8px;
}

.support-option__qr {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    flex: 0 0 150px;
    font: 11px/1.3 Arial, Helvetica, sans-serif;
    height: 150px;
    justify-content: center;
    width: 150px;
    text-align: center;
}

.support-option__qr a {
    border-radius: 8px;
    display: block;
    height: 100%;
    max-width: 100%;
    width: 100%;
}

.support-option__qr a:focus-visible {
    outline: 2px solid rgba(142, 175, 208, 0.65);
    outline-offset: 3px;
}

.support-option__qr img {
    display: block;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

.support-option__banner {
    display: block;
    height: 150px;
    max-width: 100%;
    object-fit: contain;
}

@media (min-width: 701px) {
    .support-option--kofi .support-option__banner {
        width: 220px;
    }
}

.support-page__note {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 0;
    padding-top: 18px;
}

.support-page__note p {
    color: var(--text-muted);
    font: 13px/1.5 Arial, Helvetica, sans-serif;
    margin: 0;
}

.contact-page {
    margin: 0 auto;
    max-width: var(--site-container-width);
    padding: var(--page-header-padding-top) var(--site-container-padding) 54px;
}

.contact-page__intro {
    margin: 0 auto 26px;
    max-width: var(--site-container-width);
}

.contact-page__intro h1 {
    color: var(--text-primary);
    font: 400 24px/1.1 Georgia, "Times New Roman", serif;
    margin: 0 0 8px;
}

.contact-page__intro p,
.contact-page__channels p {
    color: var(--text-secondary);
    font: 14px/1.5 Arial, Helvetica, sans-serif;
    margin: 0;
}

.contact-page__layout {
    display: grid;
    column-gap: 64px;
    row-gap: 42px;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
    margin-inline: auto;
    max-width: var(--site-container-width);
}

.contact-page__form-area > h2,
.contact-page__channel h2,
.contact-page__channels > h2 {
    color: var(--text-primary);
    font: 400 16px/1.2 Georgia, "Times New Roman", serif;
    margin: 0 0 10px;
}

.contact-page__channels {
    display: grid;
    align-content: start;
    gap: 0;
    padding-top: 2px;
}

.contact-page__channels > h2 {
    margin-bottom: 30px;
}

.contact-page__channel {
    column-gap: 14px;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
}

.contact-page__channel + .contact-page__channel {
    margin-top: 34px;
}

.contact-page__channel-icon {
    align-items: flex-start;
    display: flex;
    justify-content: center;
    padding-top: 1px;
}

.contact-page__channel-icon-image {
    display: block;
    filter: invert(73%) sepia(12%) saturate(465%) hue-rotate(169deg) brightness(91%);
    height: 32px;
    object-fit: contain;
    width: 32px;
}

.contact-page__channel-content {
    min-width: 0;
}

.contact-page__channel-content p,
.contact-page__fallback {
    color: var(--text-secondary);
    font: 13px/1.5 Arial, Helvetica, sans-serif;
    margin: 0;
}

.contact-page__facebook-link {
    display: inline-flex;
    text-decoration: none;
}

.contact-page__facebook-link img {
    display: block;
    height: 72px;
    object-fit: contain;
    transform: translateY(-20px);
    width: 72px;
}

.contact-page__facebook-link:hover {
    opacity: 0.86;
}

.contact-page__facebook-title {
    color: inherit;
    text-decoration: none;
}

.contact-page__facebook-title:hover {
    color: var(--text-link);
}

.contact-page__email {
    color: var(--text-link);
    font: 14px/1.3 Arial, Helvetica, sans-serif;
    text-decoration: none;
}

.contact-page__email:hover {
    text-decoration: underline;
}

.contact-page__action {
    background: transparent;
    border: 1px solid rgba(142, 175, 208, 0.32);
    border-radius: 999px;
    color: var(--text-link);
    display: inline-flex;
    font: 13px/1 Arial, Helvetica, sans-serif;
    margin-top: 14px;
    padding: 10px 15px;
    text-decoration: none;
}

.contact-page__action:hover {
    background: rgba(142, 175, 208, 0.08);
}

.contact-page__form {
    display: grid;
    gap: 7px;
    margin-top: 20px;
}

.contact-page__form label {
    color: var(--text-secondary);
    font: 13px/1.2 Arial, Helvetica, sans-serif;
    text-indent: 6px;
}

.contact-page__form input:not([type="file"]),
.contact-page__form textarea {
    background: #101116;
    border: 1px solid rgba(132, 151, 174, 0.2);
    border-radius: 24px;
    box-sizing: border-box;
    color: var(--text-primary);
    font: 14px/1.4 Arial, Helvetica, sans-serif;
    margin-bottom: 6px;
    outline: none;
    padding: 11px 12px;
    width: 100%;
}

.contact-page__form input:not([type="file"]):focus,
.contact-page__form textarea:focus {
    border-color: rgba(142, 175, 208, 0.55);
    box-shadow: 0 0 0 2px rgba(142, 175, 208, 0.1);
}

.contact-page__form textarea {
    min-height: 132px;
    resize: vertical;
}

.contact-page__dropzone {
    align-items: center;
    border: 1px dashed rgba(132, 151, 174, 0.34);
    border-radius: 24px;
    box-sizing: border-box;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
    min-height: 88px;
    padding: 16px 18px;
    text-align: center;
    transition: background-color 140ms ease, border-color 140ms ease;
    width: 100%;
}

.contact-page__dropzone:hover,
.contact-page__dropzone.is-dragover {
    background: rgba(142, 175, 208, 0.05);
    border-color: rgba(142, 175, 208, 0.55);
}

.contact-page__dropzone:focus-visible {
    outline: 2px solid rgba(142, 175, 208, 0.55);
    outline-offset: 2px;
}

.contact-page__file-input {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.contact-page__dropzone-empty,
.contact-page__dropzone-selected {
    align-items: center;
    display: flex;
    gap: 5px;
}

.contact-page__dropzone-empty[hidden],
.contact-page__dropzone-selected[hidden],
.contact-page__file-preview[hidden] {
    display: none;
}

.contact-page__dropzone-empty {
    flex-direction: column;
}

.contact-page__dropzone-selected {
    column-gap: 12px;
    justify-content: space-between;
    min-width: 0;
    width: 100%;
}

.contact-page__dropzone-empty strong,
.contact-page__file-details > span {
    color: var(--text-secondary);
    font: 14px/1.4 Arial, Helvetica, sans-serif;
    font-weight: 400;
}

.contact-page__file-details {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    overflow: hidden;
    text-align: left;
}

.contact-page__file-details > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-page__file-details > small {
    color: var(--text-muted);
    font: 12px/1.3 Arial, Helvetica, sans-serif;
}

.contact-page__dropzone-empty small {
    color: var(--text-muted);
    font: 12px/1.3 Arial, Helvetica, sans-serif;
}

.contact-page__file-preview {
    border-radius: 12px;
    flex: 0 0 44px;
    height: 44px;
    object-fit: cover;
    width: 44px;
}

.contact-page__dropzone-selected button {
    background: transparent;
    border: 1px solid rgba(142, 175, 208, 0.32);
    border-radius: 999px;
    color: var(--text-link);
    cursor: pointer;
    font: 12px/1.2 Arial, Helvetica, sans-serif;
    padding: 7px 11px;
}

.contact-page__dropzone-selected button:hover {
    background: rgba(142, 175, 208, 0.08);
}

.contact-page__submit {
    background: transparent;
    border: 1px solid rgba(142, 175, 208, 0.32);
    border-radius: 999px;
    color: var(--text-link);
    cursor: pointer;
    font: 13px/1 Arial, Helvetica, sans-serif;
    margin-top: 4px;
    padding: 10px 16px;
}

.contact-page__form-actions {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-top: 4px;
}

.contact-page__feedback {
    min-height: 18px;
}

.contact-page__submit:hover {
    background: rgba(142, 175, 208, 0.08);
}

.contact-page__notice {
    font: 13px/1.4 Arial, Helvetica, sans-serif;
    margin: 0;
}

.contact-page__notice--success {
    color: #9bd0ad;
}

.contact-page__notice--error,
.contact-page__error {
    color: #e59aa2;
}

.contact-page__error {
    font: 12px/1.3 Arial, Helvetica, sans-serif;
    margin: -3px 0 4px;
}

.contact-page__honeypot {
    height: 0;
    left: -9999px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.contact-page__fallback {
    grid-column: 1 / -1;
    margin: 0;
}

.project-card {
    aspect-ratio: 16 / 9;
    background: #0f1014;
    border: 1px solid rgba(132, 151, 174, 0.14);
    border-radius: 10px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
    color: var(--text-primary);
    display: block;
    overflow: hidden;
    position: relative;
    text-decoration: none;
}

.project-card__link {
    color: inherit;
    display: block;
    inset: 0;
    position: absolute;
    text-decoration: none;
}

.project-card__image {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.project-card__shade {
    background:
        linear-gradient(180deg, rgba(15, 16, 20, 0.14) 0%, rgba(15, 16, 20, 0.02) 42%, rgba(15, 16, 20, 0.86) 100%),
        linear-gradient(90deg, rgba(15, 16, 20, 0.22) 0%, rgba(15, 16, 20, 0) 56%);
    inset: 0;
    position: absolute;
}

.project-card__badges {
    align-items: start;
    display: flex;
    inset: 12px 12px auto 12px;
    justify-content: space-between;
    position: absolute;
}

.project-card__badges--age-only {
    justify-content: flex-end;
}

.project-card__status {
    background: rgba(71, 125, 98, 0.9);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 7px;
}

.project-card__status--szunetel {
    background: rgba(145, 80, 88, 0.9);
}

.project-card__status--tervezett {
    background: rgba(75, 111, 153, 0.9);
}

.project-card__status--befejezett {
    background: rgba(112, 87, 145, 0.9);
}

.project-card__age {
    display: block;
    height: 22px;
    object-fit: contain;
    width: 22px;
}

.project-card__content {
    bottom: 18px;
    left: 13px;
    position: absolute;
    right: 72px;
    z-index: 1;
}

.project-card__content h3 {
    color: var(--text-primary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.05;
    margin: 0 0 8px;
}

@media (min-width: 701px) {
    .project-card__content h3 {
        font-size: 17.5px;
    }
}

.project-card__meta {
    align-items: center;
    color: var(--text-secondary);
    display: flex;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
    min-width: 0;
}

.project-card__meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-card__updated,
.project-list__updated {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    min-width: 0;
}

.project-new-badge {
    align-items: center;
    background: rgba(214, 78, 108, 0.82);
    border: 1px solid rgba(246, 150, 169, 0.52);
    border-radius: 999px;
    color: #fff5f7;
    display: inline-flex;
    flex: 0 0 auto;
    font: 700 9px/1 Arial, Helvetica, sans-serif;
    justify-content: center;
    padding: 3px 6px;
    white-space: nowrap;
}

.project-new-badge .project-new-badge__label {
    display: block;
    overflow: visible;
    text-overflow: clip;
    transform: translate(-0.5px, 1px);
    white-space: nowrap;
}

.project-list__chapter .project-new-badge {
    margin-left: 2px;
}

.project-card__avatar {
    border: 1px solid rgba(143, 194, 255, 0.55);
    border-radius: 999px;
    flex: 0 0 auto;
    height: 18px;
    object-fit: cover;
    width: 18px;
}

.project-card__avatar--fallback {
    align-items: center;
    background: #2b3540;
    color: var(--text-primary);
    display: inline-flex;
    font: 700 10px/1 Arial, Helvetica, sans-serif;
    justify-content: center;
}

.project-card__likes {
    align-items: center;
    appearance: none;
    background: rgba(15, 16, 20, 0.72);
    border: 1px solid rgba(143, 194, 255, 0.18);
    border-radius: 999px;
    bottom: 12px;
    color: var(--text-secondary);
    display: inline-flex;
    cursor: pointer;
    font-size: 12px;
    gap: 3px;
    padding: 7px 8px;
    position: absolute;
    right: 10px;
    z-index: 1;
}

.project-card__likes > span:not(.icon-heart) {
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1;
}

.project-card__likes .icon-heart {
    color: var(--text-link);
    font-size: 14px;
}

.project-card__likes.is-liked .icon-heart {
    color: #8fc4ff;
}

.project-card__likes.is-unlike-armed .icon-heart {
    color: #d98a96;
}

.project-card__likes.is-liked .icon-heart svg {
    fill: currentColor;
}

.project-card__likes:hover {
    border-color: rgba(143, 194, 255, 0.42);
}

.project-card__likes:focus-visible {
    outline: 2px solid rgba(142, 175, 208, 0.8);
    outline-offset: 2px;
}

.project-detail {
    margin: 0 auto;
    max-width: var(--site-container-width);
    padding: 34px var(--site-container-padding) 56px;
}

.project-detail__top {
    align-items: stretch;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
}

.project-info,
.project-chapters,
.project-comments {
    background: #14151b;
    border: 0;
    border-radius: 0;
}

.project-info {
    overflow: hidden;
}

.project-info__cover-wrap {
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.project-info__cover {
    display: block;
    filter: brightness(0.86) saturate(0.94);
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.project-info__type,
.project-info__age {
    position: absolute;
}

.project-info__type {
    align-items: center;
    background: rgba(20, 21, 27, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    color: var(--text-primary);
    display: inline-flex;
    font: 700 10px/1 Arial, Helvetica, sans-serif;
    gap: 4px;
    left: 12px;
    padding: 4px 6px;
    top: 12px;
}

.project-info__type img {
    aspect-ratio: 4 / 3;
    display: block;
    height: 10px;
    object-fit: cover;
    width: 14px;
}

.project-info__age {
    bottom: auto;
    left: auto;
    right: 12px;
    top: 12px;
}

.project-info__body {
    padding: 18px;
}

.project-info__title-row,
.project-chapters__header,
.project-comments__header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.project-info__title-row h1,
.project-chapters h2,
.project-comments h2 {
    color: var(--text-primary);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    margin: 0;
}

.project-info__title-row h1 {
    font-size: 22px;
}

.project-info__status {
    align-items: center;
    color: var(--text-secondary);
    display: inline-flex;
    font: 12px/1.2 Arial, Helvetica, sans-serif;
    gap: 7px;
    white-space: nowrap;
}

.project-info__status i {
    background: #66af92;
    border-radius: 999px;
    height: 8px;
    width: 8px;
}

.project-info__subtitle,
.project-info__creator,
.project-info__description {
    color: var(--text-secondary);
    font: 13px/1.58 Arial, Helvetica, sans-serif;
    margin: 8px 0 0;
}

.project-info__creator {
    color: var(--text-muted);
    margin-top: 2px;
}

.project-info__publishers {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    font: 13px/1.3 Arial, Helvetica, sans-serif;
    gap: 7px;
    margin-top: 4px;
}

.project-info__publisher-label {
    flex: 0 0 auto;
}

.project-info__publisher-list {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}

.project-info__publisher-list a {
    align-items: center;
    color: var(--text-link);
    display: inline-flex;
}

.project-info__publisher-list img {
    aspect-ratio: 1;
    border-radius: 50%;
    display: block;
    height: 16px;
    object-fit: cover;
    object-position: center;
    width: 16px;
}

.project-info__publisher-list img[hidden] {
    display: none;
}

.project-info__publisher-fallback {
    color: var(--text-link);
}

.project-info__publisher-list > span {
    color: var(--text-link);
}

.project-info__genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.project-info__genres span {
    border: 1px solid rgba(142, 175, 208, 0.38);
    border-radius: 999px;
    color: var(--text-link);
    font: 700 11px/1 Arial, Helvetica, sans-serif;
    padding: 6px 9px;
}

.project-info__description {
    color: var(--text-soft-primary);
    margin-top: 16px;
    text-align: justify;
}

.project-info__actions {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

.project-like-button {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font: 12px/1 Arial, Helvetica, sans-serif;
    gap: 4px;
    justify-content: center;
    margin-right: auto;
    min-width: 60px;
    padding: 7px 7px;
}

.project-like-button .icon-heart--medium {
    font-size: 16px;
}

.project-like-button.is-liked {
    background: transparent;
    color: var(--text-link);
}

.project-like-button.is-liked .icon-heart {
    color: #8fc4ff;
}

.project-like-button.is-unlike-armed .icon-heart {
    color: #d98a96;
}

.project-like-button.is-liked .icon-heart svg {
    fill: currentColor;
}

.project-info__action {
    min-width: 78px;
    text-align: center;
}

.project-info__likes {
    border-radius: 999px;
    color: var(--text-link);
    margin-right: auto;
}

.project-like-button:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-link);
}

.project-like-button:focus-visible {
    outline: 2px solid rgba(142, 175, 208, 0.8);
    outline-offset: 2px;
}

.project-chapters {
    min-width: 0;
    overflow: hidden;
}

.project-chapters__header,
.project-comments__header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 18px;
    padding-bottom: 10px;
}

.project-chapters h2,
.project-comments h2 {
    font-size: 19px;
}

.project-chapters__header > span,
.project-comments h2 span,
.project-chapters__translator {
    color: var(--text-muted);
    font: 12px/1.2 Arial, Helvetica, sans-serif;
}

.project-chapters__translator {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 10px;
    padding: 14px 18px;
    text-transform: uppercase;
}

.project-chapters__translator strong {
    color: var(--text-soft-primary);
}

.project-chapters__list {
    max-height: 470px;
    overflow-y: auto;
    padding: 7px 10px 10px;
}

.project-chapter {
    align-items: center;
    background: rgba(8, 9, 13, 0.64);
    border-radius: 14px;
    color: var(--text-muted);
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    margin-bottom: 4px;
    min-height: 26px;
    padding: 0 9px;
    padding-left: 10px;
    text-decoration: none;
}

.project-chapter strong {
    color: color-mix(in srgb, var(--text-link) 84%, var(--text-muted));
    font: 600 12px/1.2 Arial, Helvetica, sans-serif;
}

.project-chapter.is-read > strong {
    color: #52616d;
}

.project-chapter.is-extra > strong {
    color: #d0d4d8;
}

.project-chapter.is-read:hover > strong,
.project-chapter.is-read:focus-visible > strong {
    color: var(--text-link);
}

.project-chapter strong small {
    color: var(--text-muted);
    font: 400 11px/1.2 Arial, Helvetica, sans-serif;
    margin-left: 4px;
}

.project-chapter__stats,
.project-chapter__updated {
    font: 11px/1.2 Arial, Helvetica, sans-serif;
    white-space: nowrap;
}

.project-chapter__updated--short {
    display: none;
}

.project-chapter__uploader {
    align-items: center;
    color: var(--text-soft-primary);
    display: inline-flex;
    font: 11px/1.2 Arial, Helvetica, sans-serif;
    gap: 5px;
    justify-self: end;
    min-width: 0;
    white-space: nowrap;
}

.project-chapter__uploader img,
.project-chapter__uploader-avatar {
    border: 1px solid rgba(143, 194, 255, 0.35);
    border-radius: 999px;
    flex: 0 0 18px;
    height: 18px;
    object-fit: cover;
    width: 18px;
}

.project-chapter__uploader-avatar {
    align-items: center;
    background: #2b3540;
    color: var(--text-primary);
    display: inline-flex;
    font: 700 10px/1 Arial, Helvetica, sans-serif;
    justify-content: center;
}

.project-chapter__uploader > span:last-child {
    color: var(--text-muted);
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-chapter__stats {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.project-chapter__stat {
    align-items: center;
    display: inline-flex;
    gap: 4px;
}

.project-chapter__stat img {
    filter: invert(62%) sepia(8%) saturate(300%) hue-rotate(175deg) brightness(88%) contrast(86%);
    height: 13px;
    width: 13px;
}

.project-chapter:hover,
.project-info__actions a:hover {
    background: rgba(142, 175, 208, 0.08);
}

.project-comments {
    margin-top: 28px;
}

.project-comments__sort-label {
    display: inline-flex;
    position: relative;
}

.project-comments__sort-label::after {
    border-bottom: 1px solid var(--text-secondary);
    border-right: 1px solid var(--text-secondary);
    content: "";
    height: 5px;
    pointer-events: none;
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-65%) rotate(45deg);
    width: 5px;
}

.project-comments__sort {
    appearance: none;
    background: #14151b;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    color: var(--text-secondary);
    color-scheme: dark;
    cursor: pointer;
    font: 12px/1.2 Arial, Helvetica, sans-serif;
    padding: 7px 32px 7px 12px;
}

.project-comments__sort:focus {
    border-color: rgba(142, 175, 208, 0.38);
    outline: 0;
}

.project-comments__list {
    padding: 0 18px;
}

.project-comments__list.is-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 120ms ease;
}

.reader-comments__list.is-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 120ms ease;
}

.project-comments__load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 16px 18px 2px;
}

.project-comments__load-more {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    color: var(--text-muted);
    cursor: pointer;
    font: 11px/1 Arial, Helvetica, sans-serif;
    padding: 7px 11px;
}

.project-comments__load-more:hover,
.project-comments__load-more:focus-visible {
    border-color: rgba(142, 175, 208, 0.45);
    color: var(--text-primary);
    outline: none;
}

.project-comments__load-more:disabled {
    cursor: wait;
    opacity: 0.6;
}

.project-comment {
    display: flex;
    gap: 10px;
    padding: 20px 0;
}

.project-comment.comment--root,
.reader-comment.comment--root {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-comment.comment--root.comment--has-replies,
.reader-comment.comment--root.comment--has-replies {
    border-bottom: 0;
}

.project-comment.comment--root.comment--has-replies + .project-comment.comment--root-after,
.reader-comment.comment--root.comment--has-replies + .reader-comment.comment--root-after {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.project-comment.comment--reply,
.reader-comment.comment--reply {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-comment.comment--reply-last,
.reader-comment.comment--reply-last {
    border-bottom: 0;
}

.project-comment__avatar {
    align-items: center;
    background: #2b3540;
    border-radius: 999px;
    color: var(--text-primary);
    display: inline-flex;
    flex: 0 0 auto;
    font: 700 13px/1 Arial, Helvetica, sans-serif;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.project-comment__body,
.reader-comment__body {
    flex: 1 1 auto;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.project-comment__meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-identity-row,
.public-profile-card__name-row {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
}

.project-comment__meta strong:not(.profile-name) {
    color: var(--text-soft-primary);
    font: 700 13px/1.2 Arial, Helvetica, sans-serif;
}

.project-comment__meta span,
.project-comment__meta time {
    color: var(--text-muted);
    font: 11px/1.2 Arial, Helvetica, sans-serif;
}

.project-comment__meta .comment-gender,
.reader-comment__meta .comment-gender,
.profile-page__gender {
    align-items: center;
    display: inline-flex;
    flex: 0 0 15px;
    height: 15px;
    justify-content: center;
    line-height: 0;
    overflow: visible;
    width: 15px;
}

.profile-page__gender {
    transform: translateY(-4px);
}

.project-comment__meta .comment-gender img,
.reader-comment__meta .comment-gender img,
.profile-page__gender img {
    display: block;
    height: 15px;
    object-fit: contain;
    opacity: 0.9;
    width: 15px;
}

.comment-chapter-pill {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    font-size: 11px !important;
    line-height: 1 !important;
    padding: 2px 8px;
}

.project-comment p,
.reader-comment p {
    color: var(--text-secondary);
    font: 13px/1.45 Arial, Helvetica, sans-serif;
    margin-left: 0;
    margin-right: 0;
    margin: 10px 0 0;
}

.project-comment__actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.project-comment__actions > span,
.project-comment__actions > button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    color: var(--text-muted);
    font: 11px/1 Arial, Helvetica, sans-serif;
    padding: 5px 9px;
}

.icon-heart {
    display: inline-block;
    flex: 0 0 auto;
    line-height: 0;
}

.icon-heart svg {
    display: block;
    fill: none;
    height: 1em;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1em;
}

.icon-heart--small {
    font-size: 15px;
}

.icon-heart--medium {
    font-size: 19px;
}

.icon-heart--large {
    font-size: 23px;
}

.comment-like-count {
    align-items: center;
    display: inline-flex;
    gap: 4px;
}

.comment-like-count.is-liked {
    color: var(--text-link);
}

.comment-like-count.is-liked .icon-heart svg {
    fill: currentColor;
}

.comment-inline-form {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    max-width: 720px;
}

.comment-inline-form__field {
    display: block;
}

.comment-inline-form textarea {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--text-primary);
    font: 13px/1.45 Arial, Helvetica, sans-serif;
    min-height: 86px;
    padding: 9px 11px;
    resize: vertical;
    width: 100%;
}

.comment-inline-form textarea:focus {
    border-color: rgba(142, 175, 208, 0.5);
    outline: none;
}

.comment-inline-form__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-inline-form__actions button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    color: var(--text-muted);
    font: 11px/1 Arial, Helvetica, sans-serif;
    padding: 5px 9px;
}

.comment-inline-form__status {
    color: var(--text-muted);
    font: 11px/1.3 Arial, Helvetica, sans-serif;
}

.project-comment-composer,
.reader-comment-composer {
    display: grid;
    gap: 10px;
    margin: 22px 0 8px;
    width: 100%;
}

.project-comment-composer {
    margin-left: 18px;
    margin-right: 18px;
    width: calc(100% - 36px);
}

.project-comment-composer[hidden],
.reader-comment-composer[hidden] {
    display: none;
}

.comment-composer__reply-context {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    font: 12px/1.3 Arial, Helvetica, sans-serif;
    justify-content: space-between;
    margin-bottom: 1px;
    min-width: 0;
}

.comment-composer__reply-context[hidden] {
    display: none;
}

.comment-composer__reply-context strong {
    color: var(--text-secondary);
}

.comment-composer__reply-context button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    color: var(--text-muted);
    cursor: pointer;
    font: 11px/1 Arial, Helvetica, sans-serif;
    padding: 5px 9px;
}

.comment-composer__reply-context button:hover,
.comment-composer__reply-context button:focus-visible {
    border-color: rgba(142, 175, 208, 0.5);
    color: var(--text-primary);
}

.comment-composer__toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 0;
}

.comment-composer__tool {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    font: 700 0.82rem/1 Arial, Helvetica, sans-serif;
    height: 28px;
    justify-content: center;
    min-width: 28px;
    padding: 0 7px;
}

.comment-composer__tool:hover {
    background: rgba(142, 175, 208, 0.06);
    border-color: rgba(142, 175, 208, 0.38);
    color: var(--text-secondary);
}

.comment-composer__tool:focus-visible,
.comment-composer__emoji-picker button:focus-visible,
.comment-composer__image-status button:focus-visible,
.comment-composer__actions button:focus-visible {
    border-color: rgba(142, 175, 208, 0.65);
    outline: 2px solid rgba(142, 175, 208, 0.18);
    outline-offset: 1px;
}

.comment-composer__separator {
    background: rgba(255, 255, 255, 0.1);
    height: 18px;
    margin: 0 4px;
    width: 1px;
}

.comment-composer__emoji-picker {
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
}

.comment-composer__emoji-picker[hidden] {
    display: none;
}

.comment-composer__emoji-picker button {
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    cursor: pointer;
    min-width: 34px;
    height: 32px;
}

.comment-composer__image-status {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
    font: 11px/1.3 Arial, Helvetica, sans-serif;
    max-width: 100%;
    padding: 2px 0;
}

.comment-composer__image-status img {
    border-radius: 6px;
    display: block;
    height: auto;
    max-height: 240px;
    max-width: 240px;
    object-fit: contain;
    width: auto;
}

.comment-composer__attachment-meta {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.comment-composer__image-status button {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: var(--text-muted);
    cursor: pointer;
    font: 11px/1 Arial, Helvetica, sans-serif;
    padding: 5px 9px;
}

.comment-composer__editor {
    background: rgba(0, 0, 0, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    box-sizing: border-box;
    color: #f5f5f5;
    font: 13px/1.45 Arial, Helvetica, sans-serif;
    min-height: 138px;
    outline: none;
    padding: 12px 13px;
    white-space: pre-wrap;
    width: 100%;
}

.comment-composer__editor:empty::before {
    color: var(--text-muted);
    content: attr(data-placeholder);
    font: inherit;
    pointer-events: none;
}

.comment-composer__editor:focus {
    border-color: rgba(122, 162, 214, 0.55);
}

.comment-composer__counter {
    color: var(--text-muted);
    padding-top: 0;
    font: 11px/1.3 Arial, Helvetica, sans-serif;
    text-align: right;
}

.comment-content-link {
    color: var(--link-color, #8eb0d5);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.comment-spoiler {
    background: rgba(255, 255, 255, 0.08);
    border: 0;
    border-radius: 4px;
    color: transparent;
    cursor: pointer;
    display: inline;
    font: inherit;
    padding: 1px 4px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.comment-spoiler__label {
    color: var(--text-muted);
    font-size: 0.75em;
    margin-right: 4px;
    text-shadow: none;
}

.comment-spoiler__content {
    color: transparent;
}

.comment-spoiler.is-revealed {
    color: inherit;
    text-shadow: none;
}

.comment-spoiler.is-revealed .comment-spoiler__content {
    color: inherit;
}

.project-comment-composer textarea,
.reader-comment-composer textarea {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--text-primary);
    font: 13px/1.45 Arial, Helvetica, sans-serif;
    min-height: 112px;
    padding: 10px 12px;
    resize: vertical;
    width: 100%;
}

.project-comment-composer textarea:focus,
.reader-comment-composer textarea:focus {
    border-color: rgba(142, 175, 208, 0.5);
    outline: none;
}

.comment-composer__actions {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: -2px;
    width: 100%;
}

.comment-composer__actions button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    color: var(--text-muted);
    font: 11px/1 Arial, Helvetica, sans-serif;
    padding: 5px 9px;
}

.comment-composer__actions button[type="submit"] {
    align-self: flex-end;
    background: rgba(142, 175, 208, 0.06);
    border-color: rgba(142, 175, 208, 0.22);
    color: var(--text-secondary);
}

.comment-composer__actions button:hover {
    border-color: rgba(142, 175, 208, 0.5);
    color: var(--text-primary);
}

.comment-composer__actions span {
    align-self: stretch;
    color: var(--text-muted);
    font: 11px/1.3 Arial, Helvetica, sans-serif;
    min-height: 0;
}

@media (max-width: 560px) {
    .project-comment-composer,
    .reader-comment-composer {
        gap: 10px;
    }

    .project-comment-composer {
        margin-left: 15px;
        margin-right: 15px;
        width: calc(100% - 30px);
    }

    .comment-composer__reply-context {
        align-items: flex-start;
        gap: 8px;
    }

    .comment-composer__reply-context > span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .comment-composer__toolbar {
        row-gap: 6px;
    }

    .comment-composer__image-status {
        align-items: flex-start;
        max-width: 100%;
    }

    .comment-composer__image-status img {
        max-height: 220px;
        max-width: min(220px, 100%);
    }

    .comment-composer__actions button {
        align-self: flex-end;
    }
}

.project-comments__sort-form,
.reader-comments__sort-controls {
    display: inline-flex;
    margin: 0;
}

.project-comments__sort-status {
    align-self: center;
    color: var(--text-muted);
    font: 11px/1 Arial, Helvetica, sans-serif;
    margin-left: 8px;
}

.reader-comments__sort-status {
    align-self: center;
    color: var(--text-muted);
    font: 11px/1 Arial, Helvetica, sans-serif;
    margin-left: 8px;
}

.reader-comments__sort-controls {
    position: absolute;
    right: 0;
}

.project-comment__avatar,
.reader-comment__avatar {
    object-fit: cover;
}

.project-comment__text,
.reader-comment__text {
    white-space: pre-wrap;
}

.comment-replies {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 14px 0 0;
    padding: 2px 0 0;
}

.comment-replies .comment-replies {
    margin-left: 0;
    padding-left: 0;
}

.comment-replies .project-comment,
.comment-replies .reader-comment {
    padding-bottom: 12px;
    padding-top: 12px;
}

.comment-badges {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 4px;
}

.comment-profile-trigger {
    appearance: none;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.comment-profile-trigger--avatar {
    border-radius: 999px;
    display: block;
    flex: 0 0 auto;
    height: 34px;
    width: 34px;
}

.comment-profile-trigger--name {
    display: inline-flex;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    text-align: left;
}

.comment-identity-row .profile-name,
.public-profile-card__name-row .profile-name {
    min-width: 0;
    overflow: visible;
    overflow-wrap: anywhere;
    white-space: normal;
}

.comment-profile-trigger:hover .profile-name {
    filter: brightness(1.08);
}

.comment-profile-trigger:focus-visible {
    outline: 2px solid rgba(142, 175, 208, 0.45);
    outline-offset: 2px;
}

.public-profile-card {
    align-items: center;
    background: rgba(8, 9, 13, 0.54);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 18px;
    position: fixed;
    z-index: 9999;
    --profile-gradient: linear-gradient(90deg, var(--text-link), var(--text-link));
}

.public-profile-card[hidden] {
    display: none;
}

.public-profile-card__backdrop {
    inset: 0;
    position: absolute;
}

.public-profile-card__dialog {
    background: #101116;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 560px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.public-profile-card__header {
    align-items: center;
    background: rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
}

.public-profile-card__header h2 {
    color: var(--text-soft-primary);
    font: 600 16px/1.2 Arial, Helvetica, sans-serif;
    margin: 0;
}

.public-profile-card__close {
    appearance: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    color: var(--text-muted);
    cursor: pointer;
    font: 18px/1 Arial, Helvetica, sans-serif;
    height: 28px;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
    width: 28px;
}

.public-profile-card__close:hover,
.public-profile-card__close:focus-visible {
    background: rgba(142, 175, 208, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text-primary);
    outline: none;
}

.public-profile-card__body {
    align-items: center;
    display: flex;
    gap: 14px;
    padding: 18px 16px 16px;
}

.public-profile-card__avatar-wrap {
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    flex: 0 0 auto;
    padding: 3px;
}

.public-profile-card__avatar {
    border-radius: 50%;
    display: block;
    height: 72px;
    object-fit: cover;
    width: 72px;
}

.public-profile-card__avatar-placeholder {
    background: #1b1e26;
    border: 1px solid rgba(132, 151, 174, 0.22);
    border-radius: 50%;
    box-sizing: border-box;
    display: block;
    height: 72px;
    width: 72px;
}

.public-profile-card__avatar-placeholder[hidden],
.public-profile-card__avatar[hidden] {
    display: none;
}

.public-profile-card__main {
    min-width: 0;
}

.public-profile-card__name-row {
    flex-wrap: wrap;
}

.public-profile-card__gender {
    display: inline-flex;
    height: 15px;
    width: 15px;
}

.public-profile-card__gender[hidden] {
    display: none;
}

.public-profile-card__gender img {
    height: 15px;
    object-fit: contain;
    width: 15px;
}

.public-profile-card__badges {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

.public-profile-card__badges .comment-badge {
    height: 24px;
    width: 24px;
}

.public-profile-card__badges .comment-badge--series {
    flex-basis: 24px;
    height: 24px;
    width: 24px;
}

.public-profile-card__badges .comment-badge-icon {
    height: 19px;
    max-height: 19px;
    max-width: 19px;
    width: 19px;
}

.public-profile-card__badges .comment-badge--plain {
    height: 20px;
    width: 20px;
}

.public-profile-card__last-seen,
.public-profile-card__label,
.public-profile-card__status {
    color: var(--text-muted);
    font: 11px/1.4 Arial, Helvetica, sans-serif;
}

.public-profile-card__last-seen {
    margin-top: 6px;
}

.public-profile-card__message {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    color: var(--text-secondary);
    cursor: not-allowed;
    font: 11px/1 Arial, Helvetica, sans-serif;
    margin-top: 10px;
    padding: 7px 10px;
}

.public-profile-card__message:disabled {
    opacity: 0.78;
}

.public-profile-card__badges-section {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 13px 16px 15px;
}

.public-profile-card__badges-section h3 {
    color: var(--text-soft-primary);
    font: 600 11px/1.3 Arial, Helvetica, sans-serif;
    margin: 0 0 9px;
}

.public-profile-card__badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.public-profile-card__badge-tag {
    align-items: center;
    background:
        linear-gradient(rgba(16, 17, 22, 0.94), rgba(16, 17, 22, 0.94)) padding-box,
        var(--profile-gradient) border-box;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--text-secondary);
    display: inline-flex;
    font: 11px/1.2 Arial, Helvetica, sans-serif;
    gap: 6px;
    padding: 4px 8px 4px 6px;
    overflow: hidden;
    position: relative;
}

.public-profile-card__badge-tag::before {
    background: var(--profile-gradient);
    content: "";
    inset: 0;
    opacity: 0.055;
    pointer-events: none;
    position: absolute;
}

.public-profile-card__badge-tag > * {
    position: relative;
    z-index: 1;
}

.public-profile-card__badge-tag img {
    border-radius: 50%;
    height: 19px;
    object-fit: contain;
    width: 19px;
}

.public-profile-card__bio {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 14px 16px 16px;
}

.public-profile-card__bio p {
    color: var(--text-secondary);
    font: 13px/1.5 Arial, Helvetica, sans-serif;
    margin: 6px 0 0;
    white-space: pre-wrap;
}

.public-profile-card__status {
    margin: 0;
    padding: 0 16px 14px;
}

@media (max-width: 560px) {
    .public-profile-card {
        padding: 12px;
    }

    .public-profile-card__body {
        align-items: flex-start;
    }

    .public-profile-card__avatar {
        height: 60px;
        width: 60px;
    }
}

.comment-badge {
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-sizing: border-box;
    display: inline-flex;
    flex: 0 0 26px;
    height: 26px;
    justify-content: center;
    overflow: hidden;
    padding: 1px;
    width: 26px;
}

.comment-badge--plain {
    background: transparent;
    border: 0;
    flex: 0 0 auto;
    height: 20px;
    overflow: visible;
    padding: 0;
    width: 20px;
}

.comment-badge-icon {
    flex: 0 0 auto;
    height: 20px;
    max-height: 20px;
    max-width: 20px;
    object-fit: contain;
    width: 20px;
}

.comment-badge--series .comment-badge-icon {
    height: 22px;
    max-height: 22px;
    max-width: 22px;
    object-position: center;
    transform: none;
    width: 22px;
}

.comment-badge--series {
    flex-basis: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    height: 24px;
    overflow: hidden;
    padding: 0;
    width: 24px;
}

.comment-badge__fallback {
    align-items: center;
    color: var(--text-link);
    display: inline-flex;
    font: 12px/1 Arial, Helvetica, sans-serif;
    justify-content: center;
}

.comment-content-image {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    display: block;
    height: auto;
    margin: 8px 0;
    max-height: 420px;
    max-width: min(420px, 100%);
    object-fit: contain;
    width: auto;
}

.project-comment.comment-target-highlight,
.reader-comment.comment-target-highlight {
    position: relative;
}

.project-comment.comment-target-highlight::before,
.reader-comment.comment-target-highlight::before {
    animation: commentTargetHighlight 2.8s ease-out forwards;
    background: linear-gradient(90deg, rgba(142, 175, 208, 0) 0, rgba(142, 175, 208, 0.10) 16px, rgba(142, 175, 208, 0.055) 42%, rgba(142, 175, 208, 0) 92%);
    content: "";
    bottom: 0;
    left: -16px;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 0;
}

.project-comment.comment-target-highlight > *,
.reader-comment.comment-target-highlight > * {
    position: relative;
    z-index: 1;
}

@keyframes commentTargetHighlight {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.comments-empty {
    color: var(--text-muted);
    font: 13px/1.45 Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 18px;
}

.chapter-reader {
    margin: 0 auto;
    max-width: var(--site-container-width);
    padding: 24px var(--site-container-padding) 54px;
    position: relative;
}

.chapter-reader__preview-notice {
    border: 1px solid rgba(132, 183, 226, 0.32);
    border-radius: 6px;
    color: #a9cbe8;
    background: rgba(74, 116, 150, 0.12);
    font-size: 13px;
    margin-bottom: 14px;
    padding: 9px 12px;
}

.chapter-reader__toolbar {
    align-items: center;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr auto 1fr;
    margin-bottom: 20px;
    padding: 10px 0;
}

.chapter-reader__mode-notice {
    background: rgba(12, 16, 23, 0.86);
    border: 1px solid rgba(155, 201, 236, 0.22);
    border-radius: 8px;
    color: #d8edff;
    font: 600 13px/1 Arial, Helvetica, sans-serif;
    left: 50%;
    opacity: 0;
    padding: 9px 14px;
    pointer-events: none;
    position: absolute;
    text-align: center;
    top: 110px;
    transform: translate(-50%, -6px);
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 8;
}

.chapter-reader__mode-notice.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.chapter-reader__back,
.chapter-reader__controls a,
.chapter-reader__bottom-nav a {
    color: var(--text-link);
    font: 12px/1.2 Arial, Helvetica, sans-serif;
    text-decoration: none;
}

.chapter-reader__title {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: center;
}

.chapter-reader__title strong {
    color: var(--text-soft-primary);
    font: 400 14px/1.2 Georgia, "Times New Roman", serif;
}

.chapter-reader__title span {
    color: var(--text-muted);
    font: 12px/1.2 Arial, Helvetica, sans-serif;
}

.chapter-reader__controls {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.chapter-reader__controls a {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.chapter-reader__fullscreen-button {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    padding: 0;
    width: 30px;
}

.chapter-reader__fullscreen-button[hidden] {
    display: none;
}

.chapter-reader__fullscreen-button:hover,
.chapter-reader__fullscreen-button:focus-visible,
.chapter-reader__fullscreen-button[aria-pressed="true"] {
    color: var(--text-link);
}

.chapter-reader__fullscreen-button:focus-visible {
    outline: 1px solid rgba(142, 175, 208, 0.55);
    outline-offset: 3px;
}

.chapter-reader__fullscreen-icon {
    display: block;
    height: 16px;
    width: 16px;
}

.chapter-reader:fullscreen {
    background: #14151b;
    box-sizing: border-box;
    height: 100vh;
    max-width: none;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 24px var(--site-container-padding) 54px;
    position: relative;
    scrollbar-gutter: stable both-edges;
    width: 100vw;
}

.chapter-reader.is-reader-fullscreen > .chapter-reader__preview-notice,
.chapter-reader.is-reader-fullscreen > .chapter-reader__toolbar,
.chapter-reader.is-reader-fullscreen > .reader-reactions,
.chapter-reader.is-reader-fullscreen > .reader-comments {
    display: none !important;
}

.chapter-reader.is-reader-fullscreen .chapter-reader__manga-pages {
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 48px);
}

.chapter-reader[data-reader-type="manga"].is-reader-fullscreen:not(.chapter-reader--webtoon-mode) {
    padding-bottom: 0;
}

.chapter-reader[data-reader-type="manga"].is-reader-fullscreen:not(.chapter-reader--webtoon-mode) .chapter-reader__manga-pages {
    min-height: 0;
}

.chapter-reader.is-reader-fullscreen .chapter-reader__manga-page {
    max-height: none;
}

.chapter-reader.is-reader-fullscreen .chapter-reader__pages--webtoon {
    margin-inline: auto;
}

@media (max-width: 700px) {
    .chapter-reader:fullscreen {
        padding: 16px;
    }

    .chapter-reader.is-reader-fullscreen .chapter-reader__fullscreen-exit {
        right: 10px;
        top: 8px;
    }

    .chapter-reader.is-reader-fullscreen .chapter-reader__manga-page {
        max-height: calc(100vh - 120px);
        max-width: calc(100vw - 32px);
    }
}

.chapter-reader__fullscreen-ui {
    display: none;
}

.chapter-reader.is-reader-fullscreen .chapter-reader__fullscreen-ui {
    display: block;
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 10;
}

.chapter-reader.is-reader-fullscreen .chapter-reader__fullscreen-exit {
    align-items: center;
    appearance: none;
    background: rgba(20, 21, 27, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: var(--text-link);
    cursor: pointer;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    padding: 0;
    pointer-events: auto;
    position: absolute;
    right: 18px;
    top: 12px;
    width: 34px;
}

.chapter-reader.is-reader-fullscreen .chapter-reader__fullscreen-exit:hover,
.chapter-reader.is-reader-fullscreen .chapter-reader__fullscreen-exit:focus-visible {
    color: var(--text-soft-primary);
}

.chapter-reader.is-reader-fullscreen .chapter-reader__manga-page {
    height: auto;
    max-height: calc(100vh - 96px);
    max-width: calc(100vw - 160px);
    object-fit: contain;
    width: auto !important;
}

@media (min-width: 701px) {
    .chapter-reader.is-reader-fullscreen .chapter-reader__manga-stage {
        grid-template-columns: 1fr auto 1fr;
        position: relative;
        width: 100%;
    }

    .chapter-reader.is-reader-fullscreen .chapter-reader__manga-page-button[data-reader-manga-prev] {
        justify-self: end;
    }

    .chapter-reader.is-reader-fullscreen .chapter-reader__manga-image-column {
        justify-self: center;
        width: auto;
    }

    .chapter-reader.is-reader-fullscreen .chapter-reader__manga-page-button[data-reader-manga-next] {
        justify-self: start;
    }

    .chapter-reader.is-reader-fullscreen .chapter-reader__manga-page-status {
        background: rgba(20, 21, 27, 0.72);
        border-radius: 999px;
        bottom: 10px;
        left: 50%;
        margin: 0;
        padding: 4px 8px;
        pointer-events: none;
        position: absolute;
        transform: translateX(-50%);
        z-index: 2;
    }
}

.chapter-reader.is-reader-fullscreen > .chapter-reader__bottom-nav {
    background: rgba(20, 21, 27, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    display: flex !important;
    gap: 10px;
    justify-content: center;
    left: 50%;
    margin: 0;
    max-width: calc(100vw - 24px);
    padding: 4px 8px;
    position: fixed;
    bottom: 16px;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 20;
}

.chapter-reader.is-reader-fullscreen > .chapter-reader__bottom-nav {
    opacity: 0.3;
    transition: opacity 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .chapter-reader.is-reader-fullscreen > .chapter-reader__bottom-nav:hover,
    .chapter-reader.is-reader-fullscreen > .chapter-reader__bottom-nav:focus-within {
        opacity: 1;
    }
}

@media (hover: none), (pointer: coarse) {
    .chapter-reader.is-reader-fullscreen > .chapter-reader__bottom-nav {
        opacity: 1;
    }
}

.chapter-reader__controls select {
    appearance: none;
    background: #14151b;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    color: var(--text-secondary);
    color-scheme: dark;
    font: 12px/1 Arial, Helvetica, sans-serif;
    padding: 8px 12px;
}

.chapter-reader__mode-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    color: var(--text-secondary);
    cursor: pointer;
    font: 12px/1 Arial, Helvetica, sans-serif;
    padding: 8px 12px;
    white-space: nowrap;
}

.chapter-reader__mode-toggle:hover,
.chapter-reader__mode-toggle[aria-pressed="true"] {
    border-color: rgba(142, 175, 208, 0.38);
    color: var(--text-link);
}

.chapter-reader--manga .chapter-reader__pages {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chapter-reader--manga .chapter-reader__pages img {
    max-width: 100%;
}

.chapter-reader__pages {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.chapter-reader__pages img {
    display: block;
    height: auto;
    max-width: 760px;
    width: 100%;
}

.chapter-reader__bottom-nav {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: center;
    padding-top: 24px;
}

.chapter-reader__bottom-nav a {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    padding: 9px 12px;
}

.chapter-reader__bottom-nav > .chapter-reader__arrow {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    padding: 0;
    width: 30px;
}

.chapter-reader__bottom-nav > .chapter-reader__arrow::before,
.chapter-reader__bottom-nav > .chapter-reader__arrow::after {
    content: none;
    display: none;
}

.chapter-reader__bottom-nav > .chapter-reader__arrow:not([aria-disabled="true"]):hover .chapter-reader__arrow-icon,
.chapter-reader__bottom-nav > .chapter-reader__arrow:not([aria-disabled="true"]):focus-visible .chapter-reader__arrow-icon {
    background-color: var(--text-link);
}

.chapter-reader__bottom-nav a.is-disabled {
    color: var(--text-muted);
    cursor: default;
    opacity: 0.42;
    pointer-events: none;
}

.chapter-reader__back:hover,
.chapter-reader__controls a:hover,
.chapter-reader__bottom-nav a:hover {
    color: var(--text-primary);
}

.chapter-reader__toolbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.chapter-reader__title {
    align-items: flex-start;
    flex-direction: row;
    gap: 8px;
    text-align: left;
}

.chapter-reader__meta {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
    font: 11px/1.2 Arial, Helvetica, sans-serif;
    white-space: nowrap;
}

.chapter-reader__meta span {
    align-items: center;
    display: inline-flex;
    gap: 4px;
}

.chapter-reader__meta img {
    filter: invert(62%) sepia(8%) saturate(300%) hue-rotate(175deg) brightness(88%) contrast(86%);
    height: 14px;
    width: 14px;
}

.chapter-reader__scale select {
    min-width: 64px;
}

.reader-reactions,
.reader-comments {
    margin-top: 28px;
}

.reader-reactions__header,
.reader-comments__header {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 14px 0;
}

.reader-reactions__header h2,
.reader-comments__header h2 {
    color: var(--text-soft-primary);
    font: 400 16px/1.2 Georgia, "Times New Roman", serif;
    margin: 0;
}

.reader-reactions__header span,
.reader-comments__header h2 span {
    color: var(--text-muted);
    font: 12px/1.2 Arial, Helvetica, sans-serif;
}

.reader-reactions__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 14px 0 0;
}

.reader-reaction {
    align-items: center;
    background: rgba(17, 19, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    font: 12px/1 Arial, Helvetica, sans-serif;
    gap: 9px;
    min-width: 88px;
    padding: 12px 14px;
}

.reader-reaction:hover,
.reader-comment-form__tools button:hover,
.reader-comment-form__upload:hover {
    border-color: rgba(142, 175, 208, 0.36);
    color: var(--text-link);
}

.reader-reaction.is-active {
    border-color: rgba(142, 175, 208, 0.5);
    color: var(--text-link);
}

.reader-reaction__icon {
    display: block;
    height: 30px;
    object-fit: contain;
    width: 30px;
}

.reader-comments {
    border-top: 0;
    padding-top: 4px;
}

.reader-comments__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding-bottom: 8px;
    position: static;
}

.reader-comments__header h2 {
    grid-column: 2;
    justify-self: center;
}

.reader-comments__sort-controls {
    display: inline-flex;
    grid-column: 3;
    justify-self: end;
    position: static;
}

.reader-comments__sort-status {
    grid-column: 1;
    grid-row: 1;
}

.reader-comments__sort {
    appearance: none;
    background: #14151b;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='m1 1 3 3 3-3' fill='none' stroke='%238eafd0' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 10px center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    color: var(--text-muted);
    color-scheme: dark;
    font: 12px/1.2 Arial, Helvetica, sans-serif;
    padding: 6px 29px 6px 11px;
}

.reader-comments__list {
    padding: 0;
}

.reader-comment {
    display: flex;
    gap: 10px;
    padding: 20px 0;
}

.reader-comment__avatar {
    align-items: center;
    background: #2b3540;
    border-radius: 999px;
    color: var(--text-primary);
    display: inline-flex;
    flex: 0 0 auto;
    font: 700 13px/1 Arial, Helvetica, sans-serif;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.reader-comment__meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reader-comment__meta strong:not(.profile-name) {
    color: var(--text-soft-primary);
    font: 700 13px/1.2 Arial, Helvetica, sans-serif;
}

.project-comment__meta .profile-name,
.reader-comment__meta .profile-name {
    font-size: calc(13px * var(--name-font-scale, 1));
}

.reader-comment__meta span,
.reader-comment__meta time {
    color: var(--text-muted);
    font: 11px/1.2 Arial, Helvetica, sans-serif;
}

.reader-comment p {
    color: var(--text-secondary);
    font: 13px/1.45 Arial, Helvetica, sans-serif;
    margin: 7px 0;
}

.reader-comment__actions,
.reader-comment-form__tools {
    display: flex;
    gap: 8px;
}

.reader-comment__actions {
    margin-top: 10px;
}

.reader-comment__actions > span,
.reader-comment__actions button,
.reader-comment-form__tools button,
.reader-comment-form__upload {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    color: var(--text-muted);
    cursor: pointer;
    font: 11px/1 Arial, Helvetica, sans-serif;
    padding: 5px 9px;
}

.reader-comment-form {
    padding-top: 16px;
}

.reader-comment-form__tools {
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.reader-comment-form__upload {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-width: 28px;
}

.reader-comment-form__upload input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.reader-comment-form textarea {
    background: #11131a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-sizing: border-box;
    color: var(--text-secondary);
    font: 13px/1.45 Arial, Helvetica, sans-serif;
    min-height: 112px;
    padding: 12px;
    resize: vertical;
    width: 100%;
}

.reader-comment-form textarea::placeholder {
    color: var(--text-muted);
}

.reader-comment-form__footer {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    font: 11px/1.2 Arial, Helvetica, sans-serif;
    justify-content: space-between;
    padding-top: 10px;
}

.reader-comment-form__footer button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    color: var(--text-secondary);
    cursor: pointer;
    font: 12px/1 Arial, Helvetica, sans-serif;
    padding: 8px 12px;
}

.announcement-detail {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1200px;
    padding: 34px 0 54px;
    width: 100%;
}

.announcement-detail__header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 18px;
}

.announcement-detail__header h1 {
    color: var(--text-primary);
    font: 400 28px/1.25 Georgia, "Times New Roman", serif;
    margin: 0;
}

.announcement-detail__content {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 26px 0 28px;
}

.announcement-detail__content .home-announcement__content {
    max-width: 980px;
}

@media (max-width: 700px) {
    .project-info__publisher-list img {
        height: 18px;
        width: 18px;
    }

    .chapter-reader__pages {
        margin-left: -14px;
        margin-right: -14px;
        width: calc(100% + 28px);
    }

    .chapter-reader__pages img {
        height: auto;
        max-width: none;
        width: 100%;
    }

    .chapter-reader__toolbar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .chapter-reader__title {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
        grid-column: 1;
        grid-row: 1;
        justify-self: stretch;
        width: 100%;
    }

    .chapter-reader__controls {
        align-items: center;
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
    }

    .chapter-reader__controls > a,
    .chapter-reader__controls > label:not(.chapter-reader__scale) {
        grid-column: auto;
        grid-row: auto;
    }

    .chapter-reader__meta {
        display: none;
    }

    .chapter-reader {
        max-width: 100%;
        overflow-x: hidden;
    }

    .chapter-reader__scale {
        display: none;
    }

    .chapter-reader__pages,
    .chapter-reader__pages img {
        max-width: 100%;
        width: 100%;
    }

    .chapter-reader__toolbar {
        grid-template-columns: 1fr auto;
    }

    .chapter-reader__title {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .chapter-reader__back {
        grid-column: 1;
        grid-row: 2;
    }

    .chapter-reader__meta {
        grid-column: 1;
        grid-row: 3;
        justify-content: flex-start;
    }

    .chapter-reader__controls {
        flex-wrap: wrap;
        grid-column: 2;
        grid-row: 2 / span 2;
    }

    .chapter-reader__scale {
        width: 100%;
    }

    .chapter-reader__scale select {
        width: 100%;
    }

    .chapter-reader__fullscreen-button {
        grid-column: 1;
        grid-row: 3;
        justify-self: start;
    }

    .reader-reactions,
    .reader-comments {
        margin-top: 22px;
    }

    .reader-reaction {
        flex: 1 1 calc(33.333% - 8px);
        justify-content: center;
        min-width: 0;
        padding: 9px 10px;
    }

    .reader-reaction__icon {
        height: 24px;
        width: 24px;
    }

.reader-comments__header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: space-between;
}

.reader-comments__header h2 {
    flex: 1 1 120px;
    min-width: 0;
    text-align: left;
}

.reader-comments__sort-controls {
    flex: 0 1 auto;
    max-width: 100%;
}

.reader-comments__sort {
    max-width: 100%;
}

}

/* Manga readers show one original source page at a time; Webtoon keeps the existing slice flow. */
.chapter-reader__manga-pages {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    width: 100%;
}

.chapter-reader__pages--webtoon {
    display: flex;
}

.chapter-reader[data-reader-type="manga"]:not(.chapter-reader--webtoon-mode) .chapter-reader__pages--webtoon,
.chapter-reader[data-reader-type="manga"].chapter-reader--webtoon-mode .chapter-reader__manga-pages {
    display: none;
}

.chapter-reader [hidden] {
    display: none !important;
}

.chapter-reader__manga-stage {
    align-items: center;
    display: grid;
    grid-template-columns: 52px auto 52px;
    grid-template-areas:
        "prev page next"
        ". counter .";
    column-gap: 18px;
    justify-content: center;
    max-width: 100%;
    margin-inline: auto;
    min-width: 0;
    width: fit-content;
}

.chapter-reader__manga-image-column {
    grid-area: page;
    min-width: 0;
    text-align: center;
}

.chapter-reader__manga-page-status {
    color: var(--text-muted);
    font: 12px/1.2 Arial, Helvetica, sans-serif;
    display: block;
    grid-area: counter;
    margin-top: 10px;
    text-align: center;
}

.chapter-reader__manga-page-button {
    align-items: center;
    appearance: none;
    background: transparent;
    background-color: transparent !important;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    display: inline-flex;
    height: 52px;
    justify-content: center;
    line-height: 0;
    padding: 0;
    color: var(--text-link);
    width: 52px;
}

.manga-page-nav-icon {
    color: inherit;
    display: block;
    fill: currentColor;
    height: 30px !important;
    max-height: 30px;
    max-width: 30px;
    min-height: 30px;
    min-width: 30px;
    object-fit: contain;
    overflow: visible;
    width: 30px !important;
}

.chapter-reader__manga-page-button[data-reader-manga-prev] {
    grid-area: prev;
}

.chapter-reader__manga-page-button[data-reader-manga-next] {
    grid-area: next;
}

.chapter-reader__manga-page-button.is-disabled {
    cursor: default;
    opacity: 0.4;
    pointer-events: none;
}

.chapter-reader__manga-page {
    display: block;
    height: auto;
    max-height: calc(100vh - 190px);
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

@media (min-width: 701px) {
    .chapter-reader__manga-page {
        max-height: none;
        max-width: none;
    }
}

.chapter-reader__mode-toggle {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    padding: 0;
}

.chapter-reader__mode-toggle > span {
    color: var(--text-muted);
    font: 12px/1 Arial, Helvetica, sans-serif;
}

.chapter-reader__mode-toggle > button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    font: 12px/1 Arial, Helvetica, sans-serif;
    min-width: 22px;
    padding: 6px 5px;
}

.chapter-reader__mode-toggle > button:hover,
.chapter-reader__mode-toggle > button:focus-visible,
.chapter-reader__mode-toggle > button[aria-pressed="true"] {
    background: rgba(142, 175, 208, 0.14);
    color: var(--text-link);
}

@media (max-width: 700px) {
    .chapter-reader__manga-page {
        max-height: calc(100vh - 210px);
    }

    .chapter-reader__manga-stage {
        grid-template-columns: 1fr auto 1fr;
        grid-template-areas:
            "page page page"
            "prev counter next";
        width: 100%;
    }

    .chapter-reader__manga-image-column {
        grid-area: page;
    }

    .chapter-reader__manga-image-column .chapter-reader__manga-page {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 100%;
    }

    .chapter-reader__manga-page-button {
        grid-row: 2;
    }

    .chapter-reader__manga-page-button[data-reader-manga-prev] {
        grid-area: prev;
        justify-self: end;
    }

    .chapter-reader__manga-page-status {
        align-self: center;
        grid-area: counter;
        margin-top: 0;
    }

    .chapter-reader__manga-page-button[data-reader-manga-next] {
        grid-area: next;
        justify-self: start;
    }
}

.messages-page {
    margin: 0 auto;
    max-width: var(--site-container-width);
    padding: var(--page-header-padding-top) var(--site-container-padding) 54px;
}

.messages-page__intro {
    margin-bottom: 24px;
}

.messages-page__intro h1 {
    color: var(--text-primary);
    font: 400 24px/1.15 Georgia, "Times New Roman", serif;
    margin: 0 0 7px;
}

.messages-page__intro p {
    color: var(--text-secondary);
    font: 400 14px/1.5 Arial, Helvetica, sans-serif;
    margin: 0;
}

.messages-page__notice {
    border: 1px solid rgba(143, 194, 255, 0.18);
    color: var(--text-secondary);
    font: 400 13px/1.45 Arial, Helvetica, sans-serif;
    margin-bottom: 18px;
    padding: 11px 14px;
}

.messages-search__results {
    display: grid;
    gap: 4px;
    margin-top: 8px;
}

.messages-search__result {
    align-items: center;
    background: rgba(143, 194, 255, 0.05);
    border: 1px solid rgba(143, 194, 255, 0.12);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    font: 400 13px/1.2 Arial, Helvetica, sans-serif;
    gap: 8px;
    padding: 8px;
    text-align: left;
    width: 100%;
}

.messages-search__result:hover,
.messages-search__result:focus-visible {
    background: rgba(143, 194, 255, 0.1);
    border-color: rgba(143, 194, 255, 0.28);
}

.messages-search__result img {
    border-radius: 50%;
    height: 28px;
    object-fit: cover;
    width: 28px;
}

.messages-search__empty,
.messages-list__empty {
    color: var(--text-muted);
    font: 400 13px/1.45 Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 16px;
}

.messages-compose button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.messages-layout {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: grid;
    grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
    min-height: 590px;
}

.messages-list-panel {
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    min-width: 0;
}

.messages-search {
    display: block;
    padding: 18px 16px;
}

.messages-search input,
.messages-compose textarea {
    background: #101116;
    border: 1px solid rgba(132, 151, 174, 0.2);
    box-sizing: border-box;
    color: var(--text-primary);
    font: 400 13px/1.4 Arial, Helvetica, sans-serif;
    outline: 0;
    width: 100%;
}

.messages-search input {
    border-radius: 24px;
    font: 14px/1.4 Arial, Helvetica, sans-serif;
    min-height: 42px;
    outline: none;
    padding: 11px 12px;
}

.messages-search input::placeholder,
.messages-compose textarea::placeholder {
    color: var(--text-muted);
}

.messages-search input:focus,
.messages-compose textarea:focus {
    border-color: rgba(142, 175, 208, 0.55);
    box-shadow: 0 0 0 2px rgba(142, 175, 208, 0.1);
}

.messages-list {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.message-conversation {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--text-primary);
    cursor: pointer;
    display: grid;
    gap: 11px;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    min-height: 74px;
    margin: 3px 8px;
    padding: 12px 16px;
    position: relative;
    border-radius: 10px;
    text-align: left;
    transition: background-color 180ms ease;
    width: calc(100% - 16px);
}

.message-conversation.is-active {
    background: rgba(143, 194, 255, 0.06);
}

@media (hover: hover) and (pointer: fine) {
    .message-conversation:hover,
    .message-conversation:focus-visible {
        background: rgba(143, 194, 255, 0.045);
    }
}

.message-conversation.is-active {
    background: rgba(143, 194, 255, 0.07);
}

.message-conversation img,
.messages-thread__header img {
    border-radius: 50%;
    display: block;
    height: 40px;
    object-fit: cover;
    width: 40px;
}

.message-conversation__avatar-fallback {
    background: #1b1e26;
    border: 1px solid rgba(132, 151, 174, 0.28);
    border-radius: 50%;
    box-sizing: border-box;
    display: block;
    flex: 0 0 40px;
    height: 40px;
    justify-self: center;
    margin: 0;
    padding: 0;
    width: 40px;
}

.message-conversation__body {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.message-conversation__body strong:not(.profile-name) {
    color: var(--text-soft-primary);
    font: 400 14px/1.2 Arial, Helvetica, sans-serif;
}

.message-conversation__body .profile-name {
    font-size: calc(14px * var(--name-font-scale, 1));
    line-height: 1.2;
}

.message-conversation__body > span:not(.profile-name) {
    color: var(--text-muted);
    display: block;
    font: 400 12px/1.3 Arial, Helvetica, sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-conversation__body .message-conversation__empty {
    color: rgba(127, 139, 153, 0.65);
}

.message-conversation time {
    align-self: start;
    color: var(--text-muted);
    font: 400 11px/1.3 Arial, Helvetica, sans-serif;
    white-space: nowrap;
}

.message-conversation i {
    background: #b66f80;
    border-radius: 50%;
    bottom: 12px;
    height: 6px;
    position: absolute;
    right: 16px;
    width: 6px;
}

.messages-conversation-panel {
    min-width: 0;
    position: relative;
}

.messages-empty {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    font: 400 14px/1.5 Arial, Helvetica, sans-serif;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: absolute;
    text-align: center;
}

.messages-thread[hidden],
.messages-empty[hidden] {
    display: none;
}

.messages-thread {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100%;
    min-height: 590px;
}

.messages-thread__header {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    gap: 12px;
    min-height: 70px;
    padding: 12px 20px;
}

.messages-thread__header h2:not(.profile-name) {
    color: var(--text-soft-primary);
    font: 400 16px/1.2 Arial, Helvetica, sans-serif;
    margin: 0;
}

.messages-thread__back {
    display: none;
}

.messages-thread__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: end;
    min-height: 0;
    overflow-y: auto;
    padding: 20px;
}

.message-row {
    align-items: flex-end;
    display: flex;
    gap: 8px;
    width: 100%;
}

.message-row--own {
    justify-content: flex-end;
}

.message-row__avatar {
    border-radius: 50%;
    flex: 0 0 28px;
    height: 28px;
    object-fit: cover;
    width: 28px;
}

.message-bubble {
    background: rgba(8, 9, 13, 0.45);
    border-radius: 10px 10px 10px 3px;
    max-width: min(620px, 80%);
    min-width: 0;
    padding: 10px 12px;
    width: fit-content;
}

.message-bubble--own {
    align-self: end;
    background: rgba(91, 133, 178, 0.14);
    border-radius: 10px 10px 3px 10px;
}

.message-bubble p {
    color: var(--text-secondary);
    font: 400 13px/1.5 Arial, Helvetica, sans-serif;
    margin: 0 0 4px;
    overflow-wrap: anywhere;
}

.message-bubble time,
.messages-thread__placeholder {
    color: var(--text-muted);
    font: 400 10px/1.3 Arial, Helvetica, sans-serif;
}

.messages-thread__placeholder {
    margin: auto;
}

.messages-compose {
    align-items: end;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 16px 20px;
}

.messages-compose__disabled {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
    font: 400 12px/1.45 Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 16px 20px;
}

.messages-compose textarea {
    border-radius: 24px;
    min-height: 48px;
    padding: 12px 14px;
    resize: vertical;
}

.messages-compose button {
    background: transparent;
    border: 1px solid rgba(143, 194, 255, 0.32);
    border-radius: 999px;
    color: var(--text-link);
    cursor: pointer;
    font: 400 12px/1 Arial, Helvetica, sans-serif;
    height: 36px;
    padding: 0 16px;
}

.messages-compose__actions {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.messages-compose__attach {
    padding: 0 12px;
}

.messages-compose__attachment {
    align-items: center;
    display: flex;
    gap: 8px;
    grid-column: 1 / -1;
    min-width: 0;
}

.messages-compose__attachment img {
    border-radius: 6px;
    height: 42px;
    object-fit: cover;
    width: 42px;
}

.messages-compose__attachment span {
    color: var(--text-muted);
    font: 400 11px/1.3 Arial, Helvetica, sans-serif;
}

.messages-compose__attachment-remove {
    height: 30px;
    padding: 0 10px;
}

.message-attachment {
    border-radius: 6px;
    display: block;
    height: auto;
    max-height: 420px;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.messages-compose button:hover {
    background: rgba(143, 194, 255, 0.08);
}

@media (max-width: 700px) {
    .messages-page {
        padding: var(--page-header-padding-top) 20px 42px;
    }

    .messages-page__intro {
        margin-bottom: 18px;
    }

    .messages-page.is-conversation .messages-page__intro {
        display: none;
    }

    .messages-page__intro h1 {
        font-size: 22px;
    }

    .messages-layout {
        display: block;
        min-height: 0;
    }

    .messages-list-panel {
        border-right: 0;
    }

    .messages-search {
        padding-left: 0;
        padding-right: 0;
    }

    .message-conversation {
        padding: 15px 10px;
    }

    .messages-page.is-inline-thread .message-conversation.is-active {
        padding-bottom: 18px;
        padding-top: 18px;
    }

    .messages-list {
        display: flex;
        flex-direction: column;
    }

    .messages-conversation-panel {
        display: none;
        min-height: 0;
    }

    .messages-page.is-conversation .messages-list-panel {
        display: none;
    }

    .messages-page.is-conversation .messages-conversation-panel {
        display: block;
    }

    .messages-thread {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 0;
    }

    .messages-thread.is-inline-thread {
        width: 100%;
    }

    .messages-thread.is-inline-thread .messages-thread__header {
        display: none;
    }

    .messages-thread__header {
        border-bottom: 0;
        flex: 0 0 auto;
        gap: 8px;
        min-height: 48px;
        padding: 6px 8px;
    }

    .messages-thread__header img {
        height: 32px;
        width: 32px;
    }

    .messages-thread__back {
        align-items: center;
        color: var(--text-link);
        background: transparent;
        border: 0;
        cursor: pointer;
        display: inline-flex;
        font: 400 28px/1 Arial, Helvetica, sans-serif;
        height: 32px;
        justify-content: center;
        margin-right: 1px;
        padding: 0;
        width: 32px;
    }

    .messages-thread__back:focus-visible {
        border-radius: 6px;
        outline: 2px solid rgba(143, 194, 255, 0.55);
        outline-offset: 1px;
    }

    .messages-thread__body {
        flex: 0 0 auto;
        gap: 16px;
        justify-content: flex-start;
        min-height: 0;
        overflow: visible;
        padding: 4px 8px 10px;
    }

    .messages-thread.is-inline-thread .messages-thread__body {
        max-height: 360px;
        overflow-y: auto;
        gap: 16px;
        padding: 14px 8px 12px;
    }

    .message-bubble {
        max-width: 75%;
        padding: 8px 10px;
    }

    .message-row__avatar {
        flex-basis: 24px;
        height: 24px;
        width: 24px;
    }

    .message-bubble p {
        line-height: 1.45;
        margin-bottom: 3px;
    }

    .message-bubble time {
        display: block;
        margin-top: 2px;
    }

    .messages-compose {
        border-top: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;
        margin-bottom: 0;
        margin-top: 8px;
        padding: 12px 8px 22px;
    }

    .messages-compose__disabled {
        border-top: 0;
        padding: 10px 8px 12px;
    }

    .messages-compose textarea {
        min-height: 84px;
        padding: 11px 14px;
    }

    .messages-compose button {
        height: 32px;
        justify-self: end;
        padding: 0 14px;
        width: auto;
    }

    .messages-compose__actions {
        justify-content: flex-end;
    }

    .messages-compose__attachment {
        max-width: 100%;
    }
}

/* Reader spacing refinements. */
.chapter-reader__toolbar {
    gap: 14px;
    margin-bottom: 16px;
}

.chapter-reader__controls {
    gap: 6px;
}

/* Admin workspace. */
.admin-shell {
    background: #14151b;
}

.admin-topbar {
    align-items: center;
    background: #0f1014;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 24px;
}

.admin-topbar__brand {
    align-items: center;
    color: var(--text-primary);
    display: inline-flex;
    font: 400 18px/1 Georgia, "Times New Roman", serif;
    gap: 10px;
    text-decoration: none;
}

.admin-topbar__brand img {
    display: block;
    height: 36px;
    object-fit: contain;
    width: 36px;
}

.admin-topbar__brand small {
    color: var(--text-muted);
    font: 11px/1 Arial, Helvetica, sans-serif;
    margin-left: 5px;
}

.admin-topbar__account {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    font: 12px/1.2 Arial, Helvetica, sans-serif;
    gap: 10px;
    margin-left: auto;
}

.admin-topbar__back {
    color: var(--text-muted);
    font: 12px/1.2 Arial, Helvetica, sans-serif;
    margin-left: auto;
    text-decoration: none;
}

.admin-topbar__back:hover {
    color: var(--text-link);
}

.admin-role-badge,
.admin-status-dot {
    background: rgba(142, 175, 208, 0.12);
    border: 1px solid rgba(142, 175, 208, 0.24);
    border-radius: 999px;
    color: var(--text-link);
    padding: 5px 8px;
}

.admin-nav-toggle {
    display: none;
}

.admin-frame {
    display: block;
    flex: 1 0 auto;
    min-height: 0;
    position: relative;
}

.admin-sidebar {
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px 18px 22px;
    position: absolute;
    inset: 0 auto 0 0;
    width: 238px;
    box-sizing: border-box;
    overflow-y: auto;
}

.admin-sidebar__intro {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    gap: 7px;
    padding: 0 8px 20px;
}

.admin-sidebar__intro span,
.admin-eyebrow,
.admin-nav__label {
    color: var(--text-muted);
    font: 11px/1.25 Arial, Helvetica, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-sidebar__intro strong {
    color: var(--text-secondary);
    font: 400 12px/1.4 Arial, Helvetica, sans-serif;
}

.admin-nav {
    display: grid;
    gap: 3px;
    padding-top: 18px;
}

.admin-nav a,
.admin-sidebar__back {
    border-radius: 7px;
    color: var(--text-secondary);
    font: 400 13px/1.2 Arial, Helvetica, sans-serif;
    padding: 10px 9px;
    text-decoration: none;
}

.admin-nav a:hover,
.admin-nav a.is-active,
.admin-sidebar__back:hover {
    background: rgba(142, 175, 208, 0.08);
    color: var(--text-link);
}

.admin-nav__label {
    margin: 20px 9px 5px;
}

.admin-sidebar__back {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    margin-top: auto;
    padding: 18px 9px 0;
}

.admin-main {
    min-width: 0;
    width: 100%;
}

.admin-workspace-label {
    color: var(--text-muted);
    font: 11px/1.25 Arial, Helvetica, sans-serif;
    letter-spacing: 0.08em;
    margin: 22px auto 0;
    max-width: var(--site-container-width);
    padding: 0 var(--site-container-padding);
    text-transform: uppercase;
}

.admin-main > .admin-nav-toggle {
    margin: 12px auto 0;
    max-width: var(--site-container-width);
}

.admin-shell--limited .admin-sidebar,
.admin-shell--limited .admin-nav-toggle {
    display: none;
}

.admin-shell--limited .admin-frame {
    display: block;
}

.admin-shell--limited .admin-workspace-label {
    margin-left: auto;
    margin-right: auto;
}

.admin-page {
    margin: 0 auto;
    max-width: var(--site-container-width);
    padding: var(--page-header-padding-top) var(--site-container-padding) 54px;
}

.admin-page__header,
.admin-section__header {
    align-items: end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
}

.admin-page__header {
    margin-bottom: 30px;
}

.admin-page__header h1,
.admin-section__header h2 {
    color: var(--text-primary);
    font: 400 25px/1.15 Georgia, "Times New Roman", serif;
    margin: 5px 0 8px;
}

.admin-section__header h2 {
    font-size: 19px;
}

.admin-page__header p:not(.admin-eyebrow),
.admin-section--quiet p:last-child {
    color: var(--text-secondary);
    font: 14px/1.5 Arial, Helvetica, sans-serif;
    margin: 0;
    max-width: 680px;
}

.admin-button {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(132, 151, 174, 0.22);
    border-radius: 999px;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    font: 400 12px/1 Arial, Helvetica, sans-serif;
    justify-content: center;
    padding: 8px 12px;
    text-decoration: none;
    white-space: nowrap;
}

.admin-button:hover,
.admin-button--primary {
    background: rgba(142, 175, 208, 0.09);
    border-color: rgba(142, 175, 208, 0.42);
    color: var(--text-link);
}

.admin-button--danger {
    border-color: rgba(182, 111, 128, 0.38);
    color: #c88a96;
}

.admin-confirm-modal[hidden] {
    display: none;
}

.admin-confirm-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 80;
}

.admin-confirm-modal__backdrop {
    background: rgba(7, 8, 12, 0.74);
    border: 0;
    cursor: default;
    inset: 0;
    position: absolute;
}

.admin-confirm-modal__content {
    background: #14151b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    max-width: 420px;
    padding: 22px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.admin-confirm-modal__content h2 {
    color: var(--text-primary);
    font: 400 20px/1.2 Georgia, "Times New Roman", serif;
    margin: 0 0 10px;
}

.admin-confirm-modal__content p {
    color: var(--text-secondary);
    font: 13px/1.5 Arial, sans-serif;
    margin: 0;
}

.admin-confirm-modal__field {
    color: var(--text-secondary);
    display: grid;
    font: 12px/1.4 Arial, sans-serif;
    gap: 6px;
    margin-top: 16px;
}

.admin-confirm-modal__field input {
    background: #0f1015;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    color: var(--text-primary);
    font: 14px/1.3 Arial, sans-serif;
    min-height: 40px;
    padding: 9px 11px;
    width: 100%;
}

.admin-confirm-modal__field input:focus {
    border-color: rgba(142, 175, 208, 0.6);
    outline: 2px solid rgba(142, 175, 208, 0.15);
    outline-offset: 1px;
}

.admin-confirm-modal__actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 20px;
}

.admin-stat-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 42px;
}

.admin-stat {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: grid;
    gap: 8px;
    padding: 0 0 17px;
}

.admin-stat span,
.admin-project-row__meta,
.admin-project-row__title p {
    color: var(--text-muted);
    font: 12px/1.35 Arial, Helvetica, sans-serif;
}

.admin-stat strong {
    color: var(--text-primary);
    font: 400 25px/1 Georgia, "Times New Roman", serif;
}

.admin-section {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 24px;
}

.admin-section + .admin-section {
    margin-top: 34px;
}

.admin-global-settings__form {
    max-width: 1120px;
}

.admin-global-settings__section {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 24px 0 28px;
}

.admin-global-settings__section + .admin-global-settings__section {
    margin-top: 2px;
}

.admin-global-settings__section .admin-section__header {
    align-items: start;
    margin-bottom: 18px;
}

.admin-global-settings__section .admin-section__header p {
    color: var(--text-muted);
    font: 12px/1.45 Arial, Helvetica, sans-serif;
    margin: 5px 0 0;
    max-width: 680px;
}

.admin-global-settings__toggle {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    max-width: 820px;
}

.admin-global-settings__toggle + .admin-global-settings__field {
    margin-top: 18px;
}

.admin-global-settings__toggle input {
    accent-color: #8eafd0;
    flex: 0 0 auto;
    margin: 3px 0 0;
}

.admin-global-settings__toggle span,
.admin-global-settings__toggle strong,
.admin-global-settings__toggle small {
    display: block;
}

.admin-global-settings__toggle strong {
    color: var(--text-secondary);
    font: 400 14px/1.35 Arial, Helvetica, sans-serif;
}

.admin-global-settings__toggle small {
    color: var(--text-muted);
    font: 11px/1.45 Arial, Helvetica, sans-serif;
    margin-top: 3px;
}

.admin-global-settings__field {
    display: grid;
    gap: 7px;
    max-width: 820px;
}

.admin-global-settings__field > span {
    color: var(--text-secondary);
    font: 12px/1.3 Arial, Helvetica, sans-serif;
}

.admin-global-settings__field input,
.admin-global-settings__field textarea {
    background: #101116;
    border: 1px solid rgba(132, 151, 174, 0.2);
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--text-primary);
    font: 13px/1.45 Arial, Helvetica, sans-serif;
    outline: 0;
    padding: 10px 12px;
    width: 100%;
}

.admin-global-settings__field textarea {
    min-height: 88px;
    resize: vertical;
}

.admin-global-settings__field input::placeholder,
.admin-global-settings__field textarea::placeholder {
    color: var(--text-muted);
}

.admin-global-settings__field input:focus,
.admin-global-settings__field textarea:focus {
    border-color: rgba(142, 175, 208, 0.55);
}

.admin-global-settings__switch-list {
    display: grid;
    gap: 16px;
}

.admin-global-settings__footer {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    gap: 14px;
    padding-top: 22px;
}

.admin-global-settings__status {
    color: var(--text-muted);
    font: 12px/1.4 Arial, Helvetica, sans-serif;
    margin: 0;
}

.admin-global-settings__status[data-state="success"] {
    color: #9fcdb1;
}

.admin-global-settings__status[data-state="error"] {
    color: #d795a5;
}

.admin-text-link {
    color: var(--text-link);
    font: 12px/1.3 Arial, Helvetica, sans-serif;
    text-decoration: none;
}

.admin-action-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px;
}

.admin-action-grid a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: grid;
    gap: 7px;
    padding: 15px 0;
    text-decoration: none;
}

.admin-action-grid strong {
    color: var(--text-soft-primary);
    font: 400 15px/1.2 Georgia, "Times New Roman", serif;
}

.admin-action-grid span {
    color: var(--text-muted);
    font: 12px/1.4 Arial, Helvetica, sans-serif;
}

.admin-section--quiet {
    max-width: 760px;
}

.admin-toolbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 18px;
}

.admin-filter-groups {
    display: grid;
    gap: 12px;
}

.admin-filter-group {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.admin-filter-group__label {
    color: var(--text-muted);
    flex: 0 0 72px;
    font: 11px/1.3 Arial, Helvetica, sans-serif;
    text-transform: uppercase;
}

.admin-toolbar input {
    background: #101116;
    border: 1px solid rgba(132, 151, 174, 0.2);
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--text-primary);
    font: 13px/1.4 Arial, Helvetica, sans-serif;
    outline: 0;
    padding: 10px 12px;
    width: 100%;
}

.admin-toolbar input:focus {
    border-color: rgba(142, 175, 208, 0.55);
}

.admin-project-search input {
    border-radius: 24px;
}

.admin-project-search input:focus {
    box-shadow: 0 0 0 2px rgba(142, 175, 208, 0.1);
}

.admin-filter-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-filter-links a {
    border-bottom: 1px solid transparent;
    color: var(--text-muted);
    font: 12px/1.3 Arial, Helvetica, sans-serif;
    padding: 5px 0;
    text-decoration: none;
}

.admin-filter-links a.is-active,
.admin-filter-links a:hover {
    border-bottom-color: var(--text-link);
    color: var(--text-link);
}

.admin-filter-links span {
    color: var(--text-secondary);
    margin-left: 3px;
}

.admin-project-list-controls {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.admin-project-list-control {
    display: grid;
    gap: 5px;
    min-width: 190px;
    position: relative;
}

.admin-project-list-control > span {
    color: var(--text-muted);
    font: 11px/1.3 Arial, Helvetica, sans-serif;
    text-transform: uppercase;
}

.admin-project-list-control select {
    appearance: none;
    background: #101116;
    border: 1px solid rgba(132, 151, 174, 0.2);
    border-radius: 24px;
    color: var(--text-secondary);
    font: 13px/1.4 Arial, Helvetica, sans-serif;
    min-height: 38px;
    padding: 8px 36px 8px 12px;
}

.admin-project-list-control select:focus {
    border-color: rgba(142, 175, 208, 0.55);
    box-shadow: 0 0 0 2px rgba(142, 175, 208, 0.1);
    outline: 0;
}

.admin-project-list-control::after {
    border-bottom: 1px solid var(--text-muted);
    border-right: 1px solid var(--text-muted);
    content: "";
    height: 6px;
    pointer-events: none;
    position: absolute;
    right: 15px;
    top: calc(50% + 9px);
    transform: translateY(-65%) rotate(45deg);
    width: 6px;
}

@media (min-width: 701px) {
    .admin-toolbar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .admin-toolbar > label {
        grid-column: 1 / -1;
    }

    .admin-filter-groups {
        display: contents;
    }

    .admin-filter-group:first-child {
        grid-column: 1;
        grid-row: 2;
    }

    .admin-project-list-controls {
        grid-column: 2;
        grid-row: 3;
        transform: translateY(-6px);
    }

    .admin-filter-group:nth-child(2) {
        grid-column: 1;
        grid-row: 3;
        transform: translateY(-6px);
    }
}

.admin-project-list {
    display: grid;
    gap: 10px;
}

.admin-project-row {
    align-items: center;
    border-left: 3px solid rgba(142, 175, 208, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: grid;
    gap: 16px;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    padding: 10px 0 10px 10px;
}

.admin-readonly-notice {
    background: rgba(142, 175, 208, 0.08);
    border-left: 2px solid rgba(142, 175, 208, 0.55);
    color: var(--text-secondary);
    font: 12px/1.4 Arial, Helvetica, sans-serif;
    margin: 0 0 12px;
    padding: 8px 10px;
}

.admin-success-notice {
    align-items: center;
    border-left-color: rgba(102, 175, 146, 0.8);
    color: #c9eadc;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.admin-success-notice__close {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    line-height: 1;
    opacity: 0.72;
    padding: 0 2px;
}

.admin-success-notice__close:hover,
.admin-success-notice__close:focus-visible {
    opacity: 1;
}

.admin-chapter-processing-message {
    align-items: center;
    background: rgba(142, 175, 208, 0.07);
    border: 1px solid rgba(142, 175, 208, 0.18);
    border-radius: 8px;
    color: var(--text-secondary);
    display: flex;
    column-gap: 24px;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 0 14px;
    overflow: hidden;
    padding: 9px 12px 14px;
    position: relative;
    row-gap: 10px;
}

.admin-chapter-processing-message[hidden] {
    display: none;
}

.admin-chapter-processing-message::after {
    animation: admin-processing-progress 1.25s ease-in-out infinite;
    background: #789fbd;
    border-radius: 999px;
    bottom: 6px;
    content: "";
    height: 3px;
    left: 12px;
    position: absolute;
    width: 34%;
}

.admin-chapter-processing-message > div {
    display: grid;
    flex: 1 1 280px;
    gap: 3px;
    min-width: 0;
}

.admin-chapter-processing-message > .admin-button {
    align-self: center;
    flex: 0 0 auto;
}

.admin-chapter-processing-message strong {
    color: var(--text-soft-primary);
    font: 700 13px/1.3 Arial, Helvetica, sans-serif;
}

.admin-chapter-processing-message span {
    font: 12px/1.4 Arial, Helvetica, sans-serif;
}

.admin-chapter-processing-message--ready {
    background: rgba(102, 175, 146, 0.1);
    border-color: rgba(102, 175, 146, 0.24);
    color: #c9eadc;
    padding-bottom: 9px;
}

.admin-chapter-processing-message--ready::after {
    content: none;
}

.admin-chapter-processing-message--failed {
    background: rgba(182, 111, 128, 0.08);
    border-color: rgba(182, 111, 128, 0.2);
    color: #f0c6cf;
    padding-bottom: 9px;
}

.admin-chapter-processing-message--failed::after {
    content: none;
}

.admin-chapter-processing-message--failed strong {
    color: #f0c6cf;
}

@keyframes admin-processing-progress {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

.admin-project-row--folyamatban { border-left-color: #66af92; }
.admin-project-row--szunetel { border-left-color: #b66f80; }
.admin-project-row--tervezett { border-left-color: #6d98c7; }

.admin-project-row img {
    border-radius: 7px;
    display: block;
    height: 68px;
    object-fit: cover;
    width: 96px;
}

.admin-project-row__main {
    min-width: 0;
}

.admin-project-row__title {
    align-items: start;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.admin-project-row__title h2 {
    color: var(--text-soft-primary);
    font: 400 16px/1.2 Georgia, "Times New Roman", serif;
    margin: 0;
}

.admin-project-row__heading {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-project-row__title p {
    margin: 0;
}

.admin-project-row__submeta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 9px;
}

.admin-project-row__submeta,
.admin-project-row__actions time {
    color: var(--text-muted);
    font: 11px/1.3 Arial, Helvetica, sans-serif;
}

.admin-visibility-segmented {
    align-items: center;
    background: #101116;
    border: 1px solid rgba(132, 151, 174, 0.22);
    border-radius: 999px;
    display: inline-flex;
    gap: 2px;
    padding: 2px;
    position: relative;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.admin-visibility-segmented:hover {
    background: #151820;
    border-color: rgba(142, 175, 208, 0.38);
}

.admin-visibility-segmented:focus-visible {
    outline: 1px solid rgba(142, 175, 208, 0.7);
    outline-offset: 2px;
}

.admin-visibility-segmented input {
    height: 1px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 1px;
}

.admin-visibility-segmented__option {
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--text-muted);
    cursor: inherit;
    font: 11px/1.2 Arial, Helvetica, sans-serif;
    padding: 4px 8px;
    transition: background-color 160ms ease, color 160ms ease;
}

.admin-visibility-segmented__option:hover {
    color: var(--text-soft-primary);
}

.admin-visibility-segmented:not(.is-public) .admin-visibility-segmented__option[data-admin-visibility-option="Rejtett"] {
    background: rgba(182, 111, 128, 0.2);
    color: #c58b9a;
}

.admin-visibility-segmented.is-public .admin-visibility-segmented__option[data-admin-visibility-option="Publikus"] {
    background: rgba(102, 175, 146, 0.2);
    color: #8fc2a5;
}

.admin-status-dot {
    border: 0;
    display: inline-block;
    height: 6px;
    margin: 0 5px 1px 0;
    padding: 0;
    width: 6px;
}

.admin-project-row--folyamatban .admin-status-dot { background: #66af92; }
.admin-project-row--szunetel .admin-status-dot { background: #b66f80; }
.admin-project-row--tervezett .admin-status-dot { background: #6d98c7; }

.admin-project-row__meta {
    color: rgba(127, 139, 153, 0.82);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 12px;
    font: 11px/1.3 Arial, Helvetica, sans-serif;
}

.admin-project-row__actions {
    align-items: end;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: flex-end;
}

.admin-project-row__actions time {
    white-space: nowrap;
}

.admin-project-row__actions time span {
    color: var(--text-secondary);
}

.admin-project-row__action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

@media (min-width: 701px) {
    .admin-project-row__actions {
        align-self: start;
        justify-content: flex-start;
        padding-top: 2px;
    }

    .admin-project-row__actions time {
        text-align: right;
        width: 100%;
    }

    .admin-project-row__action-buttons {
        margin-top: 2px;
        width: 100%;
    }
}

.admin-empty {
    color: var(--text-muted);
    font: 14px/1.5 Arial, Helvetica, sans-serif;
    margin: 25px 0;
}

.admin-permissions__toolbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 16px;
    padding-bottom: 18px;
}

.admin-permissions__toolbar input,
.admin-permissions__project-search {
    background: #101116;
    border: 1px solid rgba(132, 151, 174, 0.2);
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--text-primary);
    font: 13px/1.4 Arial, Helvetica, sans-serif;
    outline: 0;
    padding: 10px 12px;
    width: 100%;
}

.admin-permissions__toolbar input:focus,
.admin-permissions__project-search:focus {
    border-color: rgba(142, 175, 208, 0.55);
}

.admin-permissions__list {
    display: grid;
    gap: 0;
}

.admin-permission-row {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: grid;
    gap: 16px;
    grid-template-columns: 40px minmax(220px, 1fr) auto auto auto;
    padding: 16px 0;
}

.admin-permission-row img,
.admin-permission-user img {
    border-radius: 50%;
    display: block;
    height: 40px;
    object-fit: cover;
    width: 40px;
}

.admin-permission-row__avatar,
.admin-permission-user__avatar {
    flex: 0 0 auto;
    height: 40px;
    justify-self: start;
    width: 40px;
}

.admin-permission-user__avatar {
    height: 34px;
    width: 34px;
}

.admin-permissions__role-field {
    display: grid;
    gap: 7px;
    margin-top: 20px;
}

.admin-permissions__role-field > span {
    color: var(--text-muted);
    font: 11px/1.3 Arial, Helvetica, sans-serif;
    text-transform: uppercase;
}

.admin-permissions__role-field select {
    background: #101116;
    border: 1px solid rgba(132, 151, 174, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font: 13px/1.4 Arial, Helvetica, sans-serif;
    padding: 10px 12px;
    width: 100%;
}

.admin-permissions__role-field small {
    color: var(--text-muted);
    font: 12px/1.4 Arial, Helvetica, sans-serif;
}

.admin-permissions__full-access {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-secondary);
    font: 13px/1.5 Arial, Helvetica, sans-serif;
    margin: 20px 0 0;
    padding-bottom: 20px;
}

.admin-permission-row__identity h2 {
    color: var(--text-soft-primary);
    font: 400 16px/1.2 Georgia, "Times New Roman", serif;
    margin: 0 0 4px;
}

.admin-permission-row__identity p,
.admin-permission-row__role,
.admin-permission-row__projects,
.admin-permissions__dialog-header > div > p,
.admin-permissions__dialog-section p,
.admin-permission-project small,
.admin-permissions__selection {
    color: var(--text-muted);
    font: 12px/1.4 Arial, Helvetica, sans-serif;
    margin: 0;
}

.admin-permission-row__projects {
    color: var(--text-secondary);
    white-space: nowrap;
}

.admin-permissions__add {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: 26px;
    padding: 24px 0;
}

.admin-permissions__add[hidden],
.admin-permissions__modal[hidden] {
    display: none;
}

.admin-permissions__add .admin-section__header {
    align-items: start;
    margin-bottom: 18px;
}

.admin-permissions__add .admin-section__header h2 {
    margin-bottom: 6px;
}

.admin-permissions__user-results {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}

.admin-permission-user {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    color: inherit;
    cursor: pointer;
    display: flex;
    gap: 12px;
    padding: 10px;
    text-align: left;
}

.admin-permission-user:hover,
.admin-permission-user.is-selected {
    border-color: rgba(142, 175, 208, 0.42);
    background: rgba(142, 175, 208, 0.07);
}

.admin-permission-user span {
    display: grid;
    gap: 3px;
}

.admin-permission-user strong {
    color: var(--text-soft-primary);
    font: 400 14px/1.2 Georgia, "Times New Roman", serif;
}

.admin-permission-user small {
    color: var(--text-muted);
    font: 12px/1.3 Arial, Helvetica, sans-serif;
}

.admin-permissions__selection {
    margin: 12px 0;
}

.admin-permissions__modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 80;
}

.admin-permissions__backdrop {
    background: rgba(7, 8, 12, 0.74);
    border: 0;
    inset: 0;
    position: absolute;
}

.admin-permissions__dialog {
    background: #14151b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    max-height: min(680px, calc(100vh - 48px));
    max-width: 620px;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.admin-permissions__dialog-header {
    align-items: start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding-bottom: 18px;
}

.admin-permissions__dialog-header h2 {
    color: var(--text-primary);
    font: 400 21px/1.2 Georgia, "Times New Roman", serif;
    margin: 4px 0 5px;
}

.admin-permissions__dialog-section {
    padding-top: 22px;
}

.admin-permissions__dialog-section .admin-section__header {
    align-items: start;
    display: block;
    margin-bottom: 16px;
}

.admin-permissions__dialog-section .admin-section__header h2 {
    margin: 0 0 5px;
}

.admin-permissions__projects {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.admin-permission-project {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    display: flex;
    gap: 10px;
    padding: 10px 2px;
}

.admin-permission-project input {
    accent-color: #8eafd0;
    flex: 0 0 auto;
}

.admin-permission-project span {
    display: grid;
    gap: 3px;
}

.admin-permission-project strong {
    color: var(--text-soft-primary);
    font: 400 14px/1.25 Georgia, "Times New Roman", serif;
}

.admin-permissions__dialog-actions {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 22px;
    padding-top: 18px;
}

.admin-permissions__dialog-actions [hidden] {
    display: none;
}

.admin-badges__list {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-badge-row {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: grid;
    gap: 16px;
    grid-template-columns: 44px minmax(0, 1fr) auto auto auto;
    padding: 16px 0;
}

.admin-badge-row__icon,
.admin-badges__icon-preview {
    align-items: center;
    background: rgba(142, 175, 208, 0.08);
    border: 1px solid rgba(142, 175, 208, 0.2);
    border-radius: 50%;
    color: var(--text-link);
    display: inline-flex;
    font: 22px/1 Arial, sans-serif;
    height: 40px;
    justify-content: center;
    overflow: hidden;
    width: 40px;
}

.admin-badge-row__icon img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.admin-badge-row__identity h2 {
    color: var(--text-soft-primary);
    font: 400 16px/1.25 Georgia, "Times New Roman", serif;
    margin: 0 0 4px;
}

.admin-badge-row__identity p,
.admin-badge-row__count,
.admin-badges__field small,
.admin-badges__assignments p {
    color: var(--text-secondary);
    font: 12px/1.45 Arial, Helvetica, sans-serif;
    margin: 0;
}

.admin-badge-row__count {
    white-space: nowrap;
}

.admin-badges__modal[hidden],
.admin-badges__icon-preview img {
    display: none;
}

.admin-badges__modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 80;
}

.admin-badges__backdrop {
    background: rgba(7, 8, 12, 0.74);
    border: 0;
    inset: 0;
    position: absolute;
}

.admin-badges__dialog {
    background: #14151b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: min(760px, calc(100vh - 48px));
    max-width: 620px;
    overflow: hidden;
    padding: 24px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.admin-badges__form {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.admin-badges__dialog-header {
    align-items: start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 18px;
}

.admin-badges__dialog-header h2 {
    color: var(--text-primary);
    font: 400 21px/1.2 Georgia, "Times New Roman", serif;
    margin: 5px 0 0;
}

.admin-badges__field {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
}

.admin-badges__icon-controls {
    align-items: end;
    display: flex;
    gap: 16px;
}

.admin-badges__icon-controls .admin-badges__field {
    flex: 1;
}

.admin-badges__field > span,
.admin-badges__assignments h2 {
    color: var(--text-soft-primary);
    font: 13px/1.3 Arial, Helvetica, sans-serif;
}

.admin-badges__field input[type="text"],
.admin-badges__field textarea,
.admin-badges__field input[type="file"],
.admin-badges__assignments > input {
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font: 13px/1.4 Arial, Helvetica, sans-serif;
    padding: 10px 12px;
}

.admin-badges__field input[type="file"]::file-selector-button {
    background: rgba(142, 175, 208, 0.1);
    border: 1px solid rgba(142, 175, 208, 0.28);
    border-radius: 6px;
    color: var(--text-link);
    margin-right: 10px;
    padding: 6px 9px;
}

.admin-badges__icon-preview {
    border-radius: 8px;
    height: 84px;
    flex: 0 0 84px;
    margin: -2px 0 16px;
    width: 84px;
}

.admin-badges__icon-preview img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.admin-badges__icon-preview.has-image {
    border-radius: 8px;
}

.admin-badges__icon-preview.has-image img {
    display: block;
}

.admin-badges__assignments {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 20px;
}

.admin-badges__assignments .admin-section__header {
    align-items: start;
    display: block;
    margin-bottom: 14px;
}

.admin-badges__assignments h2 {
    margin: 0 0 5px;
}

.admin-badges__users {
    display: grid;
    flex: 1;
    gap: 4px;
    margin-top: 10px;
    min-height: 0;
    overflow-y: auto;
}

.admin-badge-user {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    gap: 10px;
    padding: 9px 2px;
}

.admin-badge-user input {
    accent-color: #8eafd0;
}

.admin-badge-user span {
    display: grid;
    gap: 2px;
}

.admin-badge-user strong {
    color: var(--text-soft-primary);
    font: 13px/1.3 Arial, Helvetica, sans-serif;
}

.admin-badge-user small {
    color: var(--text-muted);
    font: 11px/1.3 Arial, Helvetica, sans-serif;
}

.admin-badges__dialog-actions {
    background: #14151b;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-shrink: 0;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 16px;
}

.admin-badges__dialog-actions [hidden] {
    display: none;
}

@media (max-width: 700px) {
    .admin-badge-row {
        gap: 10px;
        grid-template-columns: 40px minmax(0, 1fr) auto;
    }

    .admin-badge-row__count {
        grid-column: 2 / -1;
        grid-row: 2;
    }

    .admin-badge-row > .admin-button {
        grid-row: 3;
    }

    .admin-badge-row > .admin-button[data-admin-badge-edit] {
        grid-column: 2;
    }

    .admin-badge-row > .admin-button[data-admin-badge-delete] {
        grid-column: 3;
    }

    .admin-badges__modal {
        padding: 12px;
    }

    .admin-badges__dialog {
        height: auto;
        max-height: calc(100vh - 24px);
        padding: 18px;
        overflow-y: auto;
    }

    .admin-badges__dialog-header {
        background: #14151b;
        position: sticky;
        top: -18px;
        z-index: 2;
    }

    .admin-badges__form {
        display: block;
    }

    .admin-badges__icon-controls {
        align-items: start;
    }

    .admin-badges__users {
        max-height: 230px;
    }

    .admin-badges__dialog-actions {
        bottom: -18px;
        position: sticky;
        z-index: 2;
    }
}

@media (max-width: 700px) {
    .admin-topbar {
        min-height: 58px;
        padding: 0 14px;
    }

    .admin-topbar__brand {
        font-size: 16px;
    }

    .admin-topbar__account {
        display: none;
    }

    .admin-nav-toggle {
        background: transparent;
        border: 1px solid rgba(132, 151, 174, 0.22);
        border-radius: 999px;
        color: var(--text-link);
        display: inline-flex;
        font: 12px/1 Arial, Helvetica, sans-serif;
        padding: 8px 11px;
    }

    .admin-frame {
        display: block;
    }

    .admin-sidebar {
        display: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        border-right: 0;
        padding: 18px 14px;
        position: static;
        width: auto;
    }

    .admin-shell.is-admin-nav-open .admin-sidebar {
        display: flex;
    }

    .admin-page {
        padding: 22px 14px 42px;
    }

    .admin-workspace-label {
        padding-left: 14px;
        padding-right: 14px;
    }

    .admin-page__header,
    .admin-section__header {
        align-items: start;
        flex-direction: column;
        gap: 16px;
    }

    .admin-page__header {
        margin-bottom: 26px;
    }

    .admin-project-list-controls {
        justify-content: flex-start;
    }

    .admin-project-list-control {
        flex: 1 1 190px;
    }

    .admin-permission-row {
        align-items: start;
        grid-template-columns: 40px minmax(0, 1fr) auto;
    }

    .admin-permission-row__role,
    .admin-permission-row__projects {
        grid-column: 2;
    }

    .admin-permission-row > .admin-button {
        grid-column: 3;
        grid-row: 1 / span 3;
    }

    .admin-permissions__dialog {
        padding: 18px;
    }

    .admin-permissions__dialog-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .admin-permissions__dialog-actions .admin-button {
        width: 100%;
    }

    .admin-stat-grid,
    .admin-action-grid {
        grid-template-columns: 1fr;
    }

    .admin-project-row {
        align-items: start;
        grid-template-columns: 72px minmax(0, 1fr);
        padding-left: 8px;
    }

    .admin-project-row img {
        height: 56px;
        width: 72px;
    }

    .admin-project-row__title {
        display: block;
    }

    .admin-project-row__title time {
        display: block;
        margin-top: 7px;
    }

    .admin-project-row__actions {
        align-items: flex-start;
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .admin-project-row__action-buttons {
        justify-content: flex-start;
    }
}

@media (max-width: 1600px) and (min-width: 701px) {
    .admin-shell:not(.admin-shell--limited) .admin-sidebar {
        display: none;
    }

    .admin-shell:not(.admin-shell--limited) .admin-nav-toggle {
        background: transparent;
        border: 1px solid rgba(132, 151, 174, 0.22);
        border-radius: 999px;
        color: var(--text-link);
        display: inline-flex;
        font: 12px/1 Arial, Helvetica, sans-serif;
        padding: 8px 11px;
    }

    .admin-shell:not(.admin-shell--limited).is-admin-nav-open .admin-sidebar {
        background: #14151b;
        display: flex;
        z-index: 5;
    }
}

.admin-project-editor__backline {
    margin-bottom: 20px;
}

.admin-project-editor__header {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding-bottom: 24px;
}

.admin-project-editor__identity {
    align-items: center;
    display: flex;
    gap: 16px;
    min-width: 0;
}

.admin-project-editor__identity img {
    border-radius: 8px;
    display: block;
    flex: 0 0 auto;
    height: 64px;
    object-fit: cover;
    width: 92px;
}

.admin-project-editor__cover-placeholder {
    background: #101116;
    border-radius: 8px;
    flex: 0 0 auto;
    height: 64px;
    width: 92px;
}

.admin-project-editor__identity h1 {
    color: var(--text-primary);
    font: 400 25px/1.15 Georgia, "Times New Roman", serif;
    margin: 5px 0 8px;
}

.admin-project-editor__meta {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    font: 12px/1.3 Arial, Helvetica, sans-serif;
    gap: 9px;
    margin: 0;
}

.admin-project-editor__meta > span + span::before {
    color: rgba(127, 139, 153, 0.65);
    content: '·';
    margin-right: 9px;
}

.admin-project-status {
    color: var(--text-secondary);
}

.admin-project-status--folyamatban { color: #78b79d; }
.admin-project-status--szunetel { color: #c88a96; }
.admin-project-status--tervezett { color: #83a9d1; }

.admin-project-editor__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.admin-project-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    gap: 24px;
    margin-top: 24px;
    overflow-x: auto;
}

.admin-project-tabs button {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    font: 400 13px/1.2 Arial, Helvetica, sans-serif;
    padding: 0 0 12px;
    white-space: nowrap;
}

.admin-project-tabs button:hover,
.admin-project-tabs button.is-active {
    border-bottom-color: var(--text-link);
    color: var(--text-link);
}

.admin-project-tab-panels {
    padding-top: 28px;
}

[data-admin-project-tabs]:not(.is-tabs-ready) .admin-project-tab-panels {
    visibility: hidden;
}

.admin-project-tab-panel[hidden] {
    display: none;
}

.admin-project-tab-panel > h2 {
    color: var(--text-primary);
    font: 400 20px/1.2 Georgia, "Times New Roman", serif;
    margin: 5px 0 20px;
}

.admin-project-summary {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.admin-project-summary > div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: grid;
    gap: 7px;
    padding: 16px 20px 16px 0;
}

.admin-project-summary dt {
    color: var(--text-muted);
    font: 11px/1.3 Arial, Helvetica, sans-serif;
}

.admin-project-summary dd {
    color: var(--text-soft-primary);
    font: 14px/1.35 Arial, Helvetica, sans-serif;
    margin: 0;
}

.admin-project-placeholder {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-secondary);
    font: 14px/1.5 Arial, Helvetica, sans-serif;
    margin: 0;
    max-width: 700px;
    padding-bottom: 20px;
}

@media (max-width: 700px) {
    .admin-project-editor__header {
        align-items: start;
        flex-direction: column;
    }

    .admin-project-editor__identity {
        align-items: start;
    }

    .admin-project-editor__identity img {
        height: 56px;
        width: 76px;
    }

    .admin-project-editor__cover-placeholder {
        height: 56px;
        width: 76px;
    }

    .admin-project-editor__identity h1 {
        font-size: 22px;
    }

    .admin-project-editor__actions {
        width: 100%;
    }

    .admin-project-summary {
        grid-template-columns: 1fr;
    }
}

.chapter-reader__bottom-nav {
    padding-top: 18px;
}

.reader-reactions,
.reader-comments {
    margin-top: 22px;
}

.reader-reactions__header {
    padding: 10px 0;
}

.reader-reactions__list {
    padding-top: 10px;
}

@media (max-width: 700px) {
    .chapter-reader__toolbar {
        column-gap: 6px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto auto;
        justify-content: stretch;
        row-gap: 7px;
        margin-bottom: 12px;
        padding: 7px 0 9px;
    }

    .chapter-reader__title {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: start;
    }

    .chapter-reader__controls {
        display: contents;
    }

    .chapter-reader__controls > a:first-of-type {
        grid-column: 2;
        grid-row: 2;
    }

    .chapter-reader__controls > label:not(.chapter-reader__scale) {
        grid-column: 3;
        grid-row: 2;
    }

    .chapter-reader__controls > a:last-of-type {
        grid-column: 4;
        grid-row: 2;
    }

    .chapter-reader__meta {
        grid-column: 1;
        grid-row: 3;
        justify-content: flex-start;
    }

    .chapter-reader__scale {
        align-self: center;
        grid-column: 2 / -1;
        grid-row: 3;
        justify-self: end;
        width: auto;
    }

    .chapter-reader__scale select {
        width: auto;
    }

    .chapter-reader__bottom-nav {
        gap: 8px;
        padding-top: 14px;
    }

    .reader-reactions,
    .reader-comments {
        margin-top: 18px;
    }
}

@media (max-width: 700px) {
    .auth-page {
        padding: var(--page-header-padding-top) 14px 42px;
    }

    .auth-page--login {
        max-width: calc(100% - 28px);
        padding: 18px;
    }

    .auth-page__intro h1 {
        font-size: 22px;
    }

    .auth-form {
        max-width: none;
    }

    .profile-modal {
        padding: 12px;
    }

    .profile-modal__dialog {
        max-height: calc(100vh - 24px);
        padding: 18px;
    }

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

    .profile-modal__danger {
        align-items: stretch;
    }

    .profile-modal__danger .profile-modal__button {
        width: 100%;
    }

    .account-delete-modal {
        padding: 12px;
    }

    .account-delete-modal__dialog {
        padding: 18px;
    }

    .account-delete-modal__actions {
        justify-content: stretch;
    }

    .account-delete-modal__actions .profile-modal__button {
        flex: 1 1 140px;
    }

    .profile-page {
        display: flex;
        flex-direction: column;
        padding: var(--page-header-padding-top) 14px 42px;
    }

    .profile-page__identity-copy h1 {
        font-size: 22px;
    }

    .profile-page__identity {
        display: contents;
        flex-wrap: wrap;
    }

    .profile-page__identity-main {
        order: 1;
        width: 100%;
    }

    .profile-page__actions {
        order: 3;
        width: auto;
    }

    .profile-page__body {
        gap: 28px;
        grid-template-columns: 1fr;
        order: 2;
    }

    .profile-page__actions {
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        justify-content: flex-start;
        margin-top: 0;
        padding-top: 18px;
    }

    .support-page {
        padding: var(--page-header-padding-top) 14px 42px;
    }

    .support-page__intro h1 {
        font-size: 22px;
    }

    .support-option {
        align-items: center;
        column-gap: 18px;
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .support-option__media {
        align-items: center;
        display: flex;
        height: 110px;
        justify-content: center;
        justify-self: start;
        width: 110px;
    }

    .support-option__copy {
        grid-column: 2;
        grid-row: 1;
    }

    .support-option-list {
        grid-template-columns: 1fr;
    }

    .support-option__qr {
        flex-basis: 100px;
        height: 110px;
        max-width: 100%;
        width: 110px;
    }

    .support-option__qr img {
        height: 100px;
        width: 100px;
    }

    .support-option__banner {
        height: 105px;
        max-height: 105px;
        max-width: 105px;
        width: 105px;
    }

    .contact-page {
        padding: var(--page-header-padding-top) 14px 42px;
    }

    .contact-page__intro h1 {
        font-size: 22px;
    }

    .contact-page__layout {
        gap: 30px;
        grid-template-columns: 1fr;
    }

    .contact-page__dropzone-selected {
        flex-wrap: wrap;
    }

    .contact-page__dropzone-selected button {
        margin-left: auto;
    }

    .project-directory {
        padding: 22px 14px 42px;
    }

    .project-directory__header {
        align-items: start;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 18px;
    }

    .project-directory__header h1 {
        font-size: 22px;
    }

    .project-directory__tools {
        width: 100%;
    }

    .project-directory__search {
        flex: 1;
    }

    .project-directory__search input {
        min-width: 0;
        width: 100%;
    }

    .project-directory__sort select {
        max-width: 96px;
    }

    .project-directory__filters {
        gap: 16px;
        margin-bottom: 18px;
    }
}

.partners-section {
    margin: 0 auto;
    max-width: var(--site-container-width);
    padding: 2px var(--site-container-padding) 38px;
}

.partners-section:target .partners-section__header h2 {
    position: relative;
}

.partners-section:target .partners-section__header h2::after {
    background: #8eafd0;
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(142, 175, 208, 0.55);
    content: "";
    height: 2px;
    left: 50%;
    position: absolute;
    top: calc(100% + 1px);
    transform: translateX(-50%);
    width: 240px;
    animation: partners-title-target 1.4s ease-out both;
}

@keyframes partners-title-target {
    0% {
        opacity: 0;
        transform: translateX(-50%) scaleX(0.45);
    }

    24% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) scaleX(0.82);
    }
}

.partners-section__header {
    margin-bottom: 16px;
    text-align: center;
}

.partners-section__header h2 {
    color: var(--text-primary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 6px;
}

.partners-section__header p {
    color: var(--text-secondary);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.partners-section__grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 660px;
}

.partner-card {
    align-items: center;
    background: #11131a;
    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 9px;
    display: flex;
    gap: 16px;
    min-height: 78px;
    padding: 8px 14px;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease;
}

.partner-card:hover,
.partner-card:focus-visible {
    background: #171b24;
    border-color: rgba(142, 175, 208, 0.32);
    outline: none;
}

.partner-card__mark {
    align-items: center;
    background: #181a22;
    border: 1px solid rgba(143, 194, 255, 0.16);
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 auto;
    height: 66px;
    justify-content: center;
    overflow: hidden;
    width: 66px;
}

.partner-card__mark img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.partner-card__mark--yaoistak img {
    object-fit: cover;
}

.partner-card__copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.partner-card__name {
    color: var(--text-primary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
}

.partner-card__description {
    color: var(--text-muted);
    font: 12px/1.35 Arial, Helvetica, sans-serif;
}

.site-footer {
    background: #101116;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.site-footer__copyright {
    color: var(--text-muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    margin: 0 auto;
    max-width: var(--site-container-width);
    padding: 14px var(--site-container-padding);
    text-align: center;
}

/* Reader controls and shared image scale. The reader base width is 800px. */
.chapter-reader__title > a {
    color: inherit;
    text-decoration: none;
    transition: color 160ms ease;
}

.chapter-reader__title > a strong {
    transition: color 160ms ease;
}

.chapter-reader__title > a:hover,
.chapter-reader__title > a:focus-visible {
    color: var(--text-link);
}

.chapter-reader__title > a:hover strong,
.chapter-reader__title > a:focus-visible strong {
    color: var(--text-link);
}

@media (min-width: 701px) {
    .chapter-reader__title strong {
        font-size: 15px;
    }
}

.chapter-reader__select-wrap {
    position: relative;
}

.chapter-reader__select-wrap::after {
    border-bottom: 1px solid var(--text-muted);
    border-right: 1px solid var(--text-muted);
    content: "";
    height: 5px;
    pointer-events: none;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-65%) rotate(45deg);
    width: 5px;
}

.chapter-reader__controls select {
    padding-right: 28px;
}

.chapter-reader__controls > .chapter-reader__arrow {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.chapter-reader__controls > .chapter-reader__arrow::before,
.chapter-reader__controls > .chapter-reader__arrow::after {
    content: none;
    display: none;
}

.chapter-reader__arrow-icon {
    background-color: var(--text-muted);
    display: block;
    height: 27px;
    mask: url("../images/icons/elozo.svg") center / contain no-repeat;
    transition: background-color 160ms ease;
    width: 27px;
}

.chapter-reader__arrow--next .chapter-reader__arrow-icon {
    transform: scaleX(-1);
}

.chapter-reader__arrow:not([aria-disabled="true"]):hover .chapter-reader__arrow-icon,
.chapter-reader__arrow:not([aria-disabled="true"]):focus-visible .chapter-reader__arrow-icon {
    background-color: var(--text-link);
}

.chapter-reader__arrow:not([aria-disabled="true"]):focus-visible {
    outline: 1px solid rgba(142, 175, 208, 0.55);
    outline-offset: 3px;
}

.chapter-reader__arrow[aria-disabled="true"] {
    cursor: default;
    opacity: 0.4;
    pointer-events: none;
}

.chapter-reader__pages {
    margin-inline: auto;
    max-width: none;
    width: min(100%, calc(800px * var(--reader-scale, 1)));
}

.reader-image-slot {
    display: block;
    flex: 0 0 auto;
    flex-shrink: 0;
    position: relative;
    width: 100%;
}

.reader-image-slot > img {
    display: block;
    height: 100%;
    inset: 0;
    max-width: none;
    object-fit: contain;
    position: absolute;
    width: 100%;
}

.chapter-reader__pages img,
.chapter-reader__manga-page {
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
}

@media (max-width: 700px) {
    .chapter-reader {
        padding: 14px 14px 38px;
    }

    .chapter-reader__toolbar {
        align-items: stretch;
        gap: 10px;
        grid-template-columns: 1fr auto;
        padding: 9px 0;
    }

    .chapter-reader__back {
        align-self: center;
    }

    .chapter-reader__title {
        align-items: flex-start;
        grid-column: 1 / -1;
        grid-row: 1;
        min-width: 0;
        text-align: left;
    }

    .chapter-reader__title > a {
        display: block;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100%;
    }

    .chapter-reader__title > a strong {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .chapter-reader__back {
        grid-column: 1;
        grid-row: 2;
    }

    .chapter-reader__controls {
        grid-column: 2;
        grid-row: 2;
    }

    .reader-image-slot > img {
        max-width: 100%;
    }

    .chapter-reader__bottom-nav {
        flex-wrap: wrap;
    }
}
@media (max-width: 700px) {
    .site-header {
        background: #101116;
    }

    .site-header__inner {
        align-items: center;
        gap: 6px;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 84px;
        padding: 9px 14px 10px;
    }

    .site-header__brand {
        align-self: center;
        font-size: 19px;
        gap: 7px;
        min-width: 0;
    }

    .site-header__mark {
        align-self: center;
        font-size: 14px;
        height: 34px;
        object-position: center;
        width: 34px;
    }

    .site-header__mark::after {
        height: 8px;
        width: 8px;
    }

    .site-header__avatar {
        height: 30px;
        justify-self: end;
        margin-left: 0;
        width: 30px;
    }

    .site-header__account {
        grid-column: 2;
        grid-row: 1;
        gap: 8px;
        justify-self: end;
    }

    .site-header__notification-button {
        height: 30px;
        transform: translateY(3px);
        width: 30px;
    }

    .site-header__message-link {
        height: 30px;
        width: 30px;
    }

    .site-header__message-link img {
        height: 18px;
        width: 18px;
    }

    .site-header__admin-link img {
        height: 16px;
        width: 16px;
    }

    .site-header__notification-icon {
        height: 20px;
        width: 20px;
    }

    .site-header__notifications {
        transform: none;
    }

    .notifications-panel {
        box-sizing: border-box;
        left: 14px;
        min-width: 0;
        max-width: none;
        position: fixed;
        right: 14px;
        top: 104px;
        transform: none;
        width: auto;
    }

    .site-header__nav {
        border-top: 0;
        gap: clamp(22px, 6vw, 28px);
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: center;
        padding-top: 12px;
        position: relative;
    }

    .site-header__nav::before {
        background: rgba(132, 151, 174, 0.16);
        content: "";
        height: 1px;
        left: -14px;
        position: absolute;
        right: -14px;
        top: 0;
    }

    .site-header__nav a {
        font-size: 14px;
        padding-inline: 1px;
        position: relative;
    }

    .site-header__nav-link--translations {
        display: none;
    }

    .site-header__nav a.is-active::after {
        background: var(--text-link);
        border-radius: 999px;
        bottom: -6px;
        content: "";
        height: 2px;
        left: 0;
        opacity: 0.72;
        position: absolute;
        width: 100%;
    }

    .home-hero {
        align-items: start;
        gap: 18px;
        grid-template-columns: 1fr;
        padding: 18px 14px 28px;
    }

    .home-hero__intro h1 {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .home-hero__intro p {
        font-size: 14px;
    }

    .home-hero__tools {
        justify-content: stretch;
        width: 100%;
    }

    .home-search {
        flex: 1;
    }

    .home-search input {
        min-width: 0;
        width: 100%;
    }

    .project-section {
        padding: 0 14px 42px;
    }

    .project-grid {
        gap: 16px;
        grid-template-columns: 1fr;
    }

    .project-view--list {
        overflow: visible;
    }

    .project-list {
        min-width: 0;
    }

    .project-section--planned .project-list {
        gap: 12px;
    }

    .project-list__item {
        align-items: stretch;
        gap: 10px;
        min-height: 0;
    }

    .project-list__cover {
        align-self: flex-start;
        flex-basis: 116px;
        height: auto;
    }

    .project-list__content {
        min-width: 0;
        padding: 4px 0;
    }

    .project-list__heading h3 {
        font-size: 15px;
    }

    .project-list__update {
        grid-template-columns: minmax(0, 1fr) auto 18px;
        min-height: 25px;
        padding: 0 6px;
    }

    .project-list__update:nth-child(n + 4) {
        display: none;
    }

    .project-list__uploader > span:last-child {
        display: none;
    }

    .project-list__translator span {
        display: none;
    }

    .project-list__translator img {
        height: 18px;
        width: 18px;
    }

    .project-card {
        border-radius: 9px;
    }

    .project-card__content {
        bottom: 15px;
        right: 70px;
    }

    .project-card__content h3 {
        font-size: 18.5px;
    }

    .partners-section {
        padding: 2px 14px 30px;
    }

    .partners-section__header {
        text-align: center;
    }

    .partners-section__header h2 {
        font-size: 22px;
    }

    .partners-section__grid {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .partner-card {
        min-height: 72px;
        padding: 8px 12px;
    }

    .partner-card__mark {
        height: 60px;
        width: 60px;
    }

    .site-footer__copyright {
        padding: 14px;
        text-align: center;
    }
}

@media (max-width: 390px) {
    .site-header__nav {
        gap: clamp(18px, 5.3vw, 22px);
    }
}

@media (min-width: 701px) and (max-width: 980px) {
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 701px) {
    .project-chapters {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .project-chapters.is-height-synced {
        height: var(--project-info-height);
    }

    .project-chapters.is-height-synced .project-chapters__list {
        flex: 1 1 auto;
        max-height: none;
        min-height: 0;
    }
}

@media (max-width: 700px) {
    .project-detail {
        padding: 22px 12px 42px;
    }

    .project-detail__top {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-info__body {
        padding: 15px;
    }

    .project-info__title-row {
        align-items: start;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .project-info__title-row h1 {
        min-width: 0;
    }

    .project-info__title-row .project-card__status {
        align-self: start;
        justify-self: end;
        white-space: nowrap;
    }

    .project-info__actions {
        flex-wrap: wrap;
    }

    .project-info__likes {
        margin-right: 0;
    }

    .project-chapters__header,
    .project-comments__header {
        padding: 15px;
        padding-bottom: 8px;
    }

    .project-chapters__translator {
        padding: 12px 15px;
    }

    .project-chapters__list {
        padding: 6px 8px 8px;
    }

    .project-chapter {
        gap: 6px;
        grid-template-columns: minmax(0, 1fr) auto auto auto;
        min-height: 28px;
        padding: 0 7px;
        border-radius: 11px;
    }

    .project-chapter__uploader > span:last-child {
        display: none;
    }

    .project-chapter__stats {
        display: inline-flex;
        font-size: 10px;
        gap: 4px;
    }

    .project-chapter__updated--long {
        display: none;
    }

    .project-chapter__updated--short {
        display: inline;
    }

    .project-chapter__stat {
        gap: 3px;
    }

    .project-chapter__stat img {
        height: 12px;
        width: 12px;
    }

    .project-comments {
        margin-top: 16px;
    }

    .project-comments__list {
        padding: 0 15px;
    }

    .project-comments__load-more-wrap {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 700px) {
    .chapter-reader__toolbar {
        column-gap: 6px;
        grid-template-columns: minmax(0, 1fr) auto;
        row-gap: 7px;
    }

    .chapter-reader__title {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .chapter-reader__controls {
        align-items: center;
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
    }
}

@media (max-width: 700px) {
    .chapter-reader__pages {
        margin-left: -14px;
        margin-right: -14px;
        max-width: none;
        width: calc(100% + 28px);
    }

    .chapter-reader__pages img {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 700px) {
    .home-hero,
    .project-directory {
        padding-top: 18px;
    }
}

/* Reader toolbar polish. */
@media (min-width: 701px) {
    .chapter-reader__toolbar {
        background: transparent;
        gap: 14px;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        padding: 13px 0;
        position: static;
        top: auto;
        z-index: auto;
    }

    .chapter-reader__controls {
        display: contents;
    }

    .chapter-reader__title {
        grid-column: 1;
        min-width: 0;
    }

    .chapter-reader__title > a {
        display: block;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .chapter-reader__chapter-controls {
        align-items: center;
        display: flex;
        gap: 8px;
        grid-column: 2;
        justify-self: center;
        white-space: nowrap;
    }

    .chapter-reader__option-controls {
        align-items: center;
        display: flex;
        gap: 12px;
        grid-column: 3;
        justify-content: flex-end;
        justify-self: end;
        min-width: 0;
        white-space: nowrap;
    }

    .chapter-reader__chapter-controls > .chapter-reader__arrow {
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }

    .chapter-reader__chapter-controls > .chapter-reader__arrow::before,
    .chapter-reader__chapter-controls > .chapter-reader__arrow::after {
        content: none;
        display: none;
    }
}

@media (max-width: 700px) {
    .chapter-reader__chapter-controls,
    .chapter-reader__option-controls {
        display: contents;
    }

    .chapter-reader__fullscreen-button {
        display: none !important;
    }

    .chapter-reader__toolbar {
        min-width: 0;
        overflow: hidden;
    }

    .chapter-reader__title {
        justify-content: center;
        min-height: 30px;
        min-width: 0;
        overflow: hidden;
    }

    .chapter-reader__title > a {
        display: block;
        min-width: 0;
        overflow: hidden;
        white-space: normal;
    }

    .chapter-reader__title > a strong {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        white-space: normal;
        line-height: 1.25;
    }

    .chapter-reader__controls {
        flex-shrink: 0;
        min-width: 0;
        white-space: nowrap;
    }
}

.chapter-reader__mode-toggle {
    border: 1px solid rgba(142, 175, 208, 0.22);
    border-radius: 8px;
    gap: 4px;
    padding: 2px;
}

.chapter-reader__mode-toggle > button {
    border-radius: 6px;
    min-width: 28px;
    padding: 7px 7px;
}

.chapter-reader__mode-toggle > button[aria-pressed="true"] {
    background: rgba(142, 175, 208, 0.2);
    color: var(--text-link);
}

.admin-project-details-form {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin: 0 auto;
    max-width: 1160px;
    padding-top: 20px;
}

.admin-project-details-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-project-details-grid label,
.admin-project-details-grid .admin-chip-field-label {
    display: grid;
    gap: 7px;
    min-width: 0;
    position: relative;
}

.admin-project-details-grid__wide {
    grid-column: 1 / -1;
}

.admin-project-details-grid label > span,
.admin-project-details-grid .admin-chip-field-label > span {
    color: var(--text-secondary);
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.3;
}

.admin-field-help {
    color: var(--text-muted);
    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.25;
}

.admin-project-create-field-error {
    color: #d49ca4;
    display: inline;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.35;
    margin-left: 8px;
}

.admin-cover-editor {
    margin: 0 auto;
    max-width: 1160px;
    padding-top: 8px;
}

.admin-cover-upload {
    max-width: 520px;
}

.admin-cover-upload > span,
.admin-cover-preview__heading span,
.admin-cover-controls label > span {
    color: var(--text-secondary);
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.admin-cover-upload .contact-page__file-input {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.admin-cover-upload-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.admin-cover-upload-status {
    color: var(--text-secondary);
    font: 12px/1.4 Arial, Helvetica, sans-serif;
}

.admin-cover-upload-status.is-error {
    color: #c58f9f;
}

.admin-cover-previews {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
}

.admin-cover-preview {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    min-width: 0;
    padding-top: 16px;
}

.admin-cover-preview__heading {
    align-items: baseline;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.admin-cover-preview__heading h3 {
    color: var(--text-primary);
    font: 400 17px/1.25 Georgia, "Times New Roman", serif;
    margin: 0;
}

.admin-cover-preview__frame {
    background: #101116;
    border-radius: 9px;
    cursor: grab;
    overflow: hidden;
    position: relative;
    touch-action: none;
    width: 78%;
    margin-left: auto;
    margin-right: auto;
}

.admin-cover-preview__placeholder {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    font: 12px/1.3 Arial, Helvetica, sans-serif;
    inset: 0;
    justify-content: center;
    position: absolute;
}

.admin-cover-preview__placeholder span {
    color: var(--text-muted);
    display: block;
    line-height: 1.5;
    text-align: center;
}

.admin-cover-preview__frame.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.admin-cover-preview--card .admin-cover-preview__frame {
    aspect-ratio: 16 / 9;
}

.admin-cover-preview--list .admin-cover-preview__frame {
    aspect-ratio: 166 / 180;
    max-width: 172px;
}

.admin-cover-preview--detail .admin-cover-preview__frame {
    aspect-ratio: 16 / 9;
}

.admin-cover-preview--detail {
    border-top: 0;
}

@media (min-width: 701px) {
    .admin-cover-preview__frame {
        height: 200px;
        width: auto;
    }

    .admin-cover-preview--card .admin-cover-preview__frame {
        max-width: none;
    }

    .admin-cover-preview--list .admin-cover-preview__frame {
        max-width: none;
    }
}

.admin-cover-preview__frame img {
    --cover-scale: 1;
    --cover-x: 50%;
    --cover-y: 50%;
    display: block;
    height: 100%;
    left: 0;
    max-width: 100%;
    object-fit: cover;
    object-position: var(--cover-x) var(--cover-y);
    position: absolute;
    top: 0;
    transform: scale(var(--cover-scale));
    transform-origin: 0 0;
    user-select: none;
    width: 100%;
}

.admin-cover-preview__frame img[hidden] {
    display: none;
}

.admin-cover-preview__frame img.is-admin-cover-positioned {
    max-width: none;
    object-fit: initial;
}

.admin-cover-controls {
    display: grid;
    gap: 12px;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    max-width: 82%;
}

.admin-cover-controls label {
    display: grid;
    gap: 6px;
}

.admin-cover-controls label > span {
    display: flex;
    justify-content: space-between;
}

.admin-cover-controls output {
    color: var(--text-muted);
}

.admin-cover-controls input[type="range"] {
    accent-color: #8eafd0;
    width: 100%;
}

.admin-cover-preview > .admin-button {
    margin-top: 14px;
}

.admin-cover-editor > .admin-project-details-form__footer {
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    margin-top: 8px;
}

.admin-cover-editor > .admin-project-details-form__footer [data-admin-cover-upload-status] {
    margin: 0;
}

.admin-chapters {
    max-width: 1160px;
    margin: 0 auto;
}

.admin-chapters__topline {
    align-items: start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.admin-chapters__topline-info {
    display: block;
    margin: 0;
}

.admin-chapters__topline-info > h2 {
    color: var(--text-primary);
    font: 400 19px/1.15 Georgia, "Times New Roman", serif;
    margin: 5px 0 8px;
}

.admin-chapters__count {
    color: var(--text-muted);
    font: 12px/1.3 Arial, Helvetica, sans-serif;
    margin: 0;
}

.admin-chapters__toolbar {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    padding-bottom: 15px;
}

.admin-chapters__actions-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.admin-chapters__toolbar label {
    align-items: center;
    display: flex;
    gap: 10px;
}

.admin-chapters__toolbar label > span,
.admin-chapter-row__meta,
.admin-chapter-editor label > span,
.admin-chapter-create label > span {
    color: var(--text-secondary);
    font: 12px/1.3 Arial, Helvetica, sans-serif;
}

.admin-chapters__toolbar select,
.admin-chapter-editor input,
.admin-chapter-editor select,
.admin-chapter-create input {
    background: #101116;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--text-primary);
    font: 13px/1.4 Arial, Helvetica, sans-serif;
    padding: 9px 11px;
}

.admin-chapters__toolbar label {
    position: relative;
}

.admin-chapters__toolbar select {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 24px;
    padding: 7px 36px 7px 11px;
}

.admin-chapters__toolbar select:focus {
    border-color: rgba(142, 175, 208, 0.6);
    box-shadow: 0 0 0 2px rgba(142, 175, 208, 0.1);
    outline: 0;
}

.admin-chapters__toolbar label::after {
    border-bottom: 1px solid var(--text-muted);
    border-right: 1px solid var(--text-muted);
    content: "";
    height: 6px;
    pointer-events: none;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
}

.admin-chapter-create {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 18px 0;
}

.admin-chapter-create h3 {
    color: var(--text-primary);
    font: 400 18px/1.3 Georgia, "Times New Roman", serif;
    margin: 0 0 13px;
}

.admin-chapter-create__fields {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.admin-chapter-create label,
.admin-chapter-editor label {
    display: grid;
    gap: 7px;
}

.admin-chapter-editor label[hidden] {
    display: none;
}

.admin-chapter-list {
    display: grid;
    gap: 9px;
    padding-top: 18px;
}

.admin-chapter-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    column-gap: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px 0;
}

.admin-chapter-row[data-content-type]:not([data-content-type="chapter"]) {
    background: transparent;
    position: relative;
}

.admin-chapter-row[data-content-type]:not([data-content-type="chapter"]) .admin-chapter-row__main {
    padding-left: 14px;
}

.admin-chapter-row[data-content-type]:not([data-content-type="chapter"])::before {
    background: linear-gradient(180deg, rgba(142, 175, 208, 0.72), rgba(142, 175, 208, 0.38));
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    top: 0;
    width: 3px;
}

.admin-chapter-row[data-content-type]:not([data-content-type="chapter"])::after {
    background: linear-gradient(90deg, rgba(142, 175, 208, 0.16) 0%, rgba(142, 175, 208, 0.07) 34%, rgba(142, 175, 208, 0.018) 58%, transparent 82%);
    bottom: 0;
    content: "";
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 0;
}

.admin-chapter-row[data-content-type]:not([data-content-type="chapter"]) > * {
    position: relative;
    z-index: 1;
}

.admin-chapter-row__main {
    min-width: 0;
}

.admin-chapter-row__title {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.admin-chapter-row__title strong {
    color: var(--text-primary);
    font: 400 16px/1.3 Georgia, "Times New Roman", serif;
}

.admin-chapter-row__title > span {
    color: var(--text-secondary);
    font: 12px/1.3 Arial, Helvetica, sans-serif;
}

.admin-chapter-row__title > .admin-chapter-row__note {
    color: var(--text-muted);
    display: block;
    flex-basis: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-chapter-row__meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 9px;
}

.admin-chapter-visibility {
    border-radius: 999px;
    padding: 3px 7px;
}

.admin-chapter-visibility--publikus {
    color: #8fc59e;
}

.admin-chapter-visibility--rejtett {
    color: #d29aa2;
}

.admin-chapter-scheduled {
    background: rgba(142, 175, 208, 0.1);
    border: 1px solid rgba(142, 175, 208, 0.24);
    border-radius: 999px;
    color: #8eafd0;
    padding: 3px 7px;
}

.admin-chapter-processing-badge {
    background: rgba(142, 175, 208, 0.08);
    border: 1px solid rgba(142, 175, 208, 0.22);
    border-radius: 999px;
    color: var(--text-secondary);
    padding: 3px 7px;
}

.admin-chapter-processing-badge--failed {
    background: rgba(182, 111, 128, 0.08);
    border-color: rgba(182, 111, 128, 0.35);
    color: #f0c6cf;
}

.admin-chapter-row__actions {
    align-self: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-end;
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
}

.admin-chapter-editor {
    grid-column: 1 / -1;
    grid-row: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: 13px;
    padding-top: 16px;
}

.admin-chapter-editor__grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-chapter-editor__info {
    align-self: end;
    color: var(--text-muted);
    font: 12px/1.4 Arial, Helvetica, sans-serif;
    padding-bottom: 10px;
}

.admin-chapter-images {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: 16px;
    padding-top: 15px;
}

.admin-chapter-images__heading {
    align-items: end;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.admin-chapter-images h4 {
    color: var(--text-soft-primary);
    font: 400 15px/1.3 Georgia, "Times New Roman", serif;
    margin: 0;
}

.admin-chapter-images p,
.admin-chapter-images__heading label > span,
.admin-chapter-images__dropzone span {
    color: var(--text-muted);
    font: 12px/1.4 Arial, Helvetica, sans-serif;
}

.admin-chapter-images p {
    margin: 4px 0 0;
}

.admin-chapter-images__heading label {
    display: grid;
    gap: 6px;
    min-width: 170px;
}

.admin-chapter-images__heading select {
    background: #101116;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    color: var(--text-primary);
    font: 13px/1.4 Arial, Helvetica, sans-serif;
    padding: 8px 10px;
}

.admin-chapter-images__warning {
    color: #c9a8ae !important;
    margin: 11px 0 0 !important;
}

.admin-chapter-images__dropzone {
    align-items: center;
    border: 1px dashed rgba(142, 175, 208, 0.28);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
    margin-top: 12px;
    min-height: 66px;
    padding: 10px;
    text-align: center;
    transition: border-color 140ms ease, background 140ms ease;
}

.admin-chapter-images__dropzone:hover,
.admin-chapter-images__dropzone.is-dragging {
    background: rgba(142, 175, 208, 0.06);
    border-color: rgba(142, 175, 208, 0.55);
}

.admin-chapter-images__dropzone input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.admin-chapter-images__dropzone strong {
    color: var(--text-secondary);
    font: 600 12px/1.3 Arial, Helvetica, sans-serif;
}

.admin-chapter-images__selection {
    margin-top: 11px;
}

.admin-chapter-images__selection-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.admin-chapter-images__selection-header > span {
    color: var(--text-secondary);
    font: 12px/1.3 Arial, Helvetica, sans-serif;
}

.admin-chapter-images__selection-header .admin-button,
.admin-chapter-images__selection li .admin-button {
    font-size: 11px;
    padding: 6px 9px;
}

.admin-chapter-images__selection ul {
    display: grid;
    gap: 5px;
    list-style: none;
    margin: 8px 0 0;
    max-height: 128px;
    overflow-y: auto;
    padding: 0;
}

.admin-chapter-images__selection li {
    align-items: center;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 6px;
    color: var(--text-muted);
    display: flex;
    font: 12px/1.3 Arial, Helvetica, sans-serif;
    gap: 10px;
    justify-content: space-between;
    padding: 6px 8px;
}

.admin-chapter-images__selection li > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-chapter-images > [data-admin-chapter-upload] {
    margin-top: 12px;
}

.admin-chapter-pages {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: 16px;
    padding-top: 15px;
}

.admin-chapter-pages__header {
    align-items: end;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.admin-chapter-pages h4 {
    color: var(--text-soft-primary);
    font: 400 15px/1.3 Georgia, "Times New Roman", serif;
    margin: 0;
}

.admin-chapter-pages p {
    color: var(--text-muted);
    font: 12px/1.4 Arial, Helvetica, sans-serif;
    margin: 4px 0 0;
}

.admin-chapter-pages__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-end;
}

.admin-chapter-pages__actions .admin-button {
    font-size: 11px;
    padding: 7px 9px;
}

.admin-chapter-pages__unsaved {
    color: #c9a8ae !important;
    margin-top: 10px !important;
}

.admin-chapter-pages__list {
    display: grid;
    gap: 5px;
    list-style: none;
    margin: 11px 0 0;
    max-height: 260px;
    overflow-y: auto;
    padding: 0;
}

.admin-chapter-page {
    align-items: center;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid transparent;
    border-radius: 7px;
    display: grid;
    gap: 9px;
    grid-template-columns: 22px 42px minmax(0, 1fr) auto;
    padding: 5px 7px;
    transition: background 140ms ease, border-color 140ms ease;
}

.admin-chapter-page.is-dragging {
    opacity: 0.55;
}

.admin-chapter-page.is-drop-target {
    border-color: rgba(142, 175, 208, 0.42);
    background: rgba(142, 175, 208, 0.07);
}

.admin-chapter-page__handle {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: grab;
    font-size: 17px;
    line-height: 1;
    padding: 2px;
}

.admin-chapter-page__handle:active {
    cursor: grabbing;
}

.admin-chapter-page img {
    border-radius: 4px;
    display: block;
    height: 32px;
    object-fit: cover;
    width: 42px;
}

.admin-chapter-page__info {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.admin-chapter-page__info strong {
    color: var(--text-secondary);
    font: 12px/1.25 Arial, Helvetica, sans-serif;
}

.admin-chapter-page__info span {
    color: var(--text-muted);
    font: 11px/1.25 Arial, Helvetica, sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-chapter-page > .admin-button {
    font-size: 11px;
    padding: 6px 8px;
}

.admin-chapter-editor > .admin-button {
    margin-top: 16px;
}

.admin-chapter-page-editor__backline {
    margin-bottom: 18px;
}

.admin-chapter-page-editor__header {
    align-items: end;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding-bottom: 20px;
}

.admin-chapter-page-editor__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-chapter-page-editor__header h1 {
    color: var(--text-primary);
    font: 400 24px/1.15 Georgia, "Times New Roman", serif;
    margin: 4px 0 8px;
}

.admin-chapter-page-editor__meta {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    font: 12px/1.3 Arial, Helvetica, sans-serif;
    gap: 10px;
    margin: 0;
}

.admin-chapter-create-page__form {
    padding-top: 24px;
}

.admin-chapter-create-page__fields {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.admin-chapter-create-page__fields label {
    display: grid;
    gap: 7px;
}

.admin-chapter-create-page__fields label > span {
    color: var(--text-secondary);
    font: 12px/1.3 Arial, Helvetica, sans-serif;
}

.admin-chapter-create-page__fields input,
.admin-chapter-create-page__fields select {
    background: #101116;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    box-sizing: border-box;
    color: var(--text-primary);
    font: 13px/1.4 Arial, Helvetica, sans-serif;
    padding: 9px 11px;
    width: 100%;
}

.admin-chapter-create-page__fields input:focus,
.admin-chapter-create-page__fields select:focus {
    border-color: rgba(142, 175, 208, 0.6);
    box-shadow: 0 0 0 2px rgba(142, 175, 208, 0.1);
    outline: 0;
}

.admin-chapter-create-page__fields .admin-chapter-data-form__select-wrap {
    display: block;
    position: relative;
}

.admin-chapter-create-page__fields .admin-chapter-data-form__select-wrap::after {
    border-bottom: 1px solid var(--text-muted);
    border-right: 1px solid var(--text-muted);
    content: "";
    height: 6px;
    pointer-events: none;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
}

.admin-chapter-create-page__fields .admin-chapter-data-form__select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
}

.admin-chapter-create-page__upload {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: 28px;
    padding-top: 20px;
}

.admin-chapter-create-page__count {
    color: var(--text-muted);
    font: 12px/1.3 Arial, Helvetica, sans-serif;
}

.admin-chapter-create-page__selection ul {
    display: grid;
    gap: 6px;
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.admin-chapter-create-page__selection li {
    align-items: center;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 6px;
    color: var(--text-muted);
    display: flex;
    font: 12px/1.3 Arial, Helvetica, sans-serif;
    gap: 10px;
    justify-content: space-between;
    padding: 8px 10px;
}

.admin-chapter-create-page__selection li span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-chapter-create-page__footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    margin-top: 22px;
}

.admin-chapter-create-page__footer .admin-chapter-data-form__status {
    line-height: 1.45;
    max-width: min(560px, 100%);
}

.admin-chapter-data-section {
    margin-top: 24px;
}

.admin-chapter-pages-editor {
    margin-top: 0;
}

.admin-chapter-data-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 24px;
}

.admin-chapter-data-form {
    margin-top: 18px;
    max-width: 1100px;
}

.admin-chapter-data-form__grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-chapter-data-form__grid label {
    display: grid;
    gap: 7px;
}

.admin-chapter-data-form__grid label > span,
.admin-chapter-upload-panel label > span {
    color: var(--text-secondary);
    font: 12px/1.3 Arial, Helvetica, sans-serif;
}

.admin-chapter-data-form__admin-note {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: grid;
    gap: 7px;
    margin-top: 28px;
    max-width: 100%;
    padding-top: 24px;
}

.admin-chapter-data-form__grid textarea,
.admin-chapter-data-form__admin-note textarea {
    background: #101116;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    box-sizing: border-box;
    color: var(--text-primary);
    font: 13px/1.45 Arial, Helvetica, sans-serif;
    min-height: 88px;
    padding: 11px 13px;
    resize: vertical;
    width: 100%;
}

.admin-chapter-data-form__grid textarea:focus,
.admin-chapter-data-form__admin-note textarea:focus {
    border-color: rgba(142, 175, 208, 0.6);
    box-shadow: 0 0 0 2px rgba(142, 175, 208, 0.1);
    outline: 0;
}

.admin-chapter-data-form__admin-note > span {
    color: var(--text-secondary);
    font: 12px/1.35 Arial, Helvetica, sans-serif;
}

.admin-chapter-data-form__grid input,
.admin-chapter-data-form__grid select,
.admin-chapter-upload-panel select {
    background: #101116;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    box-sizing: border-box;
    color: var(--text-primary);
    font: 13px/1.4 Arial, Helvetica, sans-serif;
    padding: 9px 11px;
    width: 100%;
}

.admin-chapter-data-form__grid input:focus,
.admin-chapter-data-form__grid select:focus {
    border-color: rgba(142, 175, 208, 0.6);
    box-shadow: 0 0 0 2px rgba(142, 175, 208, 0.1);
    outline: 0;
}

.admin-chapter-data-form__select-wrap {
    display: block;
    position: relative;
}

.admin-chapter-data-form__select-wrap::after {
    border-bottom: 1px solid var(--text-muted);
    border-right: 1px solid var(--text-muted);
    content: "";
    height: 6px;
    pointer-events: none;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
}

.admin-chapter-data-form__select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
}

.admin-chapter-data-form__scheduled[hidden] {
    display: none;
}

.admin-chapter-data-form__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 16px;
}

.admin-chapter-data-form__status {
    color: #9ab5a5;
    font: 12px/1.4 Arial, Helvetica, sans-serif;
    margin: 0;
}

.admin-chapter-data-form__status.is-error {
    color: #d49ca4;
}

.admin-chapter-pages-editor__count {
    color: var(--text-muted);
    font: 12px/1.4 Arial, Helvetica, sans-serif;
    margin: 5px 0 0;
}

.admin-chapter-pages-editor__mobile-note,
.admin-chapter-pages-editor__mobile-reload {
    display: none;
}

.admin-chapter-pages-editor__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.admin-chapter-upload-panel {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: 18px;
    padding-bottom: 18px;
}

.admin-chapter-upload-panel__topline {
    align-items: end;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.admin-chapter-upload-panel__topline label {
    display: grid;
    gap: 6px;
    max-width: 240px;
    width: 100%;
}

.admin-chapter-upload-panel__topline p {
    color: #c9a8ae;
    font: 12px/1.4 Arial, Helvetica, sans-serif;
    margin: 0 0 8px;
}

.admin-chapter-upload-panel__dropzone {
    align-items: center;
    border: 1px dashed rgba(142, 175, 208, 0.28);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    margin-top: 14px;
    min-height: 76px;
    padding: 12px;
    text-align: center;
}

.admin-chapter-upload-panel__dropzone:hover,
.admin-chapter-upload-panel__dropzone.is-dragging {
    background: rgba(142, 175, 208, 0.06);
    border-color: rgba(142, 175, 208, 0.55);
}

.admin-chapter-upload-panel__dropzone input,
.admin-chapter-page-card__actions input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.admin-chapter-upload-panel__dropzone strong {
    color: var(--text-secondary);
    font: 600 12px/1.3 Arial, Helvetica, sans-serif;
}

.admin-chapter-upload-panel__dropzone span {
    color: var(--text-muted);
    font: 11px/1.3 Arial, Helvetica, sans-serif;
}

.admin-chapter-reload-panel {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: 24px;
    padding-top: 22px;
}
.admin-chapter-reload-panel--replace {
    grid-column: 1 / -1 !important;
    grid-row: 4 !important;
    justify-self: stretch;
    min-width: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 0;
    margin-top: 18px;
    padding-bottom: 18px;
    padding-top: 0;
    width: 100%;
}

.admin-chapter-reload-panel--replace [data-admin-chapter-reload-dropzone] {
    min-height: 124px;
    width: 100%;
}

.admin-chapter-reload-panel--replace .admin-chapter-reload-panel__actions {
    justify-content: flex-start;
}

.admin-chapter-pages-editor > .admin-chapter-reload-panel--replace {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    width: 100% !important;
}

.admin-chapter-reload-panel__header h3 {
    color: var(--text-primary);
    font: 400 18px/1.3 Georgia, "Times New Roman", serif;
    margin: 0 0 5px;
}

.admin-chapter-reload-panel__header p {
    color: var(--text-muted);
    font: 12px/1.45 Arial, Helvetica, sans-serif;
    margin: 0;
}

.admin-chapter-reload-panel__selection {
    margin-top: 12px;
}

.admin-chapter-reload-panel__selection > span,
.admin-chapter-reload-panel__selection li {
    color: var(--text-secondary);
    font: 12px/1.4 Arial, Helvetica, sans-serif;
}

.admin-chapter-reload-panel__selection ul {
    display: grid;
    gap: 6px;
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.admin-chapter-reload-panel__selection li {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.admin-chapter-reload-panel__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
}

.admin-chapter-reload-progress {
    flex: 1 1 450px;
    margin-top: 0;
    max-width: 600px;
    min-width: 0;
    width: 100%;
}

.admin-chapter-reload-progress .admin-chapter-page-card__status {
    margin: 8px 0 0;
}

.admin-chapter-reload-progress__label {
    color: var(--text-secondary);
    font: 12px/1.3 Arial, Helvetica, sans-serif;
    margin-bottom: 7px;
}

.admin-chapter-reload-progress__track {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(142, 175, 208, 0.24);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.admin-chapter-reload-progress__track > span {
    background: #789fbd;
    border-radius: inherit;
    display: block;
    height: 100%;
    transition: width 160ms ease;
    width: 0;
}

.admin-chapter-reload-progress[data-state="processing"] .admin-chapter-reload-progress__track > span {
    animation: admin-reload-progress 1.2s ease-in-out infinite;
    background: #789fbd;
    width: 38% !important;
}

.admin-chapter-reload-progress[data-state="success"] .admin-chapter-reload-progress__track > span {
    background: #66af92;
}

.admin-chapter-reload-progress[data-state="error"] .admin-chapter-reload-progress__track > span {
    background: #b66f80;
}

.admin-chapter-reload-panel [data-admin-chapter-reload-dropzone].is-processing {
    opacity: 0.65;
    pointer-events: none;
}

@keyframes admin-reload-progress {
    0% { transform: translateX(-115%); }
    100% { transform: translateX(290%); }
}

.admin-chapter-page-card--legacy .admin-chapter-page-card__body {
    gap: 5px;
}

.admin-chapter-pages-editor__warning {
    border-left-color: rgba(201, 168, 174, 0.6);
}

.admin-chapter-pages-editor__legacy-notice {
    margin-top: 11px;
}

.admin-chapter-reload-success {
    margin-top: 12px;
}

.admin-chapter-upload-panel__selection {
    margin-top: 12px;
}

.admin-chapter-upload-panel__selection-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.admin-chapter-upload-panel__selection-header > span {
    color: var(--text-secondary);
    font: 12px/1.3 Arial, Helvetica, sans-serif;
}

.admin-chapter-upload-panel__selection ul {
    display: grid;
    gap: 5px;
    list-style: none;
    margin: 8px 0 0;
    max-height: 140px;
    overflow-y: auto;
    padding: 0;
}

.admin-chapter-upload-panel__selection li {
    align-items: center;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 6px;
    color: var(--text-muted);
    display: flex;
    font: 12px/1.3 Arial, Helvetica, sans-serif;
    gap: 10px;
    justify-content: space-between;
    padding: 6px 8px;
}

.admin-chapter-upload-panel__selection li > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-chapter-upload-panel__selection .admin-button,
.admin-chapter-upload-panel__summary + .admin-button {
    font-size: 11px;
    padding: 6px 9px;
}

.admin-chapter-upload-panel__summary {
    color: var(--text-link);
    font: 12px/1.4 Arial, Helvetica, sans-serif;
    margin: 10px 0;
}

.admin-chapter-pages-editor__unsaved {
    color: #c9a8ae;
    font: 12px/1.4 Arial, Helvetica, sans-serif;
    margin: 16px 0 0;
}

.admin-chapter-page-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 16px;
}

.admin-chapter-pages-editor__footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    justify-content: flex-start;
    margin-top: 16px;
}

.admin-chapter-pages-editor__footer > [data-admin-manifest-status] {
    flex: 0 1 auto;
    margin: 0;
    max-width: 100%;
}

.admin-chapter-page-card {
    align-items: start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: grid;
    gap: 36px;
    grid-template-columns: minmax(280px, 520px) 240px;
    justify-content: center;
    margin-inline: auto;
    max-width: 850px;
    padding: 18px 0;
    min-width: 0;
    scroll-margin-top: 24px;
    transition: opacity 140ms ease;
}

.admin-chapter-page-card.is-dragging {
    opacity: 0.55;
}

.admin-chapter-page-card.is-drop-target {
    border-color: rgba(142, 175, 208, 0.52);
}

.admin-chapter-page-card__preview {
    background: #101116;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.admin-chapter-page-card__preview img {
    display: block;
    height: auto;
    object-fit: contain;
    width: 100%;
}

.admin-chapter-page-card__number {
    color: var(--text-secondary);
    font: 12px/1 Arial, Helvetica, sans-serif;
    padding-top: 4px;
}

.admin-chapter-page-card__handle {
    align-self: start;
    background: transparent;
    border: 0;
    color: var(--text-secondary);
    cursor: grab;
    font-size: 18px;
    line-height: 1;
    padding: 3px 5px;
}

.admin-chapter-page-card__handle span {
    color: var(--text-muted);
    font: 12px/1.2 Arial, Helvetica, sans-serif;
    margin-left: 4px;
}

.admin-chapter-page-card__handle:active {
    cursor: grabbing;
}

.admin-manifest-page-visual {
    align-items: start;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
}

.admin-manifest-page-meta {
    align-items: center;
    display: flex;
    gap: 6px;
    justify-content: space-between;
    left: 7px;
    pointer-events: none;
    position: absolute;
    right: 7px;
    top: 7px;
    z-index: 1;
}

.admin-manifest-page-meta strong,
.admin-manifest-page-meta span {
    background: rgba(10, 12, 17, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    color: var(--text-primary);
    font: 11px/1.2 Arial, Helvetica, sans-serif;
    max-width: 48%;
    overflow: hidden;
    padding: 4px 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-manifest-page-visual .admin-chapter-page-card__preview {
    grid-column: 1;
}

.admin-manifest-reorder-preview {
    display: none !important;
}

.admin-manifest-action-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
}

.admin-manifest-action-group--images {
    margin-top: 0;
}

.admin-manifest-drop-placeholder {
    background: rgba(142, 175, 208, 0.08);
    border: 1px dashed rgba(142, 175, 208, 0.4);
    border-radius: 8px;
    min-height: 150px;
}

.admin-manifest-order-footer {
    align-items: center;
    display: flex;
}

[data-admin-manifest-pages] > .admin-chapter-page-card {
    column-gap: 24px;
    grid-template-columns: 32px minmax(280px, 520px) 240px;
    row-gap: 18px;
}

[data-admin-manifest-pages] > .admin-chapter-page-card > .admin-manifest-page-visual {
    grid-column: 2;
    grid-row: 1;
}

[data-admin-manifest-pages] > .admin-chapter-page-card > .admin-chapter-page-card__body {
    grid-column: 3;
    grid-row: 1;
}

[data-admin-manifest-pages] > .admin-chapter-page-card > .admin-chapter-page-card__handle {
    align-self: start;
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
}

.admin-manifest-sort-controls {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    grid-column: 1;
    grid-row: 1;
}

.admin-manifest-sort-label {
    color: var(--text-muted);
    font: 10px/1.2 Arial, Helvetica, sans-serif;
    letter-spacing: 0.06em;
}

.admin-manifest-sort-arrows {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.admin-manifest-sort-arrow {
    align-items: center;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(142, 175, 208, 0.25);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    font: 15px/1 Arial, Helvetica, sans-serif;
    height: 28px;
    justify-content: center;
    padding: 0;
    width: 28px;
}

.admin-manifest-sort-arrow:hover,
.admin-manifest-sort-arrow:focus-visible {
    border-color: rgba(142, 175, 208, 0.55);
    color: var(--text-primary);
}

.admin-manifest-sort-arrow:focus-visible {
    outline: 2px solid rgba(142, 175, 208, 0.4);
    outline-offset: 1px;
}

.admin-manifest-floating-navigation {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    margin: 0 0 12px;
    position: sticky;
    top: 16px;
    max-width: 100%;
    width: fit-content;
    z-index: 3;
}

@media (min-width: 1200px) {
    .admin-chapter-pages-editor:not([hidden]):has(> [data-admin-manifest-floating-navigation]) {
        column-gap: 24px;
        display: grid;
        grid-template-columns: 170px minmax(0, 1fr);
        row-gap: 0;
    }

    .admin-chapter-pages-editor:has(> [data-admin-manifest-floating-navigation]) > .admin-section__header {
        grid-column: 1 / -1;
    }

    .admin-chapter-pages-editor:has(> [data-admin-manifest-floating-navigation]) > [data-admin-manifest-floating-navigation] {
        align-self: start;
        align-items: stretch;
        flex-direction: column;
        grid-column: 1;
        grid-row: 2;
        height: fit-content;
        margin: 16px 0 0;
        max-width: 170px;
        position: sticky;
        top: 24px;
        width: 100%;
    }

    .admin-chapter-pages-editor:has(> [data-admin-manifest-floating-navigation]) > [data-admin-manifest-pages] {
        grid-column: 2;
        grid-row: 2;
    }

    .admin-chapter-pages-editor:has(> [data-admin-manifest-floating-navigation]) > .admin-manifest-order-footer {
        grid-column: 2;
        grid-row: 3;
    }

    .admin-chapter-pages-editor:has(> [data-admin-manifest-floating-navigation]) > [data-admin-chapter-reload] {
        grid-column: 1 / -1;
        grid-row: 4;
        width: 100%;
    }

    .admin-manifest-floating-navigation__counter {
        padding: 2px 0;
    }
}

.admin-manifest-floating-navigation__counter {
    color: var(--text-muted);
    font: 12px/1 Arial, Helvetica, sans-serif;
    min-width: 34px;
    text-align: center;
}

@media (min-width: 701px) and (max-width: 1199px) {
    .admin-chapter-pages-editor:not([hidden]):has(> [data-admin-manifest-floating-navigation]) {
        column-gap: 20px;
        display: grid;
        grid-template-columns: 150px minmax(0, 1fr);
        row-gap: 0;
    }

    .admin-chapter-pages-editor:has(> [data-admin-manifest-floating-navigation]) > .admin-section__header {
        grid-column: 1 / -1;
    }

    .admin-chapter-pages-editor:has(> [data-admin-manifest-floating-navigation]) > [data-admin-manifest-floating-navigation] {
        align-self: start;
        align-items: stretch;
        flex-direction: column;
        grid-column: 1;
        grid-row: 2;
        height: fit-content;
        margin: 16px 0 0;
        max-width: 150px;
        position: sticky;
        top: 24px;
        width: 100%;
    }

    .admin-chapter-pages-editor:has(> [data-admin-manifest-floating-navigation]) > [data-admin-manifest-pages] {
        grid-column: 2;
        grid-row: 2;
    }

    .admin-chapter-pages-editor:has(> [data-admin-manifest-floating-navigation]) > .admin-manifest-order-footer {
        grid-column: 2;
        grid-row: 3;
    }

    .admin-chapter-pages-editor:has(> [data-admin-manifest-floating-navigation]) > [data-admin-chapter-reload] {
        grid-column: 1 / -1;
        grid-row: 4;
        width: 100%;
    }

    [data-admin-manifest-pages] > .admin-chapter-page-card {
        column-gap: 16px;
        grid-template-columns: 32px minmax(0, 1fr) minmax(170px, 220px);
        row-gap: 18px;
    }

    [data-admin-manifest-pages] > .admin-chapter-page-card > .admin-manifest-page-visual {
        min-width: 0;
    }

    [data-admin-manifest-pages] > .admin-chapter-page-card > .admin-chapter-page-card__body {
        min-width: 0;
    }
}

[data-admin-manifest-pages] .admin-manifest-action-group--order {
    display: flex;
}


.admin-chapter-page-card__body {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 240px;
    min-width: 0;
    padding: 8px 0;
}

.admin-chapter-page-card__body > strong {
    color: var(--text-secondary);
    font: 12px/1.3 Arial, Helvetica, sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-chapter-page-card__actions {
    display: flex;
    gap: 6px;
}

.admin-chapter-page-card__actions .admin-button {
    flex: 0 0 auto;
    font-size: 11px;
    padding: 7px 12px;
}

.admin-manifest-replace-panel {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    width: 100%;
}

.admin-manifest-replace-panel[hidden] {
    display: none;
}

.admin-manifest-replace-preview {
    display: flex;
    gap: 8px;
}

.admin-manifest-replace-preview > div {
    color: var(--text-muted);
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    font: 10px/1.2 Arial, Helvetica, sans-serif;
    gap: 4px;
    min-width: 0;
}

.admin-manifest-replace-preview img {
    aspect-ratio: 4 / 3;
    background: #101116;
    border-radius: 6px;
    display: block;
    object-fit: cover;
    object-position: top;
    width: 100%;
}

.admin-manifest-replace-panel > strong {
    color: var(--text-secondary);
    font: 11px/1.3 Arial, Helvetica, sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-manifest-replace-panel__actions {
    display: flex;
    gap: 6px;
}

.admin-manifest-replace-panel__actions .admin-button {
    font-size: 11px;
    padding: 7px 10px;
}

.admin-chapter-page-card__status {
    color: var(--accent-blue);
    font: 12px/1.4 Arial, Helvetica, sans-serif;
    margin: 0;
}

.admin-chapter-page-card__status.is-error {
    color: #d9a6ad;
}

.admin-chapter-page-card__status.is-success {
    color: #9ab5a5;
}

.admin-manifest-unsaved-notice {
    background: rgba(15, 18, 24, 0.96);
    border: 1px solid rgba(142, 175, 208, 0.28);
    border-radius: 10px;
    bottom: 24px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: min(320px, calc(100vw - 48px));
    padding: 11px 14px;
    position: fixed;
    right: 24px;
    z-index: 20;
}

.admin-manifest-unsaved-notice[hidden] {
    display: none;
}

.admin-manifest-unsaved-notice strong,
.admin-manifest-unsaved-notice span {
    font: 12px/1.35 Arial, Helvetica, sans-serif;
}

.admin-manifest-unsaved-notice strong {
    color: var(--text-primary);
}

.admin-manifest-unsaved-notice span {
    color: var(--text-muted);
}

.admin-page-lightbox[hidden] {
    display: none;
}

.admin-page-lightbox {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 40;
}

.admin-page-lightbox__backdrop {
    background: rgba(7, 8, 12, 0.86);
    border: 0;
    cursor: default;
    inset: 0;
    position: absolute;
}

.admin-page-lightbox__content {
    max-height: calc(100vh - 48px);
    max-width: min(1100px, 92vw);
    position: relative;
    z-index: 1;
}

.admin-page-lightbox__content img {
    background: #101116;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: block;
    max-height: calc(100vh - 48px);
    max-width: 92vw;
    object-fit: contain;
}

.admin-page-lightbox__close {
    align-items: center;
    background: #14151b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    font: 22px/1 Arial, Helvetica, sans-serif;
    height: 32px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: -14px;
    top: -14px;
    width: 32px;
}

@media (max-width: 700px) {
    .admin-chapter-pages-editor__toolbar,
    .admin-chapter-pages-editor > [data-admin-manifest-floating-navigation],
    .admin-chapter-pages-editor > [data-admin-manifest-pages],
    .admin-chapter-pages-editor > .admin-manifest-order-footer,
    .admin-chapter-pages-editor > .admin-manifest-unsaved-notice,
    .admin-chapter-page-grid--legacy {
        display: none;
    }

    .admin-chapter-pages-editor__mobile-note {
        color: var(--text-muted);
        display: block;
        font: 12px/1.5 Arial, Helvetica, sans-serif;
        margin: 18px 0 12px;
        max-width: 560px;
    }

    .admin-chapter-pages-editor__mobile-reload {
        display: inline-flex;
        margin-bottom: 18px;
    }

    .admin-chapter-pages-editor > [data-admin-chapter-reload-mode="append"] {
        display: none;
    }

    .admin-chapters__topline {
        align-items: start;
        flex-direction: column;
    }

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

    .admin-chapter-create__fields,
    .admin-chapter-editor__grid,
    .admin-chapter-create-page__fields {
        grid-template-columns: 1fr;
    }

    .admin-chapter-create-page__footer {
        justify-content: flex-start;
    }

    .admin-chapter-images__heading {
        align-items: start;
        flex-direction: column;
    }

    .admin-chapter-images__heading label {
        width: 100%;
    }

    .admin-chapter-row__main {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }

    .admin-chapter-row {
        grid-template-columns: 1fr;
    }

    .admin-chapter-row__meta {
        justify-content: flex-start;
        text-align: left;
    }

    .admin-chapter-row__actions {
        grid-column: 1;
        grid-row: auto;
        justify-content: flex-start;
        margin-top: 10px;
    }

    .admin-chapter-page-editor__header,
    .admin-chapter-upload-panel__topline {
        align-items: start;
        flex-direction: column;
    }

    .admin-chapter-data-form__grid {
        grid-template-columns: 1fr;
    }

    .admin-chapter-pages-editor__toolbar {
        justify-content: flex-start;
    }

    .admin-chapter-page-grid {
        grid-template-columns: 1fr;
    }

    .admin-chapter-page-card {
        gap: 14px;
        grid-template-columns: 1fr;
    }

    .admin-chapter-page-card__preview {
        max-width: 100%;
    }

    .admin-chapter-page-card__body {
        max-width: 100%;
    }

    .admin-manifest-unsaved-notice {
        bottom: 16px;
        left: 16px;
        max-width: none;
        right: 16px;
    }

    [data-admin-manifest-pages] > .admin-chapter-page-card > .admin-chapter-page-card__handle {
        align-self: start;
        grid-column: 1;
        grid-row: 1;
    }

    [data-admin-manifest-pages] > .admin-chapter-page-card > .admin-manifest-sort-controls {
        align-items: flex-start;
        flex-direction: row;
        grid-column: 1;
        grid-row: 1;
    }

    [data-admin-manifest-pages] > .admin-chapter-page-card > .admin-manifest-page-visual {
        grid-column: 1;
        grid-row: 2;
    }

    [data-admin-manifest-pages] > .admin-chapter-page-card > .admin-manifest-page-visual {
        grid-column: 1;
        grid-row: 2;
        max-width: 100%;
    }

    [data-admin-manifest-pages] > .admin-chapter-page-card > .admin-chapter-page-card__body {
        grid-column: 1 / -1;
        grid-row: 3;
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    [data-admin-manifest-pages] .admin-manifest-action-group--order {
        grid-column: 1;
    }

    .admin-chapter-upload-panel__topline label {
        max-width: none;
    }

    .admin-chapter-reload-panel__actions {
        align-items: flex-start;
    }

    .admin-chapter-reload-progress {
        flex-basis: 100%;
        max-width: none;
    }
}

.admin-project-details-grid input,
.admin-project-details-grid select,
.admin-project-details-grid textarea {
    background: #101116;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    box-sizing: border-box;
    color: var(--text-primary);
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    outline: 0;
    padding: 10px 12px;
    width: 100%;
}

.admin-project-details-grid select {
    appearance: none;
    -webkit-appearance: none;
    color-scheme: dark;
    padding-right: 36px;
}

.admin-project-details-grid input:focus,
.admin-project-details-grid select:focus,
.admin-project-details-grid textarea:focus {
    border-color: rgba(142, 175, 208, 0.6);
    box-shadow: 0 0 0 2px rgba(142, 175, 208, 0.1);
}

.admin-project-details-grid label:has(> select)::after,
.admin-project-details-grid .admin-chip-field::after {
    border-bottom: 1px solid var(--text-muted);
    border-right: 1px solid var(--text-muted);
    content: "";
    height: 6px;
    pointer-events: none;
    position: absolute;
    right: 15px;
    transform: translateY(-65%) rotate(45deg);
    width: 6px;
}

.admin-project-details-grid label:has(> select)::after {
    top: calc(50% + 11px);
}

.admin-project-details-grid .admin-chip-field {
    position: relative;
}

.admin-project-details-grid .admin-chip-field::after {
    bottom: 16px;
}

.admin-project-details-grid input::placeholder,
.admin-project-details-grid textarea::placeholder {
    color: var(--text-muted);
}

.admin-project-details-grid textarea {
    min-height: 120px;
    resize: vertical;
}

.admin-chip-field {
    display: grid;
    gap: 9px;
}

.admin-chip-field__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-chip {
    align-items: center;
    background: rgba(142, 175, 208, 0.1);
    border: 1px solid rgba(142, 175, 208, 0.28);
    border-radius: 999px;
    color: var(--text-primary);
    display: inline-flex;
    font-family: Arial, sans-serif;
    font-size: 12px;
    gap: 8px;
    padding: 6px 9px;
}

.admin-chip__remove {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 18px;
    font-size: 14px;
    height: 18px;
    justify-content: center;
    line-height: 1;
    margin: 0 -3px 0 0;
    padding: 0;
    position: static;
    width: 18px;
}

.admin-chip:has(.admin-chip__remove:focus-visible),
.admin-chip__remove:hover,
.admin-chip__remove:focus-visible {
    border-color: rgba(142, 175, 208, 0.6);
}

.admin-chip__remove:hover,
.admin-chip__remove:focus-visible {
    background: rgba(142, 175, 208, 0.12);
}

.admin-chip__remove:focus-visible {
    border-radius: 50%;
    outline: 2px solid rgba(142, 175, 208, 0.55);
    outline-offset: 1px;
}

[data-admin-chip-sortable] .admin-chip {
    cursor: grab;
    touch-action: none;
    user-select: none;
}

[data-admin-chip-sortable] .admin-chip.is-dragging {
    opacity: 0.45;
}

.admin-chip-drop-placeholder {
    background: rgba(142, 175, 208, 0.06);
    border: 1px dashed rgba(142, 175, 208, 0.5);
    border-radius: 999px;
    box-sizing: border-box;
    flex: 0 0 auto;
}

.admin-chip.is-dragging,
.admin-chip.is-drag-preview {
    cursor: grabbing;
}

.admin-chip.is-drag-preview {
    left: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.admin-project-details-form__footer {
    display: flex;
    justify-content: flex-start;
    padding-top: 22px;
}

.admin-project-create-progress {
    align-self: flex-start;
    background: rgba(142, 175, 208, 0.08);
    border-left: 2px solid rgba(142, 175, 208, 0.55);
    color: var(--text-secondary);
    flex-basis: 100%;
    font: 600 13px/1.4 Arial, Helvetica, sans-serif;
    margin-top: 12px;
    padding: 8px 10px;
}

.admin-project-create-progress:empty {
    display: none;
}

.admin-chapters__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-chapter-order-page {
    max-width: 920px;
}

.admin-chapter-order-page__header {
    display: block;
}

.admin-chapter-order-page__header h1 {
    color: var(--text-primary);
    font: 400 26px/1.2 Georgia, "Times New Roman", serif;
    margin: 5px 0 8px;
}

.admin-chapter-order-page__hint {
    color: var(--text-muted);
    font: 12px/1.45 Arial, Helvetica, sans-serif;
    margin: 0;
}

.admin-chapter-order-page__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.admin-chapter-order-page__status {
    color: #9ab5a5;
    font: 12px/1.4 Arial, Helvetica, sans-serif;
    margin: 0;
}

.admin-chapter-order-page__status.is-error {
    color: #d49ca4;
}

.admin-chapter-order-list {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}

.admin-chapter-order-row {
    align-items: center;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    min-height: 62px;
    padding: 10px 14px;
    transition: background 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

.admin-chapter-order-row.is-dragging {
    opacity: 0.58;
}

.admin-chapter-order-row.is-drop-target {
    background: rgba(142, 175, 208, 0.08);
    border-color: rgba(142, 175, 208, 0.38);
}

.admin-chapter-order-row__handle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: grab;
    display: inline-flex;
    flex: 0 0 28px;
    font-size: 22px;
    justify-content: center;
    line-height: 1;
    min-height: 34px;
    padding: 0;
    touch-action: none;
}

.admin-chapter-order-row__handle:active {
    cursor: grabbing;
}

.admin-chapter-order-row__main {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.admin-chapter-order-row__main strong {
    color: var(--text-primary);
    font: 400 15px/1.3 Georgia, "Times New Roman", serif;
}

.admin-chapter-order-row__main span,
.admin-chapter-order-row__meta {
    color: var(--text-muted);
    font: 12px/1.35 Arial, Helvetica, sans-serif;
}

.admin-chapter-order-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.admin-chapter-order-row__meta span + span {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    padding-left: 6px;
}

.admin-chapter-order-row__meta .is-public {
    color: #8eafd0;
}

.admin-chapter-order-row__meta .is-hidden {
    color: #c9a8ae;
}

.admin-bulk-upload-panel,
.admin-bulk-groups,
.admin-bulk-result {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: 22px;
    padding-top: 22px;
}

.admin-bulk-guide {
    background: rgba(255, 255, 255, 0.018);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    color: var(--text-secondary);
    font: 12px/1.45 Arial, Helvetica, sans-serif;
    padding: 16px 18px;
}

.admin-bulk-guide h2 {
    color: var(--text-primary);
    font: 400 18px/1.3 Georgia, "Times New Roman", serif;
    margin: 4px 0 8px;
}

.admin-bulk-guide p {
    margin: 0;
}

.admin-bulk-guide__illustration {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    display: block;
    height: auto;
    margin: 14px 0 16px;
    max-width: 100% !important;
    object-fit: contain;
    width: 360px !important;
}

.admin-bulk-guide__methods {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
}

.admin-bulk-guide__methods strong {
    color: var(--text-primary);
    font: 500 13px/1.3 Arial, Helvetica, sans-serif;
}

.admin-bulk-guide__methods p {
    margin-top: 5px;
}

.admin-bulk-guide code {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 5px;
    color: var(--text-link);
    display: inline-block;
    font: 11px/1.55 Consolas, "SFMono-Regular", monospace;
    margin: 7px 0;
    padding: 5px 7px;
}

.admin-bulk-guide__note {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 13px !important;
    padding-top: 11px;
}

.admin-bulk-upload__dropzone {
    min-height: 150px;
}

.admin-bulk-upload__modes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.admin-bulk-upload__mode input[type="file"] {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.admin-bulk-upload__mode {
    cursor: pointer;
}

.admin-bulk-upload__mode input {
    height: 1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.admin-bulk-upload__summary {
    color: var(--text-muted);
    font: 12px/1.4 Arial, Helvetica, sans-serif;
    margin-top: 12px;
}

.admin-bulk-groups__list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.admin-bulk-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 14px 0;
}

.admin-bulk-group__topline {
    align-items: start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.admin-bulk-group__identity {
    align-items: start;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.admin-bulk-group__status {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: var(--text-muted);
    flex: 0 0 auto;
    font: 11px/1.2 Arial, Helvetica, sans-serif;
    padding: 4px 8px;
}

.admin-bulk-group[data-bulk-status="uploading"] .admin-bulk-group__status {
    border-color: rgba(142, 175, 208, 0.45);
    color: #a9c9e8;
}

.admin-bulk-group[data-bulk-status="success"] .admin-bulk-group__status {
    border-color: rgba(113, 186, 131, 0.45);
    color: #9bd5a8;
}

.admin-bulk-group[data-bulk-status="error"] .admin-bulk-group__status {
    border-color: rgba(210, 118, 135, 0.45);
    color: #e2a0ad;
}

.admin-bulk-group__identity input[type="checkbox"] {
    accent-color: #8eafd0;
    margin-top: 3px;
}

.admin-bulk-group__identity strong {
    color: var(--text-primary);
    font: 400 17px/1.3 Georgia, "Times New Roman", serif;
}

.admin-bulk-group__details,
.admin-bulk-group__files,
.admin-bulk-group__skip {
    color: var(--text-muted);
    font: 12px/1.45 Arial, Helvetica, sans-serif;
}

.admin-bulk-group__details,
.admin-bulk-group__files {
    margin: 5px 0 0 28px;
}

.admin-bulk-group__files {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-bulk-group__rename {
    display: grid;
    gap: 6px;
    max-width: 300px;
    min-width: 220px;
}

.admin-bulk-group__rename span {
    color: var(--text-secondary);
    font: 12px/1.3 Arial, Helvetica, sans-serif;
}

.admin-bulk-group__rename input {
    background: #101116;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--text-primary);
    font: 13px/1.4 Arial, Helvetica, sans-serif;
    padding: 9px 11px;
    width: 100%;
}

.admin-bulk-group.is-skipped {
    opacity: 0.48;
}

.admin-bulk-groups__footer {
    display: flex;
    justify-content: flex-start;
    margin-top: 18px;
}

.admin-bulk-result h2 {
    color: var(--text-primary);
    font: 400 19px/1.3 Georgia, "Times New Roman", serif;
    margin: 5px 0 8px;
}

.admin-bulk-result p:not(.admin-eyebrow) {
    color: var(--text-secondary);
    font: 13px/1.5 Arial, Helvetica, sans-serif;
    margin: 0;
}

.admin-bulk-result__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

@media (max-width: 700px) {
    .admin-chapters__actions {
        width: 100%;
    }

    .admin-bulk-group__topline {
        flex-direction: column;
    }

    .admin-bulk-group__rename {
        max-width: none;
        min-width: 0;
        padding-left: 28px;
        width: 100%;
    }

    .admin-bulk-guide__methods {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .admin-project-details-grid {
        grid-template-columns: 1fr;
    }

    .admin-project-details-grid__wide {
        grid-column: auto;
    }

    .admin-project-details-form__footer {
        justify-content: flex-start;
    }
}

.home-announcement {
    align-items: stretch;
    background: #13151a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid #8eafd0;
    border-radius: 9px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 auto 28px;
    max-width: 1200px;
    padding: 16px var(--site-container-padding);
    width: 100%;
}

.home-announcement-slot {
    max-width: var(--site-container-width);
    margin: 28px auto 0;
    padding: 0 var(--site-container-padding);
}

.home-announcement-slot .home-announcement {
    max-width: none;
    margin-bottom: 0;
}

.home-announcement__body {
    min-width: 0;
}

.home-announcement__actions {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    min-height: 30px;
    width: 100%;
}

.home-announcement__more {
    color: #8eafd0;
    font: 12px/1.35 Arial, Helvetica, sans-serif;
    margin-right: auto;
    text-decoration: none;
}

.home-announcement__more:hover,
.home-announcement__more:focus-visible {
    color: var(--text-primary);
    text-decoration: underline;
}

.home-announcement__like {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font: 12px/1 Arial, Helvetica, sans-serif;
    gap: 4px;
    justify-content: center;
    min-width: 50px;
    padding: 7px 8px;
}

.home-announcement__like.is-liked {
    color: var(--text-link);
}

.home-announcement__like.is-liked .icon-heart {
    color: #8fc4ff;
}

.home-announcement__like.is-liked .icon-heart svg {
    fill: currentColor;
}

.home-announcement__like:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-link);
}

.home-announcement__like:focus-visible {
    outline: 2px solid rgba(142, 175, 208, 0.8);
    outline-offset: 2px;
}

.home-announcement__like:disabled {
    cursor: default;
    opacity: 0.6;
}

.home-announcement__title {
    color: var(--text-primary);
    font: 400 20px/1.3 Georgia, "Times New Roman", serif;
    margin: 0 0 8px;
}

.home-announcement__content {
    color: var(--text-secondary);
    font: 13px/1.6 Arial, Helvetica, sans-serif;
    margin: 0;
}

.home-announcement__content p,
.home-announcement__content ul,
.home-announcement__content ol,
.home-announcement__content blockquote {
    margin: 0 0 8px;
}

.home-announcement__content > :last-child {
    margin-bottom: 0;
}

.home-announcement__content h2,
.home-announcement__content h3 {
    color: var(--text-primary);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    margin: 12px 0 6px;
}

.home-announcement__content h2 {
    font-size: 18px;
}

.home-announcement__content h3 {
    font-size: 16px;
}

.home-announcement__content ul,
.home-announcement__content ol {
    padding-left: 22px;
}

.home-announcement__content a {
    color: #8eafd0;
    text-decoration: none;
}

.home-announcement__content a:hover,
.home-announcement__content a:focus-visible {
    color: var(--text-link);
    text-decoration: none;
}

.home-announcement__content img {
    border-radius: 6px;
    display: block;
    height: auto;
    margin: 12px 0;
    max-width: 100%;
}

.home-announcement__content::after,
.admin-announcement__editor-area::after {
    clear: both;
    content: "";
    display: block;
}

.home-announcement__content img,
.admin-announcement__editor-area img {
    box-sizing: border-box;
    cursor: pointer;
}

.home-announcement__content img.announcement-image--left,
.admin-announcement__editor-area img.announcement-image--left {
    float: none;
}

.home-announcement__content img.announcement-image--left.announcement-image--wrap,
.admin-announcement__editor-area img.announcement-image--left.announcement-image--wrap {
    float: left;
    margin: 4px 12px 10px 0;
}

.home-announcement__content img.announcement-image--right,
.admin-announcement__editor-area img.announcement-image--right {
    float: none;
}

.home-announcement__content img.announcement-image--right.announcement-image--wrap,
.admin-announcement__editor-area img.announcement-image--right.announcement-image--wrap {
    float: right;
    margin: 4px 0 10px 12px;
}

.home-announcement__content img.announcement-image--center,
.home-announcement__content img.announcement-image--full,
.admin-announcement__editor-area img.announcement-image--center,
.admin-announcement__editor-area img.announcement-image--full {
    display: block;
    float: none;
    margin-left: auto;
    margin-right: auto;
}

.home-announcement__content img.announcement-image--size-small,
.admin-announcement__editor-area img.announcement-image--size-small {
    width: 25%;
}

.home-announcement__content img.announcement-image--size-medium,
.admin-announcement__editor-area img.announcement-image--size-medium {
    width: 45%;
}

.home-announcement__content img.announcement-image--size-large,
.admin-announcement__editor-area img.announcement-image--size-large {
    width: 70%;
}

.home-announcement__content img.announcement-image--size-full,
.admin-announcement__editor-area img.announcement-image--size-full {
    width: 100%;
}

.admin-announcement__form {
    max-width: 1200px;
}

.admin-announcement__section {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 22px 0;
}

.admin-announcement__section-heading {
    align-items: baseline;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.admin-announcement__section-heading h2 {
    color: var(--text-primary);
    font: 400 18px/1.3 Georgia, "Times New Roman", serif;
    margin: 0;
}

.admin-announcement__section-heading p {
    color: var(--text-muted);
    font: 12px/1.45 Arial, Helvetica, sans-serif;
    margin: 5px 0 0;
}

.admin-announcement__toggle {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.admin-announcement__toggle input {
    accent-color: #8eafd0;
    margin-top: 3px;
}

.admin-announcement__toggle strong,
.admin-announcement__toggle small {
    display: block;
}

.admin-announcement__toggle strong {
    color: var(--text-primary);
    font: 500 14px/1.35 Arial, Helvetica, sans-serif;
}

.admin-announcement__toggle small,
.admin-field small {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 400;
}

.admin-announcement__detail-toggle {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.admin-announcement__detail-toggle input {
    accent-color: #8eafd0;
    flex: 0 0 auto;
    margin: 3px 0 0;
}

.admin-announcement__detail-toggle span {
    display: block;
}

.admin-announcement__detail-toggle strong {
    color: var(--text-secondary);
    display: block;
    font: 400 13px/1.35 Arial, Helvetica, sans-serif;
}

.admin-announcement__detail-toggle small {
    color: var(--text-muted);
    display: block;
    font: 11px/1.4 Arial, Helvetica, sans-serif;
    margin-top: 3px;
}

.admin-announcement__grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.admin-announcement__editor {
    margin-top: 16px;
}

.admin-announcement__editor-heading {
    align-items: baseline;
    display: flex;
    gap: 10px;
    margin-bottom: 7px;
}

.admin-announcement__editor-heading > span {
    color: var(--text-secondary);
    font: 12px/1.3 Arial, Helvetica, sans-serif;
}

.admin-announcement__editor-heading small,
.admin-announcement__editor-help {
    color: var(--text-muted);
    font: 11px/1.35 Arial, Helvetica, sans-serif;
}

.admin-announcement__editor-help {
    margin: 6px 0 0;
}

.admin-announcement__toolbar {
    align-items: center;
    background: #101116;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 7px;
}

.admin-announcement__toolbar button,
.admin-announcement__toolbar select {
    -webkit-appearance: none;
    appearance: none;
    background: #171920;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    box-sizing: border-box;
    color: var(--text-secondary);
    cursor: pointer;
    font: 12px/1.2 Arial, Helvetica, sans-serif;
    min-height: 28px;
    padding: 5px 8px;
}

.admin-announcement__toolbar select {
    color-scheme: dark;
    padding-right: 26px;
}

.admin-announcement__toolbar button:hover,
.admin-announcement__toolbar button:focus-visible,
.admin-announcement__toolbar select:focus-visible {
    border-color: rgba(142, 175, 208, 0.55);
    color: var(--text-primary);
}

.admin-announcement__image-tools {
    align-items: center;
    background: #15171d;
    border: 1px solid rgba(142, 175, 208, 0.24);
    border-radius: 7px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
    padding: 6px;
}

.admin-announcement__image-tools-group {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
}

.admin-announcement__image-tools-label {
    color: var(--text-muted);
    font: 11px/1 Arial, Helvetica, sans-serif;
    margin-left: 3px;
}

.admin-announcement__image-tools-group--remove {
    margin-left: auto;
}

.admin-announcement__image-tools button {
    appearance: none;
    background: #171920;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font: 11px/1.2 Arial, Helvetica, sans-serif;
    min-height: 26px;
    padding: 5px 7px;
}

.admin-announcement__image-tools button:hover,
.admin-announcement__image-tools button:focus-visible {
    border-color: rgba(142, 175, 208, 0.55);
    color: var(--text-primary);
}

.admin-announcement__editor-area {
    background: #101116;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
    color: var(--text-primary);
    font: 13px/1.6 Arial, Helvetica, sans-serif;
    min-height: 180px;
    outline: 0;
    overflow-wrap: anywhere;
    padding: 12px;
    width: 100%;
}

.admin-announcement__editor-area p,
.admin-announcement__editor-area ul,
.admin-announcement__editor-area ol,
.admin-announcement__editor-area blockquote {
    margin: 0 0 8px;
}

.admin-announcement__editor-area img {
    border-radius: 6px;
    max-width: 100%;
}

.admin-announcement__editor-area:focus {
    border-color: rgba(142, 175, 208, 0.6);
}

.admin-announcement__editor-area img {
    display: block;
    height: auto;
    margin: 10px 0;
    max-width: 100%;
}

.admin-announcement__editor-area a {
    color: #8eafd0;
}

.admin-announcement__preview-section {
    padding-bottom: 18px;
}

.admin-announcement__preview {
    min-height: 48px;
}

.admin-announcement__preview .home-announcement {
    margin: 0;
}

.admin-announcement__preview-empty {
    color: var(--text-muted);
    font: 13px/1.5 Arial, Helvetica, sans-serif;
    margin: 0;
}

.admin-announcement__footer {
    align-items: center;
    display: flex;
    gap: 14px;
    padding-top: 4px;
}

.admin-announcement__status {
    color: var(--text-secondary);
    font: 12px/1.4 Arial, Helvetica, sans-serif;
    margin: 0;
}

.admin-announcement__status[data-state="success"] {
    color: #9fcdb1;
}

.admin-announcement__status[data-state="error"] {
    color: #d795a5;
}

.age-warning {
    display: grid;
    min-height: min(620px, calc(100vh - 150px));
    padding: 48px 20px 64px;
    place-items: center;
}

.age-warning__panel {
    background: #191b21;
    border: 1px solid rgba(142, 185, 237, .28);
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
    max-width: 520px;
    padding: 36px clamp(22px, 5vw, 52px);
    text-align: center;
    width: 100%;
}

.age-warning__badge {
    align-items: center;
    background: rgba(215, 149, 165, .14);
    border: 1px solid rgba(215, 149, 165, .5);
    border-radius: 999px;
    color: #f0b6c2;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
    letter-spacing: .06em;
    min-height: 34px;
    min-width: 52px;
}

.age-warning h1 {
    color: var(--text-primary);
    font-size: clamp(24px, 4vw, 32px);
    margin: 18px 0 12px;
}

.age-warning p {
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 auto;
    max-width: 40ch;
}

.age-warning__message {
    font-size: 15px;
}

.age-warning__actions {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.age-warning__actions form,
.age-warning__enter {
    width: 100%;
}

.age-warning__enter,
.age-warning__back {
    border-radius: 6px;
    display: inline-flex;
    justify-content: center;
    padding: 11px 16px;
}

.age-warning__enter {
    background: #8eb9ed;
    border: 1px solid #8eb9ed;
    color: #11151c;
    cursor: pointer;
    font-weight: 700;
}

.age-warning__back {
    align-items: center;
    background: rgba(142, 175, 208, 0.08);
    border: 1px solid rgba(142, 175, 208, 0.28);
    color: var(--text-soft-primary);
    font: 14px/1.3 Arial, Helvetica, sans-serif;
    min-height: 44px;
    text-decoration: none;
}

.age-warning__back:hover,
.age-warning__back:focus-visible {
    background: rgba(142, 175, 208, 0.14);
    border-color: rgba(142, 175, 208, 0.42);
    color: #b9d8fb;
}

@media (max-width: 700px) {
    .age-warning {
        min-height: auto;
        padding: 24px 16px calc(32px + env(safe-area-inset-bottom));
        place-items: start center;
    }

    .age-warning__panel {
        padding: 28px 20px;
    }

    .home-announcement {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 22px;
    }

    .home-announcement-slot {
        margin-top: 18px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .home-announcement-slot .home-announcement {
        margin-bottom: 0;
    }

    .announcement-detail {
        padding: 26px 18px 42px;
    }

    .announcement-detail__header h1 {
        font-size: 24px;
    }

    .admin-announcement__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .home-announcement__content img.announcement-image--left,
    .home-announcement__content img.announcement-image--right,
    .admin-announcement__editor-area img.announcement-image--left,
    .admin-announcement__editor-area img.announcement-image--right {
        float: none;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
}

@media (max-width: 700px) {
    .admin-global-settings__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-global-settings__footer .admin-button {
        width: 100%;
    }
}

/* Shared list geometry for the homepage and project directory. */
.project-list {
    gap: 22px;
}

.project-list__update.project-chapter {
    border-radius: 8px;
    margin-bottom: 0;
    min-height: 29px;
    padding: 0 7px;
}

.project-list__updates {
    gap: 4px;
    margin-top: 7px;
}

.project-list__update.project-chapter .project-list__chapter {
    color: color-mix(in srgb, var(--text-link) 84%, var(--text-muted));
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.project-list__update.project-chapter .project-list__chapter.is-read {
    color: #52616d;
}

.project-list__update.project-chapter .project-list__chapter.is-extra {
    color: #d0d4d8;
}

@media (max-width: 700px) {
    .project-list {
        gap: 12px;
    }

    .project-directory .project-list {
        width: 100%;
    }

    .project-directory .project-list__item {
        min-width: 0;
        width: 100%;
    }

    .project-directory .project-list__content {
        flex: 1 1 auto;
        min-width: 0;
        width: 0;
    }

    .project-directory .project-list__update {
        box-sizing: border-box;
        min-width: 0;
        width: 100%;
    }

    .project-directory .project-list__uploader {
        max-width: 100%;
        min-width: 0;
    }

    .project-list__update.project-chapter {
        min-height: 24px;
        padding: 0 6px;
    }

    .project-list__updates {
        gap: 3px;
        margin-top: 7px;
    }

    .project-list__update.project-chapter {
        border-radius: 12px;
    }

    .project-list__chapter,
    .project-list__updated {
        font-size: 11px;
    }

    .project-list__update.project-chapter {
        line-height: 1.15;
    }
}

.project-directory .project-list__status {
    align-self: center;
    font-size: 9px;
    flex: 0 0 auto;
    line-height: 1;
    padding: 2px 5px;
    margin-left: 0;
    white-space: nowrap;
}

.project-directory .project-list__heading {
    gap: 10px;
    justify-content: flex-start;
}

@media (min-width: 701px) {
    .project-directory .project-list__status {
        font-size: 11px;
        padding: 4px 7px;
    }

    .project-list__cover > .project-list__likes {
        padding: 6px 8px;
    }

    .project-list__update.project-chapter {
        border-radius: 12px;
    }

    .project-list__update.project-chapter {
        column-gap: 14px;
        grid-template-columns: minmax(0, 1fr) auto auto max-content;
    }

    .project-list__update.project-chapter .project-list__uploader {
        justify-self: start;
    }
}

@media (max-width: 700px) {
    .project-list__chapter-subtitle {
        display: none;
    }

    .project-list__stats {
        display: none;
    }
}

.chapter-reader__mobile-chapter-overlay {
    display: none;
}

@media (max-width: 700px) {
    .chapter-reader__pages--webtoon .chapter-reader__mobile-chapter-overlay {
        display: none;
    }

    .chapter-reader__pages--webtoon {
        margin-left: -14px;
        margin-right: -14px;
        max-width: none;
        width: calc(100% + 28px);
    }

    .chapter-reader__pages--webtoon .reader-image-slot,
    .chapter-reader__pages--webtoon > img {
        width: 100%;
    }

    .chapter-reader__pages--webtoon .reader-image-slot {
        position: relative;
    }

    .chapter-reader__pages--webtoon .reader-image-slot > img,
    .chapter-reader__pages--webtoon > img {
        max-width: none;
        width: 100%;
    }

    .chapter-reader__manga-pages {
        margin-left: -14px;
        margin-right: -14px;
        max-width: none;
        width: calc(100% + 28px);
    }

    .chapter-reader__manga-image-column {
        margin: 0;
        position: relative;
        width: 100%;
    }

    .chapter-reader__manga-page {
        max-height: none;
        max-width: none;
        margin: 0;
        width: 100%;
    }

    .chapter-reader__manga-stage > .chapter-reader__manga-page-button {
        display: none;
    }

    .chapter-reader__manga-page-status {
        grid-area: counter;
        justify-self: center;
        margin-top: 12px;
    }

    .chapter-reader__mobile-chapter-overlay {
        align-items: center;
        display: flex;
        inset: 0;
        justify-content: space-between;
        opacity: 1;
        pointer-events: none;
        position: absolute;
        transition: opacity 260ms ease;
        z-index: 4;
    }

    .chapter-reader__mobile-chapter-overlay::before,
    .chapter-reader__mobile-chapter-overlay::after {
        content: "";
        height: 100%;
        pointer-events: none;
        position: absolute;
        top: 0;
        width: 68px;
    }

    .chapter-reader__mobile-chapter-overlay::before {
        background: linear-gradient(90deg, rgba(12, 14, 19, 0.38), transparent);
        left: 0;
    }

    .chapter-reader__mobile-chapter-overlay::after {
        background: linear-gradient(270deg, rgba(12, 14, 19, 0.38), transparent);
        right: 0;
    }

    .chapter-reader__mobile-chapter-overlay.has-prev:not(.has-next) {
        justify-content: flex-start;
    }

    .chapter-reader__mobile-chapter-overlay.has-next:not(.has-prev) {
        justify-content: flex-end;
    }

    .chapter-reader__mobile-chapter-overlay.is-hidden {
        opacity: 0;
    }

    .chapter-reader__mobile-chapter-link {
        align-items: center;
        background: transparent;
        border: 0;
        border-radius: 0;
        color: var(--text-link);
        display: inline-flex;
        height: 42px;
        justify-content: center;
        margin: 0 8px;
        pointer-events: auto;
        text-decoration: none;
        width: 27px;
        z-index: 1;
    }

    .chapter-reader__mobile-chapter-link--next .chapter-reader__arrow-icon {
        transform: scaleX(-1);
    }

    .chapter-reader__mobile-chapter-link .chapter-reader__arrow-icon {
        background-color: currentColor;
        height: 27px;
        width: 27px;
    }

    .chapter-reader__mobile-chapter-overlay--manga {
        padding-inline: 16px;
    }

    .chapter-reader__mobile-chapter-overlay--manga.is-inactive {
        opacity: 0;
    }

    .chapter-reader__mobile-chapter-overlay--manga {
        opacity: 0.3;
    }

    .chapter-reader__mobile-chapter-overlay--manga.is-active,
    .chapter-reader__mobile-chapter-overlay--manga:focus-within {
        opacity: 1;
    }

    .chapter-reader__mobile-chapter-overlay--manga.is-inactive {
        opacity: 0;
    }

    .chapter-reader__mobile-chapter-overlay--manga::before,
    .chapter-reader__mobile-chapter-overlay--manga::after {
        width: 108px;
    }

    .chapter-reader__mobile-chapter-overlay--manga::before {
        background: linear-gradient(90deg, rgba(8, 10, 14, 0.62) 0%, rgba(8, 10, 14, 0.48) 22%, rgba(8, 10, 14, 0.24) 52%, rgba(8, 10, 14, 0.08) 78%, transparent 100%);
    }

    .chapter-reader__mobile-chapter-overlay--manga::after {
        background: linear-gradient(270deg, rgba(8, 10, 14, 0.62) 0%, rgba(8, 10, 14, 0.48) 22%, rgba(8, 10, 14, 0.24) 52%, rgba(8, 10, 14, 0.08) 78%, transparent 100%);
    }

    .chapter-reader__mobile-chapter-overlay--manga .chapter-reader__mobile-chapter-link {
        align-items: center;
        color: #dff2ff;
        height: 100%;
        margin: 0;
        width: 50%;
    }

    .chapter-reader__mobile-chapter-overlay--manga .chapter-reader__mobile-chapter-link:not(.is-disabled) {
        opacity: 1;
    }

    .chapter-reader__mobile-chapter-overlay--manga .chapter-reader__mobile-chapter-link[data-reader-manga-overlay-prev] {
        justify-content: flex-start;
        padding-left: 16px;
    }

    .chapter-reader__mobile-chapter-overlay--manga .chapter-reader__mobile-chapter-link--next {
        justify-content: flex-end;
        padding-right: 16px;
    }

    .chapter-reader__mobile-chapter-overlay--manga .chapter-reader__mobile-chapter-link.is-disabled {
        cursor: default;
        color: #8190a0;
        opacity: 0.32;
        pointer-events: none;
    }
}
@media (max-width: 700px) {
    html,
    body,
    .project-info,
    .project-chapters,
    .project-comments {
        background: #181a21;
    }
}
@media (max-width: 700px) {
    .notifications-panel,
    .home-search input,
    .view-toggle__button,
    .project-directory__sort select,
    .auth-form input:not([type="checkbox"]),
    .profile-modal__form input[type="text"],
    .profile-modal__form select,
    .profile-modal__form textarea,
    .contact-page__form input:not([type="file"]),
    .contact-page__form textarea,
    .contact-page__dropzone,
    .partner-card {
        background: #14151b;
    }

    .project-list__update,
    .project-list__planned-note,
    .project-chapter {
        background: #111218;
    }
}
@media (max-width: 700px) {
    .messages-search input,
    .messages-compose textarea,
    .messages-search__result {
        background: #14151b;
    }

    .message-bubble:not(.message-bubble--own) {
        background: #14151b;
    }
}

@media (max-width: 700px) {
    .profile-modal__dialog {
        background: #181a21;
    }
}
.scroll-to-top {
    --scroll-top-base-bottom: 22px;
    --scroll-top-footer-offset: 0px;
    align-items: center;
    background: rgba(15, 16, 20, 0.42);
    border: 1px solid rgba(142, 175, 208, 0.34);
    border-radius: 50%;
    bottom: calc(var(--scroll-top-base-bottom) + var(--scroll-top-footer-offset));
    box-sizing: border-box;
    color: var(--text-link);
    cursor: pointer;
    display: grid;
    height: 42px;
    justify-content: center;
    opacity: 0;
    padding: 0;
    pointer-events: none;
    position: fixed;
    right: 24px;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    visibility: hidden;
    width: 42px;
    z-index: 30;
}

.scroll-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}

.scroll-to-top:focus-visible {
    outline: 2px solid rgba(142, 175, 208, 0.72);
    outline-offset: 3px;
}

.scroll-to-top svg {
    display: block;
    height: 18px;
    width: 18px;
}

@media (hover: hover) and (pointer: fine) {
    .scroll-to-top:hover {
        background: rgba(15, 16, 20, 0.72);
    }
}

.scroll-to-top:focus-visible,
.scroll-to-top:active {
    background: rgba(15, 16, 20, 0.72);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-to-top {
        transition: none;
    }
}

@media (max-width: 700px) {
    .scroll-to-top {
        background: rgba(20, 21, 27, 0.32);
        --scroll-top-base-bottom: calc(16px + env(safe-area-inset-bottom));
        display: none;
        height: 44px;
        left: auto;
        right: 15px;
        width: 44px;
    }

    .scroll-to-top--reader {
        background: rgba(20, 21, 27, 0.22);
        display: grid;
        left: 15px;
        right: auto;
    }
}
/* Tablet refinement v2: align support media and loosen the contact layout. */
@media (min-width: 701px) and (max-width: 1140px) {
    .site-header__nav {
        align-items: center;
        justify-content: center;
    }

    .project-detail__top {
        gap: 24px;
        grid-template-columns: 1fr;
    }

    .support-option-list {
        gap: 24px;
        grid-template-columns: 1fr;
    }

    .support-option {
        align-items: start;
        gap: 24px;
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .support-option__media {
        align-self: start;
        width: 150px;
    }

    .support-option--kofi .support-option__banner {
        height: 150px;
        max-width: 100%;
        width: 150px;
    }

    .contact-page {
        padding-inline: clamp(22px, 4vw, 48px);
    }

    .contact-page__layout {
        grid-template-columns: 1fr;
        row-gap: 36px;
    }

    .contact-page__form-area,
    .contact-page__channels {
        min-width: 0;
    }
}
/* Keep selected profile-upload filenames inside the mobile modal, including
   long unbroken names, without changing the uploaded value. */
.profile-modal__field,
.profile-modal .contact-page__dropzone,
.profile-modal .contact-page__dropzone-selected,
.profile-modal .contact-page__file-details {
    max-width: 100%;
    min-width: 0;
}

.profile-modal .contact-page__file-details > span {
    min-width: 0;
}
/* Global theme layer required by the page refinement. */
:root {
    --bg: #181a21;
    --surface: #101116;
    --surface-alt: #1b1e26;
    --surface-elevated: #2b3540;
    --text: #f5f5f5;
    --text-muted: #9aa9b9;
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(142, 175, 208, 0.55);
    --accent: #8eafd0;
    --accent-hover: #8eafd0;
    --input-bg: #101116;
    --shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

html[data-theme="light"] {
    --bg: #f4f8fc;
    --surface: #ffffff;
    --surface-alt: #eef4fa;
    --surface-elevated: #ffffff;
    --text: #162033;
    --text-muted: #66758b;
    --border: #d7e3f0;
    --border-strong: #c9d8e8;
    --accent: #7ba7e8;
    --accent-hover: #5e8fd8;
    --input-bg: #ffffff;
    --shadow: 0 10px 24px rgba(49, 78, 112, 0.12);
    --text-primary: var(--text);
    --text-soft-primary: #33445c;
    --text-secondary: var(--text-muted);
    --text-muted: #66758b;
    --text-link: var(--accent-hover);
}

html[data-theme="light"],
html[data-theme="light"] body {
    background: var(--bg);
    color-scheme: light;
}

html[data-theme="light"] .site-header,
html[data-theme="light"] .site-header__mobile-menu,
html[data-theme="light"] .notifications-panel,
html[data-theme="light"] .project-list__item,
html[data-theme="light"] .project-detail,
html[data-theme="light"] .project-info,
html[data-theme="light"] .project-chapters,
html[data-theme="light"] .auth-page,
html[data-theme="light"] .auth-form,
html[data-theme="light"] .profile-page,
html[data-theme="light"] .profile-modal__dialog,
html[data-theme="light"] .account-delete-modal__dialog,
html[data-theme="light"] .public-profile-card__dialog,
html[data-theme="light"] .dropdown-menu {
    background-color: var(--surface);
    color: var(--text);
}

html[data-theme="light"] .site-header {
    background-color: var(--surface-alt);
    border-bottom-color: var(--border);
}

html[data-theme="light"] .site-header__nav a,
html[data-theme="light"] .site-header__brand,
html[data-theme="light"] .project-card,
html[data-theme="light"] .project-info,
html[data-theme="light"] .project-chapter,
html[data-theme="light"] .auth-page,
html[data-theme="light"] .profile-page,
html[data-theme="light"] .notification-item,
html[data-theme="light"] .comment-item {
    color: var(--text);
}

html[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="light"] select,
html[data-theme="light"] textarea {
    background: var(--input-bg);
    border-color: var(--border);
    color: var(--text);
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder,
html[data-theme="light"] .project-list__updated,
html[data-theme="light"] .project-list__planned-note,
html[data-theme="light"] .project-chapter__updated,
html[data-theme="light"] .profile-page__bio,
html[data-theme="light"] .notification-item__content,
html[data-theme="light"] .notifications-panel__empty {
    color: var(--text-muted);
}

html[data-theme="light"] button,
html[data-theme="light"] .button,
html[data-theme="light"] .project-info__action,
html[data-theme="light"] .profile-page__action {
    border-color: var(--border);
    color: var(--text);
}

html[data-theme="light"] .site-header__theme-toggle {
    color: var(--accent);
}

html[data-theme="light"] .site-header__theme-toggle:hover,
html[data-theme="light"] .site-header__theme-toggle:focus-visible {
    background: #e2edf7;
    border-color: var(--border);
    color: var(--accent);
}

html[data-theme="light"] a,
html[data-theme="light"] .site-header__name span,
html[data-theme="light"] .project-info__actions a,
html[data-theme="light"] .profile-page a {
    color: var(--accent-hover);
}

html[data-theme="light"] .project-card,
html[data-theme="light"] .project-info,
html[data-theme="light"] .project-chapters,
html[data-theme="light"] .project-comments,
html[data-theme="light"] .auth-form,
html[data-theme="light"] .profile-modal__dialog {
    border-color: var(--border);
    box-shadow: var(--shadow);
}

html[data-theme="light"] .project-chapter,
html[data-theme="light"] .project-list__update,
html[data-theme="light"] .project-list__planned-note {
    background: var(--surface-alt);
    border-color: var(--border);
}

html[data-theme="light"] .project-list__likes,
html[data-theme="light"] .project-like-button {
    background: var(--surface-elevated);
    border-color: var(--border);
    color: var(--accent-hover);
}

html[data-theme="light"] .project-list__likes:hover,
html[data-theme="light"] .project-like-button:hover,
html[data-theme="light"] .project-list__update:hover {
    background: #e5f0fb;
    border-color: var(--accent);
}

html[data-theme="light"] .home-announcement,
html[data-theme="light"] .partner-card,
html[data-theme="light"] .support-section,
html[data-theme="light"] .support-option,
html[data-theme="light"] .contact-page__form {
    background: var(--surface);
    border-color: var(--border);
}

html[data-theme="light"] .site-footer {
    background: var(--surface-alt);
    border-top-color: var(--border);
    color: var(--text);
}

/* Reader image surfaces intentionally remain dark under the site theme. */
html[data-theme="light"] .chapter-reader,
html[data-theme="light"] .chapter-reader__pages,
html[data-theme="light"] .chapter-reader__image-wrap {
    color-scheme: dark;
}
/* Public page light-theme refinement. Apply after the global theme token layer. */
html[data-theme="light"] .home-search input,
html[data-theme="light"] .project-directory__search input,
html[data-theme="light"] .project-directory__sort select,
html[data-theme="light"] .auth-form input:not([type="checkbox"]),
html[data-theme="light"] .contact-page__form input:not([type="file"]),
html[data-theme="light"] .contact-page__form textarea,
html[data-theme="light"] .profile-modal__form input[type="text"],
html[data-theme="light"] .profile-modal__form select,
html[data-theme="light"] .profile-modal__form textarea {
    background: var(--input-bg);
    border-color: var(--border);
    color: var(--text);
}

html[data-theme="light"] .home-search input:focus,
html[data-theme="light"] .project-directory__search input:focus,
html[data-theme="light"] .project-directory__sort select:focus,
html[data-theme="light"] .auth-form input:not([type="checkbox"]):focus,
html[data-theme="light"] .contact-page__form input:not([type="file"]):focus,
html[data-theme="light"] .contact-page__form textarea:focus,
html[data-theme="light"] .profile-modal__form input:focus,
html[data-theme="light"] .profile-modal__form select:focus,
html[data-theme="light"] .profile-modal__form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(123, 167, 232, 0.18);
}

html[data-theme="light"] .project-info,
html[data-theme="light"] .project-chapters,
html[data-theme="light"] .project-comments,
html[data-theme="light"] .auth-form,
html[data-theme="light"] .support-option,
html[data-theme="light"] .contact-page__form {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: var(--shadow);
}

html[data-theme="light"] .project-info__type {
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--border);
    color: var(--text);
}

html[data-theme="light"] .project-chapter {
    background: var(--surface-alt);
    color: var(--text-muted);
}

html[data-theme="light"] .project-chapter.is-read > strong { color: #64748b; }
html[data-theme="light"] .project-chapter.is-extra > strong { color: #52647b; }
html[data-theme="light"] .project-card__content { text-shadow: none; }

html[data-theme="light"] .project-section__header,
html[data-theme="light"] .support-section,
html[data-theme="light"] .support-page__note,
html[data-theme="light"] .contact-page__channel + .contact-page__channel,
html[data-theme="light"] .profile-page__identity,
html[data-theme="light"] .profile-page__data-list > div,
html[data-theme="light"] .auth-page__switch {
    border-color: var(--border);
}

html[data-theme="light"] .support-option,
html[data-theme="light"] .contact-page__channel,
html[data-theme="light"] .profile-page__details,
html[data-theme="light"] .profile-page__bio {
    box-shadow: none;
}

html[data-theme="light"] .support-page__action,
html[data-theme="light"] .contact-page__action,
html[data-theme="light"] .contact-page__submit,
html[data-theme="light"] .contact-page__dropzone-selected button,
html[data-theme="light"] .profile-page__action,
html[data-theme="light"] .profile-modal__button {
    border-color: var(--border);
    color: var(--accent-hover);
}

html[data-theme="light"] .support-page__action:hover,
html[data-theme="light"] .contact-page__action:hover,
html[data-theme="light"] .contact-page__submit:hover,
html[data-theme="light"] .contact-page__dropzone-selected button:hover,
html[data-theme="light"] .profile-page__action:hover,
html[data-theme="light"] .profile-modal__button:hover {
    background: var(--surface-alt);
    border-color: var(--border-strong);
}

html[data-theme="light"] .contact-page__dropzone {
    background: var(--surface-alt);
    border-color: var(--border-strong);
}

html[data-theme="light"] .contact-page__dropzone:hover,
html[data-theme="light"] .contact-page__dropzone.is-dragover {
    background: #e5f0fb;
    border-color: var(--accent);
}

html[data-theme="light"] .auth-page--login .auth-form__submit {
    background: var(--surface-alt);
    border-color: var(--border);
    color: var(--accent-hover);
}

html[data-theme="light"] .auth-page--login .auth-form__submit:hover {
    background: #e5f0fb;
    border-color: var(--accent);
}

html[data-theme="light"] .auth-form__check input {
    background: var(--surface-alt);
    border-color: var(--border-strong);
}

html[data-theme="light"] .profile-page__avatar {
    background: var(--surface-alt);
}

html[data-theme="light"] .profile-modal__dialog,
html[data-theme="light"] .account-delete-modal__dialog,
html[data-theme="light"] .public-profile-card__dialog {
    border-color: var(--border);
    box-shadow: var(--shadow);
}

html[data-theme="light"] .project-card {
    background: transparent;
    border-color: rgba(96, 125, 150, 0.28);
    box-shadow: 0 10px 24px rgba(36, 56, 73, 0.12);
}

html[data-theme="light"] .project-card__content {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.72);
}

/* Final light-theme project-card and view-selector rules. */
html[data-theme="light"] .view-toggle__button {
    background: var(--surface-elevated);
    border-color: var(--border);
    color: var(--accent);
}

html[data-theme="light"] .view-toggle__button--active {
    background: #e2edf7;
    border-color: #6f9fe1;
    color: #4e82c8;
    box-shadow: 0 0 0 2px rgba(111, 159, 225, 0.18);
}

html[data-theme="light"] .view-toggle__button:not(.view-toggle__button--active):hover {
    background: var(--surface-alt);
    border-color: var(--border-strong);
    color: var(--accent-hover);
    box-shadow: none;
}

html[data-theme="light"] .project-card__content h3 {
    color: #ffffff;
}

html[data-theme="light"] .project-card__meta,
html[data-theme="light"] .project-card__meta > span,
html[data-theme="light"] .project-card__updated {
    color: rgba(190, 211, 232, 0.9);
}

html[data-theme="light"] .project-card__shade {
    background:
        linear-gradient(180deg, rgba(15, 16, 20, 0.06) 0%, rgba(15, 16, 20, 0.01) 44%, rgba(15, 16, 20, 0.56) 100%),
        linear-gradient(90deg, rgba(15, 16, 20, 0.1) 0%, rgba(15, 16, 20, 0) 58%);
}

html[data-theme="light"] .project-card__likes {
    background: rgba(255, 255, 255, 0.34);
    border-color: rgba(255, 255, 255, 0.62);
    box-shadow: 0 4px 12px rgba(36, 56, 73, 0.14);
}

html[data-theme="light"] .project-card__likes .icon-heart {
    color: #3f7fd4;
}

html[data-theme="light"] .project-card__likes > span:not(.icon-heart) {
    color: #2f527d;
}

html[data-theme="light"] .project-card__likes:hover,
html[data-theme="light"] .project-card__likes:focus-visible {
    background: rgba(255, 255, 255, 0.46);
    border-color: #6f9fe1;
}

/* Restore the original dark-theme metadata value without touching the title. */
.project-card__meta {
    color: var(--text-secondary);
}

.project-card__meta > span,
.project-card__updated {
    color: inherit;
}
