* {
    box-sizing: border-box
}

/* Main Menu Page */

.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;
}

.menu-main {
    min-height: calc(100vh - 68px);
    padding: 42px 46px 58px;
    color: #111;
    background:
        radial-gradient(circle at 18% 12%, rgba(0, 0, 0, .045), transparent 28%),
        radial-gradient(circle at 86% 8%, rgba(0, 0, 0, .035), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f7f7f8 48%, #eeeeef 100%);
    overflow: hidden;
}

.menu-eyebrow {
    margin: 0 0 10px;
    color: rgba(0, 0, 0, .48);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.menu-carousel-section {
    max-width: 1080px;
    margin: 0 auto 30px;
}

.menu-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.menu-section-header h2 {
    margin: 0;
    color: #111;
    font-size: 24px;
    line-height: 1.1;
}

.menu-section-header p {
    margin: 0;
    color: rgba(0, 0, 0, .48);
    font-size: 13px;
    line-height: 1.4;
    text-align: right;
}

.menu-carousel {
    --carousel-shift: 1248px;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 18px 0 28px;
    overflow: hidden;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.menu-carousel::-webkit-scrollbar {
    display: none;
}

.menu-carousel::before,
.menu-carousel::after {
    display: none;
}

.menu-carousel-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: menuCarouselTrackLoop 40s linear infinite;
    will-change: transform;
}

.menu-carousel:hover .menu-carousel-track,
.menu-carousel:focus-within .menu-carousel-track {
    animation-play-state: paused;
}

.menu-tile {
    position: relative;
    isolation: isolate;
    flex: 0 0 190px;
    width: 190px;
    min-width: 190px;
    max-width: 190px;
    height: 160px;
    scroll-snap-align: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px;
    color: #111;
    text-decoration: none;
    background:
        radial-gradient(circle at 24% 18%, rgba(0,0,0,.045), transparent 34%),
        linear-gradient(180deg, #ffffff, #f2f2f3);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 40px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.95),
        0 4px 10px rgba(0,0,0,.045);
    overflow: hidden;
    animation: menuTileFloat 6.8s ease-in-out infinite;
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.menu-tile:nth-child(2n) {
    animation-delay: -1.4s;
}

.menu-tile:nth-child(3n) {
    animation-delay: -2.8s;
}

.menu-tile::before {
    display: none;
}

.menu-tile i {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: rgba(0,0,0,.06);
    color: rgba(0,0,0,.78);
    font-size: 24px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.menu-tile span {
    color: #111;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.menu-tile:hover,
.menu-tile:focus-visible {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0,0,0,.14);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,1),
        0 6px 14px rgba(0,0,0,.06),
        0 0 0 2px rgba(0,0,0,.025);
    outline: none;
    animation-play-state: paused;
}

.menu-tile:active {
    transform: translateY(6px) scale(.98);
}

.menu-tile-preview {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 112px;
    padding: 22px 24px;
    color: #111;
    background:
        linear-gradient(180deg, rgba(255,255,255,.94), rgba(245,245,246,.94)),
        #ffffff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 38px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.95),
        0 6px 16px rgba(0,0,0,.055);
}

.menu-preview-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(0,0,0,.06);
    color: rgba(0,0,0,.7);
    font-size: 22px;
}

.menu-tile-preview h3 {
    margin: 0 0 7px;
    color: #111;
    font-size: 20px;
    line-height: 1.15;
}

.menu-tile-preview p {
    margin: 0;
    color: rgba(0, 0, 0, .62);
    font-size: 14px;
    line-height: 1.45;
}

.menu-ai-chat {
    max-width: 1080px;
    margin: 30px auto 0;
    padding: 26px;
    color: #111;
    background:
        radial-gradient(circle at 18% 20%, rgba(0,0,0,.045), transparent 26%),
        linear-gradient(180deg, #ffffff, #f3f3f4);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 38px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.95),
        0 6px 16px rgba(0,0,0,.055);
}

.menu-ai-intro {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.menu-ai-icon {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: #111;
    color: #fff;
    font-size: 26px;
    animation: menuAiGlow 3.8s ease-in-out infinite;
}

.menu-ai-intro h2 {
    margin: 0 0 7px;
    color: #111;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.menu-ai-intro p:not(.menu-eyebrow) {
    margin: 0;
    color: rgba(0, 0, 0, .62);
    font-size: 14px;
    line-height: 1.45;
}

.menu-ai-example {
    width: fit-content;
    max-width: 680px;
    margin: 0 0 16px;
    padding: 16px 18px;
    background: linear-gradient(180deg, #f6f6f7, #eeeeef);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 22px 22px 22px 8px;
    box-shadow: 0 10px 28px rgba(0,0,0,.1);
}

.menu-ai-example strong {
    display: block;
    margin-bottom: 7px;
    color: #111;
    font-size: 13px;
}

.menu-ai-example p {
    margin: 0;
    color: rgba(0, 0, 0, .62);
    font-size: 14px;
    line-height: 1.45;
}

.menu-ai-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: rgba(0,0,0,.045);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 999px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 10px 26px rgba(0,0,0,.22);
    overflow: hidden;
}

.menu-ai-form::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    left: 18%;
    top: 50%;
    border-radius: 50%;
    background: rgba(0,0,0,.12);
    filter: blur(26px);
    opacity: .35;
    transform: translate(-50%, -50%);
    animation: menuInputWater 8s ease-in-out infinite;
    pointer-events: none;
}

.menu-ai-form input {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 16px;
    border: none;
    outline: none;
    background: transparent;
    color: #111;
    font-size: 16px;
}

.menu-ai-form input::placeholder {
    color: rgba(0,0,0,.42);
}

.menu-ai-form button {
    position: relative;
    z-index: 1;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 22px;
    border: none;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.menu-ai-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
}

.menu-ai-form button:active {
    transform: translateY(0) scale(.98);
}

@keyframes menuCarouselTrackLoop {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-1 * var(--carousel-shift)));
    }
}

@keyframes menuTileFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes menuAiGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0,0,0,.1);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(0,0,0,0);
    }
}

@keyframes menuInputWater {
    0%, 100% {
        left: 18%;
        opacity: .18;
    }

    35% {
        left: 72%;
        opacity: .38;
    }

    70% {
        left: 44%;
        opacity: .28;
    }
}

@media(max-width:1200px) {
    .menu-carousel {
        --carousel-shift: 1152px;
    }

    .menu-carousel-track {
        gap: 16px;
    }

    .menu-tile {
        flex: 0 0 176px;
        width: 176px;
        min-width: 176px;
        max-width: 176px;
        height: 152px;
        border-radius: 36px;
    }
}

@media(max-width:900px) {
    .menu-main {
        padding: 28px 18px 42px;
    }

    .menu-section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .menu-section-header p {
        text-align: left;
    }

    .menu-carousel {
        --carousel-shift: 1044px;
    }

    .menu-carousel-track {
        gap: 14px;
    }

    .menu-tile {
        flex: 0 0 160px;
        width: 160px;
        min-width: 160px;
        max-width: 160px;
        height: 142px;
        padding: 18px;
        border-radius: 30px;
    }

    .menu-tile-preview,
    .menu-ai-intro {
        display: flex;
        align-items: center;
        gap: 10px;
        /* align-items: flex-start;
        flex-direction: column; */
    }

    .menu-ai-form {
        border-radius: 28px;
        flex-direction: column;
        align-items: stretch;
    }

    .menu-ai-form button {
        width: 100%;
    }
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    color: #111
}

.top {
    height: 68px;
    background: #050505;
    display: flex;
    align-items: center;
    padding: 0 18px;
    position: sticky;
    top: 0;
    z-index: 5
}

.logo {
    color: #fff;
    font-weight: 700;
    font-size: 38px;
    margin-right: auto;
    text-decoration: none;

    display: flex;
    align-items: center;

    transition:
        transform .15s ease,
        opacity .15s ease;
}

.logo:hover {
    transform: scale(1.03);
    opacity: .9;
}

.search-box {
    width: 440px;
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: #2f2f32;
    border-radius: 26px
}

.search-box i {
    color: #b8b8b8;
    font-size: 20px;
    margin-right: 16px
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: white;
    font-size: 18px
}

.search-box input::placeholder {
    color: #b8b8b8
}

.user {
    margin-left: auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: transform .15s ease, opacity .15s ease
}

.user i {
    font-size: 33px;
    color: #bdbdbd;
    line-height: 1
}

.user:hover {
    transform: scale(1.05);
    opacity: .9
}

.layout {
    display: flex
}

.sidebar {
    width: 192px;
    background: #303030;
    color: #fff;
    min-height: calc(100vh - 68px);
    padding: 14px 12px;
    position: sticky;
    top: 68px;
    z-index: 6;
    align-self: flex-start;
    transition: width .25s ease, padding .25s ease;
    overflow: hidden;
}

.collapse {
    text-align: right;
    font-size: 28px;
    line-height: 20px
}

.navitem {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 11px 0;
    padding: 6px 8px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease, padding-left .18s ease
}

.navitem:visited {
    color: inherit;
}

.navitem:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .75);
    outline-offset: 2px;
}

.navitem i {
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    transition: transform .18s ease, color .18s ease
}

.navtext {
    white-space: nowrap;
    transition: opacity .18s ease, transform .18s ease
}

.navitem:hover {
    background: rgba(255, 255, 255, .08);
    transform: translateX(2px)
}

.navitem:hover i {
    transform: scale(1.14)
}

.active-menu {
    background: rgba(255, 255, 255, .12)
}

.active-menu::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    width: 4px;
    height: 70%;
    background: #fff;
    border-radius: 999px;
    transform: translateY(-50%)
}

.home {
    font-size: 14px
}

.divider {
    height: 1px;
    background: #aaa;
    margin: 18px 0
}

.indent1 {
    margin-left: 20px
}

.indent2 {
    margin-left: 40px
}

.indent3 {
    margin-left: 60px
}

.pill {
    background: #fff;
    color: #222;
    border-radius: 15px;
    padding: 2px 10px;
    margin-left: -8px
}

.state {
    margin-left: auto
}

.main {
    flex: 1;
    min-width: 0
}

/* Article Page Header */

.article-page {
    padding: 40px;
    background: #fff;
}

.article-page-inner {
    max-width: 1000px;
    margin: 0 auto;
}

/* Article Page */

.article-page {
    min-height: calc(100vh - 68px);
    padding: 0 46px 64px;
    background:
        radial-gradient(circle at 18% 10%, rgba(0,0,0,.035), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #fafafa 52%, #f4f4f5 100%);
}

.article-page-inner {
    max-width: 1160px;
    margin: 0 auto;
}

/* Article Page Header */

.article-page-header {
    position: sticky;
    top: 68px;
    z-index: 4;

    margin: 0 0 34px;
    padding: 33px 0 18px;

    background: transparent;
    backdrop-filter: none;

    transition:
        padding .3s ease,
        background .3s ease,
        box-shadow .3s ease;
}

.article-page-header::before {
    content: "";
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    height: var(--article-header-bg-height, 88px);

    z-index: -1;

    background: rgba(255,255,255,.88);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);

    transition: height .3s ease;
}

.article-page-header.compact {
    padding-top: 10px;
    padding-bottom: 10px;
    --article-header-bg-height: 42px;
}

.article-page-header h1 {
    margin: 0;
    color: #111;
    font-size: clamp(38px, 4vw, 54px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.05em;
    transform-origin: left center;
    transition:
        font-size .3s ease,
        transform .3s ease,
        letter-spacing .3s ease;
}

.article-page-header.compact h1 {
    font-size: 1.15rem;
    letter-spacing: -.02em;
    transform: scale(.92);
}

.article-page .content {
    padding: 0;
}

.article-page .content.article {
    grid-template-columns: minmax(0, 860px) 210px;
    gap: 52px;
}

.article-page .maincol {
    grid-column: auto;
}

.article-page .content.article > aside {
    grid-column: auto;
    width: 210px;
}

.article-page .rightbox,
.article-page .news-widget {
    border-color: rgba(0,0,0,.1);
    border-radius: 16px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.95),
        0 8px 22px rgba(0,0,0,.07);
}
.article-page-header h1 {
    margin: 0;
    color: #111;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.arrows {
    margin-left: auto;
    font-size: 22px
}

.content {
    width: 100%;
    padding: 22px 28px 50px
}

.content.article {
    display: grid;
    grid-template-columns: 1fr minmax(0, 860px) 1fr 180px;
    gap: 24px;
    align-items: start
}

.maincol {
    grid-column: 2;
    min-width: 0
}

.content.article > aside {
    grid-column: 4;
    width: 180px
}

.chapter {
    font-size: 22px;
    margin: 0 0 16px;
    border-bottom: 2px solid #111;
    display: inline-block;
    padding-bottom: 4px
}

.row {
    display: flex;
    gap: 22px;
    align-items: flex-start
}

.placeholder {
    height: 82px;
    background: #050505;
    color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    border-radius: 15px;
    margin: 10px 10px 0;
    overflow: hidden;
}

.ph-small {
    width: 220px;
    height: 150px;
    flex: 0 0 auto
}

.ph-wide {
    height: 360px;
    width: 100%;
    margin: 10px 0 20px
}

.ph-bottom {
    width: 380px;
    height: 370px;
    flex: 0 0 auto
}

.p {
    font-size: 13px;
    line-height: 1.22;
    margin: 0 0 14px
}

.chips {
    display: flex;
    gap: 8px;
    margin: 12px 0 36px
}

.chip {
    border: 1px solid #888;
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 12px
}

.chip.dark {
    background: #050505;
    color: #fff
}

.rightbox {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 18px;
    font-size: 13px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06)
}

.rightbox h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px
}

.rightbox h3 i {
    width: 16px;
    text-align: center;
    color: #555
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 2px
}

.toc-link {
    color: #222;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background .15s ease, transform .15s ease
}

.toc-link::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #777;
    flex: 0 0 auto
}

.toc-link:hover {
    background: #efefef;
    transform: translateX(2px)
}


.tags-list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 7px;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    min-height: 25px;
  padding: 1px 6px;
    border: 1px solid rgba(0, 0, 0, .09);
    border-radius: 999px;
    background: #e6e6e8;
    color: #111;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.01em;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
    transition:
        background .15s ease,
        border-color .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}

.tag::before {
    display: none;
}

.tag:hover,
.tag:focus-visible {
    background: #dcdcdf;
    border-color: rgba(0, 0, 0, .16);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    outline: none;
}


.news-widget {
    position: relative;
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08)
}

.news-widget-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    padding-right: 48px
}

.news-widget-header h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.15;
    display: flex;
    align-items: flex-start;
    gap: 8px
}

.news-widget-header h3 i {
    color: #555
}

.news-badge {
    background: #111;
    color: #fff;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;

    overflow: hidden;
    position: absolute;
    top: 14px;
    right: 14px;

    animation: badgePulse 2s infinite;
}

.news-badge::after {
    content: "";

    position: absolute;
    top: 0;
    left: -100%;

    width: 60%;
    height: 100%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.45),
        transparent
    );

    animation: badgeShine 3s infinite;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0,0,0,.35);
    }

    70% {
        transform: scale(1.08);
        box-shadow: 0 0 0 8px rgba(0,0,0,0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0,0,0,0);
    }
}

@keyframes badgeShine {
    0% {
        left: -100%;
    }

    30% {
        left: 140%;
    }

    100% {
        left: 140%;
    }
}

.news-card {
    display: block;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d5d5d5;
    transition: transform .15s ease, box-shadow .15s ease;
    width: 100%;
}

.news-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .14)
}

.news-image {
    height: 82px;
    background: #050505;
    color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px
}

.news-body {
    padding: 10px
}

.news-date {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 10px;
    margin-bottom: 6px
}

.news-body h4 {
    margin: 0 0 6px;
    font-size: 13px
}

.news-body p {
    margin: 0;
    font-size: 11px;
    line-height: 1.25
}

.news-action {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #111;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700
}

.news-action:hover {
    text-decoration: underline
}

.edit-wrap {
    display: grid;
    grid-template-columns: 1fr 190px;
    gap: 34px;
    max-width: 1050px
}

.plus {
    font-size: 25px;
    margin: 0 0 18px
}

.tabs {
    border: 1px solid #bbb
}

.tabbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr)
}

.tab {
    background: #bbb;
    color: #fff;
    text-align: center;
    padding: 18px 0;
    font-size: 22px;
    border-right: 1px solid #fff
}

.tab.active {
    background: #000
}

.elements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 34px;
    padding: 18px
}

.el h2 {
    font-size: 22px;
    margin: 0 0 10px
}

.el .placeholder {
    height: 170px
}

.sidepanel {
    padding-top: 60px
}

.save {
    width: 100%;
    border: 0;
    background: #bbb;
    font-size: 24px;
    padding: 16px;
    margin-top: 12px
}

.checklist {
    background: #bbb;
    margin-top: 8px;
    padding: 6px 10px
}

.modal-page {
    background: #000;
    color: #ddd;
    min-height: 100vh;
    padding: 44px 60px
}

.modal-title {
    font-size: 34px;
    margin-bottom: 34px
}

.modal-search {
    height: 82px;
    border-radius: 42px;
    background: #303030;
    display: flex;
    align-items: center;
    padding: 0 38px;
    font-size: 52px;
    color: #ccc;
    margin-bottom: 70px
}

.modal-search:before {
    content: '⌕';
    margin-right: 24px
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 62px
}

.modal-box {
    background: #303030;
    padding: 28px 64px 46px
}

.modal-box h2 {
    font-weight: 400;
    margin: 0 0 18px;
    color: #ccc
}

.black-list {
    background: #000;
    padding: 26px 42px;
    min-height: 420px;
    font-size: 30px;
    line-height: 1.55;
    color: #fff
}

.sel {
    background: #fff;
    color: #111;
    border-radius: 26px;
    padding: 0 20px;
    display: block
}

.ml1 {
    margin-left: 70px
}

.ml2 {
    margin-left: 145px
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 60px;
    margin-top: 64px
}

.btn {
    border-radius: 42px;
    padding: 18px 72px;
    font-size: 38px
}

.btn.outline {
    border: 3px solid #333
}

.btn.fill {
    background: #333;
    color: #fff
}

.close {
    position: absolute;
    right: 30px;
    top: 15px;
    font-size: 60px
}

@media(max-width:900px) {

    .content.article,
    .article-page .content.article,
    .edit-wrap {
        grid-template-columns: 1fr
    }

    .maincol,
    .content.article > aside {
        grid-column: auto;
        width: auto
    }

    .content.article > aside {
        margin-top: 24px
    }

    .sidebar {
        display: none
    }

    .row {
        flex-direction: column
    }

    .ph-small,
    .ph-bottom {
        width: 100%
    }

    .sidepanel {
        padding-top: 0
    }

    .modal-grid {
        grid-template-columns: 1fr
    }

    .top .search-box {
        width: 50vw
    }

    .article-page-header::before,
    .layout.sidebar-closed .article-page-header::before {
        left: 0;
        background: rgba(255,255,255,.88);
        box-shadow: 0 2px 12px rgba(0,0,0,.06);
        backdrop-filter: blur(12px);
    }
}

.layout.sidebar-closed .sidebar {
    width: 48px;
    padding-left: 12px;
    padding-right: 12px;
}

.layout.sidebar-closed .navitem {
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
    transform: none
}

.layout.sidebar-closed .active-nav {
    background: transparent;
    color: #fff;
    padding: 0;
}

.active-nav {
    background: #fff;
    color: #222;
    border-radius: 15px;
    padding: 2px 10px;
}

.layout.sidebar-closed .navtext,
/* .layout.sidebar-closed .state, */
.layout.sidebar-closed .divider {
    display: none;
}

.layout.sidebar-closed .active-menu::before {
    display: none
}

.collapse {
    display: block;
    margin-left: auto;
    margin-bottom: 14px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: transform .25s ease, margin .25s ease;
}

.layout.sidebar-closed .collapse {
    margin-left: 0;
    transform: rotate(180deg);
}

.chip {
    border: 1px solid #888;
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 12px;

    text-decoration: none;
    color: inherit;
    display: inline-block;

    transition: .15s ease;
}

.chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.chip.dark {
    background: #050505;
    color: #fff;
}

.article-nav {
    margin-left: auto;

    display: flex;
    gap: 8px;
}

.nav-arrow {
    width: 34px;
    height: 34px;

    border: none;
    border-radius: 50%;

    background: #f5f5f5;
    color: #333;

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

    cursor: pointer;

    transition:
        background .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}

.nav-arrow:hover {
    background: #ffffff;

    transform: translateY(-1px);

    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.nav-arrow:active {
    transform: translateY(0);
}

.nav-arrow i {
    font-size: 13px;
}

/* AI Assistant Workspace */

.top .search-box {
    transition: opacity .25s ease, transform .25s ease;
}

body.ai-open .top .search-box {
    opacity: 0;
    transform: translateY(18px) scale(.96);
    pointer-events: none;
}

.ai-overlay {
    position: fixed;
    top: 68px;
    left: 192px;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 28px 28px;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0);
    opacity: 0;
    pointer-events: none;
    transition: background .42s ease, backdrop-filter .42s ease, opacity .36s ease;
}

.layout.sidebar-closed ~ .ai-overlay {
    left: 48px;
}

.ai-overlay.open {
    background: rgba(255, 255, 255, .42);
    backdrop-filter: blur(7px);
    opacity: 1;
    pointer-events: auto;
}

/* AI Workspace Shell and Panel */
.ai-shell {
    position: relative;
    width: min(860px, 76%);
    margin-right: 200px;
    height: min(620px, calc(100vh - 110px));
    background: #050505;
    border-radius: 0 0 32px 32px;
    box-shadow:
        0 18px 38px rgba(0, 0, 0, .34),
        0 42px 90px rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    transform: translateY(-110%);
    opacity: 0;
    overflow: visible;
    will-change: transform, opacity;
    transition: transform .72s cubic-bezier(.22, 1, .36, 1), opacity .38s ease;
}

.ai-panel {
    height: calc(100% - 108px);
    margin: 84px 40px 24px;

    display: flex;
    flex-direction: column;

    background:
        radial-gradient(
            circle at 20% 15%,
            rgba(255,255,255,.03),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #1d1d1f 0%,
            #18181a 45%,
            #141416 100%
        );

    color: #f4f4f4;

    border: 1px solid rgba(255,255,255,.05);

    border-radius: 28px;
    padding: 26px;
    overflow: hidden;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.04),
        inset 0 -1px 0 rgba(0,0,0,.35),
        0 14px 40px rgba(0,0,0,.35);
}

.ai-shell::before,
.ai-shell::after {
    content: "";
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    pointer-events: none;
}

.ai-shell::before {
    left: -40px;
    border-top-right-radius: 40px;
    box-shadow: 20px -20px 0 20px #050505;
    top: -2px;
}

.ai-shell::after {
    right: -40px;
    border-top-left-radius: 40px;
    box-shadow: -20px -20px 0 20px #050505;
    top: -2px;
}

.ai-panel::selection,
.ai-panel *::selection {
    background: rgba(255, 255, 255, .22);
}

.ai-overlay.open .ai-shell {
    transform: translateY(0);
    opacity: 1;
}

.ai-panel-header {
    position: absolute;
    top: 28px;
    left: 40px;
    right: 40px;
    margin-bottom: 0;
    color: #fff;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .42s ease .28s, transform .42s ease .28s;
}

.ai-overlay.open .ai-panel-header {
    opacity: 1;
    transform: translateY(0);
}

.ai-panel-header h2 {
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
}

.ai-panel-header h2 i {
    color: #d8d8d8;
}

.ai-panel-header p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
}

.ai-chat-history {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 0 22px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .46s ease .36s, transform .46s ease .36s;
}

.ai-overlay.open .ai-chat-history {
    opacity: 1;
    transform: translateY(0);
}

.ai-message {
    max-width: min(520px, 78%);
    min-width: 0;
    border-radius: 22px;
    padding: 18px 22px;
    font-size: 14px;
    line-height: 1.45;
}

.ai-message strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #f4f4f4;
}

.ai-message p {
    margin: 0;
    max-width: 100%;
    font-size: 15px;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

.ai-message.assistant {
    align-self: flex-start;

    background:
        linear-gradient(
            180deg,
            #242426,
            #1f1f21
        );

    border: 1px solid rgba(255,255,255,.06);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.03),
        0 8px 24px rgba(0,0,0,.25);
}

.ai-message.user {
    align-self: flex-end;
    background: linear-gradient(180deg, #3a3a3d, #2c2c2f);
    color: #f4f4f4;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 22px rgba(0,0,0,.24);
}

.ai-message.user strong {
    color: #dcdcdc;
}

.ai-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ai-sources a {
    color: #f4f4f4;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    background: rgba(255,255,255,.06);
}

.ai-sources a:hover {
    background: rgba(255,255,255,.12);
}

.ai-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .42s ease .42s, transform .42s ease .42s;
}

.ai-overlay.open .ai-suggestions {
    opacity: 1;
    transform: translateY(0);
}

.ai-suggestions button {
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, #2a2a2d, #202023);
    color: #f4f4f4;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 12px;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.04),
        0 4px 12px rgba(0,0,0,.2);
}

.ai-suggestions button:hover {
    background: linear-gradient(180deg, #333336, #27272a);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 7px 18px rgba(0,0,0,.28);
}

.ai-search-large {
    position: relative;
    isolation: isolate;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    background: linear-gradient(180deg, #2f2f34, #25252a);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 10px 24px rgba(0,0,0,.28);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-24px);
    will-change: transform, opacity;
    transition: opacity .42s ease .34s, transform .52s cubic-bezier(.22, 1, .36, 1) .34s;
}

.ai-overlay.open .ai-search-large {
    opacity: 1;
    transform: translateY(0);
}

.ai-search-large::before {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    left: 18%;
    top: 50%;
    z-index: -1;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    opacity: 0;
    filter: blur(24px);
    transform: translate(-50%, -50%) scale(.9);
    animation: aiSearchWater 8.8s ease-in-out infinite;
}

.ai-search-large i {
    color: rgba(255,255,255,.62);
    font-size: 18px;
}

.ai-search-large input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #f4f4f4;
    font-size: 16px;
}

.ai-search-large input::placeholder {
    color: rgba(255,255,255,.48);
}


@keyframes aiSearchWater {
    0% {
        left: 18%;
        top: 50%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(.86);
    }

    8% {
        left: 18%;
        top: 50%;
        opacity: .46;
        transform: translate(-50%, -50%) scale(1.08);
    }

    16% {
        left: 18%;
        top: 50%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(.92);
    }

    25% {
        left: 64%;
        top: 44%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(.86);
    }

    33% {
        left: 64%;
        top: 44%;
        opacity: .5;
        transform: translate(-50%, -50%) scale(1.12);
    }

    41% {
        left: 64%;
        top: 44%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(.92);
    }

    50% {
        left: 38%;
        top: 62%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(.86);
    }

    58% {
        left: 38%;
        top: 62%;
        opacity: .38;
        transform: translate(-50%, -50%) scale(1.04);
    }

    66% {
        left: 38%;
        top: 62%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(.92);
    }

    75% {
        left: 82%;
        top: 52%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(.86);
    }

    84% {
        left: 82%;
        top: 52%;
        opacity: .52;
        transform: translate(-50%, -50%) scale(1.14);
    }

    94% {
        left: 82%;
        top: 52%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(.92);
    }

    100% {
        left: 18%;
        top: 50%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(.86);
    }
}

/* Account Settings Page */

.account-page {
    max-width: 1120px;
    margin: 0 auto;
}

.account-hero {
    margin-bottom: 30px;
}

.account-hero h1 {
    margin: 0 0 12px;
    color: #111;
    font-size: clamp(36px, 5vw, 58px);
    line-height: .98;
    letter-spacing: -.05em;
}

.account-hero p:not(.menu-eyebrow) {
    max-width: 640px;
    margin: 0;
    color: rgba(0, 0, 0, .62);
    font-size: 16px;
    line-height: 1.5;
}

.account-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.account-profile-card,
.account-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,246,247,.96)),
        #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 34px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.95),
        0 10px 28px rgba(0,0,0,.07);
}

.account-profile-card {
    position: sticky;
    top: 94px;
    padding: 30px;
    text-align: center;
}

.account-avatar {
    width: 108px;
    height: 108px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 32px;
    background: #111;
    color: #fff;
    font-size: 64px;
    box-shadow: 0 14px 28px rgba(0,0,0,.18);
}

.account-profile-card h2 {
    margin: 0 0 7px;
    color: #111;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.account-profile-card p {
    margin: 0 0 7px;
    color: rgba(0,0,0,.62);
    font-size: 14px;
}

.account-profile-card span {
    display: block;
    margin-bottom: 22px;
    color: rgba(0,0,0,.48);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.account-settings-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.account-card {
    padding: 26px;
}

.account-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.account-card-header h2 {
    margin: 0 0 7px;
    color: #111;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.account-card-header p {
    margin: 0;
    color: rgba(0,0,0,.58);
    font-size: 13px;
    line-height: 1.45;
}

.account-card-header > i {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: rgba(0,0,0,.06);
    color: rgba(0,0,0,.72);
    font-size: 20px;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.account-field-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.account-field-row label,
.account-choice span,
.account-toggle span {
    color: rgba(0,0,0,.7);
    font-size: 13px;
    font-weight: 700;
}

.account-field-row input,
.account-choice select {
    width: 100%;
    height: 44px;
    padding: 0 15px;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 15px;
    outline: none;
    background: rgba(255,255,255,.82);
    color: #111;
    font-family: inherit;
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.account-field-row input:focus,
.account-choice select:focus {
    border-color: rgba(0,0,0,.28);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,0,0,.05);
}

.account-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.account-primary-button,
.account-secondary-button {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 18px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease, background .15s ease;
}

.account-primary-button {
    border: none;
    background: #111;
    color: #fff;
}

.account-secondary-button {
    border: 1px solid rgba(0,0,0,.1);
    background: #fff;
    color: #111;
}

.account-primary-button:hover,
.account-secondary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.account-setting-list,
.account-preferences {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-setting-item,
.account-choice,
.account-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 60px;
    padding: 15px 16px;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 20px;
    background: rgba(255,255,255,.62);
}

.account-setting-item strong {
    display: block;
    margin-bottom: 4px;
    color: #111;
    font-size: 14px;
}

.account-setting-item span {
    color: rgba(0,0,0,.52);
    font-size: 12px;
}

.account-choice select {
    max-width: 230px;
}

.account-toggle {
    justify-content: flex-start;
}

.account-toggle input {
    width: 18px;
    height: 18px;
    accent-color: #111;
}

.user {
    text-decoration: none;
}

@media(max-width:900px) {
    .account-grid {
        grid-template-columns: 1fr;
    }

    .account-profile-card {
        position: static;
    }

    .account-field-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .account-choice,
    .account-setting-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-actions {
        justify-content: stretch;
    }

    .account-primary-button,
    .account-secondary-button {
        width: 100%;
    }

    .account-choice select {
        max-width: none;
    }
}

.news-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
}

.news-header {
    margin-bottom: 32px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #666;
    text-decoration: none;
}

.news-header h1 {
    font-size: 2rem;
}

.news-article {
    background: #fff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.news-image-cn {
    height: 320px;
    border-radius: 14px;
    background: #111;
    color: white;
    display: grid;
    place-items: center;
    font-size: 4rem;
    margin-bottom: 24px;
}

.news-meta {
    display: flex;
    gap: 16px;
    color: #777;
    margin-bottom: 12px;
}

.news-article h2 {
    margin-bottom: 24px;
    font-size: 2rem;
}

.news-article p {
    line-height: 1.7;
    margin-bottom: 20px;
}

.related-news {
    margin-top: 50px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    cursor: pointer;
}

.mini-news-description {
    display: block;
    margin: 6px 0 12px;
    color: #111;
    font-size: 12px;
    line-height: 1.25;
    text-decoration: none;
}

.mini-news-description:hover {
    text-decoration: underline;
}

.back-to-news {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #111;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.back-to-news:hover {
    text-decoration: underline;
}

.news-article-page {
    max-width: 950px;
    margin: 0 auto;
    padding: 50px 50px 80px;
}

.article-hero {
    margin-bottom: 40px;
}

.article-category {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 18px;
}

.article-hero h1 {
    margin: 0;
    font-size: 52px;
    line-height: 1.05;
    font-weight: 800;
}

.article-subtitle {
    max-width: 700px;
    margin-top: 20px;
    color: #555;
    font-size: 20px;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    gap: 25px;
    margin-top: 28px;
    color: #666;
    font-size: 14px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-banner {
    height: 350px;
    border-radius: 36px;
    background: linear-gradient(
        135deg,
        #171717,
        #2d2d2d
    );
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 45px;
}

.article-banner i {
    font-size: 110px;
    color: white;
}

.article-content {
    max-width: 760px;
    margin: auto;
}

.article-content p {
    font-size: 18px;
    line-height: 1.9;
    color: #222;
    margin-bottom: 30px;
}

.article-note {
    display: flex;
    gap: 18px;
    padding: 24px;
    margin: 45px 0;
    border-radius: 24px;
    background: #f4f4f4;
    border: 1px solid #e8e8e8;
}

.article-note i {
    font-size: 24px;
    margin-top: 4px;
}

.article-note strong {
    display: block;
    margin-bottom: 10px;
}

.back-to-news {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    text-decoration: none;
    color: #444;
    font-weight: 700;
}

.back-to-news:hover {
    color: black;
}