:root {
    --ink: #191724;
    --text: #373241;
    --muted-new: #777282;
    --paper: #f8f7f4;
    --panel: #ffffff;
    --panel-soft: #f1eff6;
    --line-new: #e6e2ec;
    --violet: #6842d8;
    --violet-dark: #4b29aa;
    --violet-soft: #eee9ff;
    --coral: #e96f55;
    --green: #36846b;
    --amber: #ad731c;
    --red: #bf4c52;
    --sidebar-width: 244px;
    --header-height: 72px;
    --shadow-new: 0 18px 52px rgba(31, 24, 58, .08);
}

body.theme-dark {
    --ink: #f7f3ff;
    --text: #d9d3e4;
    --muted-new: #aaa3b8;
    --paper: #17141f;
    --panel: #211d2c;
    --panel-soft: #292437;
    --line-new: #373043;
    --violet-soft: #34265d;
    --shadow-new: 0 18px 52px rgba(0, 0, 0, .25);
}

html { scroll-behavior: smooth; }

body {
    display: block;
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

a { color: inherit; }

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

.site-shell { min-height: 100vh; }

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    padding: 22px 18px 18px;
    border-right: 1px solid var(--line-new);
    background: var(--panel);
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 8px 22px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    letter-spacing: -.02em;
}

.app-brand img {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    box-shadow: 0 8px 20px rgba(104, 66, 216, .18);
}

.side-nav {
    overflow-y: auto;
    flex: 1;
    scrollbar-width: none;
}

.side-nav p {
    margin: 20px 12px 7px;
    color: var(--muted-new);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 3px 8px;
    border-radius: 12px;
    color: var(--muted-new);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.side-nav a > .side-nav-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #9992a7;
    transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.side-nav-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.side-nav-label {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-nav a:hover { background: var(--panel-soft); color: var(--ink); transform: translateX(1px); }
.side-nav a:hover > .side-nav-icon { border-color: var(--line-new); background: var(--panel); color: var(--violet); }
.side-nav a.is-active { background: var(--violet-soft); color: var(--violet); }
.side-nav a.is-active > .side-nav-icon {
    border-color: color-mix(in srgb, var(--violet) 12%, transparent);
    background: var(--panel);
    color: var(--violet);
    box-shadow: 0 5px 14px rgba(104, 66, 216, .11);
}
.side-nav a.nav-emphasis { color: var(--violet); font-weight: 800; }
.side-nav a.nav-emphasis > .side-nav-icon { background: var(--violet-soft); color: var(--violet); }

.side-nav b {
    display: grid;
    min-width: 20px;
    height: 20px;
    margin-left: auto;
    padding: 0 6px;
    place-items: center;
    border-radius: 99px;
    background: var(--violet);
    color: #fff;
    font-size: 9px;
    line-height: 1;
    text-align: center;
    box-shadow: 0 4px 10px rgba(104, 66, 216, .2);
}

.sidebar-profile {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
    padding: 14px 9px 0;
    border-top: 1px solid var(--line-new);
}

.sidebar-avatar,
.header-avatar {
    display: grid;
    overflow: hidden;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: #866adc;
    color: #fff;
    font-family: Georgia, serif;
    font-weight: 700;
    text-decoration: none;
}

.sidebar-avatar img,
.header-avatar img { width: 100%; height: 100%; object-fit: cover; }

.sidebar-identity {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    color: var(--ink);
    text-decoration: none;
}

.sidebar-identity strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-identity small { color: var(--muted-new); font-size: 9px; }
.sidebar-logout button { border: 0; background: transparent; color: var(--muted-new); cursor: pointer; }

.site-main { min-height: 100vh; margin-left: var(--sidebar-width); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 25;
    display: flex;
    height: var(--header-height);
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 32px;
    border-bottom: 1px solid color-mix(in srgb, var(--line-new) 88%, transparent);
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    box-shadow: none;
    backdrop-filter: blur(18px);
}

.sidebar-toggle { display: none; width: 42px; height: 42px; place-items: center; padding: 0; border: 1px solid var(--line-new); border-radius: 12px; background: var(--panel); color: var(--ink); cursor: pointer; }
.sidebar-toggle svg { display: block; width: 22px; height: 22px; }

.search-form {
    display: flex;
    width: min(410px, 42vw);
    height: 40px;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid var(--line-new);
    border-radius: 11px;
    background: var(--panel);
}

.search-form > svg { width: 19px; height: 19px; flex: 0 0 19px; color: var(--muted-new); }

.search-form input,
.search-form input[type="search"] {
    min-width: 0;
    width: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 12px;
}

.site-header .header-actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 11px; }
.site-header .header-actions a { text-decoration: none; }

.theme-toggle,
.notification-link {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line-new);
    border-radius: 50%;
    background: var(--panel);
    color: var(--ink);
    cursor: pointer;
    font-size: 18px;
}

.notification-link b {
    position: absolute;
    top: -3px;
    right: -3px;
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border: 2px solid var(--paper);
    border-radius: 50%;
    background: var(--coral);
    color: #fff;
    font-size: 8px;
}

.publish-button,
a.button,
button:not(.theme-toggle):not(.sidebar-toggle):not(.tag-editor-remove):not(.poem-like-button):not(.poem-favorite-button):not(.report-dialog-close):not(.comment-vote-button):not(.report-trigger) {
    border-radius: 999px;
}

.publish-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    background: var(--violet);
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    box-shadow: 0 8px 20px rgba(104, 66, 216, .17);
}

.header-login { font-size: 12px; font-weight: 750; }

.email-verification-banner {
    margin-left: var(--sidebar-width);
    padding: 10px 28px;
    border-color: #ead9a8;
    background: #fff6dc;
    color: #6c5116;
    font-size: 11px;
}

.container {
    max-width: none;
    min-height: calc(100vh - var(--header-height));
    margin: 0;
    padding: 42px clamp(26px, 4vw, 58px) 72px;
}

.page-layout {
    max-width: 1180px;
    margin: 0 auto;
    gap: 30px;
    grid-template-columns: minmax(0, 1.72fr) minmax(260px, .68fr);
}

.content-column > h1,
.page-heading h1,
.info-page > h1,
.form > h1 {
    margin: 4px 0 9px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.05;
}

.muted { color: var(--muted-new); }

.breadcrumbs {
    margin: 0 0 22px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.breadcrumbs ol { color: var(--muted-new); font-size: 9px; }
.breadcrumbs a { color: var(--violet); }
.breadcrumbs [aria-current="page"] { padding: 0; background: transparent; color: var(--muted-new); font-weight: 500; }

.card,
.poem,
.review,
.form,
.messages,
.comments,
.reviews,
.related-poems,
.sidebar-widget,
.ad-banner {
    border: 1px solid var(--line-new);
    background: var(--panel);
    color: var(--ink);
    box-shadow: none;
}

.card,
.form,
.messages { border-radius: 16px; }

.messages { margin: 0 0 18px; padding: 13px 18px; }
.message { margin: 0; font-size: 11px; }

.home-tabs,
.tabs,
.moderation-nav,
.moderation-filters {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    margin: 0 0 25px;
    padding: 5px;
    border: 1px solid var(--line-new);
    border-radius: 13px;
    background: var(--panel);
    scrollbar-width: none;
}

.home-tabs a,
.tabs a,
.tabs button,
.moderation-tab,
.moderation-filter {
    flex: 0 0 auto;
    padding: 9px 15px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted-new);
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}

.home-tabs a.active,
.tabs a.active,
.tabs button.active,
.moderation-tab.is-active,
.moderation-filter.is-active {
    background: var(--ink);
    color: var(--panel);
}

.home-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 25px;
    min-height: 260px;
    margin: 0 0 24px;
    padding: 38px 42px;
    border-radius: 22px;
    background: var(--ink);
    color: var(--panel);
}

.home-hero::after {
    position: absolute;
    right: -70px;
    bottom: -150px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    box-shadow: 0 0 0 45px rgba(255, 255, 255, .03), 0 0 0 90px rgba(255, 255, 255, .02);
    content: "";
}

.home-hero-copy,
.home-hero-quote { position: relative; z-index: 1; }

.section-kicker {
    color: #9b80f2;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.home-hero h1 {
    max-width: 650px;
    margin: 12px 0 14px;
    color: var(--panel);
    font-family: Georgia, serif;
    font-size: clamp(38px, 4vw, 54px);
    font-weight: 500;
    letter-spacing: -.04em;
    line-height: 1.05;
}

.home-hero-copy p { max-width: 560px; margin: 0 0 24px; color: color-mix(in srgb, var(--panel) 66%, transparent); font-size: 13px; }
.home-hero .button { border: 0; background: var(--panel); color: var(--violet-dark); }

.home-hero-quote {
    align-self: center;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(8px);
}

.home-hero-quote p { margin: 0 0 16px; color: var(--panel); font-family: Georgia, serif; font-size: 18px; font-style: italic; line-height: 1.65; }
.home-hero-quote span { color: rgba(255, 255, 255, .55); font-size: 9px; }

.poem-card {
    margin: 14px 0;
    padding: 25px 27px 22px;
    border-radius: 16px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.poem-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-new); }
.poem-card h2 { margin: 9px 0 12px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; letter-spacing: -.02em; }
.poem-card h2 a { color: var(--ink); }
.poem-card h2 a:hover { color: var(--violet); }
.poem-card-author { margin: 0 0 10px; }
.poem-card-avatar { width: 32px; height: 32px; border-color: transparent; }
.poem-card-avatar-placeholder { background: #866adc; color: #fff; font-size: 12px; }
.poem-card-author-name { color: var(--ink); font-size: 11px; font-weight: 750; }
.poem-card-author-meta .follow-form button,
.poem-card-author-meta a.button { min-height: 27px; padding: 0 10px; border-color: var(--line-new); background: transparent; color: var(--violet); font-size: 9px; }
.poem-card-meta { color: var(--muted-new); font-size: 10px; }
.poem-card-summary { color: var(--muted-new); font-size: 12px; }
.poem-card-body { color: var(--text); font-family: Georgia, serif; font-size: 16px; line-height: 1.75; }
.poem-card-body p { margin: 0; }
.poem-card-actions { text-align: left; }
.poem-read-more { min-height: 31px; padding: 0 13px; border: 1px solid var(--line-new); background: var(--panel); color: var(--violet); font-size: 9px; }
.poem-card-foot { margin-top: 18px; padding-top: 15px; border-color: var(--line-new); }
.poem-stats { gap: 3px; color: var(--muted-new); }
.poem-stat { font-size: 10px; }
.poem-stat-icon { width: 16px; height: 16px; }
.poem-like-button,
.poem-favorite-button,
.poem-favorite-login { padding: 5px 7px; border-radius: 8px; color: var(--muted-new); }
.poem-like-button:hover,
.poem-like-button.is-liked,
.poem-favorite-button:hover,
.poem-favorite-button.is-favorited { background: var(--violet-soft); color: var(--violet); }
.poem-tag { border-color: transparent; background: var(--panel-soft); color: var(--muted-new); font-size: 9px; }
.poem-tag-mark { color: var(--violet); }

.sidebar-column { top: 94px; }

.page-layout:has(.poem),
.page-layout:has(.profile-header),
.page-layout:has(.profile-form),
.page-layout:has(.info-page),
.page-layout:has(.moderation-section),
.page-layout:has([data-notifications-list]),
.page-layout:has(.category-cloud),
.page-layout:has(.author-filters),
.page-layout:has(.social-login),
.page-layout:has(.poem-image-field) {
    grid-template-columns: minmax(0, 1fr);
}

.page-layout:has(.poem) > .sidebar-column,
.page-layout:has(.profile-header) > .sidebar-column,
.page-layout:has(.profile-form) > .sidebar-column,
.page-layout:has(.info-page) > .sidebar-column,
.page-layout:has(.moderation-section) > .sidebar-column,
.page-layout:has([data-notifications-list]) > .sidebar-column,
.page-layout:has(.category-cloud) > .sidebar-column,
.page-layout:has(.author-filters) > .sidebar-column,
.page-layout:has(.social-login) > .sidebar-column,
.page-layout:has(.poem-image-field) > .sidebar-column { display: none; }

.page-layout:has(.poem),
.page-layout:has(.profile-header),
.page-layout:has(.author-filters) { max-width: 1080px; }

.page-layout:has(.profile-form),
.page-layout:has(.info-page),
.page-layout:has([data-notifications-list]),
.page-layout:has(.social-login),
.page-layout:has(.poem-image-field) { max-width: 880px; }
.sidebar-widget { padding: 22px; border-radius: 16px; }
.sidebar-widget-head h2 { margin: 0; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.category-links { display: flex; flex-wrap: wrap; gap: 7px; }
.category-links a { padding: 7px 10px; border-radius: 9px; background: var(--panel-soft); color: var(--text); font-size: 10px; text-decoration: none; }
.category-links a.active { background: var(--violet-soft); color: var(--violet); }
.category-sep { display: none; }
.category-more { margin-bottom: 0; font-size: 10px; }
.category-more a { color: var(--violet); }

button,
.button,
a.button {
    border-color: transparent;
    background: var(--violet);
    color: #fff;
    font-size: 11px;
    font-weight: 750;
}

button:hover,
.button:hover,
a.button:hover { background: var(--violet-dark); color: #fff; }

a.follow-login-button {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    min-width: 112px;
    min-height: 36px;
    align-self: flex-start;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin: 0;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--violet);
    color: #fff;
    box-shadow: 0 6px 15px rgba(104, 66, 216, .15);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

a.follow-login-button:hover,
a.follow-login-button:focus-visible {
    border-color: transparent;
    background: var(--violet-dark);
    color: #fff;
}

.poem-card-author-meta a.follow-login-button {
    width: auto;
    min-width: 0;
    min-height: 29px;
    align-self: flex-start;
    padding: 0 10px;
    border-color: color-mix(in srgb, var(--violet) 18%, var(--line-new));
    border-radius: 9px;
    background: var(--violet-soft);
    color: var(--violet);
    box-shadow: none;
    font-size: 9px;
}

.poem-card-author-meta a.follow-login-button:hover,
.poem-card-author-meta a.follow-login-button:focus-visible { border-color: transparent; background: var(--violet); color: #fff; }

.author-card-modern .author-card-identity a.follow-login-button { min-width: 116px; align-self: center; }
.profile-header-identity > a.follow-login-button { min-width: 116px; margin-top: 7px; }

input,
select,
textarea {
    border: 1px solid var(--line-new);
    border-radius: 10px;
    background: var(--panel);
    color: var(--ink);
}

input:focus,
select:focus,
textarea:focus { border-color: var(--violet); outline: 0; box-shadow: 0 0 0 3px var(--violet-soft); }

.form { padding: 28px; }
.form p { margin: 0 0 17px; }
.form label { color: var(--ink); font-size: 10px; font-weight: 800; }
.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form input[type="file"],
.form select,
.form textarea { width: 100%; max-width: none; padding: 10px 13px; }
.form textarea[name="body"] { min-height: 300px; font-family: Georgia, serif; font-size: 17px; line-height: 1.75; }
.helptext,
.form .muted { color: var(--muted-new); font-size: 9px; }
.form-errors { color: var(--red); }

.poem {
    padding: clamp(28px, 5vw, 64px);
    border-radius: 20px;
}

.poem h1 { color: var(--ink); font-size: clamp(40px, 5vw, 62px); letter-spacing: -.045em; line-height: 1.05; }
.poem-title-rule {
    position: relative;
    display: block;
    height: 1px;
    margin: 18px 0 22px;
    overflow: visible;
    background: linear-gradient(90deg, color-mix(in srgb, var(--violet) 26%, transparent), color-mix(in srgb, var(--line-new) 58%, transparent) 68%, transparent);
    color: var(--violet);
    opacity: 1;
}
.poem-title-rule::before {
    position: absolute;
    top: -1px;
    left: 0;
    width: 72px;
    height: 3px;
    flex: none;
    border-radius: 999px;
    background: var(--violet);
    content: "";
}
.poem-title-rule::after,
.poem-title-rule span { display: none; }

.poem-byline { align-items: stretch; margin-bottom: 26px; }
.poem-byline a { color: var(--violet); font-weight: 750; }
.poem-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px;
    border: 1px solid color-mix(in srgb, var(--violet) 12%, var(--line-new));
    border-left: 3px solid var(--violet);
    border-radius: 14px;
    background: color-mix(in srgb, var(--violet-soft) 38%, var(--panel));
}
.poem-info-list {
    display: grid;
    min-width: 0;
    flex: 1 1 auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}
.poem-info-item {
    min-width: 0;
    padding: 7px 9px;
    border-radius: 9px;
    background: color-mix(in srgb, var(--panel) 78%, transparent);
}
.poem-info-item dt {
    margin: 0 0 4px;
    color: var(--muted-new);
    font-size: 7px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.poem-info-item dd {
    overflow: hidden;
    margin: 0;
    color: var(--ink);
    font-size: 9px;
    font-weight: 750;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.poem-summary {
    position: relative;
    margin: 0 0 27px;
    padding: 17px 19px 17px 22px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--violet) 13%, var(--line-new));
    border-radius: 14px;
    background: color-mix(in srgb, var(--violet-soft) 58%, var(--panel));
}
.poem-summary::before {
    position: absolute;
    top: 13px;
    bottom: 13px;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--violet);
    content: "";
}
.poem-summary > span {
    display: block;
    margin-bottom: 7px;
    color: var(--violet);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.poem-summary p { margin: 0; color: var(--text); font-size: 12px; line-height: 1.65; }
.poem-body { color: var(--text); font-family: Georgia, serif; font-size: clamp(19px, 2vw, 23px); line-height: 1.9; }
.poem .poem-tags { margin-top: 36px; }
.poem .poem-stats {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 0;
    background: linear-gradient(90deg, color-mix(in srgb, var(--violet) 22%, transparent), var(--line-new) 55%, transparent) top / 100% 1px no-repeat;
}
.poem-cover { border-radius: 16px; box-shadow: var(--shadow-new); }

.related-poems { gap: 14px; margin-top: 18px; padding: 0; border: 0; background: transparent; }
.related-poems-col { padding: 22px; border: 1px solid var(--line-new); border-radius: 17px; background: var(--panel); }
.related-poems-kicker { display: block; margin-bottom: 6px; color: var(--violet); font-size: 7px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.related-poems h2 { margin: 0 0 14px; font-family: Georgia, serif; font-size: 19px; font-weight: 500; line-height: 1.25; }
.related-poems h2 a { color: var(--violet); }
.related-poems ul { display: grid; gap: 7px; }
.related-poems li { margin: 0; }
.related-poems li a {
    display: flex;
    min-height: 39px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 11px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--panel-soft);
    color: var(--ink);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}
.related-poems li a::after { flex: 0 0 auto; color: var(--violet); font-size: 13px; content: "→"; }
.related-poems li a:hover,
.related-poems li a:focus-visible {
    border-color: color-mix(in srgb, var(--violet) 18%, var(--line-new));
    background: var(--violet-soft);
    color: var(--violet-dark);
    text-decoration: none;
    transform: translateX(2px);
}

.comments,
.reviews { margin-top: 18px; padding: 26px; border-radius: 17px; }
.comments-header h2,
.reviews > h2 { margin-top: 0; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.comment-composer { padding: 14px; border-color: var(--line-new); border-radius: 13px; background: var(--paper); }
.comment { border-color: var(--line-new); }
.comment-avatar { border: 0; background: #866adc; color: #fff; }
.comment-author { color: var(--ink); }
.comment-body { color: var(--text); font-size: 12px; }
.comment-meta,
.comment-actions { color: var(--muted-new); font-size: 9px; }
.review { padding: 20px; border-radius: 13px; }

.profile-header,
.profile-details { border-color: var(--line-new); border-radius: 18px; }
.profile-avatar { border-color: transparent; box-shadow: 0 9px 24px rgba(104, 66, 216, .15); }
.profile-avatar-placeholder { background: #866adc; color: #fff; }
.profile-header-identity h1 { font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.profile-stats { gap: 8px; }
.profile-stat,
.profile-stat-link { justify-content: center; padding: 12px 8px; border: 1px solid var(--line-new); border-radius: 11px; background: var(--panel); font-size: 11px; }
.profile-bio { border: 0; background: var(--panel-soft); }
.author-card { border-radius: 16px; }

.authors-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.author-card-modern {
    display: flex;
    min-height: 190px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 13px;
    margin: 0;
    padding: 25px;
    text-align: center;
}

.author-card-modern .author-card-main {
    min-width: 0;
    flex-direction: column;
    gap: 10px;
}

.author-card-modern .author-card-identity { min-width: 0; align-items: center; }
.author-card-modern .author-card-identity h2 { font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.author-card-modern .profile-avatar-sm { width: 68px; height: 68px; font-size: 22px; }
.author-card-modern .profile-stats-compact { width: 100%; }

.page-heading { align-items: end; margin-bottom: 24px; }
.page-heading .button { border: 0; }
.my-poems-toolbar { padding: 20px; }
.my-poems-filter-label { color: var(--muted-new); font-size: 9px; }
.poem-status { border-radius: 999px; font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }
.poem-status-published { background: #e0f3eb; color: var(--green); }
.poem-status-under_review { background: #fff0d7; color: var(--amber); }
.poem-status-rejected { background: #f8dddd; color: var(--red); }
.poem-status-hidden { background: #eadff0; color: #785183; }
.poem-status-archived { background: #e4e4e4; color: #666; }

.notification-card { padding: 18px 20px; border-radius: 0; margin: 0; border-width: 0 0 1px; }
[data-notifications-list] { overflow: hidden; border: 1px solid var(--line-new); border-radius: 16px; }
.notification-card.unread { border-left: 3px solid var(--violet); background: color-mix(in srgb, var(--violet-soft) 45%, var(--panel)); }
.notification-title { font-size: 12px; }

/* Notifications center */
.notifications-page { min-width: 0; }
.notifications-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 28px;
    margin: 0;
    padding: clamp(28px, 5vw, 46px);
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--panel) 0%, color-mix(in srgb, var(--violet-soft) 56%, var(--panel)) 100%);
}
.notifications-hero::after { position: absolute; top: -82px; right: -65px; width: 250px; height: 250px; border: 48px solid color-mix(in srgb, var(--violet) 6%, transparent); border-radius: 50%; content: ""; pointer-events: none; }
.notifications-hero > * { position: relative; z-index: 1; }
.notifications-hero h1 { margin: 7px 0 10px; font-family: Georgia, serif; font-size: clamp(46px, 7vw, 68px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.notifications-hero-copy > p { max-width: 590px; margin: 0; color: var(--muted-new); font-size: 14px; line-height: 1.65; }
.notifications-overview { display: grid; grid-template-columns: repeat(2, minmax(92px, 1fr)); gap: 9px; }
.notifications-overview-item { display: grid; min-height: 91px; align-content: center; justify-items: center; padding: 14px; border: 1px solid var(--line-new); border-radius: 16px; background: color-mix(in srgb, var(--panel) 88%, transparent); box-shadow: 0 10px 24px rgba(34, 24, 64, .04); }
.notifications-overview-item span { color: var(--muted-new); font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.notifications-overview-item strong { margin-top: 5px; color: var(--ink); font-family: Georgia, serif; font-size: 31px; font-weight: 500; line-height: 1; }
.notifications-overview-item.has-unread { border-color: color-mix(in srgb, var(--violet) 26%, var(--line-new)); background: var(--violet-soft); }
.notifications-overview-item.has-unread strong { color: var(--violet); }

.notifications-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 34px 2px 17px; }
.notifications-toolbar h2 { margin: 4px 0 0; font-family: Georgia, serif; font-size: 30px; font-weight: 500; letter-spacing: -.025em; }
.notifications-toolbar-actions { display: flex; align-items: center; gap: 8px; }
.notifications-settings-link,
.notification-read-all-form button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 7px; margin: 0; padding: 0 13px; border: 1px solid var(--line-new); border-radius: 11px; font-size: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.notifications-settings-link { background: var(--panel); color: var(--muted-new); }
.notifications-settings-link svg { width: 16px; height: 16px; color: var(--violet); }
.notifications-settings-link:hover { border-color: color-mix(in srgb, var(--violet) 24%, var(--line-new)); background: var(--violet-soft); color: var(--violet); }
.notification-read-all-form { margin: 0; }
.notification-read-all-form button { border-color: transparent; background: var(--violet); color: #fff; cursor: pointer; }
.notification-read-all-form button:hover { background: var(--violet-dark); }
.notification-read-all-label-short { display: none; }

.notification-filters { display: flex; gap: 7px; margin: 0 0 18px; padding: 5px; overflow-x: auto; border: 1px solid var(--line-new); border-radius: 14px; background: color-mix(in srgb, var(--panel-soft) 74%, var(--panel)); scrollbar-width: none; }
.notification-filters::-webkit-scrollbar { display: none; }
.notification-filter { display: inline-flex; min-height: 39px; flex: 0 0 auto; align-items: center; gap: 8px; padding: 0 13px; border-radius: 10px; color: var(--muted-new); font-size: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.notification-filter b { display: grid; min-width: 21px; height: 21px; place-items: center; padding: 0 5px; border-radius: 999px; background: var(--panel); color: var(--muted-new); font-size: 8px; }
.notification-filter:hover { background: var(--panel); color: var(--violet); }
.notification-filter.active { background: var(--violet); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--violet) 22%, transparent); }
.notification-filter.active b { background: rgba(255, 255, 255, .18); color: #fff; }

.notifications-list[data-notifications-list] { display: grid; gap: 10px; overflow: visible; border: 0; border-radius: 0; }
.notifications-list .notification-card {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 15px;
    margin: 0;
    padding: 19px 20px;
    overflow: hidden;
    border: 1px solid var(--line-new);
    border-radius: 17px;
    background: var(--panel);
    box-shadow: 0 9px 28px rgba(34, 24, 64, .035);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.notifications-list .notification-card:hover { border-color: color-mix(in srgb, var(--violet) 22%, var(--line-new)); box-shadow: var(--shadow-new); transform: translateY(-1px); }
.notifications-list .notification-card.unread { border-left: 1px solid color-mix(in srgb, var(--violet) 28%, var(--line-new)); background: linear-gradient(100deg, color-mix(in srgb, var(--violet-soft) 58%, var(--panel)), var(--panel) 64%); }
.notifications-list .notification-card.unread::before { position: absolute; inset: 13px auto 13px 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--violet); content: ""; }
.notification-kind-icon { position: relative; display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: var(--violet-soft); color: var(--violet); }
.notification-kind-icon svg { width: 22px; height: 22px; }
.notification-kind-icon i { position: absolute; top: -2px; right: -2px; width: 11px; height: 11px; border: 2px solid var(--panel); border-radius: 50%; background: var(--coral); box-shadow: 0 2px 7px color-mix(in srgb, var(--coral) 35%, transparent); }
.notification-card[data-notification-kind="like"] .notification-kind-icon,
.notification-card[data-notification-kind="moderation"] .notification-kind-icon { background: var(--violet-soft); color: var(--violet); }
.notification-card[data-notification-kind="system"] .notification-kind-icon { background: color-mix(in srgb, var(--green) 11%, var(--panel)); color: var(--green); }
.notification-card-content { min-width: 0; }
.notification-card-meta { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 6px 9px; }
.notification-kind-label { color: var(--violet); font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.notification-card-meta time { color: var(--muted-new); font-size: 9px; font-weight: 650; font-variant-numeric: tabular-nums; }
.notification-unread-badge { margin-left: auto; padding: 5px 8px; border-radius: 999px; background: var(--violet); color: #fff; font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.notifications-list .notification-title { margin: 7px 0 0; font-family: Georgia, serif; font-size: 20px; font-weight: 500; letter-spacing: -.015em; line-height: 1.25; }
.notifications-list .notification-card .notification-title a { color: var(--ink); font-weight: inherit; text-decoration: none; }
.notifications-list .notification-card .notification-title a:hover { color: var(--violet); }
.notification-body { max-width: 700px; margin: 7px 0 0; color: var(--text); font-size: 12px; line-height: 1.6; }
.notification-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; }
.notification-open-link { display: inline-flex; min-height: 30px; align-items: center; gap: 7px; color: var(--violet); font-size: 10px; font-weight: 850; text-decoration: none; }
.notification-open-link span { font-size: 16px; transition: transform .16s ease; }
.notification-open-link:hover span { transform: translateX(3px); }
.notification-read-form { margin: 0; }
.notification-read-form button { display: inline-flex; min-height: 32px; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--violet) 20%, var(--line-new)); border-radius: 9px; background: var(--panel); color: var(--violet); font-size: 9px; font-weight: 800; cursor: pointer; }
.notification-read-form button:hover { border-color: transparent; background: var(--violet-soft); color: var(--violet-dark); }

.notifications-empty { display: grid; justify-items: center; margin: 0; padding: clamp(42px, 8vw, 70px) 24px; border-radius: 20px; text-align: center; }
.notifications-empty-icon { display: grid; width: 62px; height: 62px; margin-bottom: 18px; place-items: center; border-radius: 19px; background: var(--violet-soft); color: var(--violet); }
.notifications-empty-icon svg { width: 28px; height: 28px; }
.notifications-empty h2 { margin: 6px 0 7px; font-family: Georgia, serif; font-size: 30px; font-weight: 500; }
.notifications-empty p { max-width: 520px; margin: 0; color: var(--muted-new); font-size: 13px; line-height: 1.65; }
.notifications-empty > button { display: inline-flex; min-height: 40px; align-items: center; gap: 7px; margin-top: 19px; padding: 0 14px; border: 0; border-radius: 11px; background: var(--violet); color: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
.notifications-empty > button:hover { background: var(--violet-dark); color: #fff; }
.notifications-empty > button svg { width: 16px; height: 16px; }
.notifications-empty small { margin-top: 9px; color: var(--muted-new); font-size: 9px; }

.notification-settings-dialog { width: min(820px, calc(100vw - 32px)); max-height: min(820px, calc(100dvh - 32px)); padding: 0; overflow: auto; border: 1px solid color-mix(in srgb, var(--violet) 20%, var(--line-new)); border-radius: 24px; background: var(--panel); color: var(--ink); box-shadow: 0 28px 90px rgba(24, 17, 44, .26); }
.notification-settings-dialog::backdrop { background: rgba(22, 16, 37, .54); backdrop-filter: blur(5px); }
.notification-settings-form { margin: 0; }
.notification-settings-form > header { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 28px 30px 24px; border-bottom: 0; background: linear-gradient(135deg, var(--panel), color-mix(in srgb, var(--violet-soft) 54%, var(--panel))); }
.notification-settings-form > header::after { position: absolute; right: 30px; bottom: 0; left: 30px; height: 1px; background: linear-gradient(90deg, var(--violet) 0 72px, color-mix(in srgb, var(--violet) 24%, var(--line-new)) 72px, transparent 100%); content: ""; }
.notification-settings-form > header h2 { margin: 5px 0 6px; font-family: Georgia, serif; font-size: 32px; font-weight: 500; letter-spacing: -.025em; }
.notification-settings-form > header p { margin: 0; color: var(--muted-new); font-size: 12px; }
.notification-dialog-close { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; padding: 0; border: 1px solid var(--line-new); border-radius: 11px; background: var(--panel); color: var(--muted-new); line-height: 0; cursor: pointer; }
.notification-dialog-close svg { display: block; width: 19px; height: 19px; }
.notification-dialog-close:hover { border-color: var(--violet); color: var(--violet); }
.notification-settings-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 22px 30px 12px; }
.notification-settings-columns > section { overflow: hidden; border: 1px solid var(--line-new); border-radius: 17px; background: var(--panel); }
.notification-settings-channel { display: flex; align-items: center; gap: 11px; padding: 16px; border-bottom: 1px solid var(--line-new); background: var(--panel-soft); }
.notification-settings-channel > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: var(--violet-soft); color: var(--violet); font-size: 15px; font-weight: 850; }
.notification-settings-channel svg { width: 19px; height: 19px; }
.notification-settings-channel h3 { margin: 0; font-size: 13px; }
.notification-settings-channel p { margin: 3px 0 0; color: var(--muted-new); font-size: 9px; line-height: 1.4; }
.notification-setting-row { display: flex; min-height: 53px; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 15px; border-bottom: 1px solid var(--line-new); color: var(--text); font-size: 10px; font-weight: 750; cursor: pointer; }
.notification-setting-row:last-child { border-bottom: 0; }
.notification-switch-input { position: relative; width: 42px !important; height: 24px !important; flex: 0 0 42px; margin: 0 !important; appearance: none; border: 1px solid color-mix(in srgb, var(--muted-new) 30%, var(--line-new)) !important; border-radius: 999px !important; background: color-mix(in srgb, var(--muted-new) 16%, var(--panel)) !important; cursor: pointer; transition: background .16s ease, border-color .16s ease; }
.notification-switch-input::after { position: absolute; top: 50%; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(30, 23, 48, .2); content: ""; transform: translateY(-50%); transition: transform .16s ease; }
.notification-switch-input:checked { border-color: var(--violet) !important; background: var(--violet) !important; }
.notification-switch-input:checked::after { transform: translate(18px, -50%); }
.notification-switch-input:focus-visible { outline: 3px solid var(--violet-soft); outline-offset: 2px; }
.notification-settings-status { min-height: 18px; margin: 0; padding: 0 30px; color: var(--violet); font-size: 10px; font-weight: 750; text-align: right; }
.notification-settings-form > footer { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 30px 24px; }
.notification-settings-form > footer .button { min-height: 42px; margin: 0; }
.notification-settings-form > footer .notification-settings-cancel { border: 1px solid color-mix(in srgb, var(--violet) 24%, var(--line-new)); background: #fff; color: var(--violet); box-shadow: none; }
.notification-settings-form > footer .notification-settings-cancel:hover { border-color: var(--violet); background: var(--violet-soft); color: var(--violet-dark); }

@media (max-width: 640px) {
    .notifications-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 27px 20px; border-radius: 19px; }
    .notifications-hero::after { top: -95px; right: -105px; }
    .notifications-hero h1 { font-size: clamp(43px, 13vw, 55px); }
    .notifications-hero-copy > p { font-size: 13px; }
    .notifications-overview { width: 100%; }
    .notifications-overview-item { min-height: 74px; grid-template-columns: 1fr auto; align-items: center; justify-items: start; }
    .notifications-overview-item strong { margin: 0; justify-self: end; font-size: 27px; }
    .notifications-toolbar { align-items: stretch; flex-direction: column; gap: 14px; margin-top: 28px; }
    .notifications-toolbar h2 { font-size: 26px; }
    .notifications-toolbar-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .notifications-toolbar-actions > * { min-width: 0; }
    .notifications-toolbar-actions .notifications-settings-link,
    .notifications-toolbar-actions .notification-read-all-form,
    .notifications-toolbar-actions .notification-read-all-form button { width: 100%; }
    .notifications-toolbar-actions .notifications-settings-link:only-child { grid-column: 1 / -1; }
    .notification-filters { margin-right: -4px; margin-left: -4px; border-right: 0; border-left: 0; border-radius: 0; }
    .notification-read-all-label-full { display: none; }
    .notification-read-all-label-short { display: inline; }
    .notifications-list .notification-card { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 15px 14px; border-radius: 15px; }
    .notifications-list .notification-card:hover { transform: none; }
    .notification-kind-icon { width: 42px; height: 42px; border-radius: 12px; }
    .notification-kind-icon svg { width: 19px; height: 19px; }
    .notification-card-meta { align-items: flex-start; flex-direction: column; gap: 3px; }
    .notification-card.unread .notification-card-meta { padding-right: 44px; }
    .notification-unread-badge { position: absolute; top: 15px; right: 14px; margin: 0; }
    .notifications-list .notification-title { margin-top: 8px; font-size: 18px; overflow-wrap: anywhere; }
    .notification-body { font-size: 12px; }
    .notification-card-actions { align-items: stretch; flex-direction: column; gap: 7px; }
    .notification-open-link { min-height: 34px; }
    .notification-read-form,
    .notification-read-form button { width: 100%; }
    .notification-read-form button { min-height: 38px; }
    .notifications-empty { padding: 42px 20px; border-radius: 17px; }
    .notifications-empty h2 { font-size: 27px; }
    .notifications-empty p { font-size: 12px; }
    .notification-settings-dialog { width: calc(100vw - 18px); max-height: calc(100dvh - 18px); border-radius: 19px; }
    .notification-settings-form > header { padding: 22px 19px 20px; }
    .notification-settings-form > header::after { right: 19px; left: 19px; }
    .notification-settings-form > header h2 { font-size: 27px; }
    .notification-settings-columns { grid-template-columns: 1fr; padding: 16px 14px 8px; }
    .notification-setting-row { min-height: 50px; font-size: 10px; }
    .notification-settings-status { padding: 0 18px; }
    .notification-settings-form > footer { position: sticky; bottom: 0; padding: 12px 14px 14px; background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(8px); }
    .notification-settings-form > footer .button { flex: 1; padding: 0 10px; }
}

.moderation-nav { border-bottom: 1px solid var(--line-new); }
.moderation-section .card { padding: 22px; }
.report-meta { border-color: var(--line-new); background: var(--panel-soft); }
.report-dialog-card { border-color: var(--line-new); background: var(--panel); box-shadow: var(--shadow-new); }
.report-dialog::backdrop { background: rgba(22, 16, 37, .5); backdrop-filter: blur(4px); }

.category-cloud { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.category-cloud a { min-height: 100px; padding: 22px; border: 1px solid var(--line-new); border-radius: 15px; background: var(--panel); color: var(--ink); font-family: Georgia, serif; font-size: 20px; text-decoration: none; }
.category-cloud a:hover { border-color: var(--violet); background: var(--violet-soft); color: var(--violet); }

.category-return { margin: 16px 0 28px; }
.category-return-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    padding: 7px 15px 7px 9px;
    border: 1px solid color-mix(in srgb, var(--violet) 23%, var(--line-new));
    border-radius: 999px;
    background: color-mix(in srgb, var(--violet-soft) 70%, var(--panel));
    color: var(--violet);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(98, 65, 209, .08);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.category-return-link:hover,
.category-return-link:focus-visible {
    border-color: color-mix(in srgb, var(--violet) 48%, var(--line-new));
    background: var(--violet-soft);
    box-shadow: 0 10px 24px rgba(98, 65, 209, .15);
    transform: translateY(-1px);
}
.category-return-arrow { font-size: 16px; line-height: 1; transition: transform .18s ease; }
.category-return-link:hover .category-return-arrow { transform: translateX(-2px); }
.category-return-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    background: var(--panel);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--violet) 12%, transparent);
}
.category-return-icon svg { width: 15px; height: 15px; }

@media (max-width: 700px) {
    .category-return { margin: 14px 0 22px; }
    .category-return-link { min-height: 46px; font-size: 13px; }
}

/* Portal news */
.page-layout:has(.news-index),
.page-layout:has(.news-detail-page) {
    width: 100%;
    max-width: 1080px;
    grid-template-columns: minmax(0, 1fr);
}
.page-layout:has(.news-index) > .sidebar-column,
.page-layout:has(.news-detail-page) > .sidebar-column { display: none; }
.news-index,
.news-detail-page { min-width: 0; }

.news-index-hero {
    position: relative;
    display: grid;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 28px;
    padding: clamp(28px, 5vw, 52px);
    border-color: color-mix(in srgb, var(--violet) 14%, var(--line-new));
    border-radius: 24px;
    background:
        radial-gradient(circle at 92% 2%, color-mix(in srgb, var(--violet-soft) 90%, transparent) 0, transparent 39%),
        var(--panel);
}
.news-index-hero::after {
    position: absolute;
    top: -54px;
    right: -32px;
    width: 180px;
    height: 180px;
    border: 34px solid color-mix(in srgb, var(--violet) 7%, transparent);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}
.news-index-hero > * { position: relative; z-index: 1; }
.news-index-hero h1 {
    max-width: 700px;
    margin: 8px 0 12px;
    color: var(--ink);
    font-family: Georgia, serif;
    font-size: clamp(42px, 6vw, 68px);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: .98;
}
.news-index-hero p { max-width: 620px; margin: 0; color: var(--muted-new); font-size: 15px; line-height: 1.65; }
.news-index-summary { margin: 0; }
.news-index-summary > div {
    display: grid;
    min-width: 138px;
    min-height: 102px;
    align-content: center;
    gap: 5px;
    padding: 18px;
    border: 1px solid var(--line-new);
    border-radius: 17px;
    background: color-mix(in srgb, var(--panel) 86%, var(--violet-soft));
    text-align: center;
}
.news-index-summary dt { color: var(--muted-new); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.news-index-summary dd { margin: 0; color: var(--violet); font-family: Georgia, serif; font-size: 32px; line-height: 1; }
.news-index-heading { display: flex; align-items: end; justify-content: space-between; margin: 35px 2px 18px; }
.news-index-heading h2 { margin: 4px 0 0; font-family: Georgia, serif; font-size: 32px; font-weight: 500; letter-spacing: -.03em; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.news-card-modern {
    display: flex;
    min-width: 0;
    min-height: 285px;
    flex-direction: column;
    margin: 0;
    padding: 25px;
    border-radius: 20px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.news-card-modern:first-child { grid-column: 1 / -1; min-height: 300px; padding: clamp(26px, 4vw, 40px); }
.news-card-modern:last-child:nth-child(even) { grid-column: 1 / -1; }
.news-card-modern:last-child:nth-child(even) h2,
.news-card-modern:last-child:nth-child(even) .news-card-summary { max-width: 900px; }
.news-card-modern:hover { border-color: color-mix(in srgb, var(--violet) 25%, var(--line-new)); box-shadow: var(--shadow-new); transform: translateY(-2px); }
.news-card-meta { display: flex; align-items: center; gap: 8px; color: var(--muted-new); font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.news-card-meta span { padding: 5px 8px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); }
.news-card-modern h2 { margin: 18px 0 11px; font-family: Georgia, serif; font-size: clamp(24px, 3vw, 34px); font-weight: 500; letter-spacing: -.025em; line-height: 1.12; }
.news-card-modern h2 a { text-decoration: none; transition: color .18s ease; }
.news-card-modern h2 a:hover { color: var(--violet); }
.news-card-summary-box { position: relative; padding: 13px 15px 14px 17px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--violet) 15%, var(--line-new)); border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--violet) 8%, var(--panel-soft)), var(--panel-soft)); }
.news-card-summary-box::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, var(--violet), color-mix(in srgb, var(--violet) 38%, transparent)); content: ""; }
.news-card-summary-label { color: var(--violet); font-size: 8px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.news-card-summary { margin: 4px 0 0; color: var(--text); font-size: 13px; line-height: 1.6; }
.news-card-modern:first-child .news-card-summary { max-width: 780px; font-size: 15px; }
.news-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 25px; }
.news-read-more { display: inline-flex; align-items: center; gap: 8px; color: var(--violet); font-size: 11px; font-weight: 850; text-decoration: none; }
.news-read-more span { font-size: 17px; transition: transform .18s ease; }
.news-read-more:hover span { transform: translateX(3px); }
.news-card-engagement { display: flex; min-width: 0; align-items: center; gap: 7px; }
.news-metric {
    display: inline-flex;
    min-width: 44px;
    height: 34px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 9px;
    border: 1px solid var(--line-new);
    border-radius: 10px;
    color: var(--muted-new);
    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
}
.news-metric svg { width: 15px; height: 15px; color: var(--violet); }
.news-reaction-form { display: flex; align-items: center; gap: 7px; }
.news-reaction-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid var(--line-new);
    border-radius: 12px;
    background: var(--panel);
    color: var(--muted-new);
    font-size: 10px;
    font-weight: 750;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.news-reaction-button svg { width: 17px; height: 17px; }
.news-reaction-button b { font-size: 10px; font-variant-numeric: tabular-nums; }
.news-reaction-button:hover { border-color: color-mix(in srgb, var(--violet) 28%, var(--line-new)); color: var(--violet); transform: translateY(-1px); }
.news-reaction-button.is-active { border-color: transparent; background: var(--violet-soft); color: var(--violet); }
.news-reaction-button.is-active.is-dislike { background: color-mix(in srgb, var(--red) 10%, var(--panel)); color: var(--red); }
.news-reaction-form.is-compact { gap: 4px; }
.news-reaction-form.is-compact .news-reaction-button { min-width: 44px; min-height: 34px; padding: 0 9px; border-radius: 10px; }
.news-empty { grid-column: 1 / -1; padding: 50px 24px; text-align: center; }
.news-empty > span { display: grid; width: 52px; height: 52px; margin: 0 auto 15px; place-items: center; border-radius: 15px; background: var(--violet-soft); color: var(--violet); }
.news-empty svg { width: 24px; height: 24px; }
.news-empty h2 { margin: 0; font-family: Georgia, serif; font-size: 26px; font-weight: 500; }
.news-empty p { margin: 7px 0 0; color: var(--muted-new); font-size: 12px; }

.news-detail-page { max-width: 880px; margin: 0 auto; }
.news-back-link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 0 13px;
    border: 1px solid var(--line-new);
    border-radius: 999px;
    background: var(--panel);
    color: var(--violet);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}
.news-back-link:hover { border-color: color-mix(in srgb, var(--violet) 32%, var(--line-new)); background: var(--violet-soft); }
.news-detail { margin: 0; padding: clamp(28px, 6vw, 58px); border-radius: 24px; }
.news-detail-header h1 { margin: 10px 0 16px; font-family: Georgia, serif; font-size: clamp(40px, 7vw, 68px); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; }
.news-detail-summary { position: relative; max-width: 720px; margin-top: 22px; padding: 18px 22px 19px 24px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--violet) 17%, var(--line-new)); border-radius: 17px; background: linear-gradient(135deg, color-mix(in srgb, var(--violet) 9%, var(--panel-soft)), var(--panel-soft)); }
.news-detail-summary::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--violet), color-mix(in srgb, var(--violet) 42%, transparent)); content: ""; }
.news-detail-summary-label { color: var(--violet); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.news-detail-lead { margin: 6px 0 0; color: var(--text); font-size: clamp(16px, 2.4vw, 20px); line-height: 1.55; }
.news-detail-meta { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 22px; color: var(--muted-new); font-size: 13px; font-weight: 700; }
.news-detail-meta span,
.news-detail-meta a { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.news-detail-meta svg { width: 17px; height: 17px; color: var(--violet); }
.news-detail-rule { height: 1px; margin: 31px 0; background: var(--line-new); }
.news-detail-rule span { display: block; width: 82px; height: 2px; background: linear-gradient(90deg, var(--violet), color-mix(in srgb, var(--violet) 15%, transparent)); }
.news-detail-body { color: var(--text); font-family: Georgia, serif; font-size: clamp(17px, 2.2vw, 20px); line-height: 1.85; }
.news-detail-body p { margin: 0 0 1.25em; }
.news-detail-reactions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; padding: 20px; border: 1px solid var(--line-new); border-radius: 17px; background: var(--panel-soft); }
.news-detail-reactions strong { display: block; margin-top: 3px; font-family: Georgia, serif; font-size: 19px; font-weight: 500; }
.news-comments { margin-top: 18px; padding: clamp(23px, 4vw, 34px); border-radius: 22px; scroll-margin-top: 90px; }
.news-comment-form { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; margin-bottom: 24px; padding: 16px; border: 1px solid var(--line-new); border-radius: 16px; background: var(--panel-soft); }
.news-comment-form > div { min-width: 0; }
.news-comment-input { width: 100%; min-height: 105px; resize: vertical; padding: 13px 14px; border: 1px solid transparent; border-radius: 12px; background: var(--panel); color: var(--ink); font-size: 13px; line-height: 1.6; }
.news-comment-input:focus { border-color: var(--violet); outline: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet-soft) 75%, transparent); }
.news-comment-submit { display: inline-flex; min-height: 39px; align-items: center; gap: 7px; margin-top: 9px; padding: 0 16px; border: 0; border-radius: 11px; background: var(--violet); color: #fff; font-size: 10px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 18px rgba(104, 66, 216, .18); }
.news-comment-submit:hover { background: var(--violet-dark); }
.news-comment-submit svg { width: 16px; height: 16px; }
.news-comment-avatar-link { display: block; width: 38px; height: 38px; flex: 0 0 38px; text-decoration: none; }
.news-comment-avatar { display: grid; overflow: hidden; width: 38px; height: 38px; place-items: center; border-radius: 50%; object-fit: cover; }
.news-comment-avatar-placeholder { background: #866adc; color: #fff; font-family: Georgia, serif; font-size: 16px; }
.news-comments-signin { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding: 15px; border: 1px dashed var(--line-new); border-radius: 14px; background: var(--panel-soft); }
.news-comments-signin > span { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 11px; background: var(--panel); color: var(--violet); }
.news-comments-signin svg { width: 18px; height: 18px; }
.news-comments-signin p { margin: 0; color: var(--muted-new); font-size: 12px; }
.news-comments-signin a { color: var(--violet); font-weight: 800; }
.news-comments-list { display: grid; gap: 10px; }
.news-comment { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 17px; border: 1px solid var(--line-new); border-radius: 15px; background: color-mix(in srgb, var(--panel) 96%, var(--violet-soft)); }
.news-comment-content { min-width: 0; }
.news-comment-content header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.news-comment-content header > div { display: grid; gap: 2px; }
.news-comment-content header a { font-size: 11px; font-weight: 800; }
.news-comment-content time { color: var(--muted-new); font-size: 9px; }
.news-comment-body { margin-top: 10px; padding: 11px 13px; border-radius: 11px; background: var(--panel-soft); color: var(--text); font-size: 12px; line-height: 1.7; }
.news-comment-delete { min-height: 30px; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--red) 22%, var(--line-new)); border-radius: 9px; background: transparent; color: var(--red); font-size: 9px; font-weight: 750; cursor: pointer; }
.news-comment-delete:hover { background: color-mix(in srgb, var(--red) 8%, var(--panel)); }
.news-comment-menu-delete { color: var(--red) !important; }
.comment-more-menu form:has(.news-comment-menu-delete) { width: 100%; }
.news-comments-empty { margin: 0; padding: 22px; border: 1px dashed var(--line-new); border-radius: 14px; background: var(--panel-soft); color: var(--muted-new); font-size: 11px; text-align: center; }

@media (max-width: 700px) {
    .news-index-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 26px 21px; border-radius: 19px; }
    .news-index-hero h1 { font-size: clamp(42px, 13vw, 56px); }
    .news-index-hero p { font-size: 14px; }
    .news-index-summary { width: 100%; }
    .news-index-summary > div { min-height: 76px; grid-template-columns: 1fr auto; align-items: center; text-align: left; }
    .news-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .news-card-modern,
    .news-card-modern:first-child { grid-column: auto; min-height: 265px; padding: 21px 18px; border-radius: 17px; }
    .news-card-summary-box { padding: 12px 14px 13px 16px; border-radius: 13px; }
    .news-card-modern:first-child .news-card-summary { font-size: 13px; }
    .news-card-modern:hover { transform: none; }
    .news-card-footer { align-items: flex-start; flex-direction: column; }
    .news-card-engagement { width: 100%; flex-wrap: wrap; }
    .news-read-more { min-height: 38px; }
    .news-detail { padding: 27px 20px; border-radius: 18px; }
    .news-detail-header h1 { overflow-wrap: anywhere; font-size: clamp(39px, 12vw, 52px); }
    .news-detail-summary { padding: 16px 17px 17px 20px; border-radius: 15px; }
    .news-detail-meta { align-items: flex-start; flex-direction: column; font-size: 12px; }
    .news-detail-body { font-size: 18px; line-height: 1.75; }
    .news-detail-reactions { align-items: stretch; flex-direction: column; }
    .news-detail-reactions .news-reaction-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-detail-reactions .news-reaction-button { justify-content: center; }
    .news-comments { padding: 22px 17px; border-radius: 18px; }
    .news-comment-form { grid-template-columns: minmax(0, 1fr); padding: 14px; }
    .news-comment-form > .news-comment-avatar-link { display: none; }
    .news-comment-submit { width: 100%; justify-content: center; }
    .news-comment { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 14px; }
    .news-comment > .news-comment-avatar-link,
    .news-comment > .news-comment-avatar-link .news-comment-avatar { width: 34px; height: 34px; }
    .news-comment-content header { gap: 8px; }
    .news-comment-delete { padding: 0 8px; }
}

/* Category directory */
.page-layout:has(.category-directory) {
    width: 100%;
    max-width: 1080px;
    grid-template-columns: minmax(0, 1fr);
}

.page-layout:has(.category-directory) > .sidebar-column { display: none; }
.page-layout:has(.category-directory) > .content-column { min-width: 0; }
.category-directory { min-width: 0; }

.category-directory-hero {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 25px;
    padding: clamp(28px, 5vw, 48px);
    overflow: hidden;
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 7%, color-mix(in srgb, var(--violet) 15%, transparent), transparent 30%),
        var(--panel);
}

.category-directory-copy { min-width: 0; }
.category-directory-copy h1 {
    margin: 7px 0 0;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(46px, 7vw, 70px);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: 1.02;
}

.category-directory-copy p {
    max-width: 610px;
    margin: 15px 0 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.65;
}

.category-directory-stats {
    display: flex;
    gap: 8px;
    margin: 0;
}

.category-directory-stats > div {
    display: grid;
    min-width: 100px;
    min-height: 82px;
    align-content: center;
    gap: 4px;
    padding: 13px 15px;
    border: 1px solid color-mix(in srgb, var(--violet) 13%, var(--line-new));
    border-radius: 15px;
    background: color-mix(in srgb, var(--violet-soft) 52%, var(--panel));
}

.category-directory-stats dt {
    color: var(--muted-new);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .07em;
    line-height: 1.2;
    text-transform: uppercase;
}

.category-directory-stats dd {
    margin: 0;
    color: var(--violet);
    font-size: 24px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.category-directory-toolbar {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 28px 0 15px;
}

.category-directory-toolbar > div { min-width: 0; }
.category-directory-toolbar h2 { margin: 0; color: var(--ink); font-family: Georgia, serif; font-size: 27px; font-weight: 500; letter-spacing: -.02em; }
.category-directory-toolbar p { margin: 3px 0 0; color: var(--muted-new); font-size: 10px; }

.category-directory-search {
    position: relative;
    display: flex;
    width: min(320px, 42%);
    min-width: 220px;
    height: 43px;
    align-items: center;
    margin: 0;
}

.category-directory-search svg {
    position: absolute;
    left: 13px;
    z-index: 1;
    width: 18px;
    height: 18px;
    color: var(--violet);
    pointer-events: none;
}

.category-directory-search input[type="search"] {
    width: 100%;
    height: 43px;
    padding: 0 14px 0 40px;
    border: 1px solid var(--line-new);
    border-radius: 12px;
    background: var(--panel);
    color: var(--ink);
    font-size: 12px;
}

.category-directory-search input[type="search"]::placeholder { color: var(--muted-new); }
.category-directory-grid { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.category-directory-card {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 178px;
    align-content: space-between;
    gap: 16px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid var(--line-new);
    border-radius: 18px;
    background: var(--panel);
    color: var(--ink);
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.category-directory-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--violet);
    opacity: 0;
    content: "";
    transition: opacity .18s ease;
}

.category-directory-card:hover,
.category-directory-card:focus-visible {
    border-color: color-mix(in srgb, var(--violet) 26%, var(--line-new));
    box-shadow: 0 14px 34px rgba(34, 24, 64, .07);
    color: var(--ink);
    transform: translateY(-2px);
}

.category-directory-card:hover::before,
.category-directory-card:focus-visible::before { opacity: 1; }

.category-directory-number {
    position: absolute;
    top: 18px;
    right: 18px;
    color: color-mix(in srgb, var(--violet) 32%, var(--line-new));
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .06em;
}

.category-directory-card-copy { display: grid; min-width: 0; gap: 9px; padding-right: 40px; }
.category-directory-card-copy strong {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.category-directory-card-copy small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted-new);
    font-size: 11px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.category-directory-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 13px;
    border-top: 1px solid var(--line-new);
    color: var(--muted-new);
    font-size: 10px;
}

.category-directory-card-foot b { color: var(--violet); font-size: 11px; }
.category-directory-card-foot > span:last-child { color: var(--violet); font-size: 17px; transition: transform .18s ease; }
.category-directory-card:hover .category-directory-card-foot > span:last-child { transform: translateX(3px); }

.category-directory-empty {
    display: grid;
    justify-items: center;
    margin-top: 12px;
    padding: 36px 20px;
    text-align: center;
}

.category-directory-empty[hidden] { display: none; }
.category-directory-empty > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: var(--violet-soft); color: var(--violet); }
.category-directory-empty svg { width: 22px; height: 22px; }
.category-directory-empty strong { margin-top: 12px; font-family: Georgia, serif; font-size: 21px; }
.category-directory-empty p { margin: 4px 0 0; color: var(--muted-new); font-size: 11px; }

@media (max-width: 700px) {
    .category-directory-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 25px 20px; border-radius: 18px; }
    .category-directory-copy h1 { font-size: clamp(41px, 13vw, 54px); overflow-wrap: anywhere; }
    .category-directory-copy p { font-size: 14px; }
    .category-directory-stats { width: 100%; }
    .category-directory-stats > div { min-width: 0; min-height: 72px; flex: 1 1 0; padding: 11px 12px; }
    .category-directory-stats dt { font-size: 9px; }
    .category-directory-stats dd { font-size: 22px; }
    .category-directory-toolbar { align-items: stretch; flex-direction: column; gap: 13px; margin-top: 23px; }
    .category-directory-toolbar h2 { font-size: 25px; }
    .category-directory-search { width: 100%; min-width: 0; height: 46px; }
    .category-directory-search input[type="search"] { height: 46px; font-size: 16px; }
    .category-directory-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
    .category-directory-card { min-height: 156px; padding: 19px 17px; border-radius: 16px; }
    .category-directory-card:hover { transform: none; }
    .category-directory-number { top: 16px; right: 16px; }
    .category-directory-card-copy strong { font-size: 23px; }
    .category-directory-card-copy small { font-size: 12px; }
    .category-directory-card-foot { font-size: 11px; }
}

@media (max-width: 390px) {
    .category-directory-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.info-page { padding: 30px; }
.faq-toc,
.info-status { border-color: var(--line-new); background: var(--panel-soft); }
.info-table th,
.info-table td { border-color: var(--line-new); }
.info-table th { background: var(--panel-soft); }

/* Modern help centre */
.page-layout:has(.faq-page) {
    width: 100%;
    max-width: 1000px;
    grid-template-columns: minmax(0, 1fr);
}

.page-layout:has(.faq-page) > .sidebar-column { display: none; }
.page-layout:has(.faq-page) > .content-column { min-width: 0; }

.info-page.faq-page {
    min-width: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.faq-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(27px, 5vw, 48px);
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--violet) 13%, transparent), transparent 34%),
        var(--panel);
}

.faq-hero::after {
    position: absolute;
    top: -58px;
    right: -34px;
    width: 150px;
    height: 150px;
    border: 28px solid color-mix(in srgb, var(--violet-soft) 75%, transparent);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.faq-hero > * { position: relative; z-index: 1; }
.faq-hero h1 {
    max-width: 720px;
    margin: 7px 0 0;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(44px, 7vw, 68px);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: 1.02;
}

.faq-hero > .lead {
    max-width: 680px;
    margin: 15px 0 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.65;
}

.faq-page .faq-toc {
    margin: 28px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.faq-page .faq-toc ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    columns: auto;
}

.faq-page .faq-toc li { min-width: 0; margin: 0; }
.faq-page .faq-toc a {
    display: flex;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid var(--line-new);
    border-radius: 11px;
    background: color-mix(in srgb, var(--panel-soft) 82%, transparent);
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.faq-page .faq-toc a:hover,
.faq-page .faq-toc a:focus-visible {
    border-color: color-mix(in srgb, var(--violet) 24%, var(--line-new));
    background: var(--violet-soft);
    color: var(--violet);
    transform: translateY(-1px);
}

.faq-sections { display: grid; min-width: 0; gap: 13px; margin-top: 14px; }
.faq-page .faq-sections > section {
    min-width: 0;
    margin: 0;
    padding: clamp(22px, 4vw, 34px);
    scroll-margin-top: calc(var(--header-height) + 18px);
    border: 1px solid var(--line-new);
    border-radius: 20px;
    background: var(--panel);
    box-shadow: 0 9px 30px rgba(34, 24, 64, .035);
}

.faq-page .faq-sections > section > h2 {
    position: relative;
    margin: 0 0 22px;
    padding: 0 0 15px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.faq-page .faq-sections > section > h2::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 54px;
    height: 3px;
    border-radius: 999px;
    background: var(--violet);
    content: "";
}

.faq-page .faq-sections h3 {
    margin: 27px 0 11px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.faq-page .faq-sections p,
.faq-page .faq-sections li,
.faq-page .faq-list dd {
    color: var(--text);
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.faq-page .faq-sections a { color: var(--violet); text-underline-offset: .15em; }
.faq-page .faq-list { display: grid; min-width: 0; margin: 0; }
.faq-page .faq-list dt {
    margin: 10px 0 0;
    padding: 14px 16px 5px;
    border: 1px solid var(--line-new);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: var(--panel-soft);
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.faq-page .faq-list dt:first-child { margin-top: 0; }
.faq-page .faq-list dd {
    margin: 0;
    padding: 3px 16px 15px;
    border: 1px solid var(--line-new);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: var(--panel-soft);
}

.faq-page .faq-sections > section > ul,
.faq-page .faq-sections > section > ol { margin-block: 10px 0; padding-left: 22px; }
.faq-page .faq-sections > section > ul li,
.faq-page .faq-sections > section > ol li { margin: 7px 0; padding-left: 3px; }

.faq-page .info-status {
    margin: 15px 0 0;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--violet) 14%, var(--line-new));
    border-radius: 14px;
    background: color-mix(in srgb, var(--violet-soft) 55%, var(--panel));
}

.faq-page .info-status h3 { margin-top: 0; }
.faq-page .info-status .button { min-height: 40px; align-items: center; padding-inline: 16px; font-size: 11px; text-decoration: none; }

.faq-table-scroll {
    width: 100%;
    max-width: 100%;
    margin: 15px 0 0;
    overflow-x: auto;
    border: 1px solid var(--line-new);
    border-radius: 13px;
    background: var(--panel);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.faq-table-scroll:focus-visible { outline: 3px solid var(--violet-soft); outline-offset: 2px; }
.faq-page .faq-table-scroll .info-table {
    width: 100%;
    min-width: 620px;
    margin: 0;
    border: 0;
}

.faq-page .faq-table-scroll .info-table th,
.faq-page .faq-table-scroll .info-table td {
    padding: 12px 14px;
    border-width: 0 1px 1px 0;
    color: var(--text);
    font-size: 12px;
    line-height: 1.45;
    vertical-align: top;
}

.faq-page .faq-table-scroll .info-table tr:last-child td { border-bottom: 0; }
.faq-page .faq-table-scroll .info-table th:last-child,
.faq-page .faq-table-scroll .info-table td:last-child { border-right: 0; }

.social-login { gap: 8px; }
.social-login a { display: inline-flex; min-height: 38px; align-items: center; padding: 0 14px; border: 1px solid var(--line-new); border-radius: 10px; background: var(--panel); color: var(--ink); font-size: 10px; text-decoration: none; }

.page-layout:has(.social-login) .content-column > h1 {
    margin-top: 24px;
    font-size: clamp(42px, 6vw, 64px);
}

.page-layout:has(.social-login) .content-column > .card,
.page-layout:has(.social-login) .content-column > .form { max-width: 620px; }

.ad-banner { border-radius: 15px; background: var(--panel-soft); }
.site-footer { display: flex; gap: 25px; margin: 0; padding: 24px clamp(26px, 4vw, 58px); border-top: 1px solid var(--line-new); background: var(--panel); color: var(--muted-new); font-size: 9px; text-align: left; }
.site-footer p { margin-right: auto; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: var(--muted-new); text-decoration: none; }

.mobile-nav { display: none; }

@media (max-width: 1050px) {
    :root { --sidebar-width: 210px; }
    .home-hero { grid-template-columns: 1fr; }
    .home-hero-quote { display: none; }
    .page-layout { grid-template-columns: minmax(0, 1fr) 235px; }
    .author-card { flex-wrap: wrap; }
}

@media (max-width: 780px) {
    :root { --header-height: 62px; }

    .app-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    .app-sidebar.is-open { transform: translateX(0); box-shadow: var(--shadow-new); }
    .site-main { margin-left: 0; }
    .email-verification-banner { margin-left: 0; }
    .site-header { gap: 8px; padding: 0 16px; }
    .sidebar-toggle { display: grid; }
    .search-form { width: auto; min-width: 0; flex: 1; margin: 0; }
    .theme-toggle,
    .notification-link,
    .header-avatar { display: none; }
    .publish-button { min-height: 36px; padding: 0 13px; }
    .site-header .header-actions-guest {
        display: grid;
        width: 208px;
        min-width: 208px;
        min-height: 40px;
        flex: 0 0 208px;
        grid-template-columns: 40px 48px 108px;
        gap: 6px;
    }
    .header-actions-guest > * { margin: 0; }
    .header-actions-guest .header-login,
    .header-actions-guest .publish-button {
        display: inline-flex;
        width: 100%;
        min-width: 0;
        height: 40px;
        min-height: 40px;
        align-items: center;
        justify-content: center;
        padding: 0;
        line-height: 1;
        white-space: nowrap;
    }
    .header-actions-guest .header-login { border: 1px solid transparent; font-size: 11px; }
    .header-actions-guest .publish-button { font-size: 11px; }

    .container { padding: 28px 17px 92px; }
    .page-layout { display: block; }
    .sidebar-column { position: static; margin-top: 20px; }
    .home-hero { min-height: 0; padding: 30px 25px; }
    .home-hero h1 { font-size: 38px; }
    .content-column > h1,
    .page-heading h1,
    .info-page > h1 { font-size: 39px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .page-heading .button { width: auto; }
    .poem { padding: 27px 20px; }
    .poem h1 { font-size: 42px; }
    .poem-body { font-size: 19px; }
    .related-poems { grid-template-columns: 1fr; }
    .category-cloud { grid-template-columns: 1fr; }
    .authors-grid { grid-template-columns: 1fr; }
    .form { padding: 22px 18px; }
    .site-footer { display: none; }

    .mobile-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 25;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        min-height: 67px;
        padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line-new);
        background: color-mix(in srgb, var(--panel) 94%, transparent);
        backdrop-filter: blur(18px);
    }

    .mobile-nav a { display: flex; min-width: 0; align-items: center; justify-content: center; flex-direction: column; gap: 2px; color: var(--muted-new); font-size: 8px; font-weight: 600; text-decoration: none; }
    .mobile-nav a.is-active { color: var(--violet); }
    .mobile-nav a.is-active > .mobile-nav-icon { background: var(--violet-soft); color: var(--violet); }
    .mobile-nav .mobile-create > .mobile-nav-icon { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(145deg, #7855e5, var(--violet)); color: #fff; box-shadow: 0 8px 21px rgba(104, 66, 216, .3); }
    .mobile-nav .mobile-create > .mobile-nav-icon svg { width: 22px; height: 22px; }
}

@media (max-width: 460px) {
    .search-form { display: none; }
    .site-header { justify-content: space-between; }
    .header-actions { margin-left: auto; }
    .poem-card { padding: 22px 18px; }
    .poem-card-foot { align-items: flex-start; }
    .profile-stats { grid-template-columns: repeat(2, 1fr); }
    .comments,
    .reviews { padding: 21px 17px; }
}

@media (max-width: 780px) {
    .faq-hero { padding: 25px 20px; border-radius: 18px; }
    .faq-hero::after { top: -72px; right: -72px; }
    .faq-hero h1 { font-size: clamp(38px, 12vw, 50px); overflow-wrap: anywhere; }
    .faq-hero > .lead { font-size: 14px; line-height: 1.6; }
    .faq-page .faq-toc { margin-top: 22px; }
    .faq-page .faq-toc ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .faq-page .faq-toc a { min-height: 44px; padding: 9px 10px; font-size: 11px; }
    .faq-sections { gap: 10px; margin-top: 10px; }
    .faq-page .faq-sections > section { padding: 21px 17px; border-radius: 17px; }
    .faq-page .faq-sections > section > h2 { margin-bottom: 18px; font-size: 27px; }
    .faq-page .faq-sections h3 { font-size: 17px; }
    .faq-page .faq-sections p,
    .faq-page .faq-sections li,
    .faq-page .faq-list dd { font-size: 14px; }
    .faq-page .faq-list dt { padding: 13px 14px 5px; font-size: 14px; }
    .faq-page .faq-list dd { padding: 3px 14px 14px; }
    .faq-page .info-status { padding: 15px; }
    .faq-page .faq-table-scroll .info-table th,
    .faq-page .faq-table-scroll .info-table td { font-size: 13px; }
}

@media (max-width: 390px) {
    .site-header .header-actions-guest {
        width: 198px;
        min-width: 198px;
        flex-basis: 198px;
        grid-template-columns: 40px 46px 100px;
        gap: 6px;
    }
    .faq-page .faq-toc ul { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

/* Detail-page controls and discussions */
select {
    min-height: 44px;
    padding: 0 42px 0 14px;
    border-color: var(--line-new);
    border-radius: 12px;
    background-color: var(--panel);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236842d8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M1.5 1.8 6 6.2 10.5 1.8'/%3E%3C/svg%3E");
    background-position: right 15px center;
    background-size: 11px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 650;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

select:hover { border-color: color-mix(in srgb, var(--violet) 45%, var(--line-new)); }
select:focus,
select:focus-visible { border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
select:has(option[value=""]:checked) { color: var(--muted-new); }
select option { background: var(--panel); color: var(--ink); }

.poem-heading { align-items: flex-start; gap: 18px; }
.poem-heading .poem-edit {
    min-height: 38px;
    margin-top: 7px;
    padding: 0 15px 0 11px;
    border: 1px solid var(--line-new);
    border-radius: 999px;
    background: var(--panel);
    color: var(--violet);
    box-shadow: 0 5px 16px rgba(50, 35, 92, .06);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
}

.poem-heading .poem-edit:hover,
.poem-heading .poem-edit:focus-visible {
    border-color: transparent;
    background: var(--violet-soft);
    color: var(--violet-dark);
    transform: translateY(-1px);
}

.poem-heading .poem-edit:focus-visible { box-shadow: 0 0 0 4px var(--violet-soft); }
.poem-edit-icon { width: 17px; height: 17px; }
.poem-edit-label { font-size: 11px; font-weight: 800; letter-spacing: 0; }

.poem .poem-tags {
    gap: 7px;
    margin: 38px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--line-new);
}

.poem-tags-label {
    margin-right: 3px;
    color: var(--muted-new);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.poem .poem-tag {
    min-height: 31px;
    padding: 0 11px 0 8px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: var(--violet-soft);
    color: var(--violet-dark);
    font-size: 10px;
    font-weight: 750;
}

.poem .poem-tag-mark {
    display: grid;
    width: 19px;
    height: 19px;
    margin-right: 4px;
    place-items: center;
    border-radius: 6px;
    background: color-mix(in srgb, var(--violet) 13%, transparent);
    color: var(--violet);
}

.poem .poem-tag:hover,
.poem .poem-tag:focus-visible {
    border-color: color-mix(in srgb, var(--violet) 24%, transparent);
    background: color-mix(in srgb, var(--violet-soft) 70%, var(--panel));
    color: var(--violet);
    transform: translateY(-1px);
}

.comments,
.reviews {
    overflow: visible;
    padding: clamp(23px, 3vw, 34px);
    border-radius: 20px;
}

.comments-header,
.reviews-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.discussion-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--violet);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.comments-header h2,
.reviews-header h2 {
    margin: 0;
    color: var(--ink);
    font-family: Georgia, serif;
    font-size: clamp(25px, 3vw, 31px);
    font-weight: 500;
    letter-spacing: -.025em;
}

.discussion-count {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--violet-soft);
    color: var(--violet);
    font-size: 11px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.comment-composer {
    gap: 12px;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid var(--line-new);
    border-radius: 16px;
    background: var(--panel-soft);
}

.comment-composer-input,
.comment-reply-form textarea {
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--panel);
    color: var(--ink);
    font-size: 12px;
    line-height: 1.6;
}

button.comment-submit,
button.review-submit {
    min-height: 38px;
    padding: 0 17px;
    border: 0;
    background: var(--violet);
    color: #fff;
    box-shadow: 0 8px 18px rgba(104, 66, 216, .18);
    font-size: 10px;
    font-weight: 800;
}

button.comment-submit:hover,
button.comment-submit:focus-visible,
button.review-submit:hover,
button.review-submit:focus-visible { background: var(--violet-dark); color: #fff; }

.comments-list { gap: 10px; }
.comments-empty,
.reviews-empty {
    padding: 20px;
    border: 1px dashed var(--line-new);
    border-radius: 14px;
    background: var(--panel-soft);
    color: var(--muted-new);
    font-size: 11px;
    text-align: center;
}

.comment {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 13px;
    padding: 17px;
    border: 1px solid var(--line-new);
    border-radius: 15px;
    background: color-mix(in srgb, var(--panel) 96%, var(--violet-soft));
    box-shadow: 0 8px 24px rgba(34, 24, 64, .035);
}

.comment + .comment { border-top: 1px solid var(--line-new); }
.comment-header {
    grid-template-columns: 34px minmax(0, 1fr) 32px;
    gap: 8px 10px;
    margin-bottom: 10px;
}
.comment-header:not(:has(.comment-report-action)) { grid-template-columns: 34px minmax(0, 1fr); }
.comment-avatar { width: 34px; height: 34px; }
.comment-meta { gap: 2px 8px; }
.comment-author { color: var(--ink); font-size: 11px; font-weight: 800; }
.comment-meta .muted { color: var(--muted-new); font-size: 9px; }
.comment-body {
    padding: 11px 13px;
    border-radius: 11px;
    background: var(--panel-soft);
    color: var(--text);
    font-size: 12px;
    line-height: 1.7;
}
.comment-report-action {
    display: grid;
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    place-items: center;
}
.comment-report-action .report-control {
    position: static;
    display: flex;
    grid-column: auto;
    grid-row: auto;
}
.comment-report-action button.report-trigger.is-icon,
.comment-report-action .report-control.is-pending {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 10px;
}
.comment-report-action button.report-trigger.is-icon {
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--violet) 10%, var(--line-new));
    background: color-mix(in srgb, var(--panel-soft) 72%, var(--panel));
    color: var(--muted-new);
    box-shadow: none;
    transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.comment-report-action button.report-trigger.is-icon .report-trigger-icon {
    width: 16px;
    height: 16px;
}
.comment-report-action button.report-trigger.is-icon:hover,
.comment-report-action button.report-trigger.is-icon:focus-visible {
    border-color: color-mix(in srgb, var(--red) 34%, var(--line-new));
    background: color-mix(in srgb, var(--red) 7%, var(--panel));
    color: var(--red);
    transform: translateY(-1px);
}
.comment-report-action button.report-trigger.is-icon:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--violet) 18%, transparent);
    outline-offset: 2px;
}
.comment-report-action .report-control.is-pending {
    border: 1px solid color-mix(in srgb, var(--violet) 18%, var(--line-new));
    background: color-mix(in srgb, var(--violet) 7%, var(--panel));
    color: var(--violet);
}
.comment-edit-trigger.is-icon {
    display: grid;
    width: 30px;
    min-width: 30px;
    height: 30px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line-new);
    border-radius: 9px;
    background: var(--panel);
    color: var(--violet);
    cursor: pointer;
}
.comment-edit-trigger.is-icon:hover,
.comment-edit-trigger.is-icon:focus-visible { border-color: color-mix(in srgb, var(--violet) 28%, var(--line-new)); background: var(--violet-soft); }
.comment-edit-trigger.is-icon svg { width: 15px; height: 15px; }
.comment-edited-inline {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    width: 100%;
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px solid color-mix(in srgb, var(--line-new) 72%, transparent);
    color: var(--muted-new);
    font-size: 8px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}
.comment-edited-inline[hidden] { display: none; }
.comment-edited-inline > svg { width: 12px; height: 12px; flex: 0 0 12px; color: var(--violet); }
.comment-edited-inline time { display: inline-flex; gap: 3px; white-space: nowrap; }
.comment-more-mobile { display: none; }

.comment-vote,
.comment-vote-form { gap: 2px; }
.comment-vote { align-items: center; }
.comment-vote-controls,
.comment-vote-controls > .comment-vote-form {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 2px;
}
.comment-score { color: var(--muted-new); font-size: 10px; }
button.comment-vote-button,
.comment-vote-icon-wrap { width: 24px; height: 24px; color: var(--muted-new); }
button.comment-vote-button:hover,
button.comment-vote-button:focus-visible { background: var(--violet-soft); color: var(--violet); }
button.comment-vote-button.is-active { color: var(--violet); }

.comment-reply-box summary {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    border-radius: 8px;
    color: var(--muted-new);
    font-size: 9px;
    font-weight: 800;
    transition: background .15s ease, color .15s ease;
}

.comment-reply-box summary:hover,
.comment-reply-box[open] summary { background: var(--violet-soft); color: var(--violet); }
.comment-reply-form { max-width: none; padding: 13px; border-radius: 12px; background: var(--panel-soft); }
.comment-reply-actions,
.comment-composer-actions,
.comment-edit-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.comment-emoji-picker { position: relative; z-index: 12; }
.comment-emoji-picker summary {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid var(--line-new);
    border-radius: 10px;
    background: var(--panel);
    color: var(--muted-new);
    font-size: 10px;
    font-weight: 750;
    list-style: none;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.comment-emoji-picker summary::-webkit-details-marker { display: none; }
.comment-emoji-trigger-icon { display: block; width: 18px; height: 18px; flex: 0 0 18px; color: var(--muted-new); }
.comment-emoji-picker summary:hover .comment-emoji-trigger-icon,
.comment-emoji-picker[open] summary .comment-emoji-trigger-icon { color: var(--violet); }
.comment-emoji-picker summary:hover,
.comment-emoji-picker[open] summary { border-color: color-mix(in srgb, var(--violet) 24%, var(--line-new)); background: var(--violet-soft); color: var(--violet); }
.comment-emoji-panel {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    width: min(398px, calc(100vw - 48px));
    max-height: min(390px, calc(100vh - 32px));
    padding: 11px;
    overflow-y: auto;
    border: 1px solid var(--line-new);
    border-radius: 13px;
    background: var(--panel);
    box-shadow: 0 16px 38px rgba(30, 20, 58, .17);
    scrollbar-color: color-mix(in srgb, var(--violet) 35%, transparent) transparent;
    scrollbar-width: thin;
}
.comment-emoji-panel-header { position: sticky; top: -11px; z-index: 2; display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 12px; margin: -11px -3px 9px; padding: 8px 3px 7px; border-bottom: 1px solid var(--line-new); background: var(--panel); }
.comment-emoji-panel-header > span { color: var(--muted-new); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.comment-emoji-panel .comment-emoji-close { display: grid; width: 30px; min-width: 30px; height: 30px; place-items: center; border: 1px solid var(--line-new); border-radius: 9px; background: var(--panel-soft); color: var(--muted-new); font-family: Arial, sans-serif; font-size: 20px; font-weight: 400; line-height: 1; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease; }
.comment-emoji-panel .comment-emoji-close:hover,
.comment-emoji-panel .comment-emoji-close:focus-visible { border-color: color-mix(in srgb, var(--violet) 28%, var(--line-new)); background: var(--violet-soft); color: var(--violet); transform: none; }
.comment-emoji-group + .comment-emoji-group { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line-new); }
.comment-emoji-group > span { display: block; margin: 0 3px 6px; color: var(--muted-new); font-size: 8px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.comment-emoji-group > div { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.comment-emoji-group.is-combo > div { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.comment-emoji-group.is-combo button { width: auto; min-width: 0; font-size: 16px; }
.comment-emoji-panel button {
    display: grid;
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
}
.comment-emoji-panel button:hover,
.comment-emoji-panel button:focus-visible { background: var(--violet-soft); transform: scale(1.06); }
.comment-edit-dialog {
    width: min(590px, calc(100vw - 28px));
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 20px;
    background: transparent;
    color: var(--ink);
}
.comment-edit-dialog::backdrop { background: rgba(22, 16, 37, .5); backdrop-filter: blur(4px); }
.comment-edit-dialog-card { padding: 25px; border: 1px solid var(--line-new); border-radius: 20px; background: var(--panel); box-shadow: var(--shadow-new); }
.comment-edit-dialog-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.comment-edit-dialog-card h2 { margin: 2px 0 0; font-family: Georgia, serif; font-size: 29px; font-weight: 500; letter-spacing: -.025em; }
.comment-edit-close { display: grid; width: 36px; min-width: 36px; height: 36px; padding: 0; place-items: center; border: 1px solid var(--line-new); border-radius: 11px; background: var(--panel-soft); color: var(--muted-new); font-size: 21px; cursor: pointer; }
.comment-edit-dialog textarea { width: 100%; min-height: 170px; resize: vertical; padding: 14px 15px; border: 1px solid var(--line-new); border-radius: 13px; background: var(--panel-soft); color: var(--ink); font-size: 13px; line-height: 1.65; }
.comment-edit-dialog textarea:focus { border-color: var(--violet); outline: 0; box-shadow: 0 0 0 4px var(--violet-soft); }
.comment-edit-tools { margin-top: 10px; }
.comment-edit-tools > span { color: var(--muted-new); font-size: 9px; font-variant-numeric: tabular-nums; }
.comment-edit-error { margin: 10px 0 0; color: var(--red); font-size: 10px; }
.comment-edit-dialog form > footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.comment-edit-cancel,
.comment-edit-submit { min-height: 40px; padding: 0 16px; border-radius: 11px; font-size: 10px; font-weight: 800; cursor: pointer; }
.comment-edit-cancel { border: 1px solid var(--line-new); background: var(--panel); color: var(--muted-new); }
.comment-edit-submit { border: 0; background: var(--violet); color: #fff; box-shadow: 0 8px 18px rgba(104, 66, 216, .18); }
.comment-edit-submit:hover { background: var(--violet-dark); }
.comment-replies.has-replies { border-left-color: var(--violet-soft); }
.comment.reply { padding: 13px; border-radius: 12px; background: var(--panel-soft); }
.comment-mobile-footer { min-width: 0; }
.comment-vote-mobile { display: none; }

.review-form {
    position: relative;
    display: grid;
    overflow: hidden;
    gap: 22px;
    margin-bottom: 22px;
    padding: 24px;
    border: 1px solid color-mix(in srgb, var(--violet) 16%, var(--line-new));
    border-radius: 20px;
    background: color-mix(in srgb, var(--panel) 92%, var(--violet-soft));
    box-shadow: 0 16px 40px rgba(40, 27, 78, .06);
}

.review-form::before {
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--violet), color-mix(in srgb, var(--violet) 35%, transparent) 55%, transparent);
    content: "";
}
.review-form-heading { display: flex; align-items: center; gap: 12px; }
.review-form-heading-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 12px; background: var(--violet-soft); color: var(--violet); }
.review-form-heading-icon svg { width: 21px; height: 21px; }
.review-form-heading-copy { display: grid; min-width: 0; gap: 2px; }
.review-form-heading-copy strong { color: var(--ink); font-family: Georgia, serif; font-size: 20px; font-weight: 500; line-height: 1.25; }
.review-form-heading-copy > span { color: var(--muted-new); font-size: 11px; }
.review-form-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
.review-rating-field,
.review-body-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.review-rating-field { display: grid; align-content: start; gap: 9px; padding: 16px; border: 1px solid var(--line-new); border-radius: 15px; background: var(--panel); }
.review-form legend,
.review-body-label-row label { padding: 0; color: var(--ink); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.review-field-hint { margin: -5px 0 2px; color: var(--muted-new); font-size: 9px; }
.review-rating-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.review-rating-option { position: relative; min-width: 0; }
.review-rating-option input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.review-rating-option label { display: grid; min-height: 50px; place-items: center; gap: 1px; padding: 6px 2px; border: 1px solid var(--line-new); border-radius: 10px; background: var(--panel-soft); color: var(--muted-new); cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease; }
.review-rating-option label svg { width: 16px; height: 16px; color: color-mix(in srgb, var(--muted-new) 55%, transparent); }
.review-rating-option label strong { font-size: 10px; font-variant-numeric: tabular-nums; }
.review-rating-option label:hover { border-color: color-mix(in srgb, var(--violet) 35%, var(--line-new)); color: var(--violet); transform: translateY(-1px); }
.review-rating-option input:focus-visible + label { outline: 0; box-shadow: 0 0 0 3px var(--violet-soft); }
.review-rating-option input:checked + label { border-color: var(--violet); background: var(--violet); color: #fff; box-shadow: 0 7px 16px rgba(104, 66, 216, .2); }
.review-rating-option input:checked + label svg { color: #fff; }
.review-rating-caption { color: var(--violet); font-size: 9px; font-weight: 750; }
.review-body-field { display: grid; align-content: start; gap: 8px; }
.review-body-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-body-label-row > span { color: var(--muted-new); font-size: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.review-body-label-row b { color: var(--violet); font-weight: 800; }
.review-textarea-shell { position: relative; }
.review-form textarea { width: 100%; min-height: 176px; padding: 16px 48px 16px 16px; border: 1px solid var(--line-new); border-radius: 15px; background: var(--panel); color: var(--text); font-size: 12px; line-height: 1.7; resize: vertical; transition: border-color .18s ease, box-shadow .18s ease; }
.review-form textarea::placeholder { color: color-mix(in srgb, var(--muted-new) 70%, transparent); }
.review-form textarea:focus { border-color: color-mix(in srgb, var(--violet) 60%, var(--line-new)); outline: 0; box-shadow: 0 0 0 4px var(--violet-soft); }
.review-writing-mark { position: absolute; top: 13px; right: 13px; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: var(--violet-soft); color: var(--violet); pointer-events: none; }
.review-writing-mark svg { width: 15px; height: 15px; }
.review-field-help { margin: 0; color: var(--muted-new); font-size: 9px; line-height: 1.5; }
.review-form .errorlist { margin: 0; padding: 8px 10px; border-radius: 9px; background: color-mix(in srgb, var(--red) 8%, transparent); color: var(--red); font-size: 9px; list-style: none; }
.review-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 17px; border-top: 1px solid color-mix(in srgb, var(--violet) 12%, var(--line-new)); }
.review-form-note { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-new); font-size: 9px; }
.review-form-note svg { width: 14px; height: 14px; color: var(--violet); }
button.review-submit { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 0; border-radius: 12px; background: var(--violet); color: #fff; font-size: 10px; font-weight: 850; box-shadow: 0 10px 22px rgba(104, 66, 216, .22); cursor: pointer; }
button.review-submit svg { width: 17px; height: 17px; }
button.review-submit:hover { background: var(--violet-dark); transform: translateY(-1px); }
button.review-submit:disabled { cursor: wait; opacity: .65; transform: none; }

.review {
    position: relative;
    overflow: hidden;
    margin-top: 11px;
    padding: 20px 21px;
    border: 1px solid color-mix(in srgb, var(--violet) 12%, var(--line-new));
    border-radius: 17px;
    background: color-mix(in srgb, var(--panel) 97%, var(--violet-soft));
    box-shadow: 0 10px 28px rgba(34, 24, 64, .045);
}
.review::before {
    position: absolute;
    top: 17px;
    bottom: 17px;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--violet);
    content: "";
}

.review-header { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.review-avatar,
.review-avatar img,
.review-avatar span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; }
.review-avatar img { object-fit: cover; }
.review-avatar span { background: var(--violet); color: #fff; font-family: Georgia, serif; font-size: 15px; font-weight: 700; box-shadow: 0 7px 17px rgba(104, 66, 216, .16); }
.review-identity { display: grid; min-width: 0; gap: 3px; }
.review-identity a { overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.review-identity time { color: var(--muted-new); font-size: 9px; }
.review-rating {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 4px;
    padding: 5px 7px 5px 5px;
    border: 1px solid color-mix(in srgb, var(--violet) 15%, var(--line-new));
    border-radius: 10px;
    background: color-mix(in srgb, var(--violet-soft) 68%, var(--panel));
    color: var(--violet);
    font-size: 9px;
    font-weight: 850;
    white-space: nowrap;
}
.review-rating-label {
    display: grid;
    min-height: 24px;
    place-items: center;
    padding: 0 7px;
    border-radius: 7px;
    background: var(--panel);
    color: var(--violet);
    font-size: 7px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.review-rating strong { color: var(--violet-dark); font-size: 11px; font-weight: 850; font-variant-numeric: tabular-nums; }
.review-rating small { color: var(--muted-new); font-size: 7px; font-weight: 750; }
.review-body {
    margin-top: 15px;
    padding: 16px 17px;
    border-top: 0;
    border-radius: 12px;
    background: var(--panel-soft);
    color: var(--text);
    font-size: 12px;
    line-height: 1.75;
}
.review-body p { margin: 0 0 8px; }
.review-body p:last-child { margin-bottom: 0; }
button.review-delete { display: inline-flex; min-height: 31px; align-items: center; justify-content: center; gap: 6px; padding: 0 11px; border: 1px solid color-mix(in srgb, var(--red) 20%, transparent); border-radius: 9px; background: transparent; color: var(--red); font-size: 9px; box-shadow: none; }
button.review-delete svg { width: 14px; height: 14px; }
button.review-delete:hover { background: color-mix(in srgb, var(--red) 9%, transparent); color: var(--red); }
.review-delete-dialog { width: min(520px, calc(100vw - 28px)); max-width: none; padding: 0; border: 0; background: transparent; color: var(--ink); }
.review-delete-dialog::backdrop { background: rgba(22, 16, 37, .55); backdrop-filter: blur(5px); }
.review-delete-dialog-card { overflow: hidden; border: 1px solid var(--line-new); border-radius: 20px; background: var(--panel); box-shadow: 0 28px 80px rgba(22, 16, 37, .25); }
.review-delete-dialog-card > header { display: grid; grid-template-columns: 46px minmax(0, 1fr) 38px; align-items: center; gap: 13px; padding: 22px 22px 18px; border-bottom: 1px solid color-mix(in srgb, var(--red) 11%, var(--line-new)); background: color-mix(in srgb, var(--red) 4%, var(--panel)); }
.review-delete-dialog-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 13px; background: color-mix(in srgb, var(--red) 10%, var(--panel)); color: var(--red); }
.review-delete-dialog-icon svg { width: 22px; height: 22px; }
.review-delete-dialog-card h2 { margin: 3px 0 0; font-family: Georgia, serif; font-size: 27px; font-weight: 500; letter-spacing: -.025em; line-height: 1.1; }
.review-delete-dialog-close { display: grid; width: 38px; min-width: 38px; height: 38px; padding: 0; place-items: center; border: 1px solid var(--line-new); border-radius: 11px; background: var(--panel); color: var(--muted-new); cursor: pointer; }
.review-delete-dialog-close svg { width: 18px; height: 18px; }
.review-delete-dialog-card > p { margin: 0; padding: 20px 22px 4px; color: var(--text); font-size: 11px; line-height: 1.65; }
.review-delete-dialog-card > .review-delete-dialog-error { margin: 14px 22px 0; padding: 9px 11px; border-radius: 9px; background: color-mix(in srgb, var(--red) 9%, transparent); color: var(--red); font-size: 9px; }
.review-delete-dialog-card > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 20px 22px 22px; }
.review-delete-cancel,
.review-delete-confirm { display: inline-flex; min-height: 41px; align-items: center; justify-content: center; gap: 7px; padding: 0 15px; border-radius: 11px; font-size: 10px; font-weight: 850; cursor: pointer; }
.review-delete-cancel { border: 1px solid var(--line-new); background: var(--panel); color: var(--muted-new); }
.review-delete-confirm { border: 0; background: var(--red); color: #fff; box-shadow: 0 9px 20px color-mix(in srgb, var(--red) 23%, transparent); }
.review-delete-confirm svg { width: 16px; height: 16px; }
.review-delete-confirm:hover { filter: brightness(.93); }
.review-delete-confirm:disabled { cursor: wait; opacity: .6; }
.review-edit-link { display: inline-flex; min-height: 31px; align-items: center; justify-content: center; gap: 6px; padding: 0 11px; border: 1px solid color-mix(in srgb, var(--violet) 22%, var(--line-new)); border-radius: 9px; background: var(--panel); color: var(--violet); font-size: 9px; font-weight: 800; text-decoration: none; }
.review-edit-link svg { width: 14px; height: 14px; }
.review-edit-link:hover { border-color: transparent; background: var(--violet-soft); color: var(--violet-dark); }
.review-actions {
    justify-content: flex-end;
    gap: 7px;
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid color-mix(in srgb, var(--violet) 11%, var(--line-new));
}
.review-actions .report-control { margin: 0; }
.review-actions button.report-trigger {
    min-height: 31px;
    padding: 0 11px;
    border-color: color-mix(in srgb, var(--red) 18%, var(--line-new));
    border-radius: 9px;
    background: transparent;
    font-size: 9px;
}

@media (max-width: 600px) {
    .poem-heading .poem-edit { min-width: 38px; padding: 0; justify-content: center; }
    .poem-heading .poem-edit-label { display: none; }
    .poem-tags-label { flex-basis: 100%; }
    .review-form { gap: 18px; padding: 18px 14px; border-radius: 17px; }
    .review-form-heading { align-items: flex-start; }
    .review-form-heading-icon { width: 38px; height: 38px; flex-basis: 38px; }
    .review-form-heading-copy strong { font-size: 18px; }
    .review-form-heading-copy > span { font-size: 10px; line-height: 1.45; }
    .review-form-grid { grid-template-columns: 1fr; gap: 16px; }
    .review-rating-field { padding: 13px; }
    .review-rating-option label { min-height: 46px; }
    .review-form textarea { min-height: 158px; padding: 14px 43px 14px 14px; font-size: 11px; }
    .review-form-footer { align-items: stretch; flex-direction: column; }
    .review-form-note { justify-content: center; }
    button.review-submit { width: 100%; }
    .review-delete-dialog-card > header { grid-template-columns: 40px minmax(0, 1fr) 34px; gap: 10px; padding: 17px 14px 15px; }
    .review-delete-dialog-icon { width: 40px; height: 40px; }
    .review-delete-dialog-card h2 { font-size: 23px; }
    .review-delete-dialog-close { width: 34px; min-width: 34px; height: 34px; }
    .review-delete-dialog-card > p { padding: 17px 15px 2px; font-size: 10px; }
    .review-delete-dialog-card > .review-delete-dialog-error { margin: 12px 15px 0; padding: 8px 9px; }
    .review-delete-dialog-card > footer { align-items: stretch; flex-direction: column-reverse; padding: 17px 15px 18px; }
    .review-delete-cancel,
    .review-delete-confirm { width: 100%; }
    .review-header { grid-template-columns: 38px minmax(0, 1fr); }
    .review-rating { grid-column: 1 / -1; justify-self: start; }
    .comment {
        display: block;
        padding: 13px 10px;
        border-radius: 13px;
    }
    .comment > .comment-vote { display: none; }
    .comment-report-action { display: none; }
    .comment-header {
        position: relative;
        grid-template-columns: 32px minmax(0, 1fr) 36px;
        gap: 7px 9px;
        overflow: visible;
    }
    .comment-header:not(:has(.comment-report-action)) { grid-template-columns: 32px minmax(0, 1fr) 36px; }
    .comment-avatar { width: 32px; height: 32px; }
    .comment-meta { align-items: flex-start; flex-direction: column; gap: 2px; }
    .comment-more-mobile {
        position: relative;
        z-index: 8;
        display: block;
        grid-column: 3;
        grid-row: 1;
        align-self: start;
        justify-self: end;
    }
    .comment:has(.comment-more-trigger[aria-expanded="true"]) {
        position: relative;
        z-index: 40;
    }
    .comment-more-mobile:has(> .comment-more-trigger[aria-expanded="true"]) { z-index: 70; }
    button.comment-more-trigger {
        display: grid;
        width: 34px;
        min-width: 34px;
        height: 34px;
        min-height: 34px;
        margin: 0;
        padding: 0;
        place-items: center;
        border: 1px solid transparent;
        border-radius: 10px;
        background: transparent;
        color: var(--muted-new);
        box-shadow: none;
        font-size: 21px;
        line-height: 1;
    }
    button.comment-more-trigger:hover,
    button.comment-more-trigger:focus-visible,
    button.comment-more-trigger[aria-expanded="true"] {
        border-color: var(--line-new);
        background: var(--panel-soft);
        color: var(--violet);
    }
    .comment-more-menu {
        position: absolute;
        top: 39px;
        right: 0;
        z-index: 80;
        display: grid;
        width: min(230px, calc(100vw - 52px));
        overflow: hidden;
        padding: 7px;
        border: 1px solid color-mix(in srgb, var(--violet) 14%, var(--line-new));
        border-radius: 13px;
        background: var(--panel);
        box-shadow: 0 16px 38px rgba(30, 20, 58, .18);
    }
    .comment-more-menu[hidden] { display: none; }
    .comment-menu-report .report-control { display: flex; width: 100%; }
    .comment-menu-report button.report-trigger,
    button.comment-menu-action {
        width: 100%;
        min-height: 40px;
        justify-content: flex-start;
        margin: 0;
        padding: 0 11px;
        border: 0;
        border-radius: 9px;
        background: transparent;
        color: var(--ink);
        box-shadow: none;
        font-size: 10px;
        font-weight: 750;
        text-align: left;
    }
    .comment-menu-report button.report-trigger { color: var(--red); }
    .comment-menu-report button.report-trigger:hover,
    button.comment-menu-action:hover { background: var(--panel-soft); }
    .comment-menu-pending {
        display: flex;
        min-height: 40px;
        align-items: center;
        padding: 0 11px;
        color: var(--muted-new);
        font-size: 9px;
        font-weight: 750;
    }
    button.comment-menu-close {
        width: 100%;
        min-height: 38px;
        justify-content: center;
        margin: 7px 0 0;
        padding: 7px 10px 0;
        border-width: 1px 0 0;
        border-color: var(--line-new);
        border-radius: 0;
        background: transparent;
        color: var(--violet);
        box-shadow: none;
        font-size: 9px;
        font-weight: 800;
        text-align: center;
    }
    button.comment-menu-close:hover { background: transparent; color: var(--violet-dark); }
    .comment-body { padding: 10px 11px; font-size: 12px; }
    .comment-mobile-footer {
        display: flex;
        min-height: 32px;
        align-items: flex-end;
        justify-content: space-between;
        gap: 10px;
        margin-top: 9px;
    }
    .comment-mobile-footer .comment-toolbar { min-width: 0; flex: 1 1 auto; margin-top: 0; }
    .comment-vote-mobile { display: block; flex: 0 0 auto; margin-left: auto; }
    .comment-vote-mobile .comment-vote { align-items: center; flex-direction: row; gap: 2px; }
    .comment-vote-mobile .comment-vote-controls,
    .comment-vote-mobile .comment-vote-form { align-items: center; flex-direction: row; gap: 2px; }
    .comment-edited-inline { margin-top: 6px; padding-top: 6px; font-size: 8px; }
    .comment-vote-mobile .comment-score { min-width: 20px; }
    .comment-mobile-footer:has(.comment-reply-box[open]) { position: relative; display: block; }
    .comment-mobile-footer:has(.comment-reply-box[open]) .comment-toolbar { width: 100%; }
    .comment-mobile-footer:has(.comment-reply-box[open]) .comment-vote-mobile { position: absolute; top: 0; right: 0; }
    .comment-reply-box[open] { width: 100%; }
    .comment-reply-box[open] > summary { max-width: calc(100% - 112px); }
    .comment-reply-form { width: 100%; margin-top: 10px; padding: 14px; }
    .comment-reply-form textarea { min-height: 122px; padding: 14px; font-size: 16px; line-height: 1.5; resize: vertical; }
    .comment-emoji-label { display: none; }
    .comment-emoji-picker summary { width: 36px; min-width: 36px; padding: 0; justify-content: center; }
    .comment-emoji-panel { left: 0; width: min(280px, calc(100vw - 52px)); max-height: min(330px, 48vh); }
    .comment-emoji-group > div { grid-template-columns: repeat(7, 1fr); }
    .comment-emoji-group.is-combo > div { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .comment-emoji-panel button { width: 30px; min-width: 30px; height: 30px; font-size: 17px; }
    .comment-edit-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
    .comment-edit-dialog-card { padding: 20px 16px; border-radius: 17px; }
    .comment-edit-dialog-card h2 { font-size: 25px; }
    .comment-edit-dialog textarea { min-height: 190px; font-size: 16px; }
    .comment-edit-dialog form > footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .comment-edit-cancel,
    .comment-edit-submit { width: 100%; }
    .comment.reply { padding: 11px 9px; }
    .comment.reply .comment-header { grid-template-columns: 28px minmax(0, 1fr) 36px; }
    .comment.reply .comment-avatar { width: 28px; height: 28px; }
    .comment.reply .comment-body { padding-bottom: 0; }
    .comment.reply .comment-mobile-footer {
        min-height: 22px;
        align-items: center;
        margin-top: -5px;
    }
    .comment.reply .comment-vote-mobile .comment-vote,
    .comment.reply .comment-vote-mobile .comment-vote-controls,
    .comment.reply .comment-vote-mobile .comment-vote-form {
        min-height: 22px;
    }
    .comment.reply .comment-vote-mobile button.comment-vote-button,
    .comment.reply .comment-vote-mobile .comment-vote-icon-wrap {
        width: 22px;
        height: 22px;
    }
    .comment-replies.has-replies { margin-left: -2px; padding-left: 8px; }

    .review { padding: 17px 14px 15px; border-radius: 15px; }
    .review::before { top: 14px; bottom: 14px; }
    .review-avatar,
    .review-avatar img,
    .review-avatar span { width: 38px; height: 38px; border-radius: 11px; }
    .review-identity a { font-size: 11px; }
    .review-body { padding: 14px; font-size: 12px; }
    .review-actions { align-items: stretch; }
    .review-actions > form,
    .review-actions > .report-control,
    .review-actions > .review-edit-link { display: flex; min-width: 0; flex: 1 1 0; }
    .review-actions button.review-delete,
    .review-actions button.report-trigger { width: 100%; justify-content: center; }
    .review-actions .report-pending { width: 100%; text-align: center; }
}

/* Unified header icons, poem metrics and card disclosures */
.site-header .header-actions {
    min-height: 44px;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.header-icon-button,
.theme-toggle.header-icon-button,
.notification-link.header-icon-button {
    position: relative;
    display: inline-grid;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line-new);
    border-radius: 12px;
    background: var(--panel);
    color: var(--muted-new);
    box-shadow: none;
    line-height: 0;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.header-icon-button svg {
    display: block;
    width: 19px;
    height: 19px;
    pointer-events: none;
}

.header-icon-button:hover,
.header-icon-button:focus-visible,
.theme-toggle.header-icon-button:hover,
.theme-toggle.header-icon-button:focus-visible,
.notification-link.header-icon-button:hover,
.notification-link.header-icon-button:focus-visible {
    border-color: color-mix(in srgb, var(--violet) 25%, var(--line-new));
    background: var(--violet-soft);
    color: var(--violet);
    transform: translateY(-1px);
}

.notification-link.has-unread { color: var(--violet); }
.notification-link.has-unread::after {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    border: 2px solid var(--panel);
    border-radius: 50%;
    background: var(--coral);
    content: "";
}

.notification-link.header-icon-button b {
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    border-color: var(--paper);
    font-size: 8px;
    line-height: 1;
}

.poem-card-summary {
    display: grid;
    gap: 5px;
    margin: 0 0 17px;
    padding: 13px 15px;
    border: 1px solid var(--line-new);
    border-left: 3px solid var(--violet);
    border-radius: 11px;
    background: var(--panel-soft);
    color: var(--text);
    font-size: 11px;
    font-style: normal;
    line-height: 1.55;
}

.poem-card-content { border-top: 0; padding-top: 0; }
.poem-card-content::before {
    display: block;
    width: 100%;
    height: 1px;
    margin-bottom: 17px;
    background: linear-gradient(90deg, var(--violet) 0 52px, color-mix(in srgb, var(--violet) 18%, var(--line-new)) 52px 72%, transparent 100%);
    content: "";
}

.poem-card-summary::before { content: none; }
.poem-card-summary-label {
    color: var(--violet);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.poem-card-actions { margin-top: 14px; }
button.poem-read-more {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid var(--line-new);
    border-radius: 10px;
    background: var(--panel);
    color: var(--violet);
    box-shadow: none;
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
}

button.poem-read-more:hover,
button.poem-read-more:focus-visible {
    border-color: transparent;
    background: var(--violet-soft);
    color: var(--violet-dark);
}

.poem-read-more-icon {
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border-radius: 6px;
    background: var(--violet-soft);
    font-size: 12px;
    line-height: 1;
    transition: transform .18s ease;
}

.poem-read-more[aria-expanded="true"] .poem-read-more-icon { transform: rotate(180deg); }

.poem-stats {
    align-items: center;
    gap: 7px;
    color: var(--muted-new);
}

.poem-stat {
    min-height: 31px;
    align-items: center;
    gap: 5px;
    padding: 0 9px;
    border: 1px solid var(--line-new);
    border-radius: 9px;
    background: var(--panel-soft);
    color: var(--muted-new);
    font-size: 9px;
    font-weight: 750;
    line-height: 1;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.poem-stat:has(a:hover),
.poem-stat:has(button:hover) {
    border-color: color-mix(in srgb, var(--violet) 22%, var(--line-new));
    background: var(--violet-soft);
    color: var(--violet);
}

.poem-stat-icon {
    width: 15px;
    height: 15px;
    color: var(--violet);
    stroke-width: 1.8;
}

.poem-stat-icon-rating { color: var(--violet); }
.poem-stat-review-score {
    gap: 4px;
    border-color: color-mix(in srgb, var(--violet) 16%, var(--line-new));
    background: color-mix(in srgb, var(--violet-soft) 62%, var(--panel));
    color: var(--violet);
}
.poem-review-score-mark {
    display: grid;
    min-width: 23px;
    height: 19px;
    place-items: center;
    padding: 0 5px;
    border-radius: 6px;
    background: var(--panel);
    color: var(--violet);
    font-size: 7px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.poem-stat-review-score strong { color: var(--violet-dark); font-size: 10px; font-weight: 850; font-variant-numeric: tabular-nums; }
.poem-stat-review-score small { color: var(--muted-new); font-size: 7px; font-weight: 750; }
.poem-like-form,
.poem-favorite-form { align-items: center; }
.poem-favorite-static { display: inline-flex; min-height: 29px; align-items: center; gap: 5px; padding: 4px 2px; color: var(--muted-new); font-size: 9px; font-weight: 750; }
button.poem-like-button,
button.poem-favorite-button,
a.poem-favorite-login,
a.poem-stat-link {
    min-height: 29px;
    gap: 5px;
    margin: 0;
    padding: 0;
    background: transparent;
    color: inherit;
}

button.poem-like-button:hover,
button.poem-like-button:focus-visible,
button.poem-favorite-button:hover,
button.poem-favorite-button:focus-visible,
a.poem-favorite-login:hover,
a.poem-favorite-login:focus-visible,
a.poem-stat-link:hover,
a.poem-stat-link:focus-visible { background: transparent; color: var(--violet); }

button.poem-like-button.is-liked,
button.poem-favorite-button.is-favorited { color: var(--coral); }
button.poem-like-button.is-liked .poem-stat-icon,
button.poem-favorite-button.is-favorited .poem-stat-icon { color: var(--coral); filter: none; }

.poem-card-foot {
    margin-top: 17px;
    padding-top: 15px;
    border-color: var(--line-new);
}

.poem .poem-stats { gap: 8px; }
.poem .poem-stat { min-height: 34px; padding: 0 10px; background: var(--panel-soft); }

@media (max-width: 520px) {
    .poem-stat { min-height: 30px; padding: 0 8px; }
    .poem-card-summary { padding: 12px; }
}

/* Author library and poem editor */
select {
    -webkit-appearance: none;
    appearance: none;
    min-height: 41px;
    padding: 0 40px 0 13px;
    border: 1px solid transparent;
    border-radius: 10px;
    background-color: var(--panel-soft);
    background-repeat: no-repeat !important;
    background-position: right 14px center;
    background-size: 9px;
    background-origin: border-box;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line-new) 76%, transparent);
    font-size: 11px;
    font-weight: 650;
}

select:hover {
    border-color: color-mix(in srgb, var(--violet) 18%, var(--line-new));
    background-color: color-mix(in srgb, var(--violet-soft) 38%, var(--panel));
}

select:focus,
select:focus-visible {
    border-color: var(--violet);
    background-color: var(--panel);
    box-shadow: 0 0 0 3px var(--violet-soft);
}

.page-layout:has(.my-poems-page) { max-width: 1080px; grid-template-columns: minmax(0, 1fr); }
.page-layout:has(.my-poems-page) > .sidebar-column { display: none; }
.page-layout:has(.favorites-page) { max-width: 1080px; grid-template-columns: minmax(0, 1fr); }
.page-layout:has(.favorites-page) > .sidebar-column { display: none; }

.favorites-page { display: grid; gap: 22px; }
.favorites-hero { position: relative; display: grid; overflow: hidden; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 26px 28px; border: 1px solid color-mix(in srgb, var(--violet) 18%, var(--line-new)); border-radius: 21px; background: linear-gradient(120deg, var(--panel) 0%, color-mix(in srgb, var(--violet-soft) 48%, var(--panel)) 100%); box-shadow: 0 13px 34px rgba(34, 24, 64, .055); }
.favorites-hero::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(var(--violet), color-mix(in srgb, var(--violet) 28%, transparent)); content: ""; }
.favorites-hero-icon { display: grid; width: 76px; height: 76px; place-items: center; border-radius: 21px; background: linear-gradient(145deg, var(--violet), var(--violet-dark)); color: #fff; box-shadow: 0 13px 28px rgba(104, 66, 216, .22); }
.favorites-hero-icon svg { width: 32px; height: 32px; }
.favorites-hero-copy h1 { margin: 6px 0 7px; font-family: Georgia, serif; font-size: clamp(42px, 5vw, 58px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.favorites-hero-copy p { margin: 0; color: var(--muted-new); font-size: 11px; }
.favorites-hero-actions { display: grid; justify-items: end; gap: 9px; }
.favorites-total { display: inline-flex; align-items: baseline; gap: 6px; color: var(--muted-new); }
.favorites-total strong { color: var(--ink); font-family: Georgia, serif; font-size: 25px; line-height: 1; }
.favorites-total span { font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.favorites-discover { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid color-mix(in srgb, var(--violet) 24%, var(--line-new)); border-radius: 12px; background: var(--panel); color: var(--violet); font-size: 9px; font-weight: 850; text-decoration: none; box-shadow: 0 8px 18px rgba(34, 24, 64, .06); }
.favorites-discover svg { width: 16px; height: 16px; }
.favorites-discover:hover { border-color: var(--violet); background: var(--violet-soft); color: var(--violet-dark); transform: translateY(-1px); }
.favorites-library { display: grid; gap: 13px; }
.favorites-library[hidden] { display: none; }
.favorites-library-heading { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 0 3px 17px; }
.favorites-library-heading::after { position: absolute; right: 3px; bottom: 0; left: 3px; height: 2px; border-radius: 999px; background: linear-gradient(90deg, var(--violet) 0 78px, color-mix(in srgb, var(--violet) 17%, var(--line-new)) 78px 100%); content: ""; }
.favorites-library-heading h2 { margin: 5px 0 0; font-family: Georgia, serif; font-size: 28px; font-weight: 500; letter-spacing: -.025em; }
.favorites-library-heading > p { margin: 0; color: var(--muted-new); font-size: 8px; }
.favorites-sort { display: flex; min-width: 0; align-items: center; gap: 11px; padding: 2px 3px 1px; }
.favorites-sort-label { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; color: var(--muted-new); font-size: 8px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.favorites-sort-icon { position: relative; width: 15px; height: 12px; background: linear-gradient(var(--violet), var(--violet)) 0 0 / 15px 1.5px no-repeat, linear-gradient(var(--violet), var(--violet)) 0 5px / 11px 1.5px no-repeat, linear-gradient(var(--violet), var(--violet)) 0 10px / 7px 1.5px no-repeat; }
.favorites-sort-options { display: flex; min-width: 0; flex-wrap: wrap; gap: 6px; }
.favorites-sort-options a { display: inline-flex; min-height: 32px; align-items: center; padding: 0 10px; border: 1px solid var(--line-new); border-radius: 10px; background: var(--panel); color: var(--muted-new); font-size: 8px; font-weight: 750; text-decoration: none; transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease; }
.favorites-sort-options a:hover { border-color: color-mix(in srgb, var(--violet) 42%, var(--line-new)); color: var(--violet); transform: translateY(-1px); }
.favorites-sort-options a.is-active { border-color: color-mix(in srgb, var(--violet) 28%, var(--line-new)); background: var(--violet-soft); color: var(--violet-dark); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--violet) 6%, transparent); }
.favorites-sort-note { margin: -5px 3px 0; color: var(--muted-new); font-size: 8px; line-height: 1.5; }
.favorites-sort-note strong { color: var(--text); font-weight: 800; }
.feed-sort { padding-top: 0; }
.favorites-list { display: grid; gap: 14px; }
.favorites-list > .poem-card { margin: 0; border-radius: 19px; box-shadow: 0 9px 28px rgba(34, 24, 64, .04); }
.favorites-list > .poem-card:hover { border-color: color-mix(in srgb, var(--violet) 22%, var(--line-new)); box-shadow: 0 14px 34px rgba(34, 24, 64, .07); }
.favorites-empty { display: grid; min-height: 360px; place-items: center; align-content: center; gap: 9px; padding: 38px 24px; border: 1px dashed color-mix(in srgb, var(--violet) 32%, var(--line-new)); border-radius: 21px; background: radial-gradient(circle at 50% 0%, var(--violet-soft), transparent 48%), var(--panel); text-align: center; }
.favorites-empty[hidden] { display: none; }
.favorites-empty-icon { display: grid; width: 66px; height: 66px; margin-bottom: 5px; place-items: center; border-radius: 20px; background: var(--violet-soft); color: var(--violet); box-shadow: 0 10px 24px rgba(104, 66, 216, .11); }
.favorites-empty-icon svg { width: 29px; height: 29px; }
.favorites-empty h2 { max-width: 600px; margin: 4px 0 0; font-family: Georgia, serif; font-size: 31px; font-weight: 500; letter-spacing: -.025em; }
.favorites-empty p { max-width: 520px; margin: 0; color: var(--muted-new); font-size: 10px; line-height: 1.6; }
.favorites-empty-action { display: inline-flex; gap: 8px; margin-top: 10px; }
.favorites-empty-action svg { width: 16px; height: 16px; }

/* Personal following feed */
.page-layout:has(.feed-page) { max-width: 1080px; grid-template-columns: minmax(0, 1fr); }
.page-layout:has(.feed-page) > .sidebar-column { display: none; }
.feed-page { display: grid; gap: 22px; }
.feed-hero { position: relative; display: grid; overflow: hidden; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 26px 28px 0; border: 1px solid color-mix(in srgb, var(--violet) 18%, var(--line-new)); border-radius: 21px; background: linear-gradient(120deg, var(--panel) 0%, color-mix(in srgb, var(--violet-soft) 48%, var(--panel)) 100%); box-shadow: 0 13px 34px rgba(34, 24, 64, .055); }
.feed-hero::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(var(--violet), color-mix(in srgb, var(--violet) 28%, transparent)); content: ""; }
.feed-hero-icon { display: grid; width: 76px; height: 76px; place-items: center; border-radius: 21px; background: linear-gradient(145deg, var(--violet), var(--violet-dark)); color: #fff; box-shadow: 0 13px 28px rgba(104, 66, 216, .22); }
.feed-hero-icon svg { width: 33px; height: 33px; }
.feed-hero-copy h1 { margin: 6px 0 7px; font-family: Georgia, serif; font-size: clamp(42px, 5vw, 58px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.feed-hero-copy p { margin: 0; color: var(--muted-new); font-size: 11px; }
.feed-find-authors { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid color-mix(in srgb, var(--violet) 24%, var(--line-new)); border-radius: 12px; background: var(--panel); color: var(--violet); font-size: 9px; font-weight: 850; text-decoration: none; box-shadow: 0 8px 18px rgba(34, 24, 64, .06); }
.feed-find-authors svg { width: 17px; height: 17px; }
.feed-find-authors:hover { border-color: var(--violet); background: var(--violet-soft); color: var(--violet-dark); transform: translateY(-1px); }
.feed-overview { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 5px -28px 0; border-top: 1px solid color-mix(in srgb, var(--violet) 13%, var(--line-new)); background: color-mix(in srgb, var(--panel) 65%, transparent); }
.feed-overview > div { display: grid; gap: 3px; padding: 15px 28px 17px; }
.feed-overview > div + div { border-left: 1px solid color-mix(in srgb, var(--violet) 13%, var(--line-new)); }
.feed-overview > div > span:first-child { color: var(--muted-new); font-size: 7px; font-weight: 850; letter-spacing: .075em; text-transform: uppercase; }
.feed-overview strong { color: var(--ink); font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.feed-period-summary-value { display: flex; align-items: center; gap: 7px; }
.feed-period-summary-value > strong { display: inline-flex; align-items: baseline; gap: 4px; color: var(--ink); font-family: Georgia, serif; font-size: 18px; font-weight: 500; letter-spacing: 0; line-height: 1.15; text-transform: none; white-space: nowrap; }
.feed-period-summary-value > strong > span { color: inherit; font: inherit; letter-spacing: inherit; line-height: inherit; text-transform: inherit; }
button.feed-period-summary-value,
.feed-period-summary-value button { display: grid; width: 29px; min-width: 29px; height: 29px; place-items: center; padding: 0; border: 1px solid color-mix(in srgb, var(--violet) 18%, var(--line-new)); border-radius: 9px; background: var(--panel); color: var(--violet); cursor: pointer; }
.feed-period-summary-value button svg { width: 15px; height: 15px; }
.feed-period-summary-value button:hover { border-color: var(--violet); background: var(--violet-soft); transform: rotate(18deg); }
.feed-stream { display: grid; gap: 13px; }
.feed-stream-heading { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 0 3px 17px; }
.feed-stream-heading::after { position: absolute; right: 3px; bottom: 0; left: 3px; height: 2px; border-radius: 999px; background: linear-gradient(90deg, var(--violet) 0 78px, color-mix(in srgb, var(--violet) 17%, var(--line-new)) 78px 100%); content: ""; }
.feed-stream-heading h2 { margin: 5px 0 0; font-family: Georgia, serif; font-size: 28px; font-weight: 500; letter-spacing: -.025em; }
.feed-stream-heading > p { margin: 0; color: var(--muted-new); font-size: 8px; }
.feed-list { display: grid; gap: 14px; }
.feed-list > .poem-card { margin: 0; border-radius: 19px; box-shadow: 0 9px 28px rgba(34, 24, 64, .04); }
.feed-list > .poem-card:hover { border-color: color-mix(in srgb, var(--violet) 22%, var(--line-new)); box-shadow: 0 14px 34px rgba(34, 24, 64, .07); }
.feed-empty { display: grid; min-height: 380px; place-items: center; align-content: center; gap: 9px; padding: 40px 24px; border: 1px dashed color-mix(in srgb, var(--violet) 32%, var(--line-new)); border-radius: 21px; background: radial-gradient(circle at 50% 0%, var(--violet-soft), transparent 48%), var(--panel); text-align: center; }
.feed-empty-icon { display: grid; width: 66px; height: 66px; margin-bottom: 5px; place-items: center; border-radius: 20px; background: var(--violet-soft); color: var(--violet); box-shadow: 0 10px 24px rgba(104, 66, 216, .11); }
.feed-empty-icon svg { width: 29px; height: 29px; }
.feed-empty h2 { max-width: 600px; margin: 4px 0 0; font-family: Georgia, serif; font-size: 31px; font-weight: 500; letter-spacing: -.025em; }
.feed-empty p { max-width: 530px; margin: 0; color: var(--muted-new); font-size: 10px; line-height: 1.6; }
.feed-empty-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 11px; }
.feed-empty-primary { display: inline-flex; align-items: center; gap: 8px; margin-top: 11px; }
.feed-empty-primary svg { width: 17px; height: 17px; }
.feed-empty-secondary { color: var(--violet); font-size: 9px; font-weight: 800; text-underline-offset: 3px; }
.feed-period-dialog { width: min(620px, calc(100vw - 28px)); max-width: none; padding: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--violet) 20%, var(--line-new)); border-radius: 22px; background: var(--panel); color: var(--ink); box-shadow: 0 30px 90px rgba(22, 16, 37, .28); }
.feed-period-dialog::backdrop { background: rgba(22, 16, 37, .54); backdrop-filter: blur(5px); }
.feed-period-form > header { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) 38px; align-items: center; gap: 14px; padding: 24px 24px 21px; }
.feed-period-form > header::after { position: absolute; right: 24px; bottom: 0; left: 24px; height: 1px; background: linear-gradient(90deg, var(--violet) 0 54px, color-mix(in srgb, var(--violet) 19%, var(--line-new)) 54px 72%, transparent 100%); content: ""; }
.feed-period-dialog-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: var(--violet-soft); color: var(--violet); }
.feed-period-dialog-icon svg { width: 23px; height: 23px; }
.feed-period-form h2 { margin: 5px 0 3px; font-family: Georgia, serif; font-size: 30px; font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.feed-period-form header p { margin: 0; color: var(--muted-new); font-size: 10px; line-height: 1.5; }
.feed-period-dialog-close { display: grid; width: 38px; min-width: 38px; height: 38px; place-items: center; padding: 0; border: 1px solid var(--line-new); border-radius: 11px; background: var(--panel); color: var(--muted-new); cursor: pointer; }
.feed-period-dialog-close svg { width: 18px; height: 18px; }
.feed-period-dialog-close:hover { border-color: var(--violet); color: var(--violet); }
.feed-period-dialog-body { display: grid; gap: 12px; padding: 24px; }
.feed-period-dialog-body > p { margin: 0; color: var(--muted-new); font-size: 9px; line-height: 1.55; text-align: center; }
.feed-period-control { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px 82px; align-items: center; gap: 11px; }
.feed-period-control > button { display: grid; width: 40px; min-width: 40px; height: 40px; place-items: center; padding: 0; border: 1px solid color-mix(in srgb, var(--violet) 20%, var(--line-new)); border-radius: 11px; background: var(--panel); color: var(--violet); cursor: pointer; font-size: 20px; font-weight: 600; line-height: 1; }
.feed-period-control > button:hover { border-color: var(--violet); background: var(--violet-soft); }
.feed-period-slider { position: relative; display: grid; gap: 7px; min-width: 0; }
.feed-period-slider::before,
.feed-period-slider::after { position: absolute; top: 7px; right: 10px; left: 10px; height: 6px; border-radius: 999px; content: ""; pointer-events: none; }
.feed-period-slider::after { z-index: 0; background: color-mix(in srgb, var(--muted-new) 18%, var(--line-new)); }
.feed-period-slider::before { z-index: 1; background: var(--violet); transform: scaleX(var(--feed-period-ratio, 0)); transform-origin: left center; }
.feed-period-slider input[type="range"] { position: relative; z-index: 2; width: 100%; height: 20px; margin: 0; padding: 0; appearance: none; border: 0; border-radius: 999px; outline: 0; background: transparent; cursor: pointer; }
.feed-period-slider input[type="range"]::-webkit-slider-runnable-track { height: 20px; border: 0; background: transparent; }
.feed-period-slider input[type="range"]::-moz-range-track { height: 20px; border: 0; background: transparent; }
.feed-period-slider input[type="range"]::-webkit-slider-thumb { width: 20px; height: 20px; appearance: none; border: 4px solid var(--panel); border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 1px color-mix(in srgb, var(--violet) 45%, var(--line-new)), 0 4px 10px rgba(104, 66, 216, .24); }
.feed-period-slider input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border: 4px solid var(--panel); border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 1px color-mix(in srgb, var(--violet) 45%, var(--line-new)), 0 4px 10px rgba(104, 66, 216, .24); }
.feed-period-slider input[type="range"]:focus-visible { box-shadow: 0 0 0 4px var(--violet-soft); }
.feed-period-scale { display: flex; justify-content: space-between; padding-inline: 10px; color: var(--muted-new); font-size: 7px; font-weight: 700; }
.feed-period-control output { display: grid; min-height: 55px; place-items: center; align-content: center; padding: 7px; border: 1px solid color-mix(in srgb, var(--violet) 20%, var(--line-new)); border-radius: 13px; background: var(--violet-soft); color: var(--violet-dark); }
.feed-period-control output strong { font-family: Georgia, serif; font-size: 22px; font-weight: 500; line-height: 1; }
.feed-period-control output span { margin-top: 3px; font-size: 7px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.feed-period-status { min-height: 15px; color: var(--violet) !important; font-weight: 750; }
.feed-period-form > footer { display: flex; justify-content: flex-end; gap: 9px; padding: 18px 24px 22px; border-top: 1px solid var(--line-new); background: color-mix(in srgb, var(--panel-soft) 65%, var(--panel)); }
.feed-period-form > footer .button { min-height: 42px; margin: 0; padding-inline: 16px; }
.feed-period-form > footer .feed-period-cancel { border: 1px solid var(--line-new); background: var(--panel); color: var(--muted-new); box-shadow: none; }
.feed-period-form > footer .feed-period-cancel:hover { border-color: var(--violet); color: var(--violet); }

.profile-feed-period-card { display: grid; grid-template-columns: 46px minmax(180px, .7fr) minmax(360px, 1.3fr); align-items: center; gap: 15px; margin-top: 18px; padding: 16px; border: 1px solid color-mix(in srgb, var(--violet) 14%, var(--line-new)); border-radius: 14px; background: var(--panel-soft); }
.profile-feed-period-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 13px; background: var(--panel); color: var(--violet); }
.profile-feed-period-icon svg { width: 22px; height: 22px; }
.profile-feed-period-copy { display: grid; gap: 4px; }
.profile-feed-period-copy strong { color: var(--ink); font-size: 12px; }
.profile-feed-period-copy p { margin: 0; color: var(--muted-new); font-size: 9px; line-height: 1.5; }
.profile-feed-period-card > .errorlist { grid-column: 3; margin: -7px 0 0; }

.poem-card-mine .poem-card-title-row { align-items: center; }
.poem-card-mine .poem-edit {
    min-height: 31px;
    margin: 0 0 0 auto;
    padding: 0 11px;
    border: 1px solid var(--line-new);
    border-radius: 9px;
    background: var(--panel-soft);
    color: var(--violet);
}
.poem-card-mine .poem-edit:hover { border-color: transparent; background: var(--violet-soft); color: var(--violet-dark); }
.poem-card-mine .poem-status { padding: 5px 8px; }

.my-poems-page { display: grid; gap: 22px; }
.my-poems-hero {
    position: relative;
    display: grid;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 25px;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid color-mix(in srgb, var(--violet) 18%, var(--line-new));
    border-radius: 23px;
    background:
        radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--violet-soft) 92%, transparent), transparent 37%),
        var(--panel);
    box-shadow: var(--shadow-new);
}
.my-poems-hero::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(var(--violet), color-mix(in srgb, var(--violet) 25%, transparent)); content: ""; }
.my-poems-hero-copy { align-self: center; }
.my-poems-hero h1 { margin: 8px 0 8px; font-family: Georgia, serif; font-size: clamp(42px, 5vw, 60px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.my-poems-hero-copy > p { max-width: 620px; margin: 0; color: var(--muted-new); font-size: 12px; }
.my-poems-create { display: inline-flex; min-height: 48px; align-self: start; align-items: center; gap: 11px; padding: 5px 18px 5px 6px; border: 0; border-radius: 15px; background: linear-gradient(135deg, var(--violet), var(--violet-dark)); color: #fff; box-shadow: 0 12px 27px rgba(104, 66, 216, .24); }
.my-poems-create-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 11px; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.my-poems-create-icon svg { width: 19px; height: 19px; }
.my-poems-create-label { font-size: 10px; font-weight: 850; line-height: 1; white-space: nowrap; }
.my-poems-create:hover { background: var(--violet-dark); color: #fff; transform: translateY(-1px); }
.my-poems-overview { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.my-poems-overview > div { position: relative; display: grid; min-height: 90px; grid-template-columns: 36px minmax(0, 1fr); align-content: center; align-items: center; gap: 1px 10px; padding: 14px; border: 1px solid var(--line-new); border-radius: 14px; background: color-mix(in srgb, var(--panel-soft) 72%, var(--panel)); }
.my-poems-overview-icon { display: grid; width: 36px; height: 36px; grid-row: 1 / 3; place-items: center; border-radius: 10px; background: var(--panel); color: var(--violet); }
.my-poems-overview-icon svg { width: 19px; height: 19px; }
.my-poems-overview dt { align-self: end; color: var(--muted-new); font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.my-poems-overview dd { align-self: start; margin: 0; color: var(--ink); font-family: Georgia, serif; font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }

.my-poems-library { overflow: hidden; border: 1px solid var(--line-new); border-radius: 19px; background: var(--panel); }
.my-poems-library-heading { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px; border-bottom: 1px solid var(--line-new); }
.my-poems-library-heading h2 { margin: 3px 0 0; font-family: Georgia, serif; font-size: 23px; font-weight: 500; letter-spacing: -.025em; }
.my-poems-count { margin: 0; padding: 7px 10px; border-radius: 9px; background: var(--violet-soft); color: var(--violet); font-size: 9px; font-weight: 850; white-space: nowrap; }
.my-poems-filters { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 14px; padding: 18px 20px 20px; background: color-mix(in srgb, var(--panel-soft) 45%, var(--panel)); }
.my-poems-search-section { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(190px, .34fr) minmax(0, 1fr); align-items: center; gap: 15px; padding: 13px; border: 1px solid var(--line-new); border-radius: 14px; background: var(--panel); }
.my-poems-search-intro { display: grid; gap: 3px; }
.my-poems-search-intro strong { color: var(--ink); font-size: 10px; font-weight: 850; }
.my-poems-search-intro span { color: var(--muted-new); font-size: 8px; }
.my-poems-search { position: relative; }
.my-poems-search-icon { position: absolute; top: 50%; left: 14px; z-index: 1; display: grid; width: 19px; height: 19px; place-items: center; color: var(--violet); transform: translateY(-50%); pointer-events: none; }
.my-poems-search-icon svg { width: 18px; height: 18px; }
.my-poems-search input[type="search"] { width: 100%; min-height: 44px; padding: 0 42px; border: 1px solid var(--line-new); border-radius: 12px; background: var(--panel-soft); color: var(--ink); font-size: 10px; }
.my-poems-search input[type="search"]:focus,
.my-poems-search input[type="search"]:focus-visible { border-color: var(--violet); background: var(--panel); box-shadow: 0 0 0 3px var(--violet-soft); outline: 0; }
.my-poems-filter { min-width: 0; padding: 14px; border: 1px solid var(--line-new); border-radius: 13px; background: var(--panel); }
.my-poems-filter-label { margin: 0 0 10px; color: var(--muted-new); font-size: 8px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.my-poems-chips.tabs { display: flex; overflow: visible; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; background: transparent; }
.my-poems-chips.tabs button { min-height: 31px; padding: 0 10px; border: 1px solid var(--line-new); border-radius: 9px; background: var(--panel-soft); color: var(--muted-new); font-size: 8px; font-weight: 750; box-shadow: none; }
.my-poems-chips.tabs button:hover { border-color: color-mix(in srgb, var(--violet) 30%, var(--line-new)); background: var(--violet-soft); color: var(--violet); }
.my-poems-chips.tabs button.active { border-color: var(--violet); background: var(--violet); color: #fff; box-shadow: 0 6px 14px rgba(104, 66, 216, .16); }

.my-poems-list { display: grid; gap: 12px; }
.my-poem-card { overflow: hidden; border: 1px solid var(--line-new); border-radius: 18px; background: var(--panel); box-shadow: 0 8px 25px rgba(34, 24, 64, .035); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.my-poem-card:hover { border-color: color-mix(in srgb, var(--violet) 24%, var(--line-new)); box-shadow: 0 14px 34px rgba(34, 24, 64, .07); transform: translateY(-1px); }
.my-poem-card-main { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 16px; padding: 18px 20px 16px; }
.my-poem-card-image { display: grid; width: 78px; height: 78px; overflow: hidden; place-items: center; border-radius: 14px; background: var(--panel-soft); color: var(--violet); }
.my-poem-card-image img { width: 100%; height: 100%; object-fit: cover; }
.my-poem-card-image-placeholder svg { width: 27px; height: 27px; }
.my-poem-card-copy { min-width: 0; }
.my-poem-card-eyebrow { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 6px 9px; color: var(--muted-new); font-size: 8px; }
.my-poem-card-eyebrow > span:not(.poem-status) + time::before { margin-right: 9px; color: var(--line-new); content: "•"; }
.my-poem-card .poem-status { padding: 5px 8px; border-radius: 8px; font-size: 7px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.poem-status-draft { background: color-mix(in srgb, var(--violet-soft) 55%, var(--panel-soft)); color: var(--violet-dark); }
.poem-status-review,
.poem-status-under_review { background: #fff0d7; color: var(--amber); }
.my-poem-card h2 { margin: 7px 0 5px; font-family: Georgia, serif; font-size: clamp(21px, 2.4vw, 28px); font-weight: 500; letter-spacing: -.025em; line-height: 1.15; }
.my-poem-card h2 a { color: var(--ink); text-decoration: none; }
.my-poem-card h2 a:hover { color: var(--violet); }
.my-poem-card-excerpt { display: -webkit-box; overflow: hidden; margin: 0; color: var(--text); font-size: 10px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.my-poem-card-tags { display: flex; overflow: hidden; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.my-poem-card-tags span { padding: 3px 6px; border-radius: 6px; background: var(--panel-soft); color: var(--violet); font-size: 7px; font-weight: 750; }
.my-poem-card-footer { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 14px 10px 20px; border-top: 1px solid var(--line-new); background: color-mix(in srgb, var(--panel-soft) 48%, var(--panel)); }
.my-poem-card-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.my-poem-card-stats li { display: inline-flex; min-height: 30px; align-items: center; gap: 5px; padding: 0 8px; border: 1px solid var(--line-new); border-radius: 9px; background: var(--panel); color: var(--muted-new); font-size: 8px; font-weight: 800; font-variant-numeric: tabular-nums; }
.my-poem-card-stats svg { width: 14px; height: 14px; color: var(--violet); }
.my-poem-card-actions { display: flex; align-items: center; gap: 7px; }
.my-poem-open,
.my-poem-card .poem-edit { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 0 11px; border: 1px solid var(--line-new); border-radius: 9px; background: var(--panel); color: var(--muted-new); font-size: 8px; font-weight: 800; text-decoration: none; }
.my-poem-open svg { width: 12px; height: 12px; }
.my-poem-card .poem-edit { border-color: transparent; background: var(--violet); color: #fff; }
.my-poem-card .poem-edit:hover { background: var(--violet-dark); color: #fff; }
.my-poem-card .poem-edit-icon { width: 14px; height: 14px; }

.my-poems-empty { display: grid; min-height: 270px; place-items: center; align-content: center; gap: 8px; padding: 32px; border: 1px dashed color-mix(in srgb, var(--violet) 28%, var(--line-new)); border-radius: 19px; background: color-mix(in srgb, var(--violet-soft) 25%, var(--panel)); text-align: center; }
.my-poems-empty[hidden] { display: none; }
.my-poems-empty > span:first-child { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: var(--panel); color: var(--violet); box-shadow: 0 8px 20px rgba(104, 66, 216, .1); }
.my-poems-empty > span:first-child svg { width: 23px; height: 23px; }
.my-poems-empty h2 { margin: 5px 0 0; font-family: Georgia, serif; font-size: 26px; font-weight: 500; }
.my-poems-empty p { max-width: 470px; margin: 0; color: var(--muted-new); font-size: 10px; }
.my-poems-empty button { min-height: 36px; margin-top: 8px; padding: 0 12px; border: 1px solid var(--line-new); border-radius: 10px; background: var(--panel); color: var(--violet); font-size: 9px; font-weight: 800; cursor: pointer; }
.my-poems-empty .button { margin-top: 10px; }

.editor-heading { margin: 3px 0 24px; }
.editor-heading h1 { margin: 8px 0 8px; color: var(--ink); font-family: Georgia, serif; font-size: clamp(38px, 4vw, 52px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.editor-heading .muted { max-width: 610px; margin: 0; font-size: 11px; }
.poem-editor-form { display: grid; gap: 21px; padding: clamp(22px, 4vw, 36px); border-radius: 20px; }
.poem-editor-form .editor-field,
.poem-image-field,
.tag-editor { display: grid; gap: 7px; margin: 0; }
.poem-editor-form .editor-field > label,
.poem-image-field > label { margin: 0; color: var(--ink); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.poem-editor-form input[type="text"],
.poem-editor-form input[type="file"],
.poem-editor-form textarea { padding: 12px 14px; border-color: var(--line-new); border-radius: 11px; background: var(--panel-soft); }
.poem-editor-form input[type="text"] { min-height: 45px; }
.poem-editor-form textarea { resize: vertical; }
.poem-editor-form .editor-field-summary textarea { min-height: 95px; font-family: inherit; font-size: 12px; line-height: 1.6; }
.poem-editor-form .editor-field-body textarea { min-height: 360px; background: var(--panel); font-family: Georgia, serif; font-size: 18px; line-height: 1.8; }

.tag-editor {
    position: relative;
    padding: 18px;
    border: 1px solid var(--line-new);
    border-radius: 15px;
    background: var(--panel-soft);
}

.tag-editor-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.tag-editor-heading > div { display: grid; gap: 2px; }
.tag-editor-heading label { color: var(--ink); font-size: 11px; font-weight: 850; }
.tag-editor-heading > div span { color: var(--muted-new); font-size: 9px; }
.tag-editor-count { padding: 5px 8px; border-radius: 7px; background: var(--panel); color: var(--violet); font-size: 8px; font-weight: 850; white-space: nowrap; }
.tag-editor-ui { display: grid; gap: 7px; }
.tag-editor-box {
    min-height: 48px;
    gap: 6px;
    padding: 7px 9px;
    border: 1px solid var(--line-new);
    border-radius: 11px;
    background: var(--panel);
}
.tag-editor-box:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.tag-editor-chip { min-height: 29px; gap: 4px; padding: 0 4px 0 9px; border: 1px solid transparent; border-radius: 8px; background: var(--violet-soft); color: var(--violet-dark); }
.tag-editor-chip-name { font-size: 9px; font-weight: 800; }
.tag-editor-remove { display: grid; width: 21px; height: 21px; min-width: 21px; padding: 0; place-items: center; border-radius: 6px; color: var(--violet); font-size: 14px; }
.tag-editor-remove:hover,
.tag-editor-remove:focus-visible { background: color-mix(in srgb, var(--violet) 13%, transparent); color: var(--violet-dark); }
.tag-editor-grow { gap: 2px; }
.tag-editor-hash { color: var(--violet); font-size: 13px; }
.tag-editor-grow input { min-height: 30px !important; padding: 0 3px !important; background: transparent !important; font-size: 10px; }
.tag-editor-suggest {
    top: calc(100% - 9px);
    right: 18px;
    left: 18px;
    margin: 0;
    padding: 6px;
    border-color: var(--line-new);
    border-radius: 12px;
    background: var(--panel);
    box-shadow: var(--shadow-new);
}
.tag-editor-suggest button { position: relative; min-height: 36px; padding: 0 74px 0 10px; border-radius: 8px; color: var(--ink); font-size: 10px; }
.tag-editor-suggest button::after { position: absolute; right: 10px; color: var(--violet); font-size: 8px; font-weight: 800; content: "Добавить"; }
.tag-editor-suggest button.is-active,
.tag-editor-suggest button:hover,
.tag-editor-suggest button:focus-visible { background: var(--violet-soft); color: var(--violet-dark); }
.tag-editor-help { margin: 0; color: var(--muted-new); font-size: 8px; }
.tag-editor-help span { padding: 2px 5px; border: 1px solid var(--line-new); border-radius: 5px; background: var(--panel); color: var(--ink); font-weight: 750; }

.poem-image-field {
    padding: 18px;
    border: 1px dashed var(--line-new);
    border-radius: 15px;
    background: var(--panel-soft);
}
.poem-image-preview { border-color: var(--line-new); border-radius: 12px; }
.poem-image-clear { color: var(--muted-new); font-size: 9px; }
.editor-publish-field { padding: 15px 17px; border: 1px solid var(--line-new); border-radius: 13px; background: var(--panel-soft); }
.editor-publish-field label { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.editor-publish-field input { width: 18px; height: 18px; accent-color: var(--violet); }
.editor-publish-field label > span { display: grid; gap: 1px; }
.editor-publish-field strong { color: var(--ink); font-size: 10px; }
.editor-publish-field small { color: var(--muted-new); font-size: 8px; }
.editor-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.editor-actions button { min-height: 42px; padding: 0 18px; }
.editor-cancel { padding: 10px 13px; color: var(--muted-new); font-size: 10px; font-weight: 750; text-decoration: none; }
.editor-cancel:hover { color: var(--violet); }

@media (max-width: 720px) {
    .favorites-page { gap: 16px; }
    .favorites-hero { grid-template-columns: 56px minmax(0, 1fr); gap: 13px; padding: 20px 16px; border-radius: 18px; }
    .favorites-hero-icon { width: 56px; height: 56px; border-radius: 16px; }
    .favorites-hero-icon svg { width: 25px; height: 25px; }
    .favorites-hero-copy h1 { font-size: 39px; }
    .favorites-hero-copy p { font-size: 9px; line-height: 1.5; }
    .favorites-hero-actions { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 10px; }
    .favorites-total { justify-content: flex-start; }
    .favorites-discover { min-height: 39px; padding: 0 11px; }
    .favorites-library-heading { align-items: start; flex-direction: column; gap: 4px; padding: 0 2px 14px; }
    .favorites-library-heading h2 { font-size: 24px; }
    .favorites-sort { display: grid; gap: 8px; padding: 1px 0 0; }
    .favorites-sort-label { padding-left: 2px; }
    .favorites-sort-options { overflow-x: auto; flex-wrap: nowrap; margin: 0 -14px; padding: 0 14px 6px; scrollbar-width: none; }
    .favorites-sort-options::-webkit-scrollbar { display: none; }
    .favorites-sort-options a { min-height: 36px; flex: 0 0 auto; padding: 0 12px; font-size: 9px; }
    .favorites-sort-note { margin-top: -3px; font-size: 8px; }
    .favorites-empty { min-height: 310px; padding: 31px 18px; border-radius: 18px; }
    .favorites-empty h2 { font-size: 27px; }
    .favorites-empty-action { width: 100%; justify-content: center; }
    .feed-page { gap: 16px; }
    .feed-hero { grid-template-columns: 56px minmax(0, 1fr); gap: 13px; padding: 20px 16px 0; border-radius: 18px; }
    .feed-hero-icon { width: 56px; height: 56px; border-radius: 16px; }
    .feed-hero-icon svg { width: 25px; height: 25px; }
    .feed-hero-copy h1 { font-size: 39px; }
    .feed-hero-copy p { font-size: 9px; line-height: 1.5; }
    .feed-find-authors { grid-column: 1 / -1; min-height: 39px; justify-content: center; }
    .feed-overview { margin: 3px -16px 0; }
    .feed-overview > div { padding: 13px 10px 15px; text-align: center; }
    .feed-overview > div > span:first-child { font-size: 6.5px; }
    .feed-overview strong { font-size: 16px; }
    .feed-period-summary-value { justify-content: center; gap: 5px; }
    .feed-period-summary-value button { width: 27px; min-width: 27px; height: 27px; }
    .feed-stream-heading { align-items: start; flex-direction: column; gap: 4px; padding: 0 2px 14px; }
    .feed-stream-heading h2 { font-size: 24px; }
    .feed-empty { min-height: 320px; padding: 32px 18px; border-radius: 18px; }
    .feed-empty h2 { font-size: 27px; }
    .feed-empty-actions { width: 100%; flex-direction: column; }
    .feed-empty-actions .button, .feed-empty-primary { width: 100%; justify-content: center; }
    .feed-period-dialog { width: calc(100vw - 18px); border-radius: 18px; }
    .feed-period-form > header { grid-template-columns: 42px minmax(0, 1fr) 34px; gap: 10px; padding: 18px 15px 16px; }
    .feed-period-form > header::after { right: 15px; left: 15px; }
    .feed-period-dialog-icon { width: 42px; height: 42px; border-radius: 12px; }
    .feed-period-form h2 { font-size: 24px; }
    .feed-period-form header p { font-size: 9px; }
    .feed-period-dialog-close { width: 34px; min-width: 34px; height: 34px; }
    .feed-period-dialog-body { padding: 22px 15px 17px; }
    .feed-period-control { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 8px; }
    .feed-period-control > button { width: 36px; min-width: 36px; height: 36px; }
    .feed-period-control output { grid-column: 1 / -1; grid-row: 1; justify-self: center; min-width: 86px; margin-bottom: 7px; }
    .feed-period-slider { grid-column: 2; grid-row: 2; }
    .feed-period-control > button:first-child { grid-column: 1; grid-row: 2; }
    .feed-period-control > button:nth-of-type(2) { grid-column: 3; grid-row: 2; }
    .feed-period-form > footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 15px; }
    .feed-period-form > footer .button { width: 100%; justify-content: center; padding-inline: 9px; }
    .profile-feed-period-card { grid-template-columns: 40px minmax(0, 1fr); gap: 11px; padding: 14px; }
    .profile-feed-period-icon { width: 40px; height: 40px; }
    .profile-feed-period-control { grid-column: 1 / -1; }
    .profile-feed-period-card > .errorlist { grid-column: 1 / -1; }
    .my-poems-page { gap: 16px; }
    .my-poems-hero { grid-template-columns: 1fr; gap: 18px; padding: 22px 16px; border-radius: 18px; }
    .my-poems-hero h1 { font-size: 42px; }
    .my-poems-hero-copy > p { font-size: 10px; }
    .my-poems-create { width: 100%; justify-content: center; padding-right: 12px; }
    .my-poems-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .my-poems-overview > div { min-height: 76px; grid-template-columns: 32px minmax(0, 1fr); padding: 10px; }
    .my-poems-overview-icon { width: 32px; height: 32px; }
    .my-poems-library { border-radius: 16px; }
    .my-poems-library-heading { min-height: 70px; padding: 14px; }
    .my-poems-library-heading h2 { font-size: 21px; }
    .my-poems-filters { grid-template-columns: 1fr; padding: 13px; }
    .my-poems-search-section { grid-column: 1; grid-template-columns: 1fr; gap: 10px; padding: 12px; }
    .my-poems-filter { padding: 12px; }
    .my-poem-card-main { grid-template-columns: 62px minmax(0, 1fr); gap: 11px; padding: 14px; }
    .my-poem-card-image { width: 62px; height: 62px; border-radius: 12px; }
    .my-poem-card-eyebrow time { flex-basis: 100%; }
    .my-poem-card-eyebrow > span:not(.poem-status) + time::before { display: none; }
    .my-poem-card h2 { margin-top: 6px; font-size: 21px; }
    .my-poem-card-excerpt { font-size: 9px; }
    .my-poem-card-footer { align-items: stretch; flex-direction: column; padding: 10px 12px 12px; }
    .my-poem-card-stats { gap: 4px; }
    .my-poem-card-stats li { flex: 1 1 42px; justify-content: center; }
    .my-poem-card-actions { width: 100%; }
    .my-poem-open,
    .my-poem-card .poem-edit { flex: 1 1 0; }
    .my-poems-empty { min-height: 240px; padding: 26px 18px; }
    .tag-editor { padding: 15px 12px; }
    .tag-editor-heading { align-items: flex-start; }
    .tag-editor-suggest { right: 12px; left: 12px; }
    .editor-actions { align-items: stretch; flex-direction: column-reverse; }
    .editor-actions button,
    .editor-cancel { width: 100%; text-align: center; }
}

/* Clear logout actions and a single mobile notifications entry */
.sidebar-logout {
    grid-column: 1 / -1;
    display: block;
    margin: 2px 0 0;
}

.sidebar-logout button {
    display: flex;
    width: 100%;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid var(--line-new);
    border-radius: 9px;
    background: var(--panel-soft);
    color: var(--muted-new);
    box-shadow: none;
    font-size: 9px;
    font-weight: 800;
}

.sidebar-logout button svg {
    display: block;
    width: 15px;
    height: 15px;
}

.sidebar-logout button:hover,
.sidebar-logout button:focus-visible {
    border-color: color-mix(in srgb, var(--red) 20%, var(--line-new));
    background: color-mix(in srgb, var(--red) 7%, var(--panel));
    color: var(--red);
}

.profile-header-actions { flex-wrap: wrap; }
.profile-logout-form { display: inline-flex; margin: 0; }
button.profile-logout {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid var(--line-new);
    border-radius: 9px;
    background: transparent;
    color: var(--muted-new);
    box-shadow: none;
    font-size: 9px;
    font-weight: 800;
}

button.profile-logout svg { width: 15px; height: 15px; }
button.profile-logout:hover,
button.profile-logout:focus-visible { border-color: color-mix(in srgb, var(--red) 24%, var(--line-new)); background: color-mix(in srgb, var(--red) 7%, transparent); color: var(--red); }

.mobile-nav-icon {
    position: relative;
    display: grid;
    width: 30px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.mobile-nav a:active > .mobile-nav-icon { transform: scale(.93); }
.mobile-nav-icon svg { display: block; width: 20px; height: 20px; }
.mobile-nav-label {
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mobile-nav-icon b {
    position: absolute;
    top: -4px;
    right: -5px;
    display: grid;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    place-items: center;
    border: 2px solid var(--panel);
    border-radius: 999px;
    background: var(--coral);
    color: #fff;
    font-size: 7px;
    line-height: 1;
}

@media (max-width: 780px) {
    .site-header .notification-link.header-icon-button { display: none; }
}

@media (max-width: 560px) {
    .profile-header-actions { align-items: stretch; flex-direction: column; }
    .profile-header-actions > a,
    .profile-logout-form,
    button.profile-logout { width: 100%; }
    button.profile-logout { justify-content: center; }
}

/* Public author profile and account settings */
.profile-header { padding: clamp(22px, 3vw, 34px); }
.profile-header-main { align-items: center; }
.profile-header-identity { height: auto; min-height: 96px; gap: 3px; }
.profile-header-actions { margin-top: 9px; }
.profile-header-actions a.button {
    display: inline-flex;
    width: auto;
    min-width: 0;
    min-height: 34px;
    align-self: flex-start;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin: 0;
    padding: 0 13px;
    border: 1px solid var(--line-new);
    border-radius: 9px;
    background: var(--panel-soft);
    color: var(--violet);
    box-shadow: none;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}
.profile-header-actions a.button:hover { border-color: transparent; background: var(--violet-soft); color: var(--violet-dark); }
.profile-header-identity button,
.profile-header-identity > a.button { min-height: 36px; font-size: 12px; }
.profile-badge { display: inline-flex; margin: 15px 0 0; padding: 6px 10px; border-radius: 8px; background: var(--violet-soft); color: var(--violet); font-size: 11px; font-weight: 850; letter-spacing: .06em; line-height: 1.25; text-transform: uppercase; }
.profile-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; font-size: 12px; line-height: 1.5; }
.profile-date-item { display: inline-flex; align-items: baseline; gap: 4px; }
.profile-date-item time { color: var(--text); font-weight: 650; white-space: nowrap; }
.profile-date-published::before { color: color-mix(in srgb, var(--violet) 58%, var(--muted-new)); content: "·"; }

.profile-stats {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 9px;
    margin-top: 20px;
    padding: 0;
}

.profile-stat {
    min-width: 0;
    min-height: 64px;
    justify-content: flex-start;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--line-new);
    border-radius: 13px;
    background: var(--panel-soft);
    color: var(--ink);
    cursor: default;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.profile-stat:has(.profile-stat-link):hover {
    border-color: color-mix(in srgb, var(--violet) 24%, var(--line-new));
    background: var(--violet-soft);
    transform: translateY(-1px);
}

.profile-stat-link {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    justify-content: flex-start;
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.profile-stat-link:hover,
.profile-stat-link:focus-visible { background: transparent; color: var(--violet); }

.profile-stat-icon-wrap {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    overflow: visible;
    border-radius: 11px;
    background: var(--panel);
    color: var(--violet);
}

.profile-stat-icon-wrap .poem-stat-icon {
    width: 18px;
    height: 18px;
    color: currentColor;
}

.profile-stat-icon-wrap .poem-stat-icon-rating { color: #d49a2c; }
.profile-stat-dir {
    right: -3px;
    bottom: -3px;
    width: 14px;
    height: 14px;
    padding: 2px;
    border: 2px solid var(--panel-soft);
    background: var(--panel);
    color: var(--violet);
    box-shadow: none;
}

.profile-stat-content { display: grid; min-width: 0; gap: 2px; }
.profile-stat-content strong { color: var(--ink); font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.profile-stat-content small { overflow: hidden; color: var(--muted-new); font-size: 10px; font-weight: 650; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }

.profile-details {
    margin-top: 15px;
    padding: clamp(22px, 3vw, 30px);
    border-radius: 18px;
    background: color-mix(in srgb, var(--panel) 94%, var(--violet-soft));
}

.profile-details-header { margin-bottom: 18px; padding-bottom: 15px; border-bottom: 1px solid var(--line-new); }
.profile-details-header h2 { margin: 5px 0 0; color: var(--ink); font-family: Georgia, serif; font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.profile-about {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.profile-detail-item {
    position: relative;
    overflow: hidden;
    min-width: 0;
    min-height: 82px;
    padding: 15px 16px 15px 19px;
    border: 1px solid var(--line-new);
    border-radius: 13px;
    background: var(--panel);
    box-shadow: 0 7px 22px rgba(34, 24, 64, .035);
}

.profile-detail-item::before {
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: color-mix(in srgb, var(--violet) 70%, transparent);
    content: "";
}

.profile-detail-wide { grid-column: auto; }
.profile-detail-item dt { margin: 0 0 7px; color: var(--violet); font-size: 10px; font-weight: 850; letter-spacing: .09em; line-height: 1.35; text-transform: uppercase; }
.profile-detail-item dd { margin: 0; color: var(--ink); font-size: 13px; font-weight: 650; line-height: 1.55; }
.profile-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-detail-tags span { padding: 6px 9px; border-radius: 7px; background: var(--violet-soft); color: var(--violet-dark); font-size: 10px; font-weight: 750; line-height: 1.3; }
.profile-tabs a { font-size: 13px; }

.profile-links {
    align-items: center;
    gap: 7px;
    margin: 15px 0 18px;
    padding: 8px;
    border: 1px solid var(--line-new);
    border-radius: 12px;
    background: var(--panel);
}
.profile-links > a { padding: 8px 10px; border-radius: 8px; color: var(--muted-new); font-size: 9px; font-weight: 750; text-decoration: none; }
.profile-links > a:hover { background: var(--violet-soft); color: var(--violet); }
.settings-logout-form { display: inline-flex; margin: 0 0 0 auto; }
.settings-logout-form button.profile-logout { min-height: 32px; }

/* Readable type scale for personal account settings */
.page-layout:has(.profile-form) > .content-column > .muted {
    max-width: 680px;
    font-size: 15px;
    line-height: 1.6;
}

.page-layout:has(.profile-form) .profile-links > a {
    font-size: 12px;
    line-height: 1.25;
}

.page-layout:has(.profile-form) .settings-logout-form button.profile-logout {
    min-height: 36px;
    font-size: 11px;
}

.profile-form .profile-section h2 {
    font-size: 20px;
    line-height: 1.25;
}

.profile-form .profile-section h3,
.profile-form .notification-settings h3 {
    font-size: 16px;
    line-height: 1.35;
}

.profile-form label,
.profile-form legend {
    font-size: 12px;
    line-height: 1.45;
}

.profile-form .muted,
.profile-form .checkbox-list .muted {
    font-size: 12px;
    line-height: 1.55;
}

.profile-form .checkbox-group label,
.profile-form .checkbox-list label {
    font-size: 12px;
    line-height: 1.45;
}

.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="file"],
.profile-form select,
.profile-form textarea {
    font-size: 14px;
}

.profile-form > button[type="submit"] {
    min-height: 42px;
    padding-inline: 18px;
    font-size: 12px;
}

@media (max-width: 680px) {
    .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-header-identity button,
    .profile-header-identity > a.button,
    .profile-header-actions a.button { min-height: 40px; font-size: 13px; }
    .profile-badge { font-size: 12px; }
    .profile-dates { align-items: flex-start; flex-direction: column; gap: 3px; font-size: 13px; }
    .profile-date-published::before { content: none; }
    .profile-stat-content small { font-size: 11px; white-space: normal; }
    .profile-detail-item dt { font-size: 11px; }
    .profile-detail-item dd { font-size: 14px; }
    .profile-detail-tags span { font-size: 11px; }
    .profile-tabs a { font-size: 13px; }
    .profile-about { grid-template-columns: 1fr; }
    .profile-detail-wide { grid-column: auto; }
    .profile-links { align-items: stretch; flex-direction: column; }
    .profile-links > a { text-align: center; }
    .page-layout:has(.profile-form) .profile-links > a { font-size: 13px; }
    .settings-logout-form,
    .settings-logout-form button.profile-logout { width: 100%; }
    .settings-logout-form { margin-left: 0; }
    .settings-logout-form button.profile-logout { justify-content: center; }
    .page-layout:has(.profile-form) .settings-logout-form button.profile-logout { min-height: 42px; font-size: 12px; }
    .profile-form .profile-section h2 { font-size: 21px; }
    .profile-form label,
    .profile-form legend,
    .profile-form .checkbox-group label,
    .profile-form .checkbox-list label { font-size: 13px; }
    .profile-form .muted,
    .profile-form .checkbox-list .muted { font-size: 13px; }
    .profile-form input[type="text"],
    .profile-form input[type="email"],
    .profile-form input[type="file"],
    .profile-form select,
    .profile-form textarea { font-size: 16px; }
    .profile-form > button[type="submit"] { min-height: 46px; font-size: 13px; }
}

/* Personal account settings */
.account-settings-page {
    display: grid;
    gap: 16px;
    padding-bottom: 22px;
}

.account-settings-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid color-mix(in srgb, var(--violet) 16%, var(--line-new));
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--violet) 14%, transparent) 0 90px, transparent 91px),
        linear-gradient(135deg, var(--panel) 0%, color-mix(in srgb, var(--violet-soft) 46%, var(--panel)) 100%);
    box-shadow: 0 16px 42px rgba(36, 24, 70, .055);
}

.account-settings-hero::after {
    position: absolute;
    right: clamp(24px, 5vw, 56px);
    bottom: 0;
    left: clamp(24px, 5vw, 56px);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--violet), color-mix(in srgb, var(--violet) 8%, transparent));
    content: "";
}

.account-settings-hero h1 {
    margin: 6px 0 8px;
    color: var(--ink);
    font-family: Georgia, serif;
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.04;
}

.account-settings-hero p {
    max-width: 640px;
    margin: 0;
    color: var(--muted-new);
    font-size: 14px;
    line-height: 1.65;
}

.account-settings-page .profile-links {
    display: grid;
    grid-template-columns: repeat(3, max-content) minmax(max-content, 1fr);
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--line-new);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 8px 26px rgba(34, 24, 64, .035);
}

.account-settings-page .profile-links > a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--muted-new);
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}

.account-settings-page .profile-links > a svg {
    width: 16px;
    height: 16px;
    color: var(--violet);
}

.account-settings-page .profile-links > a:hover,
.account-settings-page .profile-links > a:focus-visible {
    background: var(--violet-soft);
    color: var(--violet-dark);
}

.account-settings-page .settings-logout-form { justify-self: end; }
.account-settings-page .settings-logout-form button.profile-logout { min-height: 38px; padding-inline: 12px; font-size: 11px; }

.account-settings-page .profile-form.form {
    display: grid;
    gap: 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.account-settings-page .profile-section {
    position: relative;
    margin: 0;
    padding: clamp(22px, 3.6vw, 32px);
    border: 1px solid var(--line-new);
    border-radius: 18px;
    background: color-mix(in srgb, var(--panel) 97%, var(--violet-soft));
    box-shadow: 0 12px 34px rgba(34, 24, 64, .04);
}

.account-settings-page .profile-section::before {
    position: absolute;
    top: 24px;
    right: 26px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--violet) 15%, var(--line-new));
    border-radius: 50%;
    background: var(--violet-soft);
    color: var(--violet);
    content: attr(data-section-number);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .05em;
}

.account-settings-page .profile-section-heading {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 38%);
    gap: 18px;
    align-items: end;
    margin: 0 0 22px;
    padding: 0 54px 18px 0;
    border-bottom: 0;
}

.account-settings-page .profile-section-heading::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--violet) 0 54px, color-mix(in srgb, var(--violet) 19%, var(--line-new)) 54px 72%, transparent 100%);
    content: "";
}

.account-settings-page .profile-section-heading span {
    display: block;
    margin-bottom: 5px;
    color: var(--violet);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.account-settings-page .profile-section-heading h2 {
    margin: 0;
    color: var(--ink);
    font-family: Georgia, serif;
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.12;
}

.account-settings-page .profile-section-heading p {
    margin: 0;
    color: var(--muted-new);
    font-size: 11px;
    line-height: 1.55;
}

.account-identity-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.account-identity-meta > span {
    display: flex;
    min-width: 0;
    min-height: 58px;
    align-items: center;
    gap: 8px;
    padding: 11px 13px;
    border: 1px solid var(--line-new);
    border-radius: 12px;
    background: var(--panel-soft);
}

.account-identity-meta small { color: var(--muted-new); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.account-identity-meta strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-identity-meta em,
.account-identity-meta a { margin-left: auto; padding: 5px 7px; border-radius: 7px; background: var(--violet-soft); color: var(--violet); font-size: 8px; font-style: normal; font-weight: 800; text-decoration: none; white-space: nowrap; }

.account-settings-page .profile-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
}

.account-settings-page .profile-field { min-width: 0; margin: 0 0 18px; }
.account-settings-page .profile-fields-grid .profile-field { margin: 0; }
.account-settings-page .profile-field-wide { grid-column: 1 / -1; }
.account-settings-page .profile-field > label,
.account-settings-page .profile-field > legend {
    margin: 0 0 7px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
}

.account-settings-page .profile-field input[type="text"],
.account-settings-page .profile-field input[type="email"],
.account-settings-page .profile-field input[type="file"],
.account-settings-page .profile-field select,
.account-settings-page .profile-field textarea {
    width: 100%;
    max-width: none;
    min-height: 44px;
    border-color: color-mix(in srgb, var(--violet) 8%, var(--line-new));
    border-radius: 11px;
    background: var(--panel);
    font-size: 13px;
}

.account-settings-page .profile-field textarea { min-height: 120px; resize: vertical; }
.account-settings-page .profile-field input[type="file"] { padding: 6px; color: var(--muted-new); }
.account-settings-page .profile-field input[type="file"]::file-selector-button {
    min-height: 31px;
    margin-right: 10px;
    padding: 0 11px;
    border: 0;
    border-radius: 8px;
    background: var(--violet-soft);
    color: var(--violet);
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
}

.account-settings-page .help-text {
    position: static;
    display: block;
    width: auto;
    height: auto;
    margin-top: 6px;
    overflow: visible;
    color: var(--muted-new);
    font-size: 10px;
    line-height: 1.45;
}

.account-settings-page .avatar-field { margin-top: 20px; }
.account-settings-page .avatar-uploader {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 17px;
    border: 1px solid color-mix(in srgb, var(--violet) 13%, var(--line-new));
    border-radius: 15px;
    background: var(--panel-soft);
}
.account-settings-page .avatar-uploader-visual {
    position: relative;
    display: grid;
    width: 96px;
    height: 96px;
    place-items: center;
    overflow: hidden;
    border: 4px solid var(--panel);
    border-radius: 50%;
    background: linear-gradient(145deg, #9176e3, var(--violet));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--violet) 18%, var(--line-new)), 0 10px 24px rgba(104, 66, 216, .14);
}
.account-settings-page .profile-avatar-preview,
.account-settings-page .avatar-new-preview {
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: inherit;
    object-fit: cover;
    box-shadow: none;
}
.account-settings-page .avatar-new-preview { position: absolute; inset: 0; }
.account-settings-page .avatar-new-preview[hidden],
.account-settings-page .profile-avatar-preview[hidden],
.account-settings-page .avatar-placeholder[hidden] { display: none; }
.account-settings-page .avatar-placeholder {
    color: #fff;
    font-family: Georgia, serif;
    font-size: 36px;
    font-weight: 700;
}
.account-settings-page .avatar-uploader-content { display: grid; min-width: 0; gap: 6px; }
.account-settings-page .avatar-uploader-content > strong { color: var(--ink); font-family: Georgia, serif; font-size: 19px; font-weight: 500; }
.account-settings-page .avatar-uploader-content > p { max-width: 520px; margin: 0; color: var(--muted-new); font-size: 10px; line-height: 1.55; }
.account-settings-page .avatar-uploader-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 5px; }
.account-settings-page .avatar-upload-button,
.account-settings-page .avatar-remove-button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0 11px;
    border: 1px solid color-mix(in srgb, var(--violet) 19%, var(--line-new));
    border-radius: 10px;
    background: var(--panel);
    color: var(--violet);
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.account-settings-page .avatar-upload-button:hover { border-color: color-mix(in srgb, var(--violet) 38%, var(--line-new)); background: var(--violet-soft); }
.account-settings-page .avatar-upload-button svg,
.account-settings-page .avatar-remove-button svg { width: 15px; height: 15px; }
.account-settings-page .avatar-remove-button { border-color: color-mix(in srgb, var(--red) 18%, var(--line-new)); color: var(--red); }
.account-settings-page .avatar-remove-button:hover,
.account-settings-page .avatar-remove-button:has(input:checked) { border-color: color-mix(in srgb, var(--red) 35%, var(--line-new)); background: color-mix(in srgb, var(--red) 8%, var(--panel)); }
.account-settings-page .avatar-file-input,
.account-settings-page .avatar-remove-button input[type="checkbox"] {
    position: absolute;
    width: 1px;
    min-width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}
.account-settings-page .avatar-file-status { overflow: hidden; color: var(--muted-new); font-size: 9px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.account-settings-page .avatar-uploader.is-removing .avatar-uploader-visual { filter: grayscale(.75); opacity: .55; }
.account-settings-page .avatar-uploader.is-removing .avatar-file-status { color: var(--red); }

.account-settings-page .review-participation-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) minmax(230px, 31%);
    gap: 15px;
    align-items: center;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--violet) 14%, var(--line-new));
    border-radius: 14px;
    background: var(--panel-soft);
}
.account-settings-page .review-participation-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 13px; background: var(--panel); color: var(--violet); }
.account-settings-page .review-participation-icon svg { width: 22px; height: 22px; }
.account-settings-page .review-participation-card > div:nth-child(2) { display: grid; gap: 4px; }
.account-settings-page .review-participation-card > div:nth-child(2) strong { color: var(--ink); font-size: 12px; }
.account-settings-page .review-participation-card > div:nth-child(2) p { margin: 0; color: var(--muted-new); font-size: 9px; line-height: 1.5; }
.account-settings-page .review-participation-card .profile-field { margin: 0; }

.account-settings-page .checkbox-group { padding: 0; border: 0; }
.account-settings-page .checkbox-group ul,
.account-settings-page .checkbox-group > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}
.account-settings-page .checkbox-group li,
.account-settings-page .checkbox-group > div > div { min-width: 0; margin: 0; }
.account-settings-page .checkbox-group label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px;
    width: 100%;
    min-height: 46px;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 8px 12px;
    border: 1px solid var(--line-new);
    border-radius: 11px;
    background: var(--panel);
    color: var(--muted-new);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.account-settings-page .profile-form .checkbox-group label input[type="checkbox"] {
    flex: 0 0 36px;
    margin: 0;
}
.account-settings-page .checkbox-group label:has(input:checked) {
    border-color: color-mix(in srgb, var(--violet) 30%, var(--line-new));
    background: color-mix(in srgb, var(--violet-soft) 65%, var(--panel));
    color: var(--violet-dark);
}

.account-settings-page input[type="checkbox"] {
    position: relative;
    width: 36px;
    min-width: 36px;
    height: 21px;
    margin: 0 0 0 auto;
    order: 2;
    appearance: none;
    border: 1px solid color-mix(in srgb, var(--muted-new) 28%, var(--line-new));
    border-radius: 999px;
    outline: 0;
    background: color-mix(in srgb, var(--muted-new) 14%, var(--panel));
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.account-settings-page input[type="checkbox"]::after {
    position: absolute;
    top: 50%;
    left: 3px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--panel);
    box-shadow: 0 1px 4px rgba(31, 24, 58, .18);
    content: "";
    transform: translateY(-50%);
    transition: transform .18s ease;
}
.account-settings-page input[type="checkbox"]:checked {
    border-color: var(--violet);
    background: var(--violet);
}
.account-settings-page input[type="checkbox"]:checked::after { transform: translate(15px, -50%); }
.account-settings-page input[type="checkbox"]:focus-visible { box-shadow: 0 0 0 3px var(--violet-soft); }

.account-settings-page .notification-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.account-settings-page .notification-channel {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line-new);
    border-radius: 14px;
    background: var(--panel-soft);
}

.account-settings-page .notification-channel h3 {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding-bottom: 11px;
    color: var(--ink);
    font-size: 14px;
}
.account-settings-page .notification-channel h3::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--violet) 0 34px, color-mix(in srgb, var(--violet) 16%, var(--line-new)) 34px 72%, transparent 100%);
    content: "";
}

.account-settings-page .notification-channel h3 svg { width: 17px; height: 17px; color: var(--violet); }
.account-settings-page .notification-channel > .muted { margin: -3px 0 12px; font-size: 10px; line-height: 1.5; }
.account-settings-page .checkbox-list { display: grid; gap: 7px; }
.account-settings-page .checkbox-list li { margin: 0; }
.account-settings-page .checkbox-list label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px;
    min-height: 38px;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: var(--panel);
    color: var(--text);
    font-size: 10px;
    line-height: 1.4;
}
.account-settings-page .profile-form .checkbox-list label input[type="checkbox"],
.account-settings-page .profile-form .avatar-clear input[type="checkbox"] {
    flex: 0 0 36px;
    margin: 0;
}
.account-settings-page .profile-form .avatar-clear {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px;
    min-width: min(100%, 260px);
    align-items: center;
    gap: 12px;
}
.account-settings-page .checkbox-list label:has(input:checked) { color: var(--ink); }
.account-settings-page .checkbox-list input[type="checkbox"] { width: 36px; min-width: 36px; height: 21px; }
.account-settings-page .checkbox-list .muted { display: block; margin: 4px 8px 0 10px; font-size: 9px; line-height: 1.45; }
.account-settings-page .privacy-options { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.account-settings-page .privacy-options label { border-color: var(--line-new); background: color-mix(in srgb, var(--panel) 96%, var(--violet-soft)); }

.account-settings-page .profile-save-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    border: 1px solid color-mix(in srgb, var(--violet) 18%, var(--line-new));
    border-radius: 15px;
    background: color-mix(in srgb, var(--violet-soft) 54%, var(--panel));
}
.account-settings-page .profile-save-bar > span { display: grid; gap: 3px; }
.account-settings-page .profile-save-bar strong { color: var(--ink); font-size: 12px; }
.account-settings-page .profile-save-bar small { color: var(--muted-new); font-size: 9px; }
.account-settings-page .profile-save-bar button {
    min-height: 42px;
    margin: 0;
    padding: 0 18px;
    border: 0;
    border-radius: 11px;
    background: var(--violet);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.account-settings-page .profile-save-bar button:hover { background: var(--violet-dark); }

@media (max-width: 760px) {
    .account-settings-page { gap: 12px; }
    .account-settings-hero { padding: 23px 20px 25px; border-radius: 17px; }
    .account-settings-hero h1 { font-size: 34px; }
    .account-settings-hero p { font-size: 13px; }
    .account-settings-page .profile-links { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 7px; }
    .account-settings-page .profile-links > a { min-height: 42px; justify-content: center; padding: 0 7px; font-size: 11px; }
    .account-settings-page .profile-links > a svg { width: 15px; height: 15px; }
    .account-settings-page .settings-logout-form { grid-column: 1 / -1; justify-self: stretch; margin: 0; }
    .account-settings-page .settings-logout-form button.profile-logout { width: 100%; min-height: 42px; justify-content: center; }
    .account-settings-page .profile-section { padding: 20px 16px; border-radius: 16px; }
    .account-settings-page .profile-section::before { top: 18px; right: 16px; width: 31px; height: 31px; }
    .account-settings-page .profile-section-heading { grid-template-columns: 1fr; gap: 8px; margin-bottom: 18px; padding: 0 42px 15px 0; }
    .account-settings-page .profile-section-heading h2 { font-size: 24px; }
    .account-settings-page .profile-section-heading p { font-size: 12px; }
    .account-settings-page .avatar-uploader { grid-template-columns: 78px minmax(0, 1fr); gap: 13px; padding: 14px; }
    .account-settings-page .avatar-uploader-visual { width: 78px; height: 78px; }
    .account-settings-page .avatar-placeholder { font-size: 30px; }
    .account-settings-page .avatar-uploader-content > strong { font-size: 18px; }
    .account-settings-page .avatar-uploader-content > p { font-size: 11px; }
    .account-settings-page .review-participation-card { grid-template-columns: 40px minmax(0, 1fr); padding: 13px; }
    .account-settings-page .review-participation-icon { width: 40px; height: 40px; border-radius: 11px; }
    .account-settings-page .review-participation-card .profile-field { grid-column: 1 / -1; }
    .account-identity-meta,
    .account-settings-page .profile-fields-grid,
    .account-settings-page .notification-settings,
    .account-settings-page .privacy-options { grid-template-columns: 1fr; }
    .account-identity-meta > span { flex-wrap: wrap; }
    .account-identity-meta small { width: 100%; }
    .account-settings-page .profile-field > label,
    .account-settings-page .profile-field > legend { font-size: 13px; }
    .account-settings-page .profile-field input[type="text"],
    .account-settings-page .profile-field input[type="email"],
    .account-settings-page .profile-field input[type="file"],
    .account-settings-page .profile-field select,
    .account-settings-page .profile-field textarea { min-height: 47px; font-size: 16px; }
    .account-settings-page .checkbox-group ul,
    .account-settings-page .checkbox-group > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-settings-page .checkbox-group label { min-height: 46px; padding: 8px 9px 8px 11px; font-size: 11px; }
    .account-settings-page .notification-channel { padding: 13px; }
    .account-settings-page .checkbox-list label { min-height: 42px; font-size: 12px; }
    .account-settings-page .profile-save-bar { align-items: stretch; flex-direction: column; padding: 15px; }
    .account-settings-page .profile-save-bar strong { font-size: 13px; }
    .account-settings-page .profile-save-bar small { font-size: 10px; line-height: 1.45; }
    .account-settings-page .profile-save-bar button { width: 100%; min-height: 46px; font-size: 13px; }
}

@media (max-width: 430px) {
    .account-settings-page .profile-links { grid-template-columns: 1fr; }
    .account-settings-page .profile-links > a { justify-content: flex-start; padding-inline: 12px; }
    .account-settings-page .checkbox-group ul,
    .account-settings-page .checkbox-group > div { grid-template-columns: 1fr; }
    .account-settings-page .avatar-uploader { grid-template-columns: 1fr; text-align: center; }
    .account-settings-page .avatar-uploader-visual { margin-inline: auto; }
    .account-settings-page .avatar-uploader-actions { display: grid; grid-template-columns: 1fr; }
    .account-settings-page .avatar-upload-button,
    .account-settings-page .avatar-remove-button { width: 100%; }
    .account-settings-page .avatar-file-status { white-space: normal; }
}

/* Modern followers and following directory */
.page-layout:has(.follow-directory) {
    width: 100%;
    max-width: 920px;
    grid-template-columns: minmax(0, 1fr);
}

.page-layout:has(.follow-directory) > .sidebar-column { display: none; }
.page-layout:has(.follow-directory) > .content-column { min-width: 0; }

.follow-directory { min-width: 0; }

.follow-directory-header {
    margin-bottom: 14px;
    padding: clamp(22px, 4vw, 36px);
    border-radius: 20px;
}

.follow-directory-back {
    display: inline-flex;
    margin-bottom: 22px;
    color: var(--muted-new);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.follow-directory-back:hover,
.follow-directory-back:focus-visible { color: var(--violet); }

.follow-directory-title {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 5px;
}

.follow-directory-title > div { min-width: 0; }
.follow-directory-title h1 {
    overflow: hidden;
    margin: 0;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 52px);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.05;
    text-overflow: ellipsis;
}

.follow-directory-title p {
    overflow: hidden;
    margin: 8px 0 0;
    color: var(--muted-new);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.follow-directory-count {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    place-items: center;
    border-radius: 17px;
    background: var(--violet-soft);
    color: var(--violet);
    font-size: 17px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.follow-directory-tabs {
    width: fit-content;
    max-width: 100%;
    margin: 25px 0 0;
}

.follow-directory-tabs a { min-width: 112px; text-align: center; }
.follow-people-list { display: grid; gap: 10px; }

.follow-person-card {
    display: grid;
    min-width: 0;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 17px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.follow-person-card:hover {
    border-color: color-mix(in srgb, var(--violet) 18%, var(--line-new));
    box-shadow: 0 12px 30px rgba(34, 24, 64, .055);
    transform: translateY(-1px);
}

.follow-person-avatar {
    display: block;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    border-radius: 50%;
    text-decoration: none;
}

.follow-person-avatar .profile-avatar-sm {
    width: 62px;
    height: 62px;
    margin: 0;
    border: 3px solid var(--panel);
    box-shadow: 0 8px 22px rgba(104, 66, 216, .16);
}

.follow-person-main { display: grid; min-width: 0; gap: 9px; }
.follow-person-identity { display: flex; min-width: 0; align-items: baseline; flex-wrap: wrap; gap: 5px 9px; }
.follow-person-identity h2 {
    overflow: hidden;
    min-width: 0;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.follow-person-identity h2 a { color: var(--ink); text-decoration: none; }
.follow-person-identity h2 a:hover { color: var(--violet); }
.follow-person-handle {
    overflow: hidden;
    min-width: 0;
    color: var(--muted-new);
    font-size: 11px;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.follow-person-meta { display: flex; min-width: 0; flex-wrap: wrap; gap: 6px; }
.follow-person-meta > span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 9px;
    background: var(--panel-soft);
    color: var(--muted-new);
    line-height: 1;
}

.follow-person-meta svg { width: 14px; height: 14px; color: var(--violet); }
.follow-person-meta b { color: var(--ink); font-size: 11px; font-variant-numeric: tabular-nums; }
.follow-person-meta small { font-size: 9px; }
.follow-person-date { margin: 0; color: var(--muted-new); font-size: 10px; line-height: 1.4; }
.follow-person-action { display: flex; min-width: 116px; justify-content: flex-end; }
.follow-person-action .follow-form { margin: 0; }
.follow-person-button,
a.follow-person-button {
    display: inline-flex;
    min-width: 116px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: var(--violet);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.follow-person-button:hover,
.follow-person-button:focus-visible { background: var(--violet-dark); color: #fff; }
.follow-person-button.is-following {
    border-color: var(--line-new);
    background: var(--panel);
    color: var(--violet);
    box-shadow: none;
}
.follow-person-button.is-following:hover { border-color: color-mix(in srgb, var(--red) 28%, var(--line-new)); background: color-mix(in srgb, var(--red) 6%, var(--panel)); color: var(--red); }

.follow-person-self {
    padding: 7px 10px;
    border-radius: 9px;
    background: var(--panel-soft);
    color: var(--muted-new);
    font-size: 10px;
    font-weight: 750;
}

.follow-directory-empty {
    display: grid;
    justify-items: center;
    padding: 44px 24px;
    text-align: center;
}

.follow-directory-empty > span { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 16px; background: var(--violet-soft); color: var(--violet); }
.follow-directory-empty svg { width: 24px; height: 24px; }
.follow-directory-empty h2 { margin: 15px 0 5px; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.follow-directory-empty p { max-width: 430px; margin: 0; color: var(--muted-new); font-size: 12px; }

@media (max-width: 640px) {
    .follow-directory-header { padding: 20px 17px; }
    .follow-directory-back { margin-bottom: 18px; font-size: 13px; }
    .follow-directory-title { gap: 12px; }
    .follow-directory-title h1 { font-size: clamp(34px, 11vw, 43px); white-space: normal; }
    .follow-directory-title p { font-size: 13px; }
    .follow-directory-count { width: 46px; height: 46px; flex-basis: 46px; border-radius: 14px; font-size: 15px; }
    .follow-directory-tabs { width: 100%; }
    .follow-directory-tabs a { min-width: 0; flex: 1 1 50%; font-size: 13px; }
    .follow-person-card {
        grid-template-columns: 52px minmax(0, 1fr);
        align-items: start;
        gap: 12px;
        padding: 16px;
    }
    .follow-person-card:hover { transform: none; }
    .follow-person-avatar,
    .follow-person-avatar .profile-avatar-sm { width: 52px; height: 52px; }
    .follow-person-identity { display: grid; gap: 2px; }
    .follow-person-identity h2 { max-width: 100%; font-size: 19px; white-space: normal; overflow-wrap: anywhere; }
    .follow-person-handle { max-width: 100%; font-size: 12px; }
    .follow-person-meta { gap: 5px; }
    .follow-person-meta > span { min-height: 30px; }
    .follow-person-meta b { font-size: 12px; }
    .follow-person-meta small { font-size: 10px; }
    .follow-person-date { font-size: 11px; }
    .follow-person-action { width: 100%; min-width: 0; grid-column: 1 / -1; }
    .follow-person-action .follow-form,
    .follow-person-button,
    a.follow-person-button { width: 100%; }
    .follow-person-button,
    a.follow-person-button { min-height: 43px; font-size: 12px; }
    .follow-person-self { width: 100%; padding: 10px; font-size: 12px; text-align: center; }
}

/* Compact stat variant used by author cards */
.author-card-modern .profile-stats-compact {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin: 2px 0 0;
    padding: 0;
    overflow: visible;
}

.author-card-modern .profile-stats-compact .profile-stat {
    display: flex;
    min-width: 0;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 6px 3px;
    border: 1px solid var(--line-new);
    border-radius: 10px;
    background: var(--panel-soft);
    color: var(--ink);
    transform: none;
}

.author-card-modern .profile-stats-compact .profile-stat:has(.profile-stat-link):hover {
    border-color: color-mix(in srgb, var(--violet) 24%, var(--line-new));
    background: var(--violet-soft);
    transform: none;
}

.author-card-modern .profile-stats-compact .profile-stat-link {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
}

.author-card-modern .profile-stats-compact .profile-stat-icon-wrap {
    display: grid;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    place-items: center;
    border-radius: 7px;
    background: var(--panel);
    color: var(--violet);
}

.author-card-modern .profile-stats-compact .profile-stat-icon-wrap .poem-stat-icon {
    width: 13px;
    height: 13px;
    color: currentColor;
}

.author-card-modern .profile-stats-compact .profile-stat-dir {
    right: -3px;
    bottom: -3px;
    width: 10px;
    height: 10px;
    padding: 1px;
    border: 1px solid var(--panel-soft);
    background: var(--panel);
    color: var(--violet);
}

.author-card-modern .profile-stats-compact .profile-stat-content { display: block; min-width: 0; line-height: 1; }
.author-card-modern .profile-stats-compact .profile-stat-content strong { display: block; color: var(--ink); font-size: 9px; line-height: 1; }
.author-card-modern .profile-stats-compact .profile-stat-content small { display: none; }

@media (max-width: 560px) {
    .authors-grid {
        width: 100%;
        min-width: 0;
        grid-auto-rows: max-content;
        align-items: start;
    }

    .author-card-modern {
        display: flex;
        width: 100%;
        height: auto !important;
        min-width: 0;
        min-height: 0;
        align-self: start;
        justify-content: flex-start;
        padding: 20px 14px;
        overflow: visible;
    }

    .author-card-modern .author-card-main,
    .author-card-modern .author-card-identity {
        width: 100%;
        min-width: 0;
    }

    .author-card-modern .author-card-identity h2,
    .author-card-modern .author-card-date {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .author-card-modern .author-card-identity .follow-form,
    .author-card-modern .author-card-identity .button {
        align-self: center;
        margin-left: 0;
    }

    .author-card-modern .profile-stats-compact {
        display: flex !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0;
        align-items: stretch;
        flex: 0 0 auto;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 7px;
        margin: 4px 0 0;
        overflow: visible;
        opacity: 1;
        padding: 0;
        position: static;
        visibility: visible;
    }

    .author-card-modern .profile-stats-compact .profile-stat,
    .author-card-modern .profile-stats-compact .profile-stat-link {
        display: flex !important;
        min-width: 0;
        min-height: 48px;
        align-items: center;
        justify-content: flex-start;
        flex-direction: row;
        gap: 7px;
        opacity: 1;
        text-align: left;
        visibility: visible;
    }

    .author-card-modern .profile-stats-compact .profile-stat {
        width: calc(50% - 3.5px);
        flex: 0 0 calc(50% - 3.5px);
        padding: 7px 8px;
    }
    .author-card-modern .profile-stats-compact .profile-stat-link { padding: 0; }

    .author-card-modern .profile-stats-compact .profile-stat-icon-wrap {
        width: 27px;
        height: 27px;
        flex: 0 0 27px;
    }

    .author-card-modern .profile-stats-compact .profile-stat-content {
        display: grid;
        min-width: 0;
        gap: 2px;
    }

    .author-card-modern .profile-stats-compact .profile-stat-content strong { font-size: 10px; }
    .author-card-modern .profile-stats-compact .profile-stat-content small {
        display: block;
        overflow: hidden;
        max-width: 100%;
        font-size: 7px;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 340px) {
    .author-card-modern .profile-stats-compact .profile-stat {
        width: 100%;
        flex-basis: 100%;
    }
}

/* Search, ranking and review indicators */
.section-eyebrow {
    display: block;
    color: var(--violet);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.poem-stat-review {
    border-color: color-mix(in srgb, var(--violet) 14%, var(--line-new));
    background: color-mix(in srgb, var(--violet-soft) 58%, var(--panel));
}

.poem-stat-icon-review {
    width: 16px;
    height: 16px;
    color: var(--violet);
}

.ranking-heading {
    margin-bottom: 17px;
    padding: 4px 2px 0;
}

.ranking-heading h1 { margin: 7px 0 8px; }
.ranking-heading p { max-width: 580px; margin: 0; font-size: 11px; line-height: 1.55; }

.ranking-tabs {
    width: min(100%, 470px);
    margin-bottom: 20px;
    padding: 6px;
    border-radius: 15px;
}

.ranking-tabs a {
    min-height: 37px;
    flex: 1 1 0;
    justify-content: center;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 800;
}

.ranking-tabs a.active {
    background: var(--violet);
    color: #fff;
    box-shadow: 0 7px 18px rgba(104, 66, 216, .2);
}

.poem-card-ranked {
    position: relative;
    border-color: color-mix(in srgb, var(--violet) 12%, var(--line-new));
}

.poem-card-ranked .poem-card-title-row { align-items: center; }

.poem-rank {
    display: grid;
    width: 48px;
    height: 48px;
    min-width: 48px;
    flex: 0 0 48px;
    align-content: center;
    gap: 1px;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--violet) 16%, var(--line-new));
    border-radius: 14px;
    background: var(--violet-soft);
    color: var(--violet);
    font-family: inherit;
    line-height: 1;
    text-align: center;
}

.poem-rank strong { font-size: 16px; font-weight: 850; }
.poem-rank small { font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.page-layout:has(.rankings-page) { max-width: 1120px; grid-template-columns: minmax(0, 1fr); }
.page-layout:has(.rankings-page) > .sidebar-column { display: none; }
.rankings-page { display: grid; gap: 18px; }
.rankings-page .section-kicker { font-size: 11px; }
.rankings-hero { position: relative; display: grid; overflow: hidden; grid-template-columns: minmax(0, 1fr) 88px; gap: 22px; padding: 30px 30px 0; border: 1px solid color-mix(in srgb, var(--violet) 20%, var(--line-new)); border-radius: 22px; background: radial-gradient(circle at 91% 8%, color-mix(in srgb, var(--violet) 17%, transparent), transparent 36%), linear-gradient(135deg, var(--panel), color-mix(in srgb, var(--violet-soft) 45%, var(--panel))); box-shadow: 0 16px 40px rgba(34, 24, 64, .06); }
.rankings-hero::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(var(--violet), color-mix(in srgb, var(--violet) 25%, transparent)); content: ""; }
.rankings-hero-copy h1 { margin: 7px 0 8px; font-family: Georgia, serif; font-size: clamp(43px, 6vw, 62px); font-weight: 500; letter-spacing: -.05em; line-height: .98; }
.rankings-hero-copy p { max-width: 650px; margin: 0; color: var(--muted-new); font-size: 13px; line-height: 1.55; }
.rankings-hero-mark { display: grid; width: 82px; height: 82px; place-items: center; border-radius: 23px; background: linear-gradient(145deg, var(--violet), var(--violet-dark)); color: #fff; box-shadow: 0 14px 30px rgba(104, 66, 216, .24); }
.rankings-hero-mark svg { width: 38px; height: 38px; }
.ranking-kind-tabs { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 24px -30px 0; border-top: 1px solid color-mix(in srgb, var(--violet) 15%, var(--line-new)); background: color-mix(in srgb, var(--panel) 62%, transparent); }
.ranking-kind-tabs a { position: relative; display: flex; min-height: 66px; align-items: center; justify-content: center; gap: 9px; color: var(--muted-new); font-size: 12px; font-weight: 800; text-decoration: none; transition: background .18s ease, color .18s ease; }
.ranking-kind-tabs a + a { border-left: 1px solid color-mix(in srgb, var(--violet) 12%, var(--line-new)); }
.ranking-kind-tabs a::after { position: absolute; right: 22%; bottom: 0; left: 22%; height: 3px; border-radius: 999px 999px 0 0; background: var(--violet); content: ""; opacity: 0; transform: scaleX(.35); transition: opacity .18s ease, transform .18s ease; }
.ranking-kind-tabs a svg { width: 20px; height: 20px; color: var(--violet); }
.ranking-kind-tabs a:hover { background: color-mix(in srgb, var(--violet-soft) 42%, transparent); color: var(--violet-dark); }
.ranking-kind-tabs a.is-active { background: var(--violet-soft); color: var(--violet-dark); }
.ranking-kind-tabs a.is-active::after { opacity: 1; transform: scaleX(1); }
.ranking-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 15px 24px; padding: 18px; border: 1px solid var(--line-new); border-radius: 18px; background: var(--panel); box-shadow: 0 9px 28px rgba(34, 24, 64, .04); }
.ranking-active-copy { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 13px; }
.ranking-active-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: var(--violet-soft); color: var(--violet); }
.ranking-active-icon svg { width: 23px; height: 23px; }
.ranking-active-copy h2 { margin: 4px 0 3px; font-family: Georgia, serif; font-size: 24px; font-weight: 500; letter-spacing: -.025em; }
.ranking-active-copy p { margin: 0; color: var(--muted-new); font-size: 11px; line-height: 1.5; }
.ranking-period-tabs { display: flex; gap: 5px; padding: 5px; border: 1px solid var(--line-new); border-radius: 13px; background: var(--panel-soft); }
.ranking-period-tabs a { display: inline-flex; min-width: 78px; min-height: 39px; align-items: center; justify-content: center; padding: 0 11px; border-radius: 9px; color: var(--muted-new); font-size: 11px; font-weight: 800; text-decoration: none; }
.ranking-period-tabs a:hover { color: var(--violet); }
.ranking-period-tabs a.is-active { background: var(--violet); color: #fff; box-shadow: 0 7px 16px rgba(104, 66, 216, .2); }
.ranking-results { display: grid; gap: 14px; }
.ranking-results-heading { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 0 3px 17px; }
.ranking-results-heading::after { position: absolute; right: 3px; bottom: 0; left: 3px; height: 2px; border-radius: 999px; background: linear-gradient(90deg, var(--violet) 0 78px, color-mix(in srgb, var(--violet) 17%, var(--line-new)) 78px 100%); content: ""; }
.ranking-results-heading h2 { margin: 5px 0 0; font-family: Georgia, serif; font-size: 29px; font-weight: 500; letter-spacing: -.025em; }
.ranking-results-heading > p { margin: 0; color: var(--muted-new); font-size: 10px; }
.ranking-list { display: grid; gap: 13px; }
.ranking-list > .poem-card { margin: 0; border-radius: 19px; box-shadow: 0 9px 28px rgba(34, 24, 64, .04); }
.ranking-person-card, .ranking-discussion-card { position: relative; display: grid; grid-template-columns: 54px 66px minmax(180px, .7fr) minmax(390px, 1.3fr); align-items: center; gap: 15px; padding: 18px 20px; border: 1px solid var(--line-new); border-radius: 18px; background: var(--panel); box-shadow: 0 9px 28px rgba(34, 24, 64, .04); }
.ranking-position { display: grid; width: 48px; height: 48px; place-items: center; align-content: center; border-radius: 14px; background: var(--violet-soft); color: var(--violet); line-height: 1; }
.ranking-position strong { font-size: 16px; font-weight: 850; }
.ranking-position small { margin-top: 3px; font-size: 8px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.ranking-avatar, .ranking-mini-avatar { display: grid; overflow: hidden; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #9176e3, var(--violet)); color: #fff; text-decoration: none; }
.ranking-avatar { width: 62px; height: 62px; font-family: Georgia, serif; font-size: 25px; font-weight: 700; }
.ranking-avatar img, .ranking-mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ranking-person-copy { min-width: 0; }
.ranking-person-copy h3 { margin: 0; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.ranking-person-copy h3 a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--violet) 30%, transparent); text-underline-offset: 3px; }
.ranking-person-copy > span { color: var(--muted-new); font-size: 10px; }
.ranking-person-copy p { margin: 7px 0 0; color: var(--text); font-size: 11px; line-height: 1.5; }
.ranking-metrics { display: grid; grid-template-columns: repeat(5, minmax(62px, 1fr)); gap: 6px; margin: 0; }
.ranking-metrics > div { display: grid; min-height: 61px; place-items: center; align-content: center; gap: 4px; padding: 7px 4px; border-radius: 11px; background: var(--panel-soft); text-align: center; }
.ranking-metrics dt { display: inline-flex; align-items: center; gap: 4px; color: var(--muted-new); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.ranking-metrics dt svg { width: 14px; height: 14px; color: var(--violet); }
.ranking-metrics dd { margin: 0; color: var(--ink); font-family: Georgia, serif; font-size: 19px; }
.ranking-open-link { position: absolute; right: 20px; bottom: 8px; color: var(--violet); font-size: 10px; font-weight: 800; text-decoration: none; }
.ranking-open-link span { margin-left: 4px; }
.ranking-discussion-card { grid-template-columns: 54px minmax(0, 1fr); align-items: start; padding-bottom: 31px; }
.ranking-discussion-main { min-width: 0; }
.ranking-discussion-main > header { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.ranking-mini-avatar { width: 38px; height: 38px; font-family: Georgia, serif; font-size: 16px; }
.ranking-discussion-main header > div { display: grid; gap: 2px; }
.ranking-discussion-main header > div a { color: var(--ink); font-size: 12px; font-weight: 850; }
.ranking-discussion-main time { color: var(--muted-new); font-size: 10px; }
.ranking-score, .ranking-review-rating { display: inline-flex; min-height: 34px; align-items: center; gap: 5px; padding: 0 11px; border-radius: 10px; background: var(--violet-soft); color: var(--violet); font-size: 12px; font-weight: 850; }
.ranking-score svg, .ranking-review-rating svg { width: 15px; height: 15px; }
.ranking-review-rating {
    background: color-mix(in srgb, #d39a22 14%, var(--panel));
    color: #a86d09;
}
.ranking-discussion-main blockquote { margin: 13px 0 10px; padding: 14px 16px; border: 0; border-left: 3px solid var(--violet); border-radius: 0 12px 12px 0; background: var(--panel-soft); color: var(--text); font-family: Georgia, serif; font-size: 16px; line-height: 1.65; }
.ranking-discussion-main > footer { display: flex; justify-content: space-between; gap: 15px; color: var(--muted-new); font-size: 10px; }
.ranking-poem-link { color: var(--violet); font-weight: 750; text-decoration-color: color-mix(in srgb, var(--violet) 35%, transparent); text-underline-offset: 3px; }
.ranking-poem-link:hover { color: var(--violet-dark); text-decoration-color: currentColor; }
.ranking-empty { display: grid; min-height: 320px; place-items: center; align-content: center; gap: 9px; padding: 34px; border: 1px dashed color-mix(in srgb, var(--violet) 30%, var(--line-new)); border-radius: 19px; background: radial-gradient(circle at 50% 0%, var(--violet-soft), transparent 48%), var(--panel); text-align: center; }
.ranking-empty > span { display: grid; width: 62px; height: 62px; place-items: center; border-radius: 19px; background: var(--violet-soft); color: var(--violet); }
.ranking-empty > span svg { width: 29px; height: 29px; }
.ranking-empty h3 { margin: 3px 0 0; font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.ranking-empty p { max-width: 500px; margin: 0; color: var(--muted-new); font-size: 12px; line-height: 1.55; }
.rankings-page .poem-card-author-name { font-size: 12px; }
.rankings-page .poem-card-author-meta .follow-form button,
.rankings-page .poem-card-author-meta a.button { font-size: 10px; }
.rankings-page .poem-card-meta { font-size: 11px; }
.rankings-page .poem-card-summary { font-size: 13px; }
.rankings-page .poem-card-body { font-size: 17px; }
.rankings-page .poem-read-more { font-size: 10px; }
.rankings-page .poem-stat { font-size: 10px; }
.rankings-page .poem-review-score-mark { font-size: 9px; }
.rankings-page .poem-stat-review-score small { font-size: 9px; }
.rankings-page .poem-tag { font-size: 10px; }
.ranking-empty .button { margin-top: 8px; }

@media (max-width: 760px) {
    .rankings-page { gap: 14px; }
    .rankings-hero { grid-template-columns: minmax(0, 1fr) 54px; gap: 12px; padding: 21px 16px 0; border-radius: 18px; }
    .rankings-hero-copy h1 { font-size: 39px; }
    .rankings-hero-copy p { font-size: 12px; }
    .rankings-hero-mark { width: 54px; height: 54px; border-radius: 16px; }
    .rankings-hero-mark svg { width: 26px; height: 26px; }
    .ranking-kind-tabs { overflow-x: auto; grid-template-columns: repeat(4, minmax(105px, 1fr)); margin: 19px -16px 0; scrollbar-width: none; }
    .ranking-kind-tabs::-webkit-scrollbar { display: none; }
    .ranking-kind-tabs a { min-height: 59px; gap: 7px; font-size: 11px; }
    .ranking-kind-tabs a svg { width: 18px; height: 18px; }
    .ranking-toolbar { grid-template-columns: 1fr; gap: 13px; padding: 14px; border-radius: 16px; }
    .ranking-active-copy { grid-template-columns: 42px minmax(0, 1fr); gap: 10px; }
    .ranking-active-icon { width: 42px; height: 42px; border-radius: 12px; }
    .ranking-active-copy h2 { font-size: 21px; }
    .ranking-period-tabs { width: 100%; }
    .ranking-period-tabs a { min-width: 0; flex: 1 1 0; }
    .ranking-results-heading { align-items: start; flex-direction: column; gap: 4px; padding: 0 2px 14px; }
    .ranking-results-heading h2 { font-size: 24px; }
    .ranking-person-card { grid-template-columns: 45px 52px minmax(0, 1fr); gap: 10px; padding: 14px 13px; border-radius: 16px; }
    .ranking-position { width: 43px; height: 43px; border-radius: 12px; }
    .ranking-avatar { width: 50px; height: 50px; }
    .ranking-person-copy h3 { font-size: 19px; }
    .ranking-person-copy p { display: none; }
    .ranking-metrics { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .ranking-metrics > div { min-height: 58px; padding-inline: 7px; }
    .ranking-metrics > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .ranking-metrics dt { display: inline-flex; justify-items: center; gap: 4px; font-size: 9px; }
    .ranking-metrics dd { font-size: 18px; }
    .ranking-open-link { right: 14px; bottom: 10px; }
    .ranking-discussion-card { grid-template-columns: 43px minmax(0, 1fr); gap: 10px; padding: 14px 13px 34px; border-radius: 16px; }
    .ranking-discussion-main > header { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; }
    .ranking-mini-avatar { width: 34px; height: 34px; }
    .ranking-discussion-main blockquote { margin-top: 11px; padding: 12px; font-size: 15px; }
    .ranking-discussion-main > footer { align-items: flex-start; flex-direction: column; gap: 4px; }
    .ranking-empty { min-height: 290px; padding: 28px 17px; }
}

.search-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    padding: clamp(23px, 4vw, 36px);
    border: 1px solid var(--line-new);
    border-radius: 19px;
    background:
        radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--violet-soft) 85%, transparent) 0, transparent 38%),
        var(--panel);
}

.search-hero h1 {
    max-width: 680px;
    margin: 8px 0 9px;
    color: var(--ink);
    font-family: Georgia, serif;
    font-size: clamp(35px, 5vw, 52px);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.04;
}

.search-hero > p { margin: 0; color: var(--muted-new); font-size: 11px; line-height: 1.55; }

.portal-search-form {
    display: flex;
    max-width: 760px;
    align-items: stretch;
    gap: 9px;
    margin: 22px 0 0;
}

.portal-search-field {
    display: flex;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    flex: 1 1 auto;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--line-new);
    border-radius: 13px;
    background: var(--paper);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.portal-search-field:focus-within {
    border-color: color-mix(in srgb, var(--violet) 58%, var(--line-new));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet-soft) 70%, transparent);
}

.portal-search-field > svg { width: 19px; height: 19px; flex: 0 0 19px; color: var(--violet); }

.portal-search-form input[type="search"] {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    box-shadow: none;
    font-size: 12px;
}

.portal-search-form input[type="search"]::placeholder { color: var(--muted-new); opacity: .82; }

.portal-search-clear {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    border-radius: 8px;
    background: var(--panel-soft);
    color: var(--muted-new);
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
}

.portal-search-clear:hover { background: var(--violet-soft); color: var(--violet); }

.portal-search-form > button {
    min-width: 112px;
    min-height: 48px;
    justify-content: center;
    padding: 0 20px;
    border: 0;
    border-radius: 13px;
    background: var(--violet);
    color: #fff;
    box-shadow: 0 8px 20px rgba(104, 66, 216, .2);
    font-size: 10px;
    font-weight: 800;
}

.portal-search-form > button:hover,
.portal-search-form > button:focus-visible { background: var(--violet-dark); color: #fff; }

.search-results-heading,
.search-suggestions {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
    margin: 0 0 14px;
}

.search-results-heading h2,
.search-suggestions h2 {
    margin: 5px 0 0;
    color: var(--ink);
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -.02em;
}

.search-results-count {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 9px;
    background: var(--panel-soft);
    color: var(--muted-new);
    font-size: 8px;
    font-weight: 750;
}

.search-empty {
    display: grid;
    gap: 6px;
    padding: 25px;
    border-style: dashed;
    text-align: center;
}

.search-empty strong { color: var(--ink); font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.search-empty p { margin: 0; color: var(--muted-new); font-size: 10px; }

.search-suggestions {
    align-items: flex-start;
    flex-direction: column;
    padding: 21px 23px;
    border: 1px solid var(--line-new);
    border-radius: 16px;
    background: var(--panel);
}

.search-suggestions nav { display: flex; flex-wrap: wrap; gap: 7px; }
.search-suggestions a {
    padding: 8px 11px;
    border-radius: 9px;
    background: var(--panel-soft);
    color: var(--violet);
    font-size: 9px;
    font-weight: 750;
    text-decoration: none;
}
.search-suggestions a:hover { background: var(--violet-soft); }

@media (max-width: 560px) {
    .ranking-heading h1 { font-size: 36px; }
    .ranking-tabs { width: 100%; }
    .poem-rank { width: 43px; height: 43px; min-width: 43px; flex-basis: 43px; border-radius: 12px; }
    .poem-rank strong { font-size: 14px; }
    .poem-card-ranked .poem-card-title-row { gap: 10px; }
    .poem-card-ranked .poem-card-title-row h2 { font-size: 23px; }

    .search-hero { padding: 25px 18px 20px; border-radius: 17px; }
    .search-hero h1 { font-size: 38px; }
    .portal-search-form { align-items: stretch; flex-direction: column; }
    .portal-search-form > button { width: 100%; }
    .portal-search-form input[type="search"] { font-size: 16px; }
    .search-results-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
    .search-results-heading h2 { font-size: 22px; }
}

@media (max-width: 680px) {
    .poem-info { align-items: stretch; flex-direction: column; }
    .poem-info-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .poem-info > .report-control { align-self: flex-start; }
    .related-poems-col { padding: 18px; }
    .related-poems li a { min-height: 42px; font-size: 13px; }
}

@media (max-width: 380px) {
    .poem-info-list { grid-template-columns: 1fr; }
}
