:root {
    --bg: #f3ede1;
    --bg-strong: #ece3d2;
    --surface: rgba(255, 251, 245, 0.88);
    --surface-strong: #f6ede1;
    --surface-dark: #15332d;
    --surface-dark-soft: #1d4239;
    --line: rgba(21, 51, 45, 0.12);
    --line-strong: rgba(21, 51, 45, 0.2);
    --text: #1d2725;
    --muted: #66716d;
    --primary: #156f5d;
    --primary-strong: #0e5144;
    --accent: #df9952;
    --accent-soft: rgba(223, 153, 82, 0.16);
    --danger: #b64e3d;
    --shadow-sm: 0 4px 12px rgba(31, 39, 37, 0.05), 0 1px 3px rgba(31, 39, 37, 0.03);
    --shadow: 0 12px 32px rgba(31, 39, 37, 0.08), 0 4px 12px rgba(31, 39, 37, 0.04);
    --shadow-hover: 0 20px 48px rgba(31, 39, 37, 0.12), 0 8px 24px rgba(31, 39, 37, 0.06);
    --radius: 28px;
    --radius-md: 22px;
    --radius-sm: 16px;
    --container: min(1240px, calc(100vw - 48px));
    --font-body: system-ui, -apple-system, "Bahnschrift", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-display: system-ui, -apple-system, "Bahnschrift", "PingFang SC", "Microsoft YaHei", sans-serif;
    --transition: 240ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 720ms cubic-bezier(0.16, 1, 0.3, 1);
    --reveal-distance: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: var(--font-body);
    background:
        radial-gradient(circle at top left, rgba(223, 153, 82, 0.24), transparent 24%),
        radial-gradient(circle at top right, rgba(21, 111, 93, 0.12), transparent 22%),
        linear-gradient(180deg, #f6f0e6 0%, #f2ebdf 52%, #ece3d7 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

@keyframes fade-lift-in {
    from {
        opacity: 0;
        transform: translate3d(0, 22px, 0) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes fade-right-in {
    from {
        opacity: 0;
        transform: translate3d(-24px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fade-left-in {
    from {
        opacity: 0;
        transform: translate3d(24px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes header-drop-in {
    from {
        opacity: 0;
        transform: translate3d(0, -16px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes soft-float {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -6px, 0);
    }
}

@keyframes soft-pulse {
    0%,
    100% {
        box-shadow: 0 4px 15px rgba(21, 111, 93, 0.22);
    }

    50% {
        box-shadow: 0 8px 24px rgba(21, 111, 93, 0.34);
    }
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

img {
    display: block;
    max-width: 100%;
}

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

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(21, 111, 93, 0.16);
}

input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: 0;
    box-shadow: none;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(21, 51, 45, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

body.is-ready .site-header {
    animation: header-drop-in 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.header-row,
.footer-row,
.section-head,
.meta-row,
.list-head,
.panel-head,
.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.header-row {
    position: relative;
    min-height: 80px;
    flex-wrap: nowrap;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 0 1 auto;
}

.brand-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1.1rem;
}

.brand small,
.meta-row span,
.list-head span,
.hint-box span,
.metric-card small,
.admin-list-item span,
.score-strip span,
.score-panel span,
.related-panel span,
.spotlight-item span,
.footer-links {
    color: var(--muted);
}

.brand-mark {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #357868, var(--accent));
    color: white;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
    animation: soft-float 4.8s ease-in-out infinite;
}

.site-nav,
.hero-actions,
.category-list,
.quick-tags,
.pagination,
.score-inline,
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.site-nav {
    align-items: center;
    margin-left: 0;
}

.header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex: 1 1 auto;
    min-width: 0;
}

.nav-divider {
    width: 1px;
    height: 20px;
    background: rgba(21, 51, 45, 0.1);
    margin: 0 4px;
}

.header-tools-bottom {
    border-top: 1px solid rgba(21, 51, 45, 0.04);
    background: rgba(250, 250, 250, 0.4);
}

.site-flash-strip {
    padding-top: 14px;
}

.header-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.header-tags::-webkit-scrollbar {
    display: none;
}

.tags-label {
    font-size: 0.85rem;
    color: var(--muted);
    white-space: nowrap;
    font-weight: 500;
}

.site-nav a,
.header-tags a,
.quick-tags a,
.pagination a,
.admin-nav a {
    padding: 11px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid transparent;
    transition: all var(--transition);
}

.site-nav a:hover,
.site-nav a.is-active,
.header-tags a:hover,
.quick-tags a:hover,
.quick-tags a.is-active,
.pagination a:hover,
.pagination a.is-active,
.admin-nav a:hover,
.admin-nav a.is-active {
    transform: translateY(-2px);
    border-color: rgba(21, 111, 93, 0.18);
    background: rgba(21, 111, 93, 0.12);
    color: var(--primary-strong);
    box-shadow: 0 4px 12px rgba(21, 111, 93, 0.08);
}

.menu-toggle {
    display: none;
    margin-left: 0;
    border: 1px solid rgba(21, 111, 93, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-strong);
    padding: 10px;
    align-items: center;
    justify-content: center;
}

.search-form {
    display: flex;
    gap: 12px;
    width: min(100%, 560px);
}

.header-search {
    flex: 1 1 320px;
    max-width: 440px;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.header-search svg {
    position: absolute;
    left: 16px;
    color: var(--muted);
    pointer-events: none;
}

.search-form input,
.stack-form input,
.stack-form select,
.stack-form textarea {
    width: 100%;
    border: 1px solid rgba(21, 51, 45, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    padding: 15px 18px;
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all var(--transition);
}

.header-search input {
    width: 100%;
    padding: 11px 16px 11px 44px;
    border: 1px solid rgba(21, 51, 45, 0.08);
    border-radius: 999px;
    background: rgba(245, 245, 245, 0.6);
    font-size: 0.95rem;
    transition: all var(--transition);
}

.header-search input:focus {
    background: #fff;
    border-color: rgba(21, 111, 93, 0.2);
    box-shadow: 0 0 0 4px rgba(21, 111, 93, 0.08);
}

.header-tools.is-open {
    display: flex;
}

body.is-ready .brand {
    animation: fade-right-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.is-ready .header-tools-bottom {
    animation: fade-lift-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.search-form input:focus,
.stack-form input:focus,
.stack-form select:focus,
.stack-form textarea:focus {
    background: #ffffff;
    border-color: rgba(21, 111, 93, 0.24);
}

.header-search input::placeholder,
.search-form input::placeholder,
.stack-form input::placeholder,
.stack-form textarea::placeholder {
    color: rgba(102, 113, 109, 0.82);
}

.button {
    border: 0;
    border-radius: 18px;
    padding: 14px 20px;
    cursor: pointer;
    transition: all var(--transition);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(21, 111, 93, 0.16);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(21, 111, 93, 0.12);
}

.button-primary {
    background: linear-gradient(135deg, var(--primary), #1e8a74);
    color: white;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.75);
    color: var(--text);
    border: 1px solid rgba(21, 51, 45, 0.08);
}

.button-danger {
    background: linear-gradient(135deg, var(--danger), #d06b57);
    color: white;
}

.button-block {
    width: 100%;
}

.hero,
.page-hero {
    padding: 28px 0 18px;
}

.section {
    padding: 36px 0;
}

.hero-grid,
.split-grid,
.layout-grid,
.detail-grid,
.admin-grid,
.form-grid {
    display: grid;
    gap: 28px;
}

.hero-grid {
    position: relative;
    grid-template-columns: 1.03fr 0.97fr;
    align-items: stretch;
    padding: 42px;
    min-height: 560px;
    border-radius: 36px;
    overflow: hidden;
    background:
        radial-gradient(circle at left top, rgba(223, 153, 82, 0.24), transparent 30%),
        linear-gradient(135deg, rgba(255, 252, 246, 0.9), rgba(245, 236, 224, 0.88));
    border: 1px solid rgba(21, 51, 45, 0.08);
    box-shadow: var(--shadow);
}

.hero-grid::before {
    content: "";
    position: absolute;
    inset: auto -120px -160px auto;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(21, 111, 93, 0.12), transparent 65%);
}

.hero-copy,
.feature-card {
    position: relative;
    z-index: 1;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.hero-copy h1,
.page-hero h1,
.section-head h2,
.feature-card h2,
.detail-content h2,
.admin-header h1 {
    margin: 0;
    line-height: 0.98;
    letter-spacing: -0.04em;
    font-family: var(--font-display);
}

.hero-copy h1 {
    font-size: clamp(3.3rem, 6vw, 5.6rem);
    max-width: 9.2ch;
}

.hero-text,
.page-hero p,
.detail-content p,
.review-card p,
.feature-card p,
.spotlight-item span,
.admin-banner span {
    font-size: 1rem;
    line-height: 1.8;
}

.page-hero .container {
    padding: 34px 36px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 250, 243, 0.82), rgba(245, 236, 224, 0.86));
    border: 1px solid rgba(21, 51, 45, 0.08);
    box-shadow: var(--shadow-sm);
}

.page-hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.8rem);
}

.eyebrow {
    margin: 0;
    color: var(--primary);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.74rem;
    font-weight: 800;
}

.feature-card,
.review-card,
.filter-panel,
.content-panel,
.detail-main,
.score-panel,
.related-panel,
.panel,
.category-panel,
.empty-state,
.hint-box {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid rgba(21, 51, 45, 0.08);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.feature-card,
.detail-main,
.panel,
.content-panel,
.filter-panel,
.score-panel,
.related-panel,
.category-panel,
.empty-state {
    overflow: hidden;
}

.feature-card,
.review-card {
    transition: all var(--transition);
}

.feature-card:hover,
.review-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(21, 111, 93, 0.18);
}

.feature-card img,
.review-card img,
.detail-cover {
    width: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.feature-card:hover img,
.review-card:hover img {
    transform: scale(1.04);
}

.feature-card img {
    aspect-ratio: 16/9;
    height: auto;
}

.review-card img {
    aspect-ratio: 4/3;
    height: auto;
}

.detail-cover {
    aspect-ratio: 21/9;
    height: auto;
}

.feature-card-body,
.review-card-body,
.category-panel,
.score-panel,
.related-panel,
.detail-content,
.panel,
.filter-panel,
.content-panel,
.empty-state,
.hint-box {
    padding: 26px;
}

.section-head {
    margin-bottom: 18px;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.section-head a,
.panel-head a {
    color: var(--muted);
    font-weight: 700;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.review-card h2,
.review-card h3,
.feature-card h2,
.related-panel h3,
.detail-content h3,
.panel h2 {
    margin: 0 0 10px;
}

.review-card h2,
.review-card h3 {
    font-size: 1.32rem;
}

.review-card h3 a:hover,
.spotlight-item:hover strong {
    color: var(--primary);
}

.review-card-body {
    display: grid;
    gap: 12px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(21, 111, 93, 0.08), rgba(21, 111, 93, 0.14));
    color: var(--primary-strong);
    font-size: 0.84rem;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.score-strip,
.score-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.score-strip div,
.score-list div {
    background: linear-gradient(180deg, rgba(246, 237, 225, 0.95), rgba(240, 226, 208, 0.9));
    border-radius: 18px;
    padding: 14px;
    border: 1px solid rgba(21, 51, 45, 0.06);
    transition: transform var(--transition), box-shadow var(--transition);
}

.score-strip div:hover,
.score-list div:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(21, 111, 93, 0.12);
}

.score-strip strong,
.score-panel strong {
    display: block;
    font-family: var(--font-display);
}

.score-strip strong {
    font-size: 1.72rem;
}

.section-soft {
    margin: 22px 0 10px;
    padding: 42px 0;
    background: linear-gradient(180deg, rgba(255, 250, 244, 0.62), rgba(245, 236, 224, 0.4));
    border-top: 1px solid rgba(21, 111, 93, 0.08);
    border-bottom: 1px solid rgba(21, 111, 93, 0.08);
}

.split-grid {
    grid-template-columns: 1.12fr 0.88fr;
}

.spotlight-list,
.admin-list,
.checkpoint-list,
.related-panel {
    display: grid;
    gap: 14px;
}

.spotlight-item,
.admin-list-item,
.related-panel a,
.checkpoint {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(244, 234, 221, 0.75), rgba(241, 230, 214, 0.6));
    border: 1px solid rgba(21, 51, 45, 0.08);
    transition: all var(--transition);
}

.spotlight-item:hover,
.admin-list-item:hover,
.related-panel a:hover {
    transform: translateY(-4px);
    border-color: rgba(21, 111, 93, 0.18);
    box-shadow: var(--shadow-sm);
    background: linear-gradient(180deg, rgba(255, 250, 244, 0.85), rgba(246, 237, 225, 0.8));
}

.admin-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-list-item > div:first-child {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.admin-list-item strong {
    display: block;
    line-height: 1.45;
    word-break: break-word;
}

.category-panel {
    background:
        radial-gradient(circle at top right, rgba(223, 153, 82, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(255, 251, 245, 0.92), rgba(246, 237, 225, 0.86));
}

.category-list a {
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(21, 51, 45, 0.08);
}

.layout-grid {
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: start;
}

.filter-panel {
    position: sticky;
    top: 126px;
}

.filter-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 16px;
    border: 1px solid rgba(21, 111, 93, 0.12);
    background: linear-gradient(135deg, rgba(21, 111, 93, 0.1), rgba(223, 153, 82, 0.12));
    color: var(--primary-strong);
    font-weight: 800;
}

.filter-panel-body {
    display: grid;
    gap: 18px;
}

.stack-form,
.detail-content,
.admin-form {
    display: grid;
    gap: 16px;
}

.stack-form label {
    display: grid;
    gap: 10px;
    font-weight: 700;
}

.stack-form span {
    font-size: 0.95rem;
}

.quick-tags,
.pagination,
.score-inline {
    margin-top: 18px;
}

.quick-tags a,
.pagination a {
    min-width: 46px;
    justify-content: center;
    display: inline-flex;
}

.score-inline span {
    padding: 8px 12px;
    background: rgba(21, 111, 93, 0.08);
    border-radius: 999px;
    font-size: 0.88rem;
}

.detail-grid {
    grid-template-columns: 1.16fr 0.84fr;
    align-items: start;
}

.detail-side {
    position: sticky;
    top: 126px;
    display: grid;
    gap: 22px;
}

.detail-main {
    background: linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(246, 237, 225, 0.82));
}

.detail-content {
    gap: 24px;
}

.detail-block {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.detail-block:last-child {
    border-bottom: 0;
}

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

.score-panel {
    display: grid;
    gap: 16px;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(223, 153, 82, 0.18), transparent 42%),
        linear-gradient(180deg, rgba(255, 252, 246, 0.92), rgba(243, 233, 219, 0.9));
}

.score-panel strong {
    font-size: 4rem;
    line-height: 1;
}

.search-shell {
    display: grid;
    gap: 24px;
}

.search-form-large {
    width: 100%;
    max-width: none;
}

.empty-state {
    min-height: 220px;
    display: grid;
    place-items: center;
    text-align: center;
}

.site-footer {
    padding: 34px 0 42px;
}

.footer-row {
    padding-top: 26px;
    border-top: 1px solid rgba(21, 51, 45, 0.08);
}

.admin-body {
    background:
        radial-gradient(circle at top right, rgba(223, 153, 82, 0.16), transparent 20%),
        linear-gradient(180deg, #eef4ef 0%, #e5ece7 100%);
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 272px 1fr;
}

.admin-sidebar {
    padding: 28px 24px;
    background:
        radial-gradient(circle at top left, rgba(223, 153, 82, 0.16), transparent 20%),
        linear-gradient(180deg, var(--surface-dark) 0%, #102a25 100%);
    color: white;
    display: grid;
    gap: 28px;
    align-content: start;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-brand small,
.admin-user span {
    color: rgba(255, 255, 255, 0.72);
}

.admin-brand {
    min-width: 0;
}

.admin-brand > span:last-child {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.admin-nav {
    flex-direction: column;
}

.admin-nav a {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
    border-color: transparent;
}

.admin-main {
    padding: 32px;
    display: grid;
    gap: 24px;
}

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.admin-header h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.admin-user {
    min-width: 132px;
    padding: 16px 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, #183b34, #102925);
    color: white;
    display: grid;
    gap: 4px;
    box-shadow: var(--shadow-sm);
}

.admin-banner {
    padding: 16px 20px;
    border-radius: 20px;
    background: rgba(21, 111, 93, 0.1);
    border: 1px solid rgba(21, 111, 93, 0.12);
}

.admin-content {
    display: grid;
    gap: 24px;
}

.panel-head {
    flex-wrap: wrap;
}

.panel-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(21, 111, 93, 0.08);
}

.metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
    display: grid;
    gap: 10px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(21, 111, 93, 0.08);
    transition: all var(--transition);
}

.metric-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(21, 51, 45, 0.06);
}

.metric-card strong {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1;
    color: var(--primary-strong);
}

.two-column {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.single-column {
    grid-template-columns: 1fr;
}

.auth-panel {
    width: min(100%, 560px);
    margin: 0 auto;
}

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

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

.hint-box {
    display: grid;
    gap: 8px;
    margin-top: 6px;
}

.checkpoint {
    font-weight: 700;
}

.card-link {
    color: inherit;
}

[data-menu].is-open {
    display: flex;
}

@media (max-width: 1240px) {
    .hero-grid,
    .split-grid,
    .layout-grid,
    .detail-grid,
    .two-column,
    .metrics-grid,
    .score-grid,
    .form-grid,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        gap: 18px;
        padding-bottom: 18px;
        position: sticky;
        top: 0;
        z-index: 28;
    }

    .admin-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    .admin-nav::-webkit-scrollbar {
        display: none;
    }

    .admin-nav a {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .filter-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    :root {
        --container: min(100vw - 24px, 100vw - 24px);
    }

    .detail-page .page-hero h1 {
        font-size: clamp(1.6rem, 6.2vw, 2rem);
        line-height: 1.22;
        letter-spacing: -0.02em;
    }

    .header-tools-bottom {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .header-tools {
        display: flex;
        position: absolute;
        top: calc(100% - 4px);
        left: 0;
        right: 0;
        padding: 14px;
        border-radius: 24px;
        background: rgba(255, 251, 245, 0.96);
        border: 1px solid rgba(21, 51, 45, 0.08);
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        z-index: 40;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(0, -10px, 0) scale(0.98);
        transform-origin: top center;
        transition:
            opacity 280ms cubic-bezier(0.16, 1, 0.3, 1),
            transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
            visibility 280ms step-end;
    }

    .header-tools.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate3d(0, 0, 0) scale(1);
        transition:
            opacity 320ms cubic-bezier(0.16, 1, 0.3, 1),
            transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
            visibility 0s linear;
    }

    .site-nav {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .site-nav a {
        width: 100%;
        text-align: center;
    }

    .nav-divider {
        width: 100%;
        height: 1px;
        margin: 8px 0;
    }

    .admin-header,
    .footer-row,
    .section-head,
    .list-head,
    .panel-head,
    .form-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-row {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 12px;
        padding: 12px 0;
        min-height: auto;
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
        gap: 12px;
    }

    .brand-copy strong {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-copy small {
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .header-search {
        width: 100%;
        max-width: none;
        flex: 0 0 auto;
    }

    .header-search input {
        padding-top: 13px;
        padding-bottom: 13px;
        font-size: 1rem;
    }

    .header-tags,
    .quick-tags,
    .category-list,
    .pagination {
        gap: 10px;
    }

    .header-tags {
        overflow-x: auto;
        flex-wrap: nowrap;
        width: 100%;
        padding: 10px 0 12px;
        gap: 10px;
        scroll-snap-type: x proximity;
    }

    .tags-label,
    .header-tags a {
        scroll-snap-align: start;
    }

    .header-tags a {
        white-space: nowrap;
        padding: 10px 14px;
        background: rgba(255, 255, 255, 0.78);
    }

    .hero,
    .page-hero,
    .section {
        padding: 22px 0;
    }

    .hero-grid,
    .page-hero .container,
    .feature-card-body,
    .review-card-body,
    .category-panel,
    .score-panel,
    .related-panel,
    .detail-content,
    .panel,
    .filter-panel,
    .content-panel,
    .empty-state,
    .hint-box {
        padding: 20px;
    }

    .hero-grid {
        gap: 24px;
        min-height: auto;
        border-radius: 28px;
    }

    .hero-copy h1,
    .page-hero h1 {
        max-width: none;
        font-size: clamp(2.8rem, 12vw, 4.1rem);
    }

    .hero-actions,
    .search-form {
        width: 100%;
        flex-direction: column;
    }

    .feature-card img,
    .review-card img,
    .detail-cover {
        height: 240px;
    }

    .score-strip,
    .split-copy {
        grid-template-columns: 1fr;
    }

    .score-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .score-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-main {
        padding: 20px 14px 28px;
    }

    .admin-sidebar {
        gap: 14px;
        padding: 14px 12px 12px;
        border-right: 0;
        box-shadow: 0 10px 24px rgba(16, 42, 37, 0.12);
    }

    .admin-nav a {
        white-space: nowrap;
        padding: 10px 13px;
        font-size: 0.92rem;
    }

    .admin-user {
        min-width: auto;
        width: 100%;
        padding: 14px 16px;
    }

    .admin-header h1 {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
        line-height: 1.08;
    }

    .panel-head {
        align-items: stretch;
        gap: 12px;
    }

    .panel-head a {
        width: 100%;
    }

    .metric-card {
        padding: 20px;
    }

    .metric-card strong {
        font-size: 2.4rem;
    }

    .admin-list-item {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .list-side-info {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .image-preview {
        width: 100%;
    }

    .checkbox-row {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: start;
    }

    .admin-main .button,
    .admin-main .button-small,
    .admin-main .rich-toolbar-button,
    .admin-main .rich-toolbar-select,
    .admin-main .inline-form,
    .admin-main .form-actions {
        width: 100%;
    }

    .admin-main .button,
    .admin-main .button-small {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .rich-toolbar-button,
    .rich-toolbar-select {
        min-width: 0;
    }

    .rich-surface {
        min-height: 260px;
        padding: 16px;
    }

    .poll-distribution-row {
        padding: 10px 12px;
    }

    .filter-toggle {
        display: inline-flex;
    }

    .filter-panel {
        top: auto;
    }

    .filter-panel-body {
        display: none;
        margin-top: 16px;
    }

    .filter-panel.is-open .filter-panel-body {
        display: grid;
    }

    .detail-side {
        position: static;
    }
}

@media (max-width: 520px) {
    .site-header {
        backdrop-filter: blur(16px) saturate(160%);
        -webkit-backdrop-filter: blur(16px) saturate(160%);
    }

    .header-row {
        gap: 10px;
    }

    .menu-toggle {
        padding: 9px;
        border-radius: 14px;
    }

    .header-tools {
        left: -2px;
        right: -2px;
        padding: 12px;
        border-radius: 22px;
    }

    .site-nav a {
        padding: 12px 14px;
    }

    .header-tags {
        margin: 0 -2px;
        padding-right: 2px;
        padding-left: 2px;
    }

    .admin-sidebar {
        padding: 12px 10px 10px;
    }

    .admin-main {
        padding: 16px 10px 22px;
    }

    .admin-nav {
        gap: 8px;
    }

    .admin-nav a {
        padding: 9px 12px;
        font-size: 0.88rem;
    }

    .admin-brand .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .admin-brand > span:last-child strong {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .admin-brand > span:last-child small {
        font-size: 0.74rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .admin-header h1 {
        font-size: clamp(1.55rem, 8.8vw, 2rem);
    }

    .metric-card strong {
        font-size: 2rem;
    }

    .list-side-info {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px;
    }

    .rich-toolbar {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .motion-enter {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

.hero-bento {
    padding: clamp(2rem, 5vw, 4rem) 0;
}

body.is-ready .hero-text-block {
    animation: fade-right-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

body.is-ready .featured-card {
    animation: fade-left-in 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both;
}

.bento-grid-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: stretch;
}

.bento-item {
    background: var(--surface);
    border-radius: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.hero-text-block {
    padding: clamp(2.5rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(246, 240, 230, 0.7));
}

.badge {
    align-self: flex-start;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(21, 111, 93, 0.3);
    animation: soft-pulse 3.8s ease-in-out infinite;
}

.display-title {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    margin: 0 0 1.5rem 0;
    background: linear-gradient(135deg, #1d2725, #3a4f4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.lead-text {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.7;
    color: var(--muted);
    margin: 0 0 2.5rem 0;
    max-width: 90%;
}

.action-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn svg,
.view-more svg,
.modern-spotlight-item svg {
    transition: transform var(--transition), opacity var(--transition);
}

.btn-primary {
    background: var(--text);
    color: #fff;
    box-shadow: 0 10px 20px rgba(29, 39, 37, 0.15);
}

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(21, 111, 93, 0.25);
    color: #fff;
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid rgba(29, 39, 37, 0.1);
}

.btn-outline:hover {
    border-color: var(--text);
    background: rgba(29, 39, 37, 0.05);
}

.motion-enter {
    opacity: 0;
    transform: translate3d(0, var(--reveal-distance), 0) scale(0.985);
    transition:
        opacity var(--transition-slow),
        transform var(--transition-slow),
        filter var(--transition-slow);
    transition-delay: var(--enter-delay, 0ms);
    filter: blur(10px);
    will-change: transform, opacity;
}

.motion-enter.motion-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

body.is-ready .page-hero .container,
body.is-ready .section-head,
body.is-ready .list-head,
body.is-ready .search-form-large,
body.is-ready .footer-row {
    animation: fade-lift-in 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.featured-card {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.featured-link-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-img-wrap {
    position: relative;
    width: 100%;
    height: 50%;
    min-height: 250px;
    overflow: hidden;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-item:hover .featured-img {
    transform: scale(1.05);
}

.featured-content {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.95));
}

.meta-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.tag-modern {
    background: rgba(223, 153, 82, 0.15);
    color: #b56c23;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-weight: 700;
}

.date-modern {
    color: var(--muted);
    font-weight: 500;
}

.featured-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.3;
    font-weight: 800;
    margin: 0 0 1rem 0;
}

.featured-desc {
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.score-pills {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.score-pill {
    flex: 1;
    min-width: 70px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1rem;
    padding: 0.8rem 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.bento-item:hover .score-pill {
    background: #fff;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.score-pill.main-score {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    border: none;
    box-shadow: 0 10px 22px rgba(21, 111, 93, 0.2);
}

.score-pill strong {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    line-height: 1;
}

.score-pill span {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-modern {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-modern.section-alt {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(223, 153, 82, 0.05), rgba(255, 255, 255, 0));
}

.section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

body.is-ready .section-modern .section-header-modern {
    animation: fade-lift-in 0.82s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.section-eyebrow {
    display: block;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.section-title-modern {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.view-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.view-more:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateX(4px);
}

.view-more:hover svg,
.modern-spotlight-item:hover svg {
    transform: translateX(4px);
}

.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.modern-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.modern-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.modern-card-img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.modern-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.modern-card:hover .modern-card-img img {
    transform: scale(1.08);
}

.modern-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-weight: 800;
    color: var(--primary-strong);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modern-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.modern-card-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0.5rem 0 1rem;
    line-height: 1.4;
}

.modern-card-desc {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modern-card-scores {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 1rem;
}

.modern-card-scores span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(21, 51, 45, 0.06);
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text);
}

.bento-grid-discover {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.spotlight-box, .categories-box {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(10px);
}

.box-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.box-title::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(223, 153, 82, 0.2);
}

.modern-spotlight-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modern-spotlight-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.modern-spotlight-item:hover {
    background: #fff;
    border-color: rgba(21, 111, 93, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    transform: translateX(4px);
}

.spotlight-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.spotlight-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}

.spotlight-hl {
    font-size: 0.85rem;
    color: var(--muted);
}

.spotlight-icon {
    color: var(--primary);
    opacity: 0.5;
    transition: all 0.3s;
}

.modern-spotlight-item:hover .spotlight-icon {
    opacity: 1;
    transform: translateX(4px);
}

.modern-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.modern-cat-tag {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-cat-tag:hover {
    background: var(--text);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(29, 39, 37, 0.15);
}

@media (max-width: 992px) {
    .bento-grid-hero, .bento-grid-discover {
        grid-template-columns: 1fr;
    }
    .featured-img-wrap {
        height: 300px;
    }
    .section-header-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .score-pills {
        grid-template-columns: 1fr 1fr;
        display: grid;
    }

    .modern-card-scores {
        grid-template-columns: 1fr;
    }
}

.alerts-stack {
    display: grid;
    gap: 12px;
}

.alert {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-weight: 600;
}

.alert-success {
    background: rgba(21, 111, 93, 0.12);
    border-color: rgba(21, 111, 93, 0.16);
    color: var(--primary-strong);
}

.alert-error {
    background: rgba(182, 78, 61, 0.1);
    border-color: rgba(182, 78, 61, 0.16);
    color: var(--danger);
}

.compact-empty-state {
    min-height: 100%;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

.status-pill.is-published {
    background: rgba(21, 111, 93, 0.12);
    color: var(--primary-strong);
}

.status-pill.is-draft {
    background: rgba(223, 153, 82, 0.16);
    color: #9a5c22;
}

.list-side-info {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.poll-distribution {
    display: grid;
    gap: 10px;
}

.poll-distribution-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(21, 51, 45, 0.08);
}

.button-small {
    padding: 10px 14px;
    border-radius: 14px;
}

.inline-form {
    margin: 0;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.checkbox-row input {
    width: auto;
    margin: 0;
}

.image-preview {
    width: min(100%, 420px);
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(21, 51, 45, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

.image-preview img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.empty-note {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(21, 51, 45, 0.08);
    color: var(--muted);
}

.poll-panel {
    display: grid;
    gap: 18px;
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(243, 233, 219, 0.88));
    border: 1px solid rgba(21, 51, 45, 0.08);
    box-shadow: var(--shadow-sm);
}

.poll-head {
    display: grid;
    gap: 8px;
}

.poll-head strong {
    font-size: 1.18rem;
    line-height: 1.45;
}

.poll-head span {
    color: var(--muted);
}

.poll-form {
    display: grid;
    gap: 14px;
}

.poll-scale-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.poll-score-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(21, 51, 45, 0.06);
}

.poll-score-button {
    border: 0;
    border-radius: 999px;
    background: transparent;
    padding: 0;
    min-height: 44px;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.poll-score-button:hover,
.poll-score-button.is-active,
.poll-score-button.is-selected {
    transform: translateY(-1px);
}

.poll-score-fill {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(221, 211, 194, 0.9), rgba(205, 190, 170, 0.92));
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.poll-score-button:hover .poll-score-fill {
    background: linear-gradient(180deg, rgba(251, 189, 116, 0.96), rgba(228, 138, 67, 0.96));
}

.poll-score-button.is-active .poll-score-fill,
.poll-score-button.is-selected .poll-score-fill {
    background: linear-gradient(180deg, rgba(82, 178, 149, 0.96), rgba(21, 111, 93, 0.96));
    box-shadow: 0 6px 14px rgba(21, 111, 93, 0.18);
}

.poll-score-button.is-selected .poll-score-fill {
    background: linear-gradient(180deg, rgba(255, 183, 99, 0.98), rgba(223, 153, 82, 0.98));
}

@media (max-width: 760px) {
    .poll-score-grid {
        gap: 6px;
        padding: 8px;
    }

    .poll-score-button {
        min-height: 36px;
    }
}

.rich-text-source {
    display: none;
}

.rich-editor {
    display: grid;
    gap: 12px;
}

.rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.rich-toolbar-button {
    min-width: 56px;
    padding: 10px 14px;
}

.rich-toolbar-select {
    width: auto;
    min-width: 120px;
    border: 1px solid rgba(21, 51, 45, 0.09);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
    padding: 10px 14px;
    color: var(--text);
}

.rich-surface {
    min-height: 320px;
    padding: 18px 20px;
    border: 1px solid rgba(21, 51, 45, 0.09);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    line-height: 1.8;
    outline: 0;
}

.rich-surface:focus {
    background: #ffffff;
    border-color: rgba(21, 111, 93, 0.24);
    box-shadow: 0 0 0 4px rgba(21, 111, 93, 0.08);
}

.rich-surface.is-empty::before {
    content: attr(data-placeholder);
    color: rgba(102, 113, 109, 0.82);
}

.rich-surface h2,
.rich-surface h3,
.rich-surface h4,
.detail-richtext h2,
.detail-richtext h3,
.detail-richtext h4 {
    line-height: 1.2;
    margin: 0;
}

.rich-surface p,
.rich-surface ul,
.rich-surface ol,
.rich-surface blockquote,
.detail-richtext p,
.detail-richtext ul,
.detail-richtext ol,
.detail-richtext blockquote {
    margin: 0;
}

.rich-surface,
.detail-richtext,
.detail-copy {
    display: grid;
    gap: 16px;
}

.rich-surface ul,
.rich-surface ol,
.detail-richtext ul,
.detail-richtext ol {
    padding-left: 24px;
}

.rich-surface blockquote,
.detail-richtext blockquote {
    padding-left: 18px;
    border-left: 3px solid rgba(21, 111, 93, 0.22);
    color: var(--muted);
}

.rich-surface a,
.detail-richtext a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(21, 111, 93, 0.34);
    text-underline-offset: 3px;
}

.detail-richtext img {
    width: 100%;
    border-radius: 18px;
}

.detail-copy p {
    margin: 0;
}

.rich-editor-note {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
}
