/* Generated by scripts/build-css-assets.php; edit assets/css/src/*.css. */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&family=Outfit:wght@500;600;700;800&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,400,0,0&display=swap");

:root {
    --bg-main: #f4f8f7;
    --bg-soft: #ffffff;
    --bg-accent: linear-gradient(120deg, #d9f7f1 0%, #fff3dc 48%, #fce5dc 100%);
    --text-main: #123133;
    --text-muted: #416062;
    --line: #c5dbd8;
    --brand: #0f9f8f;
    --brand-deep: #0b766d;
    --danger: #bc4535;
    --warning: #f49e49;
    --avatar-size: 34px;
    --radius: 16px;
    --radius-small: 10px;
    --shadow-soft: 0 6px 20px rgba(16, 61, 65, 0.07);
    --shadow: 0 12px 32px rgba(16, 61, 65, 0.08);
}

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

[hidden] {
    display: none !important;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-padding-top: 92px;
}

body {
    font-family: "Manrope", "Segoe UI", sans-serif;
    line-height: 1.55;
    color: var(--text-main);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background:
        radial-gradient(circle at 2% 2%, rgba(15, 159, 143, 0.08) 0, transparent 24%),
        radial-gradient(circle at 98% 0%, rgba(244, 158, 73, 0.08) 0, transparent 22%),
        var(--bg-main);
}

a {
    color: var(--brand-deep);
}

a:not(.btn):not(.btn-link):not(.link-btn):not(.list-create-template-card):hover {
    color: var(--brand);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Outfit", "Segoe UI", sans-serif;
    line-height: 1.2;
    margin-top: 0;
    letter-spacing: -0.01em;
}

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

.shell {
    width: min(1120px, 92vw);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #fff;
    color: #000;
    padding: 0.7rem 1rem;
    z-index: 1200;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    backdrop-filter: blur(8px);
    background: rgba(244, 248, 247, 0.86);
    border-bottom: 1px solid rgba(18, 49, 51, 0.1);
    box-shadow: var(--shadow-soft);
}

.nav-shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 72px;
    padding-block: 0.45rem;
    width: min(1360px, 96vw);
}

.site-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    border: 1px solid #b9d6d1;
    border-radius: 999px;
    background: #fff;
    color: var(--text-main);
    padding: 0.42rem 0.78rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.nav-toggle:hover {
    border-color: #9fc7c1;
    background: #f6fbfa;
}

.nav-toggle[aria-expanded="true"] {
    border-color: #88c4bb;
    background: #eefaf7;
    color: #0b6d65;
}

.nav-toggle .material-symbols-outlined {
    font-size: 1.2rem;
    line-height: 1;
}

.brand {
    display: inline-flex;
    align-self: stretch;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    max-width: min(calc(58vw + 1.2rem), 19.2rem);
    padding: 0.5rem 0.6rem;
    margin: -0.5rem -0.6rem;
}

.brand-logo {
    display: block;
    max-width: 100%;
}

.brand-logo-image {
    display: block;
    width: 100%;
    height: auto;
}

.brand-logo-baseline {
    display: block;
    width: clamp(9.8rem, 20vw, 16rem);
}

.brand-logo-compact {
    display: none;
    width: clamp(8.8rem, 18vw, 13rem);
}

.main-nav {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.28rem;
    padding: 0;
    margin: 0;
    align-items: center;
    min-width: 0;
}

.main-nav > li {
    flex: 0 0 auto;
    min-width: 0;
}

.main-nav-search-item {
    flex: 1 1 clamp(13rem, 26vw, 24rem);
    min-width: clamp(12rem, 20vw, 16rem);
    max-width: clamp(16rem, 32vw, 27rem);
}

.main-nav a,
.link-btn,
.btn-link {
    display: inline-flex;
    text-decoration: none;
    color: var(--text-main);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.nav-cta {
    border-color: #0d8b7d !important;
    background: linear-gradient(180deg, #16ad9c 0%, #0f9384 100%) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(15, 159, 143, 0.22);
}

.nav-cta:hover,
.nav-cta:focus-visible {
    color: #fff !important;
    background: linear-gradient(180deg, #0f9384 0%, #0b7c70 100%) !important;
}

.main-nav a:hover,
.link-btn:hover,
.btn-link:hover {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.65);
}

.nav-search {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    border: 1px solid #b9d6d1;
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.nav-search:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(15, 159, 143, 0.18);
}

.nav-search input[type="search"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 0;
    border-radius: 0;
    padding: 0.45rem 0.75rem;
    background: transparent;
}

.nav-search input[type="search"]:focus-visible {
    outline: none;
}

.nav-search-submit {
    align-self: stretch;
    min-height: 2.3rem;
    min-width: 2.6rem;
    border: 0 !important;
    border-left: 1px solid #d5e6e2 !important;
    background: #fff !important;
    border-radius: 0 !important;
    padding: 0.35rem 0.7rem !important;
    justify-content: center;
}

.nav-search-submit:hover,
.nav-search-submit:focus-visible {
    border-color: #d5e6e2 !important;
    background: #f4fbfa !important;
}

.nav-search-submit .ui-label-inline > span:last-child {
    display: none;
}

.mobile-nav-label {
    display: none;
}

.main-nav a[aria-current="page"] {
    border-color: var(--line);
    background: #fff;
}

.notification-link {
    position: relative;
    min-width: 42px;
    justify-content: center;
}

.bell-icon {
    width: 1.15rem;
    height: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.bell-icon svg {
    width: 100%;
    height: 100%;
}

.notif-count {
    position: absolute;
    top: 0;
    right: 2px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    font-size: 0.7rem;
    line-height: 1;
    background: #e15241;
    color: #fff;
    padding: 0 0.2rem;
}

.link-btn {
    font: inherit;
    cursor: pointer;
}

.user-menu {
    position: relative;
}

.user-menu summary {
    list-style: none;
    cursor: pointer;
    border: 1px solid #c3d8d4;
    border-radius: 999px;
    padding: 0.16rem;
    background: #fff;
}

.user-menu summary::-webkit-details-marker {
    display: none;
}

.nav-avatar {
    width: var(--avatar-size);
    height: var(--avatar-size);
    border-radius: 999px;
    object-fit: cover;
    display: block;
}

.user-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    min-width: 190px;
    background: #fff;
    border: 1px solid #cbe0dc;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 0.4rem;
    display: grid;
    gap: 0.2rem;
    z-index: 20;
}

.user-menu-panel a,
.user-menu-panel .link-btn {
    text-align: left;
    border: none;
    background: transparent;
    border-radius: 10px;
    padding: 0.5rem 0.6rem;
    color: var(--text-main);
    text-decoration: none;
}

.user-menu-panel a:hover,
.user-menu-panel .link-btn:hover {
    background: #edf8f6;
}

.lang-item {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    margin-left: 0.2rem;
}

.lang-item label {
    font-size: 0.8rem;
    font-weight: 600;
}

.lang-item select {
    width: auto;
    min-width: 104px;
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
}

main.shell {
    flex: 1 0 auto;
    padding-block: 1.7rem 3.1rem;
}

.hero {
    position: relative;
    overflow: hidden;
    background: var(--bg-accent);
    border: 1px solid #cfe3df;
    border-radius: 26px;
    padding: clamp(1.2rem, 2.5vw, 2.5rem);
    box-shadow: var(--shadow);
}

.hero::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(15, 159, 143, 0.23), rgba(15, 159, 143, 0));
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 0.8rem;
    max-width: 14ch;
}

.hero p {
    color: var(--text-muted);
    max-width: 70ch;
}

.home-hero-search {
    margin-top: 1.15rem;
    max-width: 980px;
}

.home-hero-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: stretch;
}

.home-hero-search-row input {
    min-width: 0;
    min-height: 4.25rem;
    padding: 0 1.25rem;
    border-radius: 20px;
    font-size: clamp(1.05rem, 1.2vw, 1.2rem);
    border: 1px solid #bfded8;
    box-shadow: 0 10px 26px rgba(16, 61, 65, 0.08);
    background: rgba(255, 255, 255, 0.96);
}

.home-hero-search-row .btn {
    min-height: 4.25rem;
    padding-inline: 1.35rem;
    border-radius: 20px;
    font-size: 1rem;
}

.home-hero-uses {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 980px;
}

.home-hero-use-card {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.9rem 1rem;
    border: 1px solid #cfe3df;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    font-weight: 800;
    color: var(--text-main);
}

.home-hero-use-card span:last-child {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.home-hero-use-icon {
    width: 2.2rem;
    height: 2.2rem;
    flex: 0 0 2.2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e5f6f1;
    border: 1px solid #c2e2da;
    font-size: 1rem;
    line-height: 1;
}

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
    font-weight: 800;
    color: #0b726a;
}

.hero-actions,
.card-actions,
.item-form-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.item-form-clear-action {
    appearance: none;
    min-height: 39px;
    padding: 0.42rem 0.2rem;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    transition: color 120ms ease, background 120ms ease;
}

.item-form-clear-action:hover,
.item-form-clear-action:focus-visible {
    color: var(--brand-deep);
}

.item-form-clear-action:focus-visible {
    outline: 2px solid #67b8ac;
    outline-offset: 3px;
    border-radius: 8px;
}

.section-head .hero-actions {
    margin-top: 0;
}

.btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.58rem 1rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 39px;
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.btn:hover {
    transform: translateY(-1px);
    color: inherit;
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

.is-loading {
    cursor: progress !important;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 6px 18px rgba(15, 159, 143, 0.25);
}

.btn-primary:hover {
    background: var(--brand-deep);
    color: #fff;
}

.btn-ghost {
    border-color: #90b7b3;
    background: #fff;
    color: var(--text-main);
}

.btn-small {
    font-size: 0.89rem;
    padding: 0.42rem 0.78rem;
}

.btn-danger {
    background: #fbe4e0;
    color: #8e2e22;
    border-color: #f0b2a8;
}

.btn-subtle-danger {
    background: transparent;
    border-color: #e5b4ac;
    color: #9a3c31;
}

.btn-subtle-danger:hover {
    background: #fff2ef;
    color: #8a3127;
}

.feature-grid {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.feature-card {
    background: var(--bg-soft);
    border: 1px solid #d6e5e2;
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: #b9d8d3;
}

.section-head {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.list-grid + .panel.reveal,
.list-grid + .section-head.reveal {
    margin-top: 1.25rem;
}

#contributions.panel.reveal {
    margin-top: 1.5rem;
}

#contributions + .panel.reveal,
#contributions + .comments-panel {
    margin-top: 1.25rem;
}

.list-quality-panel {
    margin-top: 1.1rem;
    padding: 0.95rem 1rem;
    background: linear-gradient(180deg, #fbfefd 0%, #f6fbfa 100%);
}

.list-quality-panel h2 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.list-quality-grid {
    display: grid;
    gap: 0.8rem 1rem;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.list-quality-grid > div {
    display: grid;
    gap: 0.22rem;
}

.list-quality-label {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.list-quality-grid strong {
    font-size: 1rem;
    color: var(--text-main);
}

.list-quality-signal {
    display: inline-flex;
    align-items: flex-end;
    gap: 0.2rem;
    width: fit-content;
    min-height: 1.45rem;
    padding: 0.12rem 0;
}

.list-quality-signal-bar {
    display: block;
    width: 0.34rem;
    border-radius: 0.22rem;
    background: #d9e7e4;
}

.list-quality-signal-bar:nth-child(1) {
    height: 0.45rem;
}

.list-quality-signal-bar:nth-child(2) {
    height: 0.72rem;
}

.list-quality-signal-bar:nth-child(3) {
    height: 1rem;
}

.list-quality-signal-bar:nth-child(4) {
    height: 1.28rem;
}

.list-quality-signal.is-high {
    --quality-signal-color: #15725f;
}

.list-quality-signal.is-good {
    --quality-signal-color: #2d7770;
}

.list-quality-signal.is-basic {
    --quality-signal-color: #68827f;
}

.list-quality-signal.is-low {
    --quality-signal-color: #a07a4c;
}

.list-quality-signal-bar.is-filled {
    background: var(--quality-signal-color);
}

.list-quality-value {
    width: fit-content;
}

.list-quality-value.is-high {
    color: #15725f;
}

.list-quality-value.is-good {
    color: #245c61;
}

.list-quality-value.is-basic {
    color: #4e6970;
}

.list-quality-value.is-low {
    color: #8a6942;
}

.section-head h1,
.section-head h2 {
    margin-bottom: 0.15rem;
}

.check-progress {
    width: 100%;
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.95rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #cfe5e1;
    border-radius: 12px;
    background: #f8fcfb;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}


.check-progress[hidden] {
    display: none !important;
}

.check-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.check-progress-head strong {
    color: var(--text-main);
    font-size: 1rem;
}

.check-progress-track {
    height: 0.48rem;
    overflow: hidden;
    border-radius: 999px;
    background: #dcebea;
}

.check-progress-track [data-check-progress-bar] {
    position: relative;
    display: block;
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), #53c8b8);
    transition: width 160ms ease;
}

.check-progress.is-complete {
    border-color: #91d5c9;
    background: #f1fbf8;
    box-shadow: 0 8px 22px rgba(15, 159, 143, 0.09);
}

.check-progress.is-complete .check-progress-head strong {
    color: var(--brand-deep);
}

.check-progress.is-complete .check-progress-track [data-check-progress-bar] {
    background: linear-gradient(90deg, var(--brand-deep), var(--brand));
}

.check-progress.is-completing {
    animation: checkProgressCompletePop 520ms ease;
}

.check-progress.is-completing .check-progress-track [data-check-progress-bar]::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    transform: translateX(-100%);
    animation: checkProgressCompleteShine 620ms ease;
}

@keyframes checkProgressCompletePop {
    0% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.012);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes checkProgressCompleteShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .check-progress,
    .check-progress-track [data-check-progress-bar] {
        transition: none;
    }

    .check-progress.is-completing,
    .check-progress.is-completing .check-progress-track [data-check-progress-bar]::after {
        animation: none;
    }
}

.home-category-grid {
    margin-top: 0.2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.75rem;
}

.home-category-card {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #d6e7e3;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-main);
    background: #f9fcfb;
    transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.home-category-card:hover {
    background: #f2faf8;
    border-color: #b8dbd5;
    transform: translateY(-1px);
}

.home-category-card:focus-visible {
    outline: 2px solid #66b8ab;
    outline-offset: 2px;
}

.home-category-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eaf7f4;
    border: 1px solid #cde3de;
    font-size: 1rem;
    line-height: 1;
}

.home-category-label {
    font-weight: 700;
    line-height: 1.2;
}

.step-tabs-nav {
    margin: 0 0 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.35rem;
    border: 1px solid #d4e4e1;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
}

.create-wizard-controls {
    margin: -0.35rem 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.create-wizard-position {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

.create-wizard-controls button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.create-publish-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.create-publish-status {
    min-height: 1.4rem;
    margin: 0.8rem 0 0;
}

.item-entry-mode-panel {
    margin-bottom: 1rem;
}

.item-entry-mode-heading {
    display: block;
    margin-bottom: 0.9rem;
}

.item-entry-mode-heading .panel-card-title,
.item-entry-mode-heading .hint {
    margin-top: 0;
}

.item-entry-mode-heading .hint {
    margin-bottom: 0;
}

.item-entry-mode-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.item-entry-mode-option {
    display: grid;
    gap: 0.3rem;
    padding: 0.85rem;
    border: 1px solid #d4e4e1;
    border-radius: 12px;
    background: #fff;
    color: var(--text-main);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.item-entry-mode-option:hover,
.item-entry-mode-option:focus-visible {
    border-color: #9bcfc8;
    background: #f6fbfa;
}

.item-entry-mode-option.is-active {
    border-color: #73b9b0;
    background: #eefaf7;
    box-shadow: 0 0 0 2px rgba(115, 185, 176, 0.16);
}

.item-entry-mode-icon {
    color: #0c6861;
    font-size: 1.35rem;
    line-height: 1;
}

.item-entry-mode-option > span:last-child {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.bulk-import-preview {
    margin-top: 0.8rem;
    padding: 0.7rem;
    border: 1px solid #d4e4e1;
    border-radius: 10px;
    background: #f9fcfb;
}

.bulk-import-preview-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.bulk-import-preview-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.bulk-import-preview-table-wrap[hidden] {
    display: none;
}

.bulk-import-preview-list {
    display: grid;
    gap: 0.3rem;
    margin: 0;
    padding: 0 0 0 1.35rem;
    color: var(--text-main);
}

.bulk-import-preview-list[hidden] {
    display: none;
}

.bulk-import-preview-list li {
    padding: 0.25rem 0.4rem;
    border-radius: 6px;
    background: #fff;
    overflow-wrap: anywhere;
}

.bulk-import-preview-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.bulk-import-preview-table th,
.bulk-import-preview-table td {
    max-width: 230px;
    padding: 0.4rem 0.5rem;
    border: 1px solid #d9e7e4;
    text-align: left;
    vertical-align: top;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bulk-import-preview-table th {
    background: #eefaf7;
    color: #0c6861;
}

@media (max-width: 700px) {
    .item-entry-mode-options {
        grid-template-columns: 1fr;
    }
}

.step-tab-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    border: 1px solid transparent;
    transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.step-tab-index {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    font-size: 0.78rem;
    line-height: 1;
    font-weight: 700;
    opacity: 0.9;
}

.step-tab-text {
    line-height: 1.1;
}

.step-tab-link:hover {
    color: var(--text-main);
    background: #f6fbfa;
    border-color: #d4e5e2;
}

.step-tab-link.is-active {
    color: #0c6861;
    background: #eefaf7;
    border-color: #b8ddd8;
}

.step-tab-link.is-upcoming[aria-disabled="true"] {
    cursor: default;
    opacity: 0.82;
}

.step-tab-link.is-upcoming[aria-disabled="true"]:hover {
    color: var(--text-muted);
    background: transparent;
    border-color: transparent;
}

.step-pane.is-step-hidden {
    display: none !important;
}

[data-step-visible-on].is-step-hidden {
    display: none !important;
}

.step-context-copy {
    margin: -0.35rem 0 0.7rem;
}

.step-context-copy > .hint {
    margin: 0;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d9e7e4;
    border-radius: 12px;
    background: #f9fcfb;
}

.panel {
    background: var(--bg-soft);
    border: 1px solid #d4e4e1;
    border-radius: var(--radius);
    padding: 1.05rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.list-create-sticky-head {
    position: sticky;
    top: 74px;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.45rem;
    border: 1px solid #d6e6e3;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.list-create-sticky-head h1 {
    margin: 0;
    font-size: clamp(1.6rem, 2.5vw, 2.3rem);
    font-weight: 800;
}

.list-create-sticky-head-main .meta {
    margin: 0.3rem 0 0;
}

.list-create-sticky-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.list-create-settings-button {
    display: none;
}

.list-create-visibility-pill .material-symbols-outlined {
    font-size: 1.08rem;
}

.list-create-save-status {
    width: fit-content;
    min-height: 2rem;
    margin: 0.35rem 0 0.85rem;
    padding: 0.34rem 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid #d3e5e2;
    border-radius: 999px;
    background: #f8fcfb;
    color: #436764;
    font-size: 0.9rem;
    font-weight: 650;
    box-shadow: 0 6px 16px rgba(16, 61, 65, 0.04);
}

.list-create-save-status-dot {
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 999px;
    background: #9cb9b5;
    box-shadow: 0 0 0 3px rgba(156, 185, 181, 0.16);
    flex: 0 0 auto;
}

.list-create-save-status.status-warning {
    border-color: #ead2a4;
    background: #fffaf0;
    color: #745117;
}

.list-create-save-status.status-warning .list-create-save-status-dot {
    background: #d99019;
    box-shadow: 0 0 0 3px rgba(217, 144, 25, 0.16);
}

.list-create-save-status.status-ok {
    border-color: #b8dfd8;
    background: #f1fbf8;
    color: #0d6c63;
}

.list-create-save-status.status-ok .list-create-save-status-dot {
    background: #0f9f8f;
    box-shadow: 0 0 0 3px rgba(15, 159, 143, 0.16);
}

.list-create-save-status.status-error {
    border-color: #efbeb7;
    background: #fff6f4;
    color: #9a3c31;
}

.list-create-save-status.status-error .list-create-save-status-dot {
    background: #c84e3f;
    box-shadow: 0 0 0 3px rgba(200, 78, 63, 0.16);
}

.list-create-template-picker {
    margin-bottom: 0.9rem;
}

.list-create-template-picker h2 {
    margin-bottom: 0.35rem;
}

.list-create-template-picker > .hint {
    margin-top: 0;
}

.tag-editor {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    min-height: 48px;
    padding: 0.35rem 0.45rem;
    border: 1px solid #abc8c3;
    border-radius: 12px;
    background: #fff;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.tag-editor:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(15, 159, 143, 0.18);
}

.tag-editor-feedback {
    max-width: 65ch;
}

.tag-editor-feedback.is-limit-reached {
    color: var(--danger);
    font-weight: 700;
}

.tag-editor-chips {
    display: contents;
}

.tag-editor-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    max-width: 100%;
    min-height: 2rem;
    padding: 0.22rem 0.32rem 0.22rem 0.65rem;
    border: 1px solid #9fd3ca;
    border-radius: 999px;
    background: #eaf7f4;
    color: #0d6c63;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
}

.tag-editor-chip-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tag-editor-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: currentColor;
    font: inherit;
    line-height: 1;
    cursor: pointer;
}

.tag-editor-chip-remove:hover {
    background: rgba(15, 159, 143, 0.14);
}

.tag-editor-chip-remove:focus-visible {
    outline: 2px solid #0d6c63;
    outline-offset: 1px;
}

.tag-editor > input[data-tag-input] {
    flex: 1 1 12rem;
    width: auto;
    min-width: 8rem;
    min-height: 2.1rem;
    padding: 0.32rem 0.3rem;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
    background: transparent;
}

.tag-editor > input[data-tag-input]:focus {
    border: 0;
    outline: none;
    box-shadow: none;
}

.list-create-template-grid {
    margin-top: 0.7rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

.list-create-template-card {
    position: relative;
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 0.72rem;
    padding: 0.65rem;
    border: 1px solid #d2e5e1;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
    background: #f9fcfb;
    box-shadow: 0 2px 8px rgba(16, 61, 65, 0.04);
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.list-create-template-card:hover {
    transform: translateY(-1px);
    border-color: #b8d8d2;
    background: #f2faf8;
    color: var(--text-main);
    box-shadow: 0 7px 18px rgba(16, 61, 65, 0.08);
}

.list-create-template-card:focus-visible {
    outline: 2px solid #67b8ac;
    outline-offset: 2px;
}

.list-create-template-card .hint {
    display: none;
}

.list-create-template-card-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    padding: 0 0.15rem 0.1rem;
}

.list-create-template-card-head strong {
    line-height: 1.2;
}

.list-create-template-illustration {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 12px;
}

.list-create-template-active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0.95rem;
    right: 0.95rem;
    width: 1.35rem;
    height: 1.35rem;
    padding: 0;
    border-radius: 999px;
    border: 1px solid #9fd3ca;
    background: #e8f8f4;
    color: #0d6c63;
    font-size: 0.76rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(16, 61, 65, 0.12);
}

.list-create-template-card.is-active {
    border-color: #93ccc2;
    background: #eef9f6;
    box-shadow: 0 0 0 2px rgba(15, 159, 143, 0.1);
}

.list-create-template-current {
    margin: 0.7rem 0 0;
    padding: 0.65rem 0.75rem;
    border: 1px solid #d2e5e1;
    border-radius: 10px;
    background: #f8fcfb;
    color: var(--text-muted);
    line-height: 1.45;
}

.list-create-template-more {
    margin-top: 0.75rem;
}

.list-create-template-more summary {
    width: fit-content;
    min-height: 2.35rem;
    padding: 0.52rem 0.8rem;
    border: 1px solid #cde4df;
    border-radius: 8px;
    color: #0d6c63;
    background: #f5fbf9;
    font-weight: 700;
    cursor: pointer;
    list-style-position: inside;
}

.list-create-template-more summary:hover {
    border-color: #9fd3ca;
    background: #eef9f6;
}

.list-create-template-more summary:focus-visible {
    outline: 2px solid #67b8ac;
    outline-offset: 2px;
}

.list-create-template-more .list-create-template-grid {
    margin-top: 0.65rem;
}

.list-create-form {
    display: grid;
    gap: 0.85rem;
}

.list-create-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    align-items: start;
    gap: 1rem;
}

.list-create-main {
    min-width: 0;
    display: grid;
    gap: 1rem;
}

.list-create-sidebar {
    position: sticky;
    top: 160px;
    display: grid;
    gap: 0.65rem;
}

.list-create-sidebar h2,
.list-create-sidebar h3 {
    margin-bottom: 0.2rem;
}

.list-create-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.list-create-sidebar-head h2 {
    margin: 0;
}

.list-create-sidebar [data-create-settings-close] {
    display: none;
}

.list-create-hero {
    padding: 1.05rem;
    border-color: #d5e8e4;
    box-shadow: var(--shadow-soft);
}

.list-create-hero label {
    font-size: 0.98rem;
}

.list-create-hero .list-create-hero-title-label {
    font-size: 1.08rem;
}

.list-create-description-label {
    margin-top: 0.35rem;
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    color: var(--text-main);
}

.list-create-description-label .meta {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.list-create-hero input[name="title"] {
    font-size: 1rem;
    font-weight: 400;
    min-height: 48px;
    padding-block: 0.55rem;
    border-width: 1px;
    border-color: #cfe2de;
}

.list-create-hero textarea {
    min-height: 78px;
    background: #fbfdfc;
}

.list-create-description-help {
    margin: 0.35rem 0 0;
    font-size: 0.92rem;
}

.list-create-hero [data-create-description-counter]:empty {
    display: none;
}

.list-create-hero [data-create-description-counter] {
    margin-top: 0.25rem;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.list-create-visibility-fieldset {
    margin-top: 0.7rem;
}

.list-create-items .section-head {
    margin-top: 0;
}

.list-create-items {
    display: grid;
    gap: 0.9rem;
}

.list-create-items-intro {
    margin: 0;
}

.list-create-item-search {
    margin: 0;
    padding: 0.8rem;
    border-style: solid;
    box-shadow: none;
    background: #f8fcfb;
}

.list-create-item-search[hidden],
.create-item-draft-board[hidden] {
    display: none !important;
}

.create-item-draft-board {
    display: grid;
    gap: 0.65rem;
    position: relative;
    isolation: auto;
}

.create-item-draft-card {
    margin-bottom: 0;
    border-color: #d7e7e4;
    box-shadow: none;
    position: relative;
    overflow: visible;
    z-index: 1;
    transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.create-item-draft-card:hover {
    border-color: #c4dcd8;
    box-shadow: 0 6px 18px rgba(18, 49, 51, 0.06);
}

.create-item-draft-board.item-table {
    gap: 0.5rem;
}

.create-item-draft-board.item-table .create-item-draft-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem 0.7rem;
    align-items: center;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
}

.create-item-draft-board.item-table .create-item-draft-card h3 {
    font-size: 1.02rem;
}

.create-item-draft-board.item-table .create-item-draft-text,
.create-item-draft-board.item-table .create-item-draft-extra,
.create-item-draft-board.item-table .create-item-draft-inline-edit {
    grid-column: 1 / -1;
}

.create-item-draft-card.is-inline-editing {
    border-color: #99cfc6;
    box-shadow: 0 0 0 2px rgba(15, 159, 143, 0.11);
}

.create-item-draft-card h3 {
    margin-bottom: 0.35rem;
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.create-item-draft-title-row {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    min-width: 0;
    flex: 1 1 auto;
}

.create-item-draft-title-row h3 {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.create-item-draft-check-toggle {
    margin-top: 0.2rem;
    width: 1.08rem;
    height: 1.08rem;
    cursor: pointer;
    accent-color: var(--brand);
    flex: 0 0 auto;
}

.create-item-draft-check-toggle[hidden] {
    display: none;
}

.create-item-draft-text {
    white-space: pre-line;
}

.create-item-draft-inline-edit {
    margin-top: 0.55rem;
    padding-top: 0.7rem;
    border-top: 1px dashed #d2e4e1;
    display: grid;
    gap: 0.55rem;
}

.create-item-draft-inline-edit[hidden] {
    display: none;
}

.create-item-draft-inline-edit .item-form-actions {
    margin-top: 0;
}

.create-item-draft-inline-edit textarea {
    min-height: 112px;
}

.create-item-draft-extra {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.2rem;
}

.create-item-draft-extra[hidden] {
    display: none;
}

.create-item-draft-extra .meta,
.create-item-draft-extra .rating {
    margin: 0;
}

.create-item-draft-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.create-item-draft-badges .badge {
    margin: 0;
}

.create-item-draft-tools {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.create-item-draft-tools [data-action="toggle-featured"].is-active {
    border-color: #b8ddd8;
    background: #eefaf7;
    color: #0c6861;
}

.create-item-draft-menu {
    position: relative;
}

.create-item-draft-menu-panel {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    z-index: 280;
    display: grid;
    gap: 0.28rem;
    min-width: 164px;
    padding: 0.35rem;
    border: 1px solid #d4e5e2;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.create-item-draft-card.is-menu-open {
    z-index: 220;
}

.create-item-draft-menu-panel[hidden] {
    display: none;
}

.create-item-draft-drag {
    cursor: grab;
}

.create-item-draft-drag:active {
    cursor: grabbing;
}

.create-item-draft-card.dragging {
    opacity: 0.46;
}


.create-item-draft-empty {
    margin-bottom: 0;
}

.list-create-item-composer {
    position: relative;
    margin-top: 0;
    padding: 0.95rem;
    border-style: solid;
    border-color: #d7e7e4;
    background: #fbfdfc;
    box-shadow: none;
}

.list-create-item-composer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.list-create-item-composer-head h3 {
    margin-bottom: 0.28rem;
}

.list-create-field-menu-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.list-create-field-menu-button {
    min-height: 2.3rem;
    padding: 0.35rem 0.65rem;
}

.list-create-field-menu-button .material-symbols-outlined {
    font-size: 1.15rem;
}

.list-create-item-composer [data-create-field-group="title"] label {
    font-size: 0.98rem;
}

.list-create-item-composer [data-create-item-title] {
    min-height: 48px;
}

.list-create-item-composer .item-form-actions {
    margin-top: 0.35rem;
}

.item-inline-custom-config {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 0.45rem;
    padding: 0.8rem;
    border: 1px solid #d4e5e2;
    border-radius: 12px;
    background: #f7fbfa;
}

.item-inline-custom-config[hidden] {
    display: none !important;
}

.item-inline-custom-config-head h4 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
}

.item-inline-custom-config-head .hint {
    margin: 0;
}

.item-inline-custom-config[hidden] {
    display: none !important;
}

.item-inline-custom-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.15rem;
}

.list-create-inline-config {
    position: relative;
}

.list-create-inline-config-summary {
    list-style: none;
    min-height: 2.3rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid #d3e3e1;
    border-radius: 999px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-main);
}

.list-create-inline-config-summary .material-symbols-outlined {
    font-size: 1.15rem;
}

.list-create-inline-config-summary::-webkit-details-marker {
    display: none;
}

.list-create-inline-config-summary:hover {
    border-color: #b8d7d2;
    background: #f6fbfa;
}

.list-create-inline-config-body {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    z-index: 25;
    width: min(860px, calc(100vw - 2rem));
    max-height: min(70vh, 760px);
    overflow: auto;
    padding: 0.75rem;
    border: 1px solid #d2e4e1;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
}

.list-create-inline-config-body .field-help-row.field-help-row-option {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 0.3rem;
}

.list-create-inline-config-body .field-help-row.field-help-row-option > .toggle-check {
    width: 100%;
    max-width: 100%;
}

.list-create-inline-config-body .field-help-row.field-help-row-option > .hint {
    margin: 0 0 0.15rem;
    padding-left: 0.15rem;
    line-height: 1.4;
}

@media (max-width: 720px) {
    .list-create-inline-config {
        position: static;
    }

    .list-create-inline-config-body {
        left: 0;
        right: 0;
        top: calc(100% + 0.55rem);
        width: 100%;
        max-height: min(72vh, 680px);
        padding: 0.65rem;
    }

    .list-create-inline-config-body .progressive-body {
        padding-inline: 0;
        background: transparent;
    }

    .list-create-inline-config-body .toggle-check {
        grid-template-columns: 52px minmax(0, 1fr);
        padding-inline: 0.55rem;
    }

    .list-create-inline-config-body .toggle-check > span:last-child {
        overflow-wrap: anywhere;
    }
}

.list-create-config-content {
    margin: 0;
}

.list-create-config-title {
    margin: 0.25rem 0 0.4rem;
    font-size: 1.05rem;
}

.list-create-about {
    box-shadow: none;
    border-style: dashed;
}

.list-create-about .section-separator {
    margin-top: 0;
    margin-bottom: 0.85rem;
}

.list-create-bottom-actions {
    margin-top: 0;
}

.list-create-bottom-actions .meta {
    margin: 0;
}

.list-create-live-preview .list-card {
    box-shadow: none;
    border-style: dashed;
}

.list-create-danger {
    margin-top: 0.35rem;
}

.list-create-preview-board {
    margin-top: 0.55rem;
    display: grid;
    gap: 0.45rem;
}

.list-create-preview-description,
.list-create-preview-item-content {
    white-space: pre-line;
}

.list-create-preview-board.item-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.list-create-preview-board.item-list,
.list-create-preview-board.item-table {
    grid-template-columns: 1fr;
}

.list-create-preview-item-card {
    padding: 0.65rem;
    border-radius: 10px;
    box-shadow: none;
}

.list-create-preview-item-card:hover {
    transform: none;
    box-shadow: none;
}

.list-create-preview-item-card h3 {
    font-size: 0.98rem;
    margin: 0;
}

.list-create-preview-item-card .item-card-head {
    margin-bottom: 0.25rem;
}

.list-create-preview-item-meta {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
}

.list-create-preview-empty {
    padding: 0.7rem;
    box-shadow: none;
}

.list-create-mobile-actions {
    display: none;
}

.list-create-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 28, 31, 0.34);
    z-index: 130;
}

.list-create-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.list-create-preview-overlay[hidden] {
    display: none;
}

.list-create-preview-overlay-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(7, 25, 29, 0.42);
}

.list-create-preview-overlay-panel {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100vw - 2rem));
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    margin: 0;
}

.list-create-preview-overlay-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.list-create-preview-overlay-head h3 {
    margin: 0;
}

.preview-overlay-open {
    overflow: hidden;
}

.panel:focus-within,
.list-card:focus-within,
.item-card:focus-within {
    border-color: #99cfc6;
    box-shadow: 0 0 0 3px rgba(15, 159, 143, 0.15), var(--shadow);
}

.seo-editorial {
    margin-top: 1.25rem;
}

.home-more-discovery {
    margin-top: 1.05rem;
}

.home-more-discovery-summary,
.seo-editorial-summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    font-weight: 700;
    color: var(--text-main);
}

.home-more-discovery-summary::-webkit-details-marker,
.seo-editorial-summary::-webkit-details-marker {
    display: none;
}

.home-final-cta {
    margin-top: 1.15rem;
    background: linear-gradient(135deg, #f2fbf8 0%, #fff5ea 100%);
}

.home-final-cta h2 {
    margin-bottom: 0.4rem;
}

.home-final-cta p {
    margin: 0;
    color: var(--text-main);
    line-height: 1.6;
}

.home-final-cta .hero-actions {
    margin-top: 0.8rem;
}

.seo-editorial h2 {
    margin-bottom: 0.45rem;
}

.seo-editorial p {
    margin: 0.4rem 0;
    color: var(--text-main);
    line-height: 1.6;
}

.seo-editorial-links {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.seo-editorial-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.4rem 0.75rem;
    border: 1px solid #cfe2de;
    border-radius: 999px;
    background: #f6fbfa;
    color: #0f3d43;
    font-weight: 700;
    text-decoration: none;
    transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.seo-editorial-link:hover {
    background: #ecf8f6;
    border-color: #b9d8d2;
    transform: translateY(-1px);
}

.seo-editorial-link:focus-visible {
    outline: 2px solid #66b8ab;
    outline-offset: 2px;
}

.list-create-template-secondary-link {
    margin: 0.9rem 0 0;
}

.list-create-template-secondary-link a {
    color: #0b726a;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.list-ideas-hero {
    display: grid;
    gap: 0.4rem;
}

.list-ideas-model-grid,
.list-ideas-grid {
    align-items: stretch;
}

.list-idea-card {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 0.35rem;
}

.list-idea-card h3,
.list-ideas-model-grid h3 {
    margin-bottom: 0.1rem;
}

.list-ideas-queries h3 {
    margin: 1rem 0 0.35rem;
}

.list-ideas-faq-item {
    padding: 0.85rem 0;
    border-top: 1px solid #d8e7e4;
}

.list-ideas-faq-item:first-of-type {
    padding-top: 0.2rem;
    border-top: 0;
}

.list-ideas-faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--text-main);
}

.list-ideas-faq-item p {
    margin: 0.7rem 0 0;
}

.profile-mini {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.avatar-mini {
    width: var(--avatar-size);
    height: var(--avatar-size);
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #b6d4cf;
    background: #e7f6f3;
}

.avatar-preview {
    width: 108px;
    height: 108px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #b6d4cf;
    background: #e7f6f3;
}

.danger-panel {
    border-color: #f0c4bb;
}

.form-grid {
    display: grid;
    gap: 0.55rem;
}

.form-focus-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.55rem;
    margin-top: 0.2rem;
}

.form-focus-actions > :is(button, input[type="submit"], input[type="image"]) {
    min-height: 39px;
}

.form-focus-actions > :is(button[type="submit"], input[type="submit"], input[type="image"]):disabled {
    opacity: 0.42;
    filter: saturate(0.55);
    box-shadow: none;
}

.form-grid.is-submitting {
    opacity: 0.96;
}

.list-access-panel {
    display: grid;
    gap: 0.65rem;
}

.list-access-panel p {
    margin: 0;
}

.access-editors-form {
    margin-top: 0.55rem;
    padding-top: 0.8rem;
    border-top: 1px solid #d7e8e5;
}

.access-editors-form .hero-actions {
    margin-top: 0.2rem;
}

.panel.form-grid > h2,
.panel.form-grid .step-pane > h2 {
    margin: 0.35rem 0 0.15rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid #d7e8e5;
    border-radius: 12px;
    background: linear-gradient(135deg, #f4fcfa 0%, #fff7eb 100%);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.panel.form-grid > h2 + .hint,
.panel.form-grid .step-pane > h2 + .hint {
    margin-top: 0.05rem;
}

label {
    font-weight: 700;
}

.field-help-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    max-width: 100%;
}

.field-help-row > label {
    margin: 0;
    min-width: 0;
}

.field-help-row.field-help-row-option {
    align-items: stretch;
    gap: 0.35rem;
}

.field-help-row.field-help-row-option.field-help-row-option-stacked {
    grid-template-columns: minmax(0, 1fr);
}

.field-help-row.field-help-row-option > .toggle-check {
    min-width: 0;
}

.field-help-row.field-help-row-legend {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    align-items: center;
    gap: 0.35rem;
}

.field-help-legend-text {
    font-weight: 700;
    line-height: 1.2;
    min-width: 0;
}

.field-help-inline {
    display: grid;
    width: 100%;
}

.field-help-trigger {
    appearance: none;
    border: 1px solid #d4e4e1;
    background: #fff;
    color: #6d8a87;
    width: 1.3rem;
    height: 1.3rem;
    min-width: 1.3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    justify-self: end;
    margin-right: 0.2rem;
    box-shadow: 0 1px 2px rgba(18, 49, 51, 0.04);
    transition: color 120ms ease, border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.field-help-trigger .material-symbols-outlined {
    font-size: 0.95rem;
    line-height: 1;
    font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 20;
}

.field-help-trigger:hover {
    color: #0c6861;
    border-color: #b8ddd8;
    background: #f7fcfb;
    box-shadow: 0 2px 6px rgba(18, 49, 51, 0.07);
}

.field-help-trigger:focus-visible {
    outline: 2px solid #ffb470;
    outline-offset: 2px;
}

.field-help-popover {
    position: absolute;
    right: 0;
    left: auto;
    top: calc(100% + 0.2rem);
    z-index: 40;
    width: min(360px, 92vw);
    padding: 0.65rem 0.75rem;
    border: 1px solid #c7ddd9;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16, 61, 65, 0.12);
    color: var(--text-main);
    font-weight: 400;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
    pointer-events: none;
}

.field-help-popover::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 0;
    left: 0;
    height: 12px;
    background: transparent;
}

.field-help-popover p {
    margin: 0;
    font-size: 0.9rem;
}

.field-help-popover p + p {
    margin-top: 0.35rem;
}

.field-help-popover a {
    font-weight: 700;
}

.field-help-trigger:hover + .field-help-popover,
.field-help-trigger:focus-visible + .field-help-popover,
.field-help-popover:hover,
.field-help-popover:focus-within,
.field-help-row.is-open .field-help-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.choice-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-inline-size: 0;
    display: grid;
    gap: 0.45rem;
}

.choice-fieldset legend {
    display: block;
    width: 100%;
    font-weight: 700;
    padding: 0;
}

.choice-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.5rem;
}

.choice-options.choice-segmented {
    display: flex;
    gap: 0;
    border: 1px solid #c8ddd9;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.choice-options.choice-segmented .choice-radio {
    flex: 1;
    margin: 0;
    display: flex;
}

.choice-options.choice-segmented .choice-radio-face {
    border: 0;
    border-radius: 0;
    min-height: 44px;
    padding: 0.6rem 0.75rem;
    display: flex;
    justify-content: center;
    background: #f7fbf9;
    font-weight: 600;
    text-align: center;
    flex: 1 1 auto;
    height: 100%;
}

.choice-options.choice-segmented .choice-radio-face .ui-label-inline {
    width: 100%;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
}

.choice-options.choice-segmented .choice-radio:first-child .choice-radio-face {
    border-radius: 999px 0 0 999px;
}

.choice-options.choice-segmented .choice-radio:last-child .choice-radio-face {
    border-radius: 0 999px 999px 0;
}

.choice-options.choice-segmented .choice-radio:not(:first-child):not(:last-child) .choice-radio-face {
    border-radius: 0;
}

.choice-options.choice-segmented .choice-radio + .choice-radio .choice-radio-face {
    border-left: 1px solid #c8ddd9;
}

.choice-options.choice-segmented .choice-radio input:checked + .choice-radio-face {
    background: linear-gradient(180deg, #f0fffb 0%, #e6f5ef 100%);
    color: #0c6861;
}

.choice-options-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.choice-radio {
    position: relative;
    display: block;
    cursor: pointer;
}

.choice-radio input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.choice-radio-face {
    border: 1px solid #c8ddd9;
    border-radius: 12px;
    background: #fff;
    min-height: 44px;
    padding: 0.55rem 0.7rem;
    display: flex;
    align-items: center;
}

.auth-action-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 1rem;
}

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

.auth-action-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(7, 25, 29, 0.48);
}

.auth-action-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(480px, calc(100vw - 2rem));
    margin: 0;
}

.auth-action-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.auth-action-modal-head h2 {
    margin: 0;
}

.auth-action-modal-close {
    flex: 0 0 auto;
}

.auth-action-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.1rem;
}

.auth-action-modal-open {
    overflow: hidden;
}


.choice-radio-face-template {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.25rem;
    min-height: 78px;
}

.choice-template-label .ui-label-inline > span:last-child {
    font-weight: 800;
}

.choice-template-help {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.3;
    font-weight: 500;
}

.choice-radio input:checked + .choice-radio-face.choice-radio-face-template .choice-template-help {
    color: #2c6a63;
}

.choice-radio .ui-label-icon {
    display: inline-flex;
}

.choice-radio input:checked + .choice-radio-face {
    border-color: #72c4b8;
    background: #f2fbf9;
    box-shadow: inset 0 0 0 1px rgba(15, 159, 143, 0.14);
}

.choice-radio input:checked + .choice-radio-face .ui-label-inline > span:last-child {
    font-weight: 800;
}

.choice-radio input:focus-visible + .choice-radio-face {
    outline: 3px solid #ffb470;
    outline-offset: 2px;
}

.choice-radio input:disabled + .choice-radio-face {
    opacity: 0.6;
    cursor: not-allowed;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #abc8c3;
    border-radius: 12px;
    padding: 0.64rem 0.75rem;
    font: inherit;
    color: var(--text-main);
    background: #fff;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.select-with-icon {
    position: relative;
    display: block;
    width: 100%;
}

.select-with-icon select {
    padding-left: 2.35rem;
}

.select-leading-icon {
    position: absolute;
    left: 0.72rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    font-family: "Material Symbols Outlined", "Segoe UI Symbol", sans-serif;
    font-size: 1.15rem;
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20;
    line-height: 1;
}

input::placeholder,
textarea::placeholder {
    color: #789592;
}

textarea {
    resize: vertical;
    min-height: 90px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid #ffb470;
    outline-offset: 2px;
}


.hint {
    color: var(--text-muted);
    margin: 0.1rem 0 0.3rem;
    font-size: 0.92rem;
}

.ui-label-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    vertical-align: middle;
}

.ui-label-icon {
    display: none;
    color: currentColor;
    align-items: center;
    justify-content: center;
    font-family: "Material Symbols Outlined", "Segoe UI Symbol", sans-serif;
    font-size: 1.1em;
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20;
    line-height: 1;
    flex: 0 0 auto;
}

button .ui-label-icon,
a.btn .ui-label-icon,
.btn-link .ui-label-icon,
.link-btn .ui-label-icon {
    display: inline-flex;
}

.toggle-check > .ui-label-inline:last-child,
.inline-check .ui-label-inline {
    display: inline-flex;
}

.toggle-check > .ui-label-inline:last-child .ui-label-icon,
.inline-check .ui-label-inline .ui-label-icon {
    display: inline-flex;
}

.quick-primary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.1rem 0 0.4rem;
}

.contribution-hub {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.contribution-choice {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfefd;
    padding: 1rem;
    display: grid;
    align-content: space-between;
    gap: 0.75rem;
    min-height: 180px;
}

.contribution-choice h3 {
    margin-bottom: 0.35rem;
    font-size: 1.08rem;
}

.contribution-choice .btn {
    justify-self: start;
}

.contribution-panel {
    margin-top: 0.75rem;
}

.contribution-panel[hidden] {
    display: none !important;
}

.contribution-panels {
    display: grid;
    gap: 0.75rem;
}

.contribution-toast {
    position: fixed;
    right: 1rem;
    top: 6rem;
    z-index: 90;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.65rem;
    width: min(28rem, calc(100vw - 2rem));
    padding: 0.85rem 0.95rem;
    border: 1px solid #8bd7cb;
    border-radius: 14px;
    background: #f2fffb;
    color: var(--text-main);
    box-shadow: 0 18px 45px rgba(14, 39, 46, 0.18);
    line-height: 1.35;
}

.contribution-toast-icon {
    display: inline-grid;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    line-height: 1;
}

.contribution-search-form {
    display: grid;
    gap: 0.45rem;
}

.inline-search-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
}

.contribution-results {
    display: grid;
    gap: 0.8rem;
}

.contribution-result {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 0.9rem;
    display: grid;
    gap: 0.6rem;
}

.contribution-result h3 {
    font-size: 1.02rem;
    margin-bottom: 0;
}

@media (max-width: 560px) {
    .inline-search-control {
        grid-template-columns: 1fr;
    }

    .contribution-toast {
        right: 0.75rem;
        left: 0.75rem;
        top: 5.75rem;
        width: auto;
    }
}

.contribution-delete-form {
    border-top: 1px dashed var(--line);
    margin-top: 0.85rem;
    padding-top: 0.85rem;
}

.progressive-details {
    border: 1px solid #cbdfdb;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.list-meta-optional-details {
    margin: 0.35rem 0 0.55rem;
}

.progressive-summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.62rem 0.78rem;
    font-weight: 700;
    color: var(--text-main);
    background: linear-gradient(180deg, #fbfefd 0%, #f3faf8 100%);
}

.progressive-summary::-webkit-details-marker {
    display: none;
}

.progressive-summary::after {
    content: "+";
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 999px;
    border: 1px solid #b8d4cf;
    display: inline-grid;
    place-items: center;
    font-size: 0.95rem;
    line-height: 1;
    color: #2a6660;
    background: #fff;
    flex: 0 0 auto;
}

.progressive-details[open] .progressive-summary::after {
    content: "-";
}

.progressive-summary:focus-visible {
    outline: 3px solid #ffb470;
    outline-offset: 2px;
}

.progressive-body {
    border-top: 1px dashed #d4e5e2;
    padding: 0.72rem 0.78rem 0.86rem;
    background: #fbfefd;
    display: grid;
    gap: 0.55rem;
}

.progressive-body > .feature-order-content {
    order: 10;
}

.progressive-body > .feature-order-media {
    order: 20;
}

.progressive-body > .feature-order-link {
    order: 30;
}

.progressive-body > .feature-order-custom {
    order: 40;
}

.progressive-body > .feature-order-complements {
    order: 50;
}

.progressive-body > .feature-order-interaction {
    order: 60;
}

.progressive-body > .feature-order-rank {
    order: 70;
}

.progressive-body > .feature-order-custom-creator {
    order: 80;
}

.progressive-body > .item-custom-field-creator {
    order: 100;
}

.progressive-body > .quick-primary-actions {
    order: 90;
}

.inline-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.inline-check input {
    width: auto;
}

.feature-fieldset {
    margin: 0;
    border: 1px solid #c5ddd9;
    border-radius: 12px;
    padding: 0.75rem;
    display: grid;
    gap: 0.45rem;
}

.feature-fieldset legend {
    font-weight: 800;
    padding-inline: 0.25rem;
}

.toggle-check {
    position: relative;
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid #cfe2de;
    border-radius: 12px;
    min-height: 56px;
    padding: 0.5rem 0.75rem;
    background: #fff;
    cursor: pointer;
}

.toggle-check input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.toggle-check > span:last-child {
    display: block;
    line-height: 1.25;
    font-weight: 700;
    min-width: 0;
}

.toggle-check .toggle-ui {
    width: 52px;
    height: 28px;
    background: #d7e7e4;
    border-radius: 999px;
    position: relative;
    flex: 0 0 auto;
}

.toggle-check .toggle-ui::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(18, 49, 51, 0.18);
    transition: left 140ms ease;
}

.toggle-check input:checked + .toggle-ui {
    background: #92d7cc;
}

.toggle-check input:checked + .toggle-ui::after {
    left: 26px;
}

.toggle-check:focus-within {
    outline: 3px solid #ffb470;
    outline-offset: 2px;
}

.toggle-check.is-disabled {
    cursor: not-allowed;
    opacity: 0.72;
    background: #f7fbfa;
}

.toggle-check.is-disabled .toggle-ui {
    background: #dbe8e5;
}

.feature-lock-message {
    margin: 0.1rem 0 0.35rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #d9e7e4;
    border-radius: 10px;
    background: #f8fcfb;
}

.feature-cluster {
    border: 1px solid #d5e8e4;
    border-radius: 14px;
    padding: 0.55rem;
    background: #fbfefd;
    display: grid;
    gap: 0.5rem;
}

.feature-subform-card {
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 0;
    background: transparent;
    display: grid;
    gap: 0.5rem;
}

.feature-subform-card.is-subform-active {
    padding: 0.45rem;
    border-color: #d5e8e4;
    background: #fbfefd;
}

.feature-cluster[data-subform-card] {
    border-color: transparent;
    background: transparent;
    padding: 0;
}

.feature-cluster[data-subform-card].is-subform-active {
    border-color: #d5e8e4;
    background: #fbfefd;
    padding: 0.55rem;
}

.feature-cluster > .hint + .toggle-check,
.feature-cluster > .feature-dependent + .toggle-check,
.feature-cluster > .hint + .feature-subform-card,
.feature-cluster > .feature-dependent + .feature-subform-card {
    margin-top: 0.45rem;
}

.feature-cluster-basic {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.feature-cluster-media {
    border-color: #c6dfe8;
    background: #f8fcff;
}

.feature-cluster-media[data-subform-card]:not(.is-subform-active) {
    border-color: transparent;
    background: transparent;
}

.feature-cluster-media[data-subform-card].is-subform-active {
    border-color: #c6dfe8;
    background: #f8fcff;
}

.feature-cluster-interaction {
    border-color: #c6ddd1;
    background: #f7fdf9;
}

.feature-cluster-interaction[data-subform-card]:not(.is-subform-active) {
    border-color: transparent;
    background: transparent;
}

.feature-cluster-interaction[data-subform-card].is-subform-active {
    border-color: #c6ddd1;
    background: #f7fdf9;
}

.feature-cluster-custom {
    border-color: #d7d7e8;
    background: #fafafe;
}

.feature-cluster-custom[data-subform-card]:not(.is-subform-active) {
    border-color: transparent;
    background: transparent;
}

.feature-cluster-custom[data-subform-card].is-subform-active {
    border-color: #d7d7e8;
    background: #fafafe;
}

.feature-cluster-extended {
    border-color: #d7e1d4;
    background: #f9fcf6;
}

.feature-cluster-title {
    margin: 0;
    padding: 0 0.25rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: #3d6260;
}

.feature-dependent {
    margin-inline: 0.45rem 0.3rem;
    padding: 0.6rem 0.7rem 0.7rem;
    border-left: 3px solid #98d4ca;
    border-radius: 10px;
    background: #eef9f6;
    display: grid;
    gap: 0.45rem;
}

.feature-settings-details {
    margin-top: 0.45rem;
}

.feature-settings-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid #cfe3df;
    border-radius: 9px;
    background: #f8fcfb;
    color: #245b59;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
}

.feature-settings-summary::-webkit-details-marker {
    display: none;
}

.feature-settings-summary::after {
    content: "expand_more";
    font-family: "Material Symbols Outlined";
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: transform 0.15s ease;
}

.feature-settings-details[open] > .feature-settings-summary::after {
    transform: rotate(180deg);
}

.feature-settings-details > .feature-dependent {
    margin-top: 0.35rem;
}

.feature-dependent[hidden] {
    display: none !important;
}

.custom-fields-list {
    display: grid;
    gap: 0.65rem;
}

.field-suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.5rem;
    row-gap: 0.55rem;
}

.field-suggestion-chips > .hint {
    flex: 1 0 100%;
    margin: 0 0 0.15rem;
}

.custom-field-options-list {
    display: grid;
    gap: 0.45rem;
}

.custom-options-label {
    display: block;
    color: var(--text-main);
    font-weight: 700;
}

.custom-options-editor {
    display: grid;
    gap: 0.45rem;
}

.custom-options-list {
    display: grid;
    gap: 0.4rem;
}

.custom-option-editor-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
    align-items: center;
}

.custom-option-editor-row input {
    min-width: 0;
}

.custom-option-remove {
    min-width: 2.25rem;
    padding-inline: 0.45rem;
}

.custom-option-add {
    justify-self: start;
}

.custom-options-empty {
    margin: 0;
}

.custom-field-option {
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.custom-field-option-details {
    display: block;
    padding: 0;
    overflow: hidden;
    border: 1px solid #cfe2de;
    border-radius: 12px;
    background: #fff;
}

.custom-field-option-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.55rem 0.65rem;
    cursor: pointer;
    list-style: none;
}

.custom-field-option-summary::-webkit-details-marker {
    display: none;
}

.custom-field-option-summary-action {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.custom-field-option-summary::after {
    content: "expand_more";
    font-family: "Material Symbols Outlined";
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: transform 0.15s ease;
}

.custom-field-option-details[open] .custom-field-option-summary::after {
    transform: rotate(180deg);
}

.custom-field-option-body {
    display: grid;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem 0.65rem;
    border-top: 1px solid #d8e7e4;
    background: #fbfefd;
}

.custom-field-option-body > .custom-field-row {
    margin: 0;
}

.custom-field-option-delete {
    flex: 0 0 auto;
}

.item-custom-field-creator {
    margin-top: 0.55rem;
}

.item-custom-field-creator > .progressive-summary {
    padding-inline: 0;
}

.item-custom-field-creator > .progressive-body {
    padding-inline: 0;
}

.custom-field-creator-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.4rem;
}

.custom-field-row {
    border: 1px solid #c9ded9;
    border-radius: 12px;
    background: #fff;
    padding: 0.65rem;
    display: grid;
    gap: 0.45rem;
}

.custom-field-advanced-details {
    margin-top: 0.1rem;
    border: 1px solid #d5e8e4;
    border-radius: 10px;
    background: #f8fcfb;
    overflow: hidden;
}

.custom-field-advanced-details[hidden] {
    display: none !important;
}

.custom-field-advanced-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.45rem 0.6rem;
    color: #245b59;
    cursor: pointer;
    list-style: none;
    font-size: 0.92rem;
    font-weight: 700;
}

.custom-field-advanced-summary::-webkit-details-marker {
    display: none;
}

.custom-field-advanced-summary::after {
    content: "expand_more";
    font-family: "Material Symbols Outlined";
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: transform 0.15s ease;
}

.custom-field-advanced-details[open] > .custom-field-advanced-summary::after {
    transform: rotate(180deg);
}

.custom-field-advanced-body {
    display: grid;
    gap: 0.5rem;
    padding: 0.6rem;
    border-top: 1px dashed #cfe3df;
    background: #fff;
}

.custom-field-advanced-body > .custom-field-advanced-help {
    margin: 0;
}

.custom-field-advanced-body > [hidden] {
    display: none !important;
}

.custom-field-advanced-body > .custom-option-colors {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.custom-field-row.is-pending-add {
    border-color: #8fc8be;
    box-shadow: 0 0 0 2px rgba(143, 200, 190, 0.18);
}

.custom-type-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 0.4rem;
}

.custom-type-option {
    border: 1px solid #c8ddd9;
    border-radius: 10px;
    background: #fff;
    color: var(--text-main);
    padding: 0.45rem 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    cursor: pointer;
    text-align: left;
    font-weight: 600;
    line-height: 1.2;
}

.custom-type-option .material-symbols-outlined {
    font-size: 1.05rem;
    color: #365f78;
}

.custom-type-option:hover {
    border-color: #9bc7bf;
    background: #f7fcfb;
}

.custom-type-option.is-active {
    border-color: #1aa292;
    background: linear-gradient(180deg, #f0fffb 0%, #e3f7f3 100%);
    color: #0b5f57;
    box-shadow: inset 0 0 0 1px rgba(26, 162, 146, 0.22);
}

.custom-type-option.is-active .material-symbols-outlined {
    color: #0b7f74;
    font-variation-settings: "FILL" 1, "wght" 550, "GRAD" 0, "opsz" 20;
}

.custom-type-native-select {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.custom-field-row .inline-check {
    margin-top: 0.15rem;
}

.custom-option-colors {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.45rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #d5e8e4;
}

.custom-option-colors-title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
}

.custom-option-colors-list {
    display: grid;
    gap: 0.4rem;
}

.custom-option-color-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.55rem;
}

.custom-option-color-name {
    min-width: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.custom-option-color-preview {
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    border: 1px solid #b9d8d3;
    background: var(--custom-option-color, #0f9f8f);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.custom-option-color-row input[type="color"] {
    width: 2.5rem;
    min-width: 2.5rem;
    height: 2rem;
    padding: 0.12rem;
}

.custom-field-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.custom-field-row-actions .btn {
    justify-self: start;
}

.custom-fields-help {
    margin-top: 0.2rem;
    padding-top: 0.35rem;
    border-top: 1px solid #cfe3df;
}

.custom-fields-help > summary {
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    color: #0e3c5a;
}

.custom-fields-help > summary::-webkit-details-marker {
    display: none;
}

.custom-fields-help > .hint {
    margin: 0.35rem 0 0;
}

.custom-fields-help[open] > summary {
    margin-bottom: 0.15rem;
}

.view-mode-fieldset {
    margin: 0;
    border: 1px solid #c5ddd9;
    border-radius: 12px;
    padding: 0.75rem;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.view-mode-fieldset legend {
    font-weight: 800;
    padding-inline: 0.25rem;
}

.icon-radio {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
    align-items: center;
    border: 1px solid #c8ddd9;
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    background: #fff;
    cursor: pointer;
}

.icon-radio input {
    width: auto;
    margin: 0;
}



/* Shared card heading treatment for list configuration and editor panels. */
.panel-card-title {
    display: block;
    margin: 0 0 0.75rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 700;
}

summary.panel-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    cursor: pointer;
    list-style: none;
}

summary.panel-card-title::-webkit-details-marker {
    display: none;
}

summary.panel-card-title.list-config-title {
    background: transparent;
}

.list-access-body {
    border-top: 0;
    padding: 0.72rem 0.78rem 0.86rem;
    background: transparent;
}

.panel.form-grid > h2.panel-card-title,
.panel.form-grid .step-pane > h2.panel-card-title {
    display: block;
    margin: 0 0 0.75rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 1.5rem;
    font-weight: 700;
}
/* Keep dependent settings visually attached to their parent option. */
.feature-settings-details {
    width: auto;
    margin: -0.15rem 0.35rem 0.25rem 1.75rem;
}

.feature-settings-summary {
    min-height: 2.2rem;
    padding: 0.35rem 0.55rem;
    border: 1px dashed #b9d8d3;
    border-radius: 8px;
    background: #f8fcfb;
    font-size: 0.92rem;
}

.feature-settings-details > .feature-dependent {
    margin: 0.35rem 0 0;
    border-left-width: 2px;
    border-radius: 0 8px 8px 8px;
    background: #f4fbf9;
}

.custom-field-option-details {
    width: 100%;
}

.custom-field-option-details > .custom-field-option-summary {
    min-height: 2.4rem;
    border-radius: 10px;
}

.custom-field-option-details[open] > .custom-field-option-summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.custom-field-option-body > .custom-field-row {
    width: 100%;
}

@media (max-width: 720px) {
    .feature-settings-details {
        margin-left: 0.55rem;
        margin-right: 0.15rem;
    }
}

.feature-order-editor-meta {
    display: none !important;
}

.field-help-row.feature-option-row:not(.custom-field-option-details) {
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cfe2de;
    border-radius: 12px;
    background: #fff;
}

.field-help-row.feature-option-row:not(.custom-field-option-details) > .toggle-check {
    grid-column: 2;
    grid-row: 1;
    border: 0;
    border-radius: 0;
    min-height: 0;
    padding: 0;
    background: transparent;
}

.field-help-row.feature-option-row:not(.custom-field-option-details) > .field-help-trigger {
    grid-column: 3;
    grid-row: 1;
}

.feature-option-row[data-feature-order-key] {
    transition: opacity 140ms ease, outline-color 140ms ease, background-color 140ms ease;
}

.feature-option-row[data-feature-order-key].is-inactive {
    opacity: 0.68;
}

.feature-option-row[data-feature-order-key].is-dragging {
    opacity: 0.42;
}

.feature-option-row[data-feature-order-key].is-drag-over {
    outline: 2px dashed #0f9f91;
    outline-offset: 3px;
    background: #f0fbf8;
}

.custom-field-option-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    align-items: center;
}

.custom-field-option-summary > .toggle-check {
    grid-column: 2;
    min-width: 0;
    border: 0;
    border-radius: 0;
    min-height: 0;
    padding: 0;
    background: transparent;
}

.feature-order-inline-controls {
    display: contents;
}

.feature-option-row[data-feature-order-key] .feature-order-drag-handle,
.custom-field-option-summary .feature-order-drag-handle {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
}

.feature-option-row[data-feature-order-key] [data-action="move-feature-order-up"] {
    grid-column: 4;
    grid-row: 1;
}

.feature-option-row[data-feature-order-key] [data-action="move-feature-order-down"] {
    grid-column: 5;
    grid-row: 1;
}

.custom-field-option-summary [data-action="move-feature-order-up"] {
    grid-column: 3;
    grid-row: 1;
}

.custom-field-option-summary [data-action="move-feature-order-down"] {
    grid-column: 4;
    grid-row: 1;
}

.custom-field-option-summary::after {
    grid-column: 5;
    grid-row: 1;
    justify-self: end;
}

.feature-order-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    color: var(--text-muted);
    border: 1px dashed #b8d5d0;
    border-radius: 7px;
    cursor: grab;
    user-select: none;
}

.feature-order-drag-handle:hover,
.feature-order-drag-handle:focus-visible {
    color: var(--text-main);
    border-color: #0f9f91;
    outline: none;
}

.feature-order-drag-handle:active,
.feature-option-row[data-feature-order-key].is-dragging .feature-order-drag-handle {
    cursor: grabbing;
}

.feature-order-button {
    min-width: 2rem;
    padding-inline: 0.35rem;
}

@media (max-width: 560px) {
    .field-help-row.feature-option-row:not(.custom-field-option-details),
    .custom-field-option-summary {
        column-gap: 0.15rem;
    }

    .feature-order-drag-handle,
    .feature-order-button {
        min-width: 1.85rem;
    }
}

.icon-preview {
    width: 56px;
    height: 36px;
    border: 1px solid #b8d3cf;
    border-radius: 8px;
    background: #fff;
    position: relative;
}

.icon-radio input:checked + .icon-preview {
    border-color: #6fbdb2;
    background: #f1fbf9;
}

.icon-radio input:checked + .icon-preview + span {
    font-weight: 700;
}

.icon-grid::before,
.icon-grid::after,
.icon-list::before,
.icon-list::after {
    content: "";
    position: absolute;
    background: #9fbab6;
}

.icon-grid::before {
    inset: 6px 30px 6px 8px;
}

.icon-grid::after {
    inset: 6px 8px 6px 32px;
}

.icon-list::before {
    left: 8px;
    right: 8px;
    top: 8px;
    height: 6px;
}

.icon-list::after {
    left: 8px;
    right: 8px;
    top: 20px;
    height: 6px;
}

.flash-stack {
    position: fixed;
    top: 5.5rem;
    right: 1rem;
    z-index: 1100;
    width: min(28rem, calc(100vw - 2rem));
    display: grid;
    gap: 0.5rem;
}

.flash-stack.is-empty {
    display: none;
}

.flash-stack:empty,
.flash:empty {
    display: none;
}

.flash {
    border-radius: 14px;
    border: 1px solid #c7ddd9;
    padding: 0.75rem 0.85rem;
    background: #f4fffc;
    box-shadow: 0 18px 45px rgba(14, 39, 46, 0.18);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.65rem;
    align-items: center;
}

.flash-message {
    min-width: 0;
    line-height: 1.4;
}

.flash-action {
    white-space: nowrap;
}

.flash-dismiss {
    appearance: none;
    border: 0;
    background: transparent;
    color: #6d8a87;
    font: inherit;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 1.4rem;
    height: 1.4rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
}

.flash-dismiss:hover,
.flash-dismiss:focus-visible {
    background: rgba(15, 61, 67, 0.08);
    color: var(--text-main);
}

.flash-success {
    border-color: #91d6cb;
    background: #eafff8;
}

.flash-warning {
    border-color: #ead2a4;
    background: #fffaf0;
}

.flash-error {
    border-color: #ebb0a8;
    background: #fff1ee;
}

.flash-info {
    border-color: #bfdad5;
    background: #f4fffc;
}

.error-box {
    background: #fff3ef;
    border: 1px solid #e8b6ae;
    border-radius: 14px;
    padding: 0.9rem;
    position: fixed;
    top: 6rem;
    right: 1rem;
    z-index: 1090;
    width: min(28rem, calc(100vw - 2rem));
    max-height: min(70vh, 34rem);
    overflow: auto;
    margin: 0;
    box-shadow: 0 18px 45px rgba(14, 39, 46, 0.18);
}

.error-box ul {
    margin: 0.35rem 0 0;
}

.history-panel {
    overflow: hidden;
}

.history-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.history-entry {
    border: 1px solid #d5e8e4;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f5fffc 100%);
    padding: 0.85rem;
    box-shadow: 0 8px 22px rgba(16, 61, 65, 0.06);
}

.history-entry-undone {
    opacity: 0.72;
}

.history-entry-main {
    display: grid;
    gap: 0.2rem;
}

.history-undo-hint {
    font-weight: 700;
    color: #0b6d65;
}

.history-entry-actions {
    margin-top: 0.55rem;
}

.history-undo-action {
    border-color: #d49a58;
    background: #fff5e8;
    color: #7a4311;
    box-shadow: none;
}

.history-undo-action:hover,
.history-undo-action:focus-visible {
    border-color: #c2782d;
    background: #ffe8cc;
    color: #5f320c;
}

.history-details {
    margin-top: 0.65rem;
}

.history-details summary {
    cursor: pointer;
    color: var(--brand-deep);
    font-weight: 700;
}

.history-change-list {
    list-style: none;
    padding: 0;
    margin: 0.65rem 0 0;
    display: grid;
    gap: 0.45rem;
}

.history-change-list li {
    display: grid;
    grid-template-columns: minmax(8rem, 0.75fr) minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.5rem;
    align-items: center;
}

.history-change-list code {
    border: 1px solid #d8e7e4;
    border-radius: 8px;
    background: #f7fbfa;
    color: #24494c;
    padding: 0.22rem 0.38rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 720px) {
    .history-change-list li {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}

@media (max-width: 560px) {
    .flash-stack,
    .error-box {
        top: 5.75rem;
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
    }
}

.list-grid,
.item-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.list-card,
.item-card,
.empty-state {
    background: #fff;
    border: 1px solid #d5e5e2;
    border-radius: var(--radius);
    padding: 0.95rem;
    box-shadow: var(--shadow);
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
    position: relative;
}

.list-card,
.item-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.list-card:hover,
.item-card:hover {
    transform: translateY(-2px);
    border-color: #b8d7d2;
    box-shadow: 0 16px 30px rgba(16, 61, 65, 0.11);
}

.item-card.item-checked {
    border-color: #b9ddd6;
    background: linear-gradient(180deg, #f6fcfb 0%, #ffffff 100%);
}

.item-card.item-podium {
    --podium-accent: #d7a331;
    --podium-accent-dark: #8b6408;
    --podium-soft: #fff8e7;
    --podium-badge: #ffe39c;
    --podium-ring: #f0c764;
    --podium-shadow: rgba(155, 116, 22, 0.16);
    overflow: hidden;
    border-color: color-mix(in srgb, var(--podium-accent) 46%, #d5e5e2);
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--podium-accent) 12%, transparent) 0 7rem, transparent 7.1rem),
        linear-gradient(180deg, color-mix(in srgb, var(--podium-soft) 92%, #ffffff) 0%, #ffffff 74%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 14px 30px rgba(16, 61, 65, 0.08);
}

.item-card.item-podium::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--podium-accent) 0%, color-mix(in srgb, var(--podium-accent) 72%, #ffffff) 40%, transparent 100%);
}

.item-card.item-podium::after {
    content: "";
    position: absolute;
    inset: auto 1rem 0.95rem auto;
    width: 4.2rem;
    height: 4.2rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--podium-accent) 6%, transparent);
    filter: blur(0.1rem);
    pointer-events: none;
}

.item-card.item-podium > * {
    position: relative;
    z-index: 1;
}

.item-card.item-podium > .item-card-head {
    margin: 0;
    padding-right: 4.8rem;
}

.item-card.item-podium > .item-side-meta {
    position: absolute;
    top: 1rem;
    right: 1rem;
    margin: 0;
    z-index: 2;
}

.item-card.item-podium-first {
    --podium-accent: #e1ad30;
    --podium-accent-dark: #715000;
    --podium-soft: #fff9e8;
    --podium-badge: #ffe193;
    --podium-ring: #efc75c;
    --podium-shadow: rgba(161, 117, 21, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        0 18px 36px rgba(161, 117, 21, 0.16);
}

.item-card.item-podium-second {
    --podium-accent: #aebbc0;
    --podium-accent-dark: #3f535b;
    --podium-soft: #f7fafb;
    --podium-badge: #edf3f5;
    --podium-ring: #c5d1d5;
    --podium-shadow: rgba(120, 137, 146, 0.12);
}

.item-card.item-podium-third {
    --podium-accent: #d49a78;
    --podium-accent-dark: #754329;
    --podium-soft: #fff4ee;
    --podium-badge: #f8d8c5;
    --podium-ring: #e1ad8d;
    --podium-shadow: rgba(156, 96, 61, 0.13);
}

.item-card.item-bulk-selected {
    border-color: #5578c7;
    background: linear-gradient(180deg, #f4f7ff 0%, #ffffff 100%);
    box-shadow: inset 0 0 0 1px rgba(85, 120, 199, 0.22), var(--shadow);
}

.item-card.item-podium .item-rank {
    position: relative;
    width: 3.45rem;
    height: 3.45rem;
    min-width: 3.45rem;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--podium-ring) 84%, #ffffff);
    border-radius: 999px;
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.92) 0 0.9rem, transparent 0.95rem),
        linear-gradient(155deg, #ffffff 0%, var(--podium-badge) 56%, color-mix(in srgb, var(--podium-badge) 84%, var(--podium-accent)) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 10px 18px var(--podium-shadow);
    color: var(--podium-accent-dark);
    font-size: 1.08rem;
    font-weight: 950;
    line-height: 1;
}

.item-card.item-podium .item-rank::before,
.item-card.item-podium .item-rank::after {
    content: "";
    position: absolute;
    bottom: -0.52rem;
    width: 0.78rem;
    height: 1rem;
    background: linear-gradient(180deg, color-mix(in srgb, var(--podium-accent) 86%, #ffffff), color-mix(in srgb, var(--podium-accent) 62%, #ffffff));
    z-index: -1;
}

.item-card.item-podium .item-rank::before {
    left: 0.82rem;
    clip-path: polygon(0 0, 100% 0, 76% 100%, 52% 74%, 28% 100%);
}

.item-card.item-podium .item-rank::after {
    right: 0.82rem;
    clip-path: polygon(0 0, 100% 0, 72% 100%, 48% 74%, 24% 100%);
}

.item-custom-color-swatch {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    margin: 0 0.3rem -0.15rem 0;
    border: 1px solid #b9d8d3;
    border-radius: 999px;
    background: var(--item-custom-color, #0f9f8f);
}

.item-featured {
    border-color: #ebc583;
    background: linear-gradient(180deg, #fff9ef 0%, #ffffff 100%);
}

.featured-jump-card {
    cursor: pointer;
}

.item-jump-highlight {
    border-color: #89d2c9;
    box-shadow: 0 0 0 3px rgba(13, 160, 146, 0.22), var(--shadow-soft);
}

.list-cover {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #d5e7e4;
    margin-bottom: 0.75rem;
    background: #eef7f5;
}

.list-card-link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
}

.list-card .list-card-link {
    margin: 0;
}

.list-card-link:focus-visible {
    outline: 3px solid #ffb470;
    outline-offset: 2px;
}

.list-card-link .list-cover {
    transition: transform 220ms ease;
}

.list-card .list-card-link .list-cover {
    display: block;
    height: 190px;
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
}

.list-card:hover .list-card-link .list-cover {
    transform: scale(1.03);
}

.bulk-list-toolbar {
    grid-column: 1 / -1;
    margin-top: 0;
    padding: 0.8rem 1rem;
}

.bulk-list-toolbar-main,
.bulk-list-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.bulk-list-toolbar-main {
    justify-content: space-between;
}

.bulk-list-selection-count,
.bulk-list-actions label {
    color: #456d6c;
    font-size: 0.9rem;
    font-weight: 700;
}

.bulk-list-actions select {
    min-width: 13rem;
}

.list-select-control {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.45rem;
    margin: 0 0 0.45rem;
    color: #456d6c;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.list-select-control input {
    width: auto;
    accent-color: #138277;
}

.list-card.is-bulk-selected {
    border-color: #138277;
    box-shadow: 0 0 0 3px rgba(19, 130, 119, 0.12), var(--shadow);
}

@media (max-width: 640px) {
    .bulk-list-toolbar-main,
    .bulk-list-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .bulk-list-actions select,
    .bulk-list-actions .btn {
        width: 100%;
    }
}

.list-title-link {
    color: inherit;
    text-decoration: none;
}

.list-title-link:hover {
    text-decoration: underline;
}

.list-cover-large {
    height: min(320px, 45vw);
}

.list-detail-hero {
    display: grid;
    gap: 0.7rem;
}

.list-detail-hero .list-cover-large {
    width: calc(100% + 2.1rem);
    max-width: none;
    margin: -1.05rem -1.05rem 0.15rem;
    border: 0;
    border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}

.list-detail-hero h1 {
    margin: 0;
}

.list-detail-hero .expandable-text {
    margin: 0;
    font-size: 1.02rem;
}

.list-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.85rem;
}

.list-detail-meta > span,
.list-detail-meta .owner-inline {
    min-height: 1.8rem;
}

.list-empty-private-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid #ead2a4;
    border-radius: var(--radius-small);
    background: #fffaf0;
}

.list-empty-private-notice strong {
    display: block;
    margin-bottom: 0.15rem;
}

.list-empty-private-notice p {
    margin: 0;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .list-empty-private-notice {
        align-items: stretch;
        flex-direction: column;
    }
}

.list-detail-taxonomy {
    width: 100%;
    margin-top: 0.05rem;
}

.list-detail-taxonomy-summary {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.2rem 0.45rem;
    border-radius: var(--radius-small);
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.list-detail-taxonomy-summary::-webkit-details-marker {
    display: none;
}

.list-detail-taxonomy-summary:hover {
    background: #f6fbfa;
    color: var(--text-main);
}

.list-detail-taxonomy[open] > .list-detail-taxonomy-summary {
    background: #e7f6f3;
    color: var(--brand-deep);
}

.list-detail-taxonomy-summary:focus-visible {
}

.list-detail-taxonomy-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    width: 100%;
    margin-top: 0.45rem;
}

.list-detail-actions {
    margin-top: 0.15rem;
}

.list-card h2,
.list-card h3,
.item-card h3 {
    margin-bottom: 0.3rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.list-card > p,
.item-card > p {
    margin: 0.3rem 0 0.45rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.item-grouped-board {
    display: grid;
    gap: 1.25rem;
}

.item-group-section {
    display: grid;
    gap: 0.75rem;
}

.item-group-section.is-collapsed [data-item-group-items] {
    display: none !important;
}

.item-group-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.45rem;
}

.item-group-heading-title {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.45rem;
}

.item-group-heading-actions {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.45rem;
    margin-left: auto;
}

.item-group-toggle {
    width: 30px;
    height: 30px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

.item-group-toggle:hover,
.item-group-toggle:focus-visible {
    border-color: #c6dad6;
    background: #f2fcfa;
    color: #2f6c66;
}

.item-group-order-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.item-group-order-controls .icon-button {
    width: 30px;
    height: 30px;
    border: 1px solid #c6dad6;
    border-radius: 999px;
    background: #f2fcfa;
    color: #2f6c66;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

.item-group-order-controls .icon-button[data-action="drag-group"] {
    cursor: grab;
}

.item-group-order-controls .icon-button[data-action="drag-group"]:active {
    cursor: grabbing;
}

.item-group-order-controls .icon-button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.item-group-section.dragging {
    opacity: 0.72;
}

.item-group-section.drag-over .item-group-heading {
    border-color: var(--brand);
    background: #f2fcfa;
    box-shadow: 0 0 0 2px rgba(15, 159, 143, 0.14);
}

.item-group-section.drag-over [data-item-group-items] {
    outline: 2px dashed var(--brand);
    outline-offset: 0.25rem;
}

.item-group-management {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.25rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--line);
}

.item-group-management h3 {
    margin: 0;
    font-size: 1rem;
}

.item-group-management-list {
    display: grid;
    gap: 0.55rem;
    margin: 0.75rem 0 1rem;
}

.item-group-management-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
    padding: 0.65rem 0.75rem;
    border: 1px solid #d4e6e3;
    border-radius: 12px;
    background: #fbfefd;
}

.item-group-management-row.dragging {
    opacity: 0.72;
}

.item-group-management-row.drag-over {
    border-color: var(--brand);
    background: #f2fcfa;
    box-shadow: 0 0 0 2px rgba(15, 159, 143, 0.14);
}

.item-group-management-order-controls .icon-button[data-action="manage-group-drag"] {
    cursor: grab;
}

.item-group-management-order-controls .icon-button[data-action="manage-group-drag"]:active {
    cursor: grabbing;
}

.item-group-management-edit-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.55rem;
    align-items: center;
    min-width: 0;
    margin: 0;
}

.item-group-management-edit-form input {
    min-width: 0;
}

.item-group-management-delete-form {
    margin: 0;
}

@media (max-width: 640px) {
    .item-group-management-row,
    .item-group-management-edit-form {
        grid-template-columns: 1fr;
    }

    .item-group-management-delete-form,
    .item-group-management-delete-form .btn,
    .item-group-management-edit-form .btn {
        width: 100%;
    }
}
.item-group-heading h3 {
    margin: 0;
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .item-group-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .item-group-heading-actions {
        align-self: flex-end;
    }
}

.expandable-text {
    margin: 0.3rem 0 0.45rem;
}

.expandable-preview,
.expandable-full {
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.expandable-toggle {
    margin-top: 0.45rem;
    align-self: flex-start;
}

.list-card-top,
.item-card-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 0.65rem;
}

.item-card-title-row {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    min-width: 0;
    flex: 1 1 auto;
}

.item-card-head-actions {
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.item-bulk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin: 0.75rem 0;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--surface-color) 92%, var(--accent-color));
}

.item-bulk-mode-toggle[aria-pressed="true"] {
    border-color: #5578c7;
    background: #edf2ff;
    color: #304f95;
}

.item-bulk-selection,
.item-bulk-controls {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.item-bulk-selection-mode .item-card.item-selectable {
    cursor: pointer;
    user-select: none;
}

.item-bulk-selection-mode .item-card.item-selectable:not(.item-bulk-selected):hover {
    border-color: #9aadd8;
    box-shadow: 0 0 0 2px rgba(85, 120, 199, 0.12), 0 12px 28px rgba(16, 61, 65, 0.1);
}

.item-bulk-selection-mode .item-card.item-selectable:focus-within {
    outline: 3px solid rgba(85, 120, 199, 0.52);
    outline-offset: -3px;
}

.item-bulk-toolbar select {
    min-width: 10rem;
}

.item-card-title-row h3 {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.item-check-toggle {
    -webkit-appearance: none;
    appearance: none;
    display: inline-grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.02rem;
    padding: 0;
    border: 1.5px solid #6f938d;
    border-radius: 0.35rem;
    background-color: #ffffff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 0.78rem 0.78rem;
    box-shadow: 0 1px 3px rgba(16, 61, 65, 0.12);
    cursor: pointer;
    flex: 0 0 auto;
    transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.item-check-toggle:hover:not(:disabled) {
    border-color: #138277;
    box-shadow: 0 0 0 3px rgba(19, 130, 119, 0.12);
}

.item-check-toggle:checked {
    border-color: #138277;
    background-color: #138277;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E");
}

.item-check-toggle:focus-visible {
    outline: 3px solid rgba(19, 130, 119, 0.26);
    outline-offset: 2px;
}

.item-check-toggle[disabled] {
    cursor: default;
    opacity: 0.78;
}

.list-card-top p,
.item-card-head p {
    margin: 0;
}

.item-list-count-inline {
    margin: 0.45rem 0 0;
}

.danger-inline-details {
    margin-top: 0.75rem;
}

.danger-inline-details .progressive-summary {
    color: #8f3024;
    border-color: #efccc4;
    background: #fff7f5;
}

.item-side-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.2rem 0 0.45rem;
}

.item-side-meta .item-rank {
    margin: 0;
}

.item-numbering {
    margin: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 0.08rem;
    color: #60777a;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.item-numbering-value {
    min-width: 1.35rem;
    text-align: right;
}

.item-media-stack {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.25rem;
}

.item-media-stack .item-preview-image,
.item-media-stack .video-wrap {
    margin-top: 0;
}

.item-custom-details {
    margin: 0.25rem 0 0.5rem;
    border: 1px solid #d3e4e1;
    border-radius: 10px;
    background: #fbfefd;
    padding: 0.45rem 0.6rem;
}

.item-custom-summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--text-main);
    list-style: none;
}

.item-custom-summary::-webkit-details-marker {
    display: none;
}

.item-custom-summary::after {
    content: "+";
    float: right;
    font-weight: 800;
    color: var(--text-muted);
}

.item-custom-details[open] .item-custom-summary::after {
    content: "-";
}

.item-custom-details .item-custom {
    margin-top: 0.45rem;
}

.badge {
    margin: 0;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
    color: #0d685f;
    background: #e7f6f3;
    border: 1px solid #bde2dd;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
}


.meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.list-card-taxonomy {
    margin: 0.15rem 0 0.2rem;
}

.list-card-category-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    padding: 0.1rem 0.55rem;
    border: 1px solid #cfe3de;
    border-radius: 999px;
    background: #f3fbf9;
    color: #0f6861;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
}

a.list-card-category-chip:hover {
    background: #eaf8f5;
    border-color: #b5d9d2;
}

.unit {
    opacity: 0.85;
    font-weight: 700;
    white-space: nowrap;
}

.owner-meta {
    margin-top: 0.45rem;
}

.owner-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
}

.list-card-author {
    margin-top: 0;
}

.owner-inline-avatar {
    width: var(--avatar-size);
    height: var(--avatar-size);
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #c8ddd9;
    background: #fff;
}

.creator-profile h1 {
    margin-bottom: 0.35rem;
}

.creator-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.creator-avatar-large {
    width: var(--avatar-size);
    height: var(--avatar-size);
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #c8ddd9;
}

.creator-network-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.creator-network-panel h3 {
    margin-bottom: 0.35rem;
}

.creator-network-list {
    list-style: none;
    margin: 0.45rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.creator-network-list li {
    min-width: 0;
}

.creator-network-list .owner-inline span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.editorial-rich-text {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.editorial-editor {
    display: grid;
    gap: 0.5rem;
}

.editorial-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.editorial-editor-toolbar .btn {
    padding: 0.32rem 0.58rem;
    min-height: auto;
}

.editorial-editor textarea {
    min-height: 180px;
}

.editorial-editor textarea[hidden],
.editorial-editor-canvas[hidden] {
    display: none !important;
}

.editorial-editor-canvas {
    display: block;
    min-height: 180px;
    padding: 0.64rem 0.75rem;
    border: 1px solid #abc8c3;
    border-radius: 12px;
    background: #fff;
    color: var(--text-main);
    overflow-wrap: anywhere;
    cursor: text;
    white-space: pre-wrap;
}

.editorial-editor-canvas:focus-visible {
    outline: 3px solid rgba(15, 123, 112, 0.22);
    outline-offset: 2px;
}

.editorial-editor-canvas[data-empty="true"]::before {
    content: attr(data-placeholder);
    color: var(--text-muted, #64748b);
    pointer-events: none;
}

.editorial-editor-counter {
    margin: 0;
    font-size: 0.82rem;
}

.editorial-editor-counter.is-over-limit {
    color: var(--danger);
    font-weight: 700;
}

.editorial-rich-text p,
.editorial-rich-text ul,
.editorial-rich-text ol {
    margin: 0;
}

.editorial-rich-text h3,
.editorial-rich-text h4,
.editorial-rich-text h5 {
    margin: 0.25rem 0 0;
}

.editorial-rich-text ul,
.editorial-rich-text ol {
    padding-left: 1.25rem;
}

.editorial-rich-text li + li {
    margin-top: 0.2rem;
}

.editorial-rich-text a {
    color: #0f7b70;
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

.editorial-rich-text a:hover {
    color: #0a6159;
}

.editorial-rich-text * {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.auth-shell {
    width: min(560px, 100%);
    margin-inline: auto;
    background: #fff;
    border: 1px solid #d4e6e3;
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow);
}

.auth-shell .panel {
    margin-top: 1rem;
}

.auth-shell > p:last-child {
    margin-top: 0.85rem;
}

.search-form .search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.search-form .search-row input {
    flex: 1 1 320px;
}

.search-form .search-row select {
    width: auto;
    min-width: 200px;
}

.search-form .search-row .btn {
    min-width: 118px;
}

.search-row-explore-main > input {
    flex: 1 1 360px;
}

.search-row-explore-main > select {
    flex: 0 1 260px;
    min-width: 210px;
}

.search-row-explore-main > .btn {
    flex: 0 0 auto;
}

.explore-advanced-filters {
    margin-top: 0.7rem;
    border-top: 1px dashed #cddfdb;
    padding-top: 0.62rem;
}

.explore-advanced-filters > summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-main);
    user-select: none;
}

.explore-advanced-filters > summary::-webkit-details-marker {
    display: none;
}

.search-row-explore-advanced {
    margin-top: 0.45rem;
}

.search-row-explore-advanced .explore-tag-filter {
    display: flex;
    flex: 1 1 320px;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 240px;
    align-self: stretch;
}

.search-row-explore-advanced .explore-tag-filter label {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.search-row-explore-advanced .explore-tag-filter input {
    flex: 1 1 auto;
    width: 100%;
}

.icon-only-action {
    min-width: 2.65rem;
    min-height: 2.65rem;
    padding-inline: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-only-action .ui-label-inline {
    gap: 0;
}

.icon-only-action .ui-label-inline > .ui-label-icon {
    display: inline-flex;
}

.icon-only-action .ui-label-inline > span:last-child {
    display: none;
}

.list-view-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.list-items-section-head .list-view-tools {
    margin-bottom: 0;
}

.list-view-tool {
    position: relative;
}

.list-view-tool-toggle {
    cursor: pointer;
}

.list-view-tool-panel[hidden],
.item-comments-body[hidden] {
    display: none;
}

.list-view-tool.is-open > .list-view-tool-toggle {
    border-color: #9bcfc7;
    background: #eefaf7;
}

.list-view-tool-panel {
    width: min(420px, calc(100vw - 2rem));
    margin-top: 0.55rem;
    padding: 0.85rem;
    border: 1px solid #d5e5e2;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.list-view-tool-panel label {
    display: block;
    margin-bottom: 0.35rem;
}

.list-view-tool-panel .search-row {
    margin-top: 0.4rem;
}

.list-sort-form {
    display: grid;
    gap: 0.55rem;
}

.list-sort-form label {
    margin-bottom: 0;
}

.list-sort-form select {
    margin: 0;
}

.list-sort-form .btn {
    justify-self: start;
}

.list-edit-floating {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 900;
    width: 4rem;
    height: 4rem;
    padding: 0;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(16, 61, 65, 0.2);
}

.list-edit-floating .ui-label-icon {
    font-size: 1.35rem;
}

.list-copy-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.item-search-form .search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
}

.search-form .search-row input,
.item-controls .search-row input {
    min-width: 0;
}

.section-separator {
    grid-column: 1 / -1;
    width: 100%;
    border: 0;
    border-top: 1px solid #d8e7e4;
    margin: 0.35rem 0 0.2rem;
}

.two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    align-items: start;
}

.item-form {
    position: relative;
}

.item-form [data-field-group] {
    border: 1px solid #d4e6e3;
    border-radius: 12px;
    background: #fbfefd;
    padding: 0.65rem 0.75rem;
    display: grid;
    gap: 0.45rem;
}

.item-form [data-field-group][hidden] {
    display: none !important;
}

.panel-linked-source {
    margin-bottom: 0.4rem;
}

.panel-linked-target {
    margin-top: 0;
}

.item-card.is-editing {
    display: none !important;
}

.item-editor-inline-panel {
    margin: 0.2rem 0 0.85rem;
}

.item-grid > .item-editor-inline-panel,
.item-list > .item-editor-inline-panel,
.item-table > .item-editor-inline-panel {
    grid-column: 1 / -1;
}

.item-controls .search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: end;
}

.item-controls .search-row .btn,
.item-search-form .search-row .btn {
    align-self: stretch;
    min-height: 0;
}

.item-controls-config-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    align-items: start;
}

.item-sort-badge {
    align-self: end;
}

.visibility-toggle-form {
    margin: 0.2rem 0 0.25rem;
}

.visibility-toggle-row {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.visibility-toggle-row select {
    width: auto;
    min-width: 170px;
}

.visibility-toggle-row .select-with-icon {
    width: auto;
}

.visibility-toggle-row .btn {
    white-space: nowrap;
}

.visibility-label {
    font-weight: 700;
    color: var(--text-main);
    margin-right: 0.2rem;
}

.item-controls.custom-order-enabled {
    border-color: #9ecdc6;
    background: linear-gradient(180deg, #f8fffd 0%, #ffffff 100%);
}

.status-error {
    color: #9f3c2f;
}

.status-warning {
    color: #9b6a1f;
}

.status-ok {
    color: #0a776d;
}

.item-card .item-type {
    margin: 0;
    color: #0f776d;
    font-weight: 800;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
}

.card-actions {
    margin-top: auto;
    padding-top: 0.65rem;
    border-top: 1px dashed #d2e4e1;
}

.card-actions-menu {
    position: relative;
    margin-left: auto;
}

.card-actions-menu-trigger {
    list-style: none;
    cursor: pointer;
}

.card-actions-menu-trigger::-webkit-details-marker {
    display: none;
}

.card-actions > .btn,
.card-actions-menu-trigger {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: var(--text-muted);
    font-weight: 600;
}

.card-actions > .btn:hover,
.card-actions-menu-trigger:hover {
    border-color: #d9e8e5;
    background: #f3f8f7;
    color: var(--text-main);
}

.card-actions > .btn:focus-visible,
.card-actions-menu-trigger:focus-visible {
    outline: 2px solid #67b8ac;
    outline-offset: 2px;
}

.card-actions-menu-panel {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    z-index: 28;
    min-width: 220px;
    padding: 0.4rem;
    border: 1px solid #cbe0dc;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    display: grid;
    gap: 0.28rem;
}

.card-actions-menu:not([open]) .card-actions-menu-panel {
    display: none;
}

.card-actions-menu-panel .btn,
.card-actions-menu-panel a {
    width: 100%;
    justify-content: flex-start;
}

.card-actions-menu-panel .inline-form {
    display: block;
}

.list-card.is-menu-open,
.item-card.is-menu-open {
    z-index: 80;
}

.item-card .card-actions {
    align-items: center;
}

.item-card .card-actions-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: nowrap;
}

.item-card .card-actions-primary .btn {
    white-space: nowrap;
    min-height: 39px;
    padding: 0.32rem 0.58rem;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.item-card .card-actions-primary .btn:hover {
    border-color: #d9e8e5;
    background: #f3f8f7;
    color: var(--text-main);
}

.item-card .card-actions-primary .btn:focus-visible {
    outline: 2px solid #67b8ac;
    outline-offset: 2px;
}

.item-card .card-actions-primary .btn-danger {
    border-color: transparent;
    background: transparent;
    color: #96544d;
}

.item-card .card-actions-primary .btn-danger:hover {
    border-color: #f0d4ce;
    background: #fff3f0;
    color: #8a3127;
}

.item-quick-toggle.is-active {
    border-color: #b8ddd8;
    background: #eefaf7;
    color: #0c6861;
}

.item-quick-toggle:disabled {
    opacity: 0.7;
    cursor: progress;
}

.item-preview-image {
    margin-top: 0.6rem;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #d9eae7;
}

.item-grid > .item-card-public > .item-media-stack {
    margin-inline: -0.95rem;
}

.item-grid > .item-card-public > .item-media-stack .item-preview-image {
    border: 0;
    border-radius: 0;
}

.item-preview-video {
    margin-top: 0.6rem;
    width: 100%;
    max-height: 280px;
    border-radius: 12px;
    border: 1px solid #d9eae7;
    background: #111827;
}

.item-preview-audio {
    margin-top: 0.6rem;
    width: 100%;
    border-radius: 12px;
}

.rating {
    font-weight: 800;
    color: #8f5305;
}

.stars {
    letter-spacing: 0.08em;
}

.star-picker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.star-picker button[data-star-value] {
    border: 1px solid #d1ddd9;
    border-radius: 10px;
    background: #fff;
    color: #9aa5a2;
    padding: 0.32rem 0.44rem;
    line-height: 1;
    cursor: pointer;
}

.star-picker button[data-star-value].is-active {
    color: #c97a12;
    border-color: #e6be88;
    background: #fff8ee;
}

.payload {
    margin: 0.7rem 0 0;
    display: grid;
    gap: 0.25rem;
}

.payload dt {
    font-weight: 700;
}

.payload dd {
    margin: 0;
    color: var(--text-muted);
}

.source-line {
    margin-top: 0.5rem;
    font-size: 0.92rem;
}

.video-wrap {
    margin-top: 0.55rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #d5e6e3;
}

.video-wrap iframe {
    display: block;
    width: 100%;
    min-height: 260px;
    border: none;
}

.pagination {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.draggable-item.dragging {
    opacity: 0.65;
    transform: scale(0.98);
}

.custom-order-enabled .draggable-item {
    cursor: grab;
}

.item-grid.custom-order-enabled {
    grid-template-columns: 1fr;
}

.drag-handle-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #c6dad6;
    background: #f2fcfa;
    color: #2f6c66;
    display: inline-grid;
    place-items: center;
    cursor: grab;
}

.drag-handle-icon .material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
}

.drag-handle-icon[hidden] {
    display: none !important;
}

.reorder-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.reorder-controls[hidden] {
    display: none !important;
}

.reorder-btn {
    min-width: 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 999px;
}

.reorder-btn .material-symbols-outlined {
    font-size: 19px;
    line-height: 1;
}

.reorder-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.item-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.item-table {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.item-table > .item-table-head {
    display: none;
}

.item-table .item-card {
    box-shadow: none;
    border-radius: 0;
    padding: 0.65rem 0.75rem;
    border: 0;
    border-bottom: 1px solid #d8e7e4;
    background: transparent;
}

.item-table .item-card:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(16, 61, 65, 0.08);
}

.item-table .item-card-head {
    margin: 0;
}

.item-table .item-card-title-row h3 {
    font-size: 1.02rem;
    margin: 0;
}

@media (min-width: 860px) {
    .item-table {
        --item-table-columns: minmax(0, 1fr);
        border-top: 1px solid #d8e7e4;
        background: linear-gradient(180deg, #fbfefd 0%, #f7fbfa 100%);
    }

    .item-table[data-table-has-rank="1"][data-table-has-details="1"] {
        --item-table-columns: minmax(62px, 72px) minmax(220px, 1.15fr) minmax(0, 1.85fr);
    }

    .item-table[data-table-has-rank="1"][data-table-has-details="1"][data-table-has-actions="1"] {
        --item-table-columns: minmax(62px, 72px) minmax(220px, 1.05fr) minmax(0, 1.65fr) auto;
    }

    .item-table[data-table-has-rank="1"][data-table-has-details="0"] {
        --item-table-columns: minmax(62px, 72px) minmax(220px, 1fr);
    }

    .item-table[data-table-has-rank="1"][data-table-has-details="0"][data-table-has-actions="1"] {
        --item-table-columns: minmax(62px, 72px) minmax(220px, 1fr) auto;
    }

    .item-table[data-table-has-rank="0"][data-table-has-details="1"] {
        --item-table-columns: minmax(220px, 1.15fr) minmax(0, 1.85fr);
    }

    .item-table[data-table-has-rank="0"][data-table-has-details="1"][data-table-has-actions="1"] {
        --item-table-columns: minmax(220px, 1.05fr) minmax(0, 1.65fr) auto;
    }

    .item-table[data-table-has-rank="0"][data-table-has-details="0"][data-table-has-actions="1"] {
        --item-table-columns: minmax(220px, 1fr) auto;
    }

    .item-table > .item-table-head {
        display: grid;
        grid-template-columns: var(--item-table-columns);
        gap: 0.4rem 0.8rem;
        align-items: center;
        position: sticky;
        top: 78px;
        z-index: 8;
        padding: 0.75rem;
        border-bottom: 1px solid #cfe3df;
        background: rgba(244, 248, 247, 0.94);
        backdrop-filter: blur(8px);
    }

    .item-table-head-cell {
        min-width: 0;
        color: var(--text-muted);
        font-size: 0.76rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .item-table-head-rank {
        text-align: center;
    }

    .item-table-head-actions {
        text-align: right;
    }

    .item-table .item-card {
        display: grid;
        grid-template-columns: var(--item-table-columns);
        gap: 0.4rem 0.8rem;
        align-items: center;
        padding-block: 0.8rem;
    }

    .item-table .item-card > .item-side-meta {
        grid-column: 1;
        grid-row: 1 / -1;
        margin: 0;
        justify-self: center;
    }

    .item-table .item-card > .item-card-head {
        grid-column: 1;
    }

    .item-table[data-table-has-rank="1"] .item-card > .item-card-head {
        grid-column: 2;
    }

    .item-table .item-card > .item-media-stack {
        grid-column: 3;
        grid-row: auto;
        margin: 0;
    }

    .item-table[data-table-has-rank="0"][data-table-has-details="1"] .item-card > .item-media-stack {
        grid-column: 2;
    }

    .item-table .item-card > .item-media-stack .item-preview-image {
        width: 100%;
        max-width: 180px;
        max-height: 92px;
        object-fit: cover;
        border-radius: 8px;
    }

    .item-table .item-card > .item-media-stack .video-wrap iframe {
        min-height: 92px;
    }

    .item-table .item-card > .card-actions {
        grid-column: 4;
        grid-row: 1 / -1;
        justify-self: end;
        align-self: start;
        margin: 0;
    }

    .item-table[data-table-has-rank="1"][data-table-has-details="0"] .item-card > .card-actions {
        grid-column: 3;
    }

    .item-table[data-table-has-rank="0"][data-table-has-details="1"] .item-card > .card-actions {
        grid-column: 3;
    }

    .item-table[data-table-has-rank="0"][data-table-has-details="0"] .item-card > .card-actions {
        grid-column: 2;
    }

    .item-table .item-card > :not(.item-side-meta):not(.item-card-head):not(.item-media-stack):not(.card-actions) {
        grid-column: 3;
        margin: 0;
    }

    .item-table[data-table-has-rank="0"][data-table-has-details="1"] .item-card > :not(.item-side-meta):not(.item-card-head):not(.item-media-stack):not(.card-actions) {
        grid-column: 2;
        margin: 0;
    }

    .item-table .item-card:not(.item-has-media) > :not(.item-side-meta):not(.item-card-head):not(.item-media-stack):not(.card-actions) {
        grid-column: 3;
    }

    .item-table[data-table-has-rank="0"][data-table-has-details="1"] .item-card:not(.item-has-media) > :not(.item-side-meta):not(.item-card-head):not(.item-media-stack):not(.card-actions) {
        grid-column: 2;
    }

    .item-table .item-card:not(.item-has-side-meta):not(.item-has-media) > :not(.item-card-head):not(.card-actions) {
        grid-column: 3;
    }

    .item-table[data-table-has-rank="0"][data-table-has-details="1"] .item-card:not(.item-has-side-meta):not(.item-has-media) > :not(.item-card-head):not(.card-actions) {
        grid-column: 2;
    }

    .item-table .item-rank-prefix {
        display: none;
    }

    .item-table .item-rank {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 2.5rem;
        margin: 0;
    }
}

.item-table .item-card.item-bulk-selected {
    border-bottom-color: #5578c7;
    background: linear-gradient(90deg, #edf2ff 0%, transparent 100%);
    box-shadow: inset 4px 0 0 #5578c7;
}


@media (max-width: 859px) {
    .item-table .item-card {
        display: grid;
        gap: 0.45rem;
        border: 1px solid #d5e5e2;
        border-radius: 10px;
        background: #fff;
        margin-bottom: 0.5rem;
    }

    .item-table .item-card > .card-actions {
        margin-top: 0.35rem;
    }

    .create-item-draft-board.item-table .create-item-draft-card {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1180px) {
    .item-list .item-card {
        --item-content-col: 1;
        --item-media-col: 1;
        display: grid;
        gap: 0.55rem 1rem;
        align-items: start;
    }

    .item-list .item-card.item-has-side-meta {
        --item-content-col: 2;
    }

    .item-list .item-card.item-has-media {
        --item-content-col: 2;
        --item-media-col: 1;
    }

    .item-list .item-card.item-has-side-meta.item-has-media {
        --item-content-col: 3;
        --item-media-col: 2;
    }

    .item-list .item-card.item-has-side-meta.item-has-media {
        grid-template-columns: 76px minmax(220px, 340px) minmax(0, 1fr);
    }

    .item-list .item-card.item-has-side-meta:not(.item-has-media) {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .item-list .item-card.item-has-media:not(.item-has-side-meta) {
        grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
    }

    .item-list .item-card:not(.item-has-side-meta):not(.item-has-media) {
        grid-template-columns: 1fr;
    }

    .item-list .item-card > .item-side-meta {
        grid-column: 1;
        grid-row: 1 / -1;
        align-self: start;
        margin: 0.05rem 0 0;
        display: grid;
        gap: 0.45rem;
        justify-items: start;
    }

    .item-list .item-card > .item-media-stack {
        grid-column: var(--item-media-col);
        grid-row: 1 / span 8;
        align-self: start;
        margin-top: 0;
    }

    .item-list .item-card > :not(.item-side-meta):not(.item-media-stack) {
        grid-column: var(--item-content-col);
    }

    .item-list .item-card > .item-media-stack .item-preview-image {
        width: 100%;
        max-width: none;
        height: auto;
        max-height: min(62vh, 460px);
        object-fit: contain;
        object-position: center;
        background: #eef7f5;
        align-self: flex-start;
    }

    .item-list .item-card > .item-media-stack .video-wrap iframe {
        min-height: 220px;
    }

    .item-list .item-card > .item-media-stack .item-preview-audio {
        width: 100%;
        max-width: none;
    }

    .item-list .item-card > .card-actions {
        margin-top: 0.35rem;
    }

    .item-list .item-card > .card-actions > .card-actions-primary {
        margin-left: auto;
    }
}

.featured-items-board + [data-public-board] {
    margin-top: 1rem;
}

.vote-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.vote-actions {
    display: inline-flex;
    gap: 0.35rem;
}

.vote-positive.is-active {
    background: #e9faf4;
    border-color: #90d4bc;
}

.vote-negative.is-active {
    background: #fff0ee;
    border-color: #e2aba4;
}

.vote-toggle.is-active {
    background: #ebf9f6;
    border-color: #95d2c9;
}

.list-like-toggle.is-active {
    background: #ebf9f6;
    border-color: #95d2c9;
    color: var(--brand-deep);
}

.list-dislike-toggle.is-active {
    background: #fff0ee;
    border-color: #e2aba4;
    color: #9b4037;
}

.list-save-toggle.is-active {
    background: #ebf8ff;
    border-color: #9bcde8;
    color: #1f5f84;
}

.list-pin-toggle.is-active {
    background: #f4f0ff;
    border-color: #c9bbf2;
    color: #6043a4;
}

.list-like-meta strong {
    font-weight: 800;
}

.list-reaction-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
}

.list-reaction-meta strong {
    font-weight: 800;
}

.item-rank {
    font-weight: 800;
    color: #2c5960;
}

.item-custom-selection-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--item-custom-selection-color, #0f9f8f) 42%, #d1e5e1);
    background: color-mix(in srgb, var(--item-custom-selection-color, #0f9f8f) 14%, #ffffff);
    color: color-mix(in srgb, var(--item-custom-selection-color, #0f9f8f) 54%, #123133);
    font-weight: 700;
    line-height: 1.2;
}

.item-check-state {
    font-weight: 700;
    color: #406168;
}

.check-icon {
    display: inline-block;
    width: 1.2rem;
    text-align: center;
}

.item-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.83rem;
    border-top: 1px dashed #d3e4e1;
    padding-top: 0.55rem;
    margin-top: 0.6rem;
}

.list-taxonomy {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    margin-top: 0.35rem;
}

.list-taxonomy strong {
    color: var(--text-main);
}

.view-switch {
    display: inline-flex;
    gap: 0.4rem;
}

.inline-form {
    margin: 0;
}

.visibility-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    border: 1px solid #c8ddd9;
    border-radius: 12px;
    padding: 0.55rem 0.7rem;
}

.visibility-toggle input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.toggle-ui {
    width: 52px;
    height: 28px;
    background: #d7e7e4;
    border-radius: 999px;
    position: relative;
    flex: 0 0 auto;
}

.toggle-ui::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(18, 49, 51, 0.18);
    transition: left 140ms ease;
}

.visibility-toggle input:checked + .toggle-ui {
    background: #92d7cc;
}

.visibility-toggle input:checked + .toggle-ui::after {
    left: 26px;
}

.visibility-toggle input:disabled + .toggle-ui {
    opacity: 0.5;
}

.notification-list {
    display: grid;
    gap: 0.65rem;
}

.notification-item {
    border: 1px solid #c9ddd9;
    border-radius: 12px;
    padding: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 0.8rem;
    background: #fff;
}

.notification-item.is-unread {
    background: #f2fcfa;
}

.notification-item h2 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.notification-item .btn {
    white-space: nowrap;
}

.notification-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.notification-actions .inline-form {
    display: inline-flex;
}

.notification-title-link {
    color: inherit;
    text-decoration: none;
}

.notification-title-link:hover {
    text-decoration: underline;
}

.comments-panel {
    margin-top: 1rem;
}

.comments-form {
    margin-top: 0.7rem;
}

.item-comments {
    margin-top: 0.75rem;
    border-top: 1px solid #dce9e7;
    padding-top: 0.65rem;
}

.item-comments > .item-comments-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    min-width: 2.65rem;
    min-height: 2.65rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid #d2e3e0;
    border-radius: 999px;
    background: #fff;
    list-style: none;
    cursor: pointer;
    color: var(--text-strong);
    font: inherit;
    font-weight: 700;
}

.item-comments > .item-comments-toggle:focus-visible {
    outline: 3px solid rgba(15, 159, 143, 0.22);
    outline-offset: 2px;
}

.item-comments.is-open > .item-comments-toggle {
    border-color: #9bcfc7;
    background: #eefaf7;
}

.item-comments-body {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.65rem;
}

.item-comments-body[hidden] {
    display: none;
}

.item-comment-form {
    gap: 0.45rem;
}

.comment-composer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.comment-composer-actions .btn {
    margin: 0;
}

.item-comments-list {
    margin-top: 0;
}

.item-comment {
    border-radius: 8px;
    padding: 0.55rem;
}

.comments-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.comment-item {
    border: 1px solid #d2e3e0;
    border-radius: 12px;
    padding: 0.7rem;
    background: #fff;
}

.comment-item .meta {
    margin: 0 0 0.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.comment-item p:last-child {
    margin-bottom: 0;
}

.comment-edit-details {
    margin-top: 0.5rem;
}

.comment-edit-details,
.comment-reply-details {
    width: auto;
}

.comment-edit-details summary,
.comment-reply-details summary {
    cursor: pointer;
    color: var(--text-strong);
    font-weight: 700;
}

.comment-edit-details > summary,
.comment-reply-details > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 2.65rem;
    min-height: 2.65rem;
    padding: 0.65rem;
    border: 1px solid #d2e3e0;
    border-radius: 10px;
    background: #fff;
    list-style: none;
}

.comment-reply-details > summary.comment-reply-trigger {
    min-width: 0;
    min-height: 39px;
    padding: 0.42rem 0.78rem;
    border-color: #c5dbd8;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.89rem;
}

.comment-reply-details > summary.comment-reply-trigger:hover {
    border-color: #9bcfc7;
    background: #eefaf7;
    color: var(--brand-deep);
}

.comment-edit-details > summary::-webkit-details-marker,
.comment-reply-details > summary::-webkit-details-marker {
    display: none;
}

.comment-edit-details > summary::marker,
.comment-reply-details > summary::marker {
    content: "";
}

.comment-edit-form {
    margin-top: 0.55rem;
}

.comment-reply-details {
    margin-top: 0.5rem;
}

.comment-reply-form {
    margin-top: 0.55rem;
}

.comment-edit-form textarea,
.comment-reply-form textarea,
.comment-edit-form .btn,
.comment-reply-form .btn {
    width: 100%;
}

.comment-edit-form .btn,
.comment-reply-form .btn {
    justify-content: center;
}

.comment-edit-form > .icon-only-action,
.comment-reply-form .comment-composer-actions .icon-only-action {
    width: fit-content;
}

.comment-composer-actions .btn {
    width: fit-content;
}

.comment-actions {
    margin-top: 0.55rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.comment-actions .comment-edit-details,
.comment-actions .comment-reply-details {
    flex: 0 0 auto;
}

.comment-actions .comment-edit-details[open],
.comment-actions .comment-reply-details[open] {
    flex: 1 1 100%;
    width: 100%;
}

.comment-replies {
    margin: 0.2rem 0 0.45rem 1rem;
    padding-left: 0.8rem;
    border-left: 2px solid #d6e6e3;
    display: grid;
    gap: 0.55rem;
}

.comment-reply {
    background: #f9fdfc;
}

.legal-page ul {
    margin: 0.6rem 0 0;
    padding-left: 1.2rem;
}

.site-footer {
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(18, 49, 51, 0.14);
    padding-block: 1.4rem 2rem;
    margin-top: 0.8rem;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.footer-lang {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-lang label {
    font-size: 0.86rem;
}

.footer-lang select {
    width: auto;
    min-width: 120px;
    border-radius: 999px;
    padding: 0.35rem 0.6rem;
}

.footer-nav {
    margin-top: 0.8rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Private messages */
.thread-list {
    display: grid;
    gap: 0.55rem;
}

.thread-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem;
    border: 1px solid #d2e3e0;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.thread-item:hover {
    border-color: #b9d8d3;
    box-shadow: var(--shadow-soft);
}

.thread-main {
    flex: 1;
    min-width: 0;
}

.thread-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.thread-preview {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.thread-unread {
    flex: 0 0 auto;
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.dm-user {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
}


.dm-user:hover h2 {
    text-decoration: underline;
}

.dm-thread {
    padding: 0;
    overflow: hidden;
}

.dm-messages {
    max-height: min(56vh, 620px);
    overflow: auto;
    padding: 1rem;
    display: grid;
    gap: 0.6rem;
}

.dm-message {
    display: flex;
}

.dm-message.is-mine {
    justify-content: flex-end;
}

.dm-bubble {
    max-width: min(680px, 100%);
    border: 1px solid #d2e3e0;
    border-radius: 16px;
    padding: 0.65rem 0.75rem;
    background: #fff;
}

.dm-message.is-mine .dm-bubble {
    background: #f2fcfa;
    border-color: #b6e4dc;
}

.dm-bubble p {
    margin: 0 0 0.25rem;
}

.dm-bubble p:last-child {
    margin-bottom: 0;
}

.dm-compose textarea {
    min-height: 110px;
}

/* List report */
.report-panel details > summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--text-main);
    list-style: none;
}

.report-panel details > summary::-webkit-details-marker {
    display: none;
}

.report-panel details > summary::after {
    content: "+";
    float: right;
    font-weight: 900;
    color: var(--text-muted);
}

.report-panel details[open] > summary::after {
    content: "â€“";
}

.report-panel details > summary:hover {
    text-decoration: underline;
}

@media (max-width: 980px) {
    html,
    body {
        max-width: 100%;
        overflow-x: clip;
    }

    .list-create-sticky-head {
        position: sticky;
        top: 68px;
        flex-direction: column;
        align-items: stretch;
    }

    .list-create-sticky-head-actions {
        justify-content: flex-start;
    }

    .list-create-settings-button {
        display: inline-flex;
    }

    .list-create-layout {
        grid-template-columns: 1fr;
        overflow-x: clip;
    }

    .list-create-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(92vw, 420px);
        max-height: 100dvh;
        margin: 0;
        border-radius: 0;
        border-left: 1px solid #d4e5e2;
        transform: translate3d(100%, 0, 0);
        visibility: hidden;
        pointer-events: none;
        transition: transform 150ms ease, visibility 0s linear 150ms;
        overflow: auto;
        overscroll-behavior: contain;
        z-index: 150;
    }

    .list-create-sidebar [data-create-settings-close] {
        display: inline-flex;
    }

    .list-create-sidebar.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        transition: transform 150ms ease;
    }

    .settings-drawer-open {
        overflow: hidden;
        overflow-x: clip;
    }

    .list-create-mobile-actions {
        display: flex;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .item-controls .search-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .item-controls-config-row {
        grid-template-columns: 1fr;
    }

    .search-submit-compact {
        min-width: 2.9rem;
        padding-inline: 0.7rem;
    }

    .search-submit-compact .ui-label-inline {
        gap: 0;
    }

    .search-submit-compact .ui-label-inline > span:last-child {
        display: none;
    }

    .search-submit-compact .ui-label-inline > .ui-label-icon {
        margin-right: 0;
    }
}

@media (max-width: 1220px) and (min-width: 721px) {
    .brand {
        max-width: min(calc(34vw + 1.2rem), 13.2rem);
    }

    .brand-logo-baseline {
        display: none;
    }

    .brand-logo-compact {
        display: block;
        width: clamp(8.6rem, 16vw, 11.4rem);
    }

    .main-nav {
        gap: 0.22rem;
    }

    .main-nav a,
    .main-nav .btn-link,
    .main-nav .link-btn {
        padding: 0.4rem 0.68rem;
    }

    .main-nav-search-item {
        min-width: 11rem;
        max-width: 21rem;
    }
}


@media (max-width: 980px) {
    .site-header {
        background: rgba(244, 248, 247, 0.95);
    }

    .nav-shell {
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding-block: 0.62rem;
        width: min(100%, calc(100vw - 1rem));
        padding-inline: 0.5rem;
    }

    .brand {
        max-width: calc(100% - 3.6rem);
        margin-block: -0.62rem;
    }

    .brand-logo-baseline {
        display: none;
    }

    .brand-logo-compact {
        display: block;
        width: clamp(8.4rem, 46vw, 11.8rem);
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .main-nav {
        gap: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 0.65rem;
        border: 1px solid #cfe1de;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 16px 34px rgba(16, 61, 65, 0.11);
    }

    .site-nav {
        width: 100%;
    }

    .site-nav[data-mobile-nav][hidden] {
        display: none !important;
    }

    .main-nav li {
        width: 100%;
        min-width: 0;
    }

    .main-nav a,
    .main-nav .btn-link,
    .main-nav .link-btn {
        width: 100%;
        justify-content: flex-start;
        border-radius: 0;
        padding: 0.78rem 0.9rem;
        font-size: 1rem;
        border-bottom: 1px solid #e4f0ed;
        white-space: normal;
    }

    .main-nav-primary + .main-nav-primary {
        margin-top: 0;
    }

    .main-nav-primary a {
        min-height: 3.25rem;
        align-items: center;
        font-weight: 800;
    }

    .main-nav-primary:first-child a {
        border-radius: 12px 12px 0 0;
    }

    .main-nav-create {
        padding: 0.7rem 0 0.65rem;
    }

    .main-nav-create .nav-cta {
        min-height: 3.5rem;
        border-radius: 14px;
        justify-content: center;
        box-shadow: 0 14px 24px rgba(15, 159, 143, 0.18);
        border-bottom: 1px solid #0d8b7d;
    }

    .main-nav-create .nav-cta .ui-label-inline {
        gap: 0.55rem;
    }

    .main-nav-search-item {
        min-width: 0;
        max-width: none;
        flex: 0 0 auto;
        width: 100%;
        padding: 0 0 0.75rem;
        border-bottom: 1px solid #dbe9e6;
    }

    .main-nav .nav-search {
        width: 100%;
        display: flex;
        gap: 0;
        border-radius: 14px;
        background: #f9fcfb;
    }

    .nav-search input[type="search"] {
        width: 100%;
        min-width: 0;
        min-height: 3rem;
        padding-left: 0.95rem;
    }

    .main-nav .nav-search .nav-search-submit {
        width: auto;
        max-width: none;
        min-width: 3.2rem;
        justify-content: center;
        background: #f9fcfb !important;
    }

    .nav-search-submit .ui-label-inline > span:last-child {
        display: none;
    }

    .mobile-nav-label {
        display: inline;
    }

    .main-nav-notif .notification-link {
        width: 100%;
        justify-content: flex-start;
        gap: 0.7rem;
        min-height: 3.2rem;
        padding-right: 2.2rem;
        border-top: 0;
    }

    .main-nav-notif .notif-count {
        right: 0.9rem;
        top: 50%;
        transform: translateY(-50%);
    }


}

@media (max-width: 980px) {


    .main-nav-notif .bell-icon {
        width: 2.15rem;
        height: 2.15rem;
        border-radius: 999px;
        background: #eef9f6;
        border: 1px solid #cfe7e2;
        flex: 0 0 auto;
    }

    .main-nav-notif .bell-icon svg {
        width: 1.05rem;
        height: 1.05rem;
    }

    .main-nav-user .user-menu {
        width: 100%;
    }

    .main-nav-user .user-menu summary {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.7rem;
        min-height: 3.35rem;
        padding: 0.48rem 0.9rem;
        border: 0;
        border-radius: 0 0 12px 12px;
        background: transparent;
        border-bottom: 0;
        font-weight: 800;
    }

    .main-nav-user .user-menu-panel {
        position: static;
        margin: 0 0 0.25rem 2.95rem;
        min-width: 0;
        box-shadow: none;
        border: 0;
        border-left: 1px solid #dbe9e6;
        border-radius: 0;
        padding: 0.15rem 0 0.25rem 0.55rem;
        background: transparent;
        gap: 0;
    }

    .main-nav-user .user-menu-panel a,
    .main-nav-user .user-menu-panel .link-btn {
        min-height: 2.75rem;
        padding: 0.52rem 0.65rem;
        border: 0;
        border-radius: 10px;
        font-size: 0.95rem;
        font-weight: 700;
    }

    .main-nav-user .nav-avatar {
        width: 2.15rem;
        height: 2.15rem;
        border: 1px solid #cfe7e2;
        background: #eef9f6;
    }

}

@media (max-width: 720px) {
    .hero h1 {
        max-width: none;
    }

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

    .hero-actions .btn {
        flex: 1 1 calc(50% - 0.5rem);
    }

    .footer-top {
        align-items: start;
        flex-direction: column;
    }

    .view-switch {
        width: 100%;
    }

    .view-switch .btn {
        flex: 1 1 0;
    }

    .creator-head {
        align-items: flex-start;
        flex-direction: column;
    }

}

.home-hero-search .form-focus-cancel {
    display: none;
}

@media (max-width: 720px) {
    .home-hero-search-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.5rem;
    }

    .home-hero-search-row .btn {
        min-width: 3.25rem;
        padding-inline: 0.8rem;
    }

    .home-hero-search-row .btn .ui-label-inline {
        gap: 0;
    }

    .home-hero-search-row .btn .ui-label-inline > span:last-child {
        display: none;
    }

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

.list-detail-actions .icon-only-action .ui-label-inline {
    gap: 0.38rem;
}

.list-detail-actions .icon-only-action .ui-label-inline > span:last-child {
    display: inline;
}

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

.breadcrumb-trail {
    margin: 0 0 1rem;
}

.breadcrumb-trail-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.breadcrumb-trail.has-actions .breadcrumb-trail-inner {
    justify-content: space-between;
    flex-wrap: wrap;
}

.breadcrumb-trail.has-actions .breadcrumb-list {
    min-width: 0;
}

.breadcrumb-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
    margin-left: auto;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: rgba(99, 113, 137, 0.68);
    margin-right: 0.1rem;
}

.breadcrumb-item a {
    color: inherit;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--text-main);
    text-decoration: underline;
}

.breadcrumb-item.is-current span {
    color: rgba(65, 96, 98, 0.72);
    font-weight: 500;
}

.item-normalized-controls {
    display: grid;
    grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
    gap: .6rem;
    align-items: center;
}

@media (max-width: 720px) {
    .item-normalized-controls {
        grid-template-columns: 1fr;
    }
}

.item-normalized-link a {
    font-weight: 600;
}
