@import url("font.css");

:root {
    color-scheme: dark;
    font-family: Manrope, "Segoe UI", sans-serif;
    font-weight: 500;
    color: #f6f5ff;
    background: #27273a;
    --ink: #f6f5ff;
    --muted: #c1bfd5;
    --quiet: #a9aac4;
    --green: #66efa0;
    --green-deep: #0e2920;
    --line: #ffffff18;
    --input: #292940;
    --panel: #35364f;
    --speed: 280ms;
    --ease: cubic-bezier(.32, .12, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 300px; scrollbar-gutter: stable; }
body { --page-gutter: clamp(12px, 2.3vw, 36px); margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 0 50%, #383045 0, transparent 58%), #27273a; padding: var(--page-gutter) clamp(20px, 4.3vw, 86px); }
body:has(dialog[open]) { overflow: hidden; }
::selection { background: #77efac; color: #20283a; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; padding: 0; appearance: none; background: none; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [contenteditable]:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
img, video { display: block; max-width: 100%; }
svg { width: 1.25rem; height: 1.25rem; flex: none; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }

.site-shell {
    max-width: 1580px; width: 100%; min-width: 0;
    margin: auto;
    border: 1px solid #ffffff0b;
    border-radius: 21px;
    background: radial-gradient(ellipse at 100% 15%, #3b5669 0%, transparent 58%), radial-gradient(ellipse at 0 60%, #4a3c58 0%, transparent 65%), linear-gradient(135deg, #34344e 12%, #353653 68%, #33354e 100%);
    box-shadow: 0 24px 78px #16152236;
}
.topbar { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 29px; border-bottom: 1px solid #ffffff14; }
.brand { display: inline-block; width: fit-content; max-width: 100%; border-radius: 5px; vertical-align: middle; }
.brand img { display: block; max-width: 100%; height: auto; }
.topbar-actions { display: flex; min-width: 0; gap: 12px; align-items: center; }
.search { display: flex; align-items: center; gap: 10px; width: clamp(200px, 29vw, 338px); height: 42px; background: #272a40e8; border: 1px solid #ffffff13; border-radius: 9px; padding: 0 10px 0 13px; color: var(--quiet); transition: border-color var(--speed), background var(--speed); }
.search:focus-within { border-color: #72f3a38c; background: #262a3e; }
.search-submit, .search-clear { transition: color var(--speed) var(--ease); }
.search-submit { display: grid; place-items: center; width: 29px; height: 28px; color: var(--quiet); border-radius: 5px; flex: none; }
.search-submit:hover { color: var(--green); }
.search-submit svg { width: 18px; height: 18px; }
.search input { min-width: 0; width: 100%; border: 0; height: 100%; background: none; outline: none; padding: 0; font-size: 14px; color: var(--ink); }
.search input::placeholder { color: #b1b3ca; opacity: 1; }
.search input::-webkit-search-cancel-button { appearance: none; }
.search-clear { display: grid; place-items: center; padding: 2px; border-radius: 4px; }
.search-clear:hover { color: var(--green); }
.icon-button { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid #ffffff25; background: #252b4097; color: #e7ebf9; transition: background var(--speed), color var(--speed), border-color var(--speed), transform var(--speed); flex-shrink: 0; }
.icon-button:hover { background: #56617c66; color: var(--green); border-color: #78efad51; }
.icon-button:active { transform: scale(.95); }

.site-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 254px); grid-template-areas: "feed sidebar"; gap: 24px; padding: 24px 29px 30px; align-items: start; }
.feed { grid-area: feed; min-width: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--muted); font-size: 12px; font-weight: 700; }
.breadcrumbs svg { color: var(--green); width: 15px; height: 15px; }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs span[aria-current] { color: #eeecfa; }
.breadcrumbs span:not([aria-current]) { color: #9696b4; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 9px 13px; min-height: 40px; border-radius: 8px; border: 1px solid transparent; font-size: 13px; font-weight: 800; line-height: 1.25; text-align: center; transition: background var(--speed) var(--ease), color var(--speed), border-color var(--speed), transform var(--speed); }
.button svg { width: 17px; height: 17px; }
.button:active { transform: scale(.98); }
.primary { background: #62eb98; color: #102921; border-color: #9affbd63; box-shadow: 0 3px 13px #23cd5c1c; }
.primary:hover { background: #8affb5; }
.secondary { background: #ffffff0a; border-color: #ffffff26; color: #efedfa; }
.secondary:hover { background: #ffffff16; border-color: #ffffff3b; color: var(--green); }

.feed-section { margin-top: 28px; }
.breadcrumbs + .feed-section { margin-top: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 8px; background: #72f5a817; color: var(--green); border: 1px solid #79efa91e; flex-shrink: 0; }
.section-icon svg { width: 18px; height: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: 13px; font-weight: 800; white-space: nowrap; }
.text-link svg { width: 16px; height: 16px; transition: transform var(--speed) var(--ease); }
.text-link:hover svg { transform: translateX(3px); }
.search-summary { color: var(--muted); margin: 0 0 16px; overflow-wrap: anywhere; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.post-card { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.card-media { overflow: hidden; aspect-ratio: 2.1; border-radius: 8px; position: relative; background: #3e3a60; }
.card-image { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms var(--ease); }
.cover-fallback { display: grid; place-items: center; background: radial-gradient(circle at 74% 20%, #6389a34e, transparent 61%), linear-gradient(125deg, #5a466b, #363e64); }
.cover-fallback svg { width: 28%; height: 28%; color: #b6aceabb; }
.tone-green { --tone: #80f1af; }
.tone-violet { --tone: #d6b3ff; }
.tone-blue { --tone: #9ee3ff; }
.tone-orange { --tone: #ffc98f; }
.metadata { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; color: #cbc8e0; font-size: 11px; font-weight: 700; }
.metadata span { display: inline-flex; align-items: center; gap: 5px; }
.metadata svg { width: 15px; height: 15px; }
.pagination { margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--muted); font-size: 13px; }
.empty { padding: 30px; border-radius: 13px; text-align: center; background: #272a434e; border: 1px solid var(--line); }
.empty p, .empty h1 { margin-bottom: 15px; }
.empty p:last-child { margin-bottom: 0; }

.sidebar { grid-area: sidebar; min-width: 0; padding-top: 0; }
.sidebar-inner { min-width: 0; }
.side-panel { overflow: hidden; padding: 13px; border: 1px solid #ffffff19; border-radius: 13px; background: linear-gradient(138deg, #393c57d9, #343c55bb); }
.side-panel + .side-panel { margin-top: 15px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 3px 2px; color: var(--ink); font-size: 15px; font-weight: 800; }
.panel-title > span { display: flex; align-items: center; gap: 8px; }
.panel-title > span svg { color: var(--green); width: 18px; height: 18px; }
.panel-title > svg { width: 15px; height: 15px; color: #b2b6d1; transition: transform var(--speed) var(--ease); }
.panel-title[aria-expanded="false"] > svg { transform: rotate(-90deg); }
.category-row { min-height: 43px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; padding: 5px 6px; gap: 9px; border-radius: 8px; border: 1px solid transparent; color: #e1e1f1; font-size: 12px; font-weight: 750; transition: background var(--speed), border-color var(--speed), color var(--speed); overflow-wrap: anywhere; }
.category-row:hover { background: #ffffff09; color: #fff; }
.category-row:focus-visible { outline-offset: -2px; }
.category-row.is-active { color: var(--green); background: #81efae17; border-color: #79efad2e; }
.category-icon { display: grid; place-items: center; width: 28px; height: 28px; color: var(--tone); border-radius: 6px; background: color-mix(in srgb, var(--tone), transparent 87%); }
.category-icon svg { width: 16px; height: 16px; }
.count { min-width: 23px; height: 21px; padding-inline: 5px; display: grid; place-items: center; border-radius: 5px; background: #ffffff0e; color: #dad8ed; font-size: 10px; font-weight: 800; }
.is-active .count { color: #a6fbbf; background: #79efad1c; }
.popular .panel-title > span svg { color: #ffc28d; }
.popular-list { margin-top: 10px; display: grid; gap: 2px; }
.popular-row { display: grid; grid-template-columns: 51px minmax(0, 1fr); gap: 9px; padding: 8px 3px; align-items: center; border-radius: 6px; transition: background var(--speed); }
.popular-row + .popular-row { border-top: 1px solid #ffffff0a; }
.popular-row:hover { background: #ffffff09; }
.popular-image { width: 51px; height: 43px; border-radius: 6px; object-fit: cover; flex: none; }
.popular-row strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 11.5px; font-weight: 800; line-height: 1.3; }
.popular-row small { color: #b9bfd8; display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 10px; }
.popular-row small svg { width: 13px; height: 13px; }

.footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 29px; padding: 15px 0; border-top: 1px solid #ffffff14; color: #bcb9d1; font-size: 11px; }
.footer a { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.footer a:hover { color: var(--green); }
.footer a svg { width: 14px; height: 14px; }

dialog { padding: 0; background: linear-gradient(140deg, #25283a 3%, #252b3b 55%, #302b39); color: var(--ink); border: 1px solid #ffffff24; border-radius: 17px; box-shadow: 0 24px 90px #080a12ad; scrollbar-color: #65708c #252a3a; overscroll-behavior: contain; max-height: calc(100dvh - 40px); }
dialog::backdrop { background: #10121dd1; backdrop-filter: blur(4px); }
dialog[open] { animation: dialog-in 280ms var(--ease) both; }
dialog[open]::backdrop { animation: backdrop-in 280ms var(--ease) both; }
dialog[open].is-closing { animation: dialog-out 190ms ease both; }
dialog[open].is-closing::backdrop { animation: backdrop-out 190ms ease both; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(13px) scale(.982); } to { opacity: 1; transform: none; } }
@keyframes dialog-out { to { opacity: 0; transform: translateY(9px) scale(.99); } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdrop-out { to { opacity: 0; } }
.article { min-width: 0; padding: clamp(17px, 3vw, 37px); background: #252a407a; border: 1px solid #ffffff19; border-radius: 15px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-weight: 800; font-size: 13px; }
.back-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.back-link svg { width: 17px; height: 17px; transition: transform var(--speed) var(--ease); }
.back-link:is(:hover, :focus-visible) svg { transform: translateX(-2px); }
.article-heading { margin-bottom: 20px; }
.article-heading h1 { font-size: clamp(31px, 4.2vw, 55px); line-height: 1.05; letter-spacing: -.038em; margin: 11px 0 9px; font-weight: 800; overflow-wrap: anywhere; }
.article-heading p { font-size: 15px; line-height: 1.55; color: #d2d0e5; margin-bottom: 14px; overflow-wrap: anywhere; }
.article-heading p:empty { display: none; }
.prose { max-width: 790px; margin: 23px auto 0; color: #e4e1ef; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.prose :is(h2, h3, h4) { color: var(--ink); line-height: 1.23; letter-spacing: -.035em; margin: 1.45em 0 .45em; font-weight: 800; }
.prose h2 { font-size: 1.65em; }
.prose h3 { font-size: 1.4em; }
.prose h4 { font-size: 1.12em; }
.prose p { margin: 0 0 .95em; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.3em 0; padding: .7em 1em; border-left: 3px solid var(--green); border-radius: 0 8px 8px 0; background: #71efa011; color: #e8f9ee; }
.prose ul, .prose ol { margin: .8em 0 1em; padding-left: 1.65em; }
.prose li { padding-left: .18em; }
.prose li::marker { color: var(--green); }
.prose img, .prose video, .prose iframe { display: block; max-width: 100%; margin: 1.15em auto; border: 0; border-radius: 10px; }
.image-zoom-trigger {
    position: relative;
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    border-radius: 10px;
    cursor: zoom-in;
    touch-action: manipulation;
}
.prose .image-zoom-trigger { margin-block: 1.15em; }
.prose .image-zoom-trigger img { margin: 0; }
.image-zoom-icon {
    position: absolute;
    inset: auto 9px 9px auto;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #ebeeff38;
    color: #f3f2ff;
    background: #232637f2;
    transition: opacity var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.image-zoom-trigger:is(:hover, :focus-visible) .image-zoom-icon { color: var(--green); border-color: #84efb385; }
.image-zoom-trigger.image-zoom-linked { display: inline-grid; width: auto; margin-block: 0 .6em; }
.image-zoom-linked .image-zoom-icon { position: static; }
@media (hover: hover) {
    .image-zoom-trigger:not(.image-zoom-linked):not(:hover, :focus-visible) .image-zoom-icon { opacity: 0; }
}

.image-viewer {
    --viewer-pad: clamp(12px, 3vw, 48px);
    --viewer-vertical-pad: max(60px, env(safe-area-inset-top));
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    background: transparent;
}
.image-viewer[open] { animation: backdrop-in 220ms var(--ease) both; }
.image-viewer[open].is-closing { animation: backdrop-out 190ms ease both; }
.image-viewer::backdrop { background: #10101ded; backdrop-filter: none; }
.image-viewer-close {
    position: absolute;
    z-index: 1;
    inset: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) auto auto;
    background: #252739;
}
.image-viewer-stage {
    position: absolute;
    inset: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #756e90 #1e202c;
}
.image-viewer-canvas {
    display: grid;
    place-items: center;
    width: max-content;
    min-width: 100%;
    min-height: 100%;
    padding: var(--viewer-vertical-pad) var(--viewer-pad);
}
.image-viewer-picture {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
    touch-action: manipulation;
}
.image-viewer-picture[aria-pressed="true"] { cursor: zoom-out; }
.image-viewer-picture.is-dragging { cursor: grabbing; }
.image-viewer-picture img {
    width: auto;
    height: auto;
    max-width: calc(100vw - 2 * var(--viewer-pad));
    max-height: calc(100dvh - 2 * var(--viewer-vertical-pad));
    object-fit: contain;
    user-select: none;
}
.image-viewer-picture[aria-pressed="true"] img { max-width: none; max-height: none; }
.image-viewer-picture img:not([src]) { display: none; }
.image-viewer-error {
    position: absolute;
    inset: 50% 12px auto;
    color: #ffd2da;
    text-align: center;
    pointer-events: none;
}
.prose iframe { width: 100%; aspect-ratio: 16/9; background: #15192a; }
.prose figure { margin: 1.25em 0; }
.prose figcaption { text-align: center; color: var(--muted); font-size: .84em; }
.prose hr { border: 0; border-top: 1px solid #ffffff27; margin: 1.5em 0; }
.prose pre, .prose code { font-family: ui-monospace, "Courier New", monospace; background: #1d2033; border-radius: 5px; color: #b4edcf; padding: .13em .35em; }
.prose pre { padding: .8em 1em; overflow: auto; }
.prose pre code { padding: 0; }
.prose table { width: 100%; margin-block: 1em; border-collapse: collapse; }
.prose th, .prose td { padding: .45em .65em; border: 1px solid #ffffff28; }
.prose th { background: #ffffff0a; }
.prose .text-left, .prose [align="left"] { text-align: left; }
.prose .text-center, .prose [align="center"] { text-align: center; }
.prose .text-right, .prose [align="right"] { text-align: right; }
.rating-panel { max-width: 790px; margin: 28px auto 0; padding: 15px 17px; border: 1px solid #ffffff1a; border-radius: 11px; background: #ffffff08; display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.rating-panel h2 { font-weight: 800; font-size: 16px; margin-bottom: 3px; }
.rating-status { color: var(--muted); font-size: 12px; }
.stars { display: flex; flex: none; gap: 4px; }
.star { display: grid; place-items: center; color: #bec0d8; background: #1d203447; border-radius: 7px; width: 35px; height: 36px; transition: color var(--speed), background var(--speed), transform var(--speed); }
.star svg { width: 21px; height: 21px; }
.star-filled { display: none; }
.rating-error { color: #ffc5d1; font-size: 12px; }
.stars:not(:has(.star:hover)) .star.is-on,
.stars .star:hover, .stars .star:has(~ .star:hover) { color: #ffd88c; }
.stars:not(:has(.star:hover)) .star.is-on .star-outline,
.stars .star:hover .star-outline, .stars .star:has(~ .star:hover) .star-outline { display: none; }
.stars:not(:has(.star:hover)) .star.is-on .star-filled,
.stars .star:hover .star-filled, .stars .star:has(~ .star:hover) .star-filled { display: inline-flex; }
.star:hover { transform: translateY(-2px); background: #ffffff13; }
.video-shell {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(44px, auto);
    border: 1px solid #ffffff21;
    border-radius: 12px;
    background: #161524;
    box-shadow: 0 10px 25px #16142245;
    margin: 1.15em auto;
}
.article-video { width: 100%; }
.article-video > video, .article-video > iframe { display: block; margin-inline: auto; width: 100%; border: 0; border-radius: 10px; }
.article-video > iframe { aspect-ratio: 16 / 9; }
.article-video .video-shell { margin-block: 0; }
.video-shell video, .prose .video-shell video {
    width: 100%;
    margin: 0;
    border-radius: 0;
    aspect-ratio: 16 / 9;
    max-height: min(62dvh, 640px);
    object-fit: contain;
    cursor: pointer;
    background: #171625;
}
.video-controls {
    display: grid;
    grid-template-columns: auto auto minmax(28px, 1fr) auto auto;
    align-items: center;
    gap: clamp(4px, 1vw, 11px);
    padding: 5px 8px;
    border-top: 1px solid #ffffff12;
    background: #23213a;
}
.video-controls button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    color: #e6e1f5;
    transition: color var(--speed), background var(--speed);
}
.video-controls button:hover { background: #ffffff15; color: var(--green); }
.video-controls svg { width: 20px; height: 20px; }
.video-time { color: #d6d0e9; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.video-seek { position: relative; height: 30px; min-width: 0; }
.video-seek progress, .video-seek input { position: absolute; top: 50%; left: 0; width: 100%; transform: translateY(-50%); margin: 0; }
.video-seek progress { appearance: none; height: 5px; border: 0; border-radius: 3px; overflow: hidden; background: #6d6786; }
.video-seek progress::-webkit-progress-bar { background: #6d6786; }
.video-seek progress::-webkit-progress-value { background: var(--green); }
.video-seek progress::-moz-progress-bar { background: var(--green); }
.video-seek input { appearance: none; background: transparent; cursor: pointer; height: 25px; }
.video-seek input::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--green); }
.video-seek input::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--green); }
.video-seek input:disabled { opacity: 0; cursor: auto; }
.video-start {
    position: absolute;
    inset: 0;
    margin: auto;
    top: -44px;
    display: grid;
    place-items: center;
    width: clamp(48px, 6vw, 74px);
    height: clamp(48px, 6vw, 74px);
    border-radius: 50%;
    color: #251f32;
    background: var(--green);
    border: 1px solid #c9ffd3c2;
    box-shadow: 0 5px 28px #16132299;
    transition: opacity 220ms var(--ease), transform 250ms var(--ease), background var(--speed);
}
.video-start svg { height: 54%; width: 54%; margin-inline-start: 3px; }
.video-start:hover { transform: scale(1.08); background: #a5f6b5; }
.video-start.is-dismissed { opacity: 0; pointer-events: none; transform: scale(.8); }
.video-embed { display: block; }
.video-embed .video-start { top: 0; }
.video-embed img, .video-embed iframe, .prose .video-embed img, .prose .video-embed iframe {
    display: block; margin: 0; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 0; object-fit: contain;
}
.video-error {
    grid-row: 3;
    padding: 7px 10px;
    color: #ffd6dd;
    font-size: 13px;
}
.video-shell:fullscreen { margin: 0; grid-template-rows: minmax(0, 1fr) auto; border: 0; border-radius: 0; }
.video-shell:fullscreen video, .prose .video-shell:fullscreen video { height: 100%; max-height: none; aspect-ratio: auto; }

.admin-content { padding: 24px 29px 34px; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 17px 0; }
.admin-heading h1 { font-size: clamp(26px, 4vw, 43px); letter-spacing: -.052em; line-height: 1.1; font-weight: 800; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-nav a { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; color: #d5d2e7; padding: 7px 10px; border-radius: 7px; border: 1px solid transparent; transition: background var(--speed), color var(--speed); }
.admin-nav a svg { width: 16px; height: 16px; }
.admin-nav a:hover, .admin-nav .is-active { color: var(--green); background: #77efa615; border-color: #77efa624; }
.field-stack { display: grid; align-content: start; gap: 13px; }
.field-stack label, .editor-heading > span { display: grid; gap: 6px; color: #e8e5f4; font-size: 13px; font-weight: 750; }
.field-stack :is(input:not([type=checkbox], [type=file]), textarea, select), .inline-form input, .toolbar select {
    width: 100%; min-width: 0; min-height: 40px; border-radius: 7px; border: 1px solid #ffffff20; background: var(--input); padding: 7px 10px; font-size: 13px; color: var(--ink); transition: border-color var(--speed);
}
.field-stack :is(input, select, textarea):hover { border-color: #ffffff42; }
.field-stack input::placeholder, .field-stack textarea::placeholder { color: #aaaac4; opacity: 1; }
.field-stack textarea { resize: vertical; }
.field-stack select, .toolbar select { appearance: none; padding-right: 30px; background-image: url("caret.svg"); background-repeat: no-repeat; background-size: 13px; background-position: right 9px center; cursor: pointer; }
.field-stack input[type=number] { appearance: textfield; }
.field-stack input[type=number]::-webkit-inner-spin-button, .field-stack input[type=number]::-webkit-outer-spin-button { appearance: none; }
.field-stack .checkbox { display: flex; align-items: center; width: fit-content; gap: 8px; cursor: pointer; }
.checkbox input { appearance: none; width: 19px; height: 19px; background: #262940; border: 1px solid #ffffff47; border-radius: 5px; margin: 0; display: grid; place-items: center; cursor: pointer; }
.checkbox input:checked { background: var(--green); border-color: var(--green); }
.checkbox input:checked::before { content: ""; width: 9px; height: 5px; border-left: 2px solid #162b22; border-bottom: 2px solid #162b22; transform: translateY(-1px) rotate(-45deg); }
.alert { display: flex; align-items: center; gap: 7px; margin: 0 0 12px; padding: 9px 11px; border-radius: 7px; border: 1px solid; font-size: 13px; }
.error { background: #fe9caa15; border-color: #ff9bae49; color: #ffd0d7; }
.success { background: #77efa717; border-color: #77efa74f; color: #9ffcbe; }
.admin-panel { background: #2d3048a0; border: 1px solid #ffffff19; border-radius: 12px; padding: 15px; min-width: 0; }
.edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(215px, 300px); gap: 16px; align-items: start; }
.cover-field { display: grid; gap: 8px; }
.cover-preview { width: 100%; height: 110px; object-fit: cover; border-radius: 7px; background: #24283f; }
.rich-editor { overflow: hidden; border: 1px solid #ffffff20; border-radius: 8px; background: #272940; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 6px; border-bottom: 1px solid #ffffff18; background: #33354d; }
.toolbar select { width: auto; min-height: 31px; font-size: 11px; padding-block: 3px; }
.tool-group { display: flex; flex-wrap: wrap; gap: 2px; }
.toolbar button { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 5px; font-size: 13px; border: 1px solid transparent; transition: background var(--speed), color var(--speed); }
.toolbar button:hover, .toolbar button[aria-pressed=true] { color: var(--green); background: #7aefaf1c; border-color: #7aefaf37; }
.toolbar button svg { width: 16px; height: 16px; }
.editable { max-width: none; min-height: 340px; margin: 0; padding: 14px; }
.editable:focus-visible { outline-offset: -2px; }
.editable:empty::before { content: attr(data-placeholder); color: var(--quiet); pointer-events: none; }
.media-dialog { width: min(435px, calc(100vw - 26px)); padding: 16px; }
.media-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.media-heading h2 { font-size: 21px; letter-spacing: -.04em; }
.media-heading .icon-button { width: 35px; height: 35px; }
.file-picker { position: relative; grid-template-columns: auto minmax(0, 1fr); align-items: center; cursor: pointer; width: fit-content; max-width: 100%; }
.file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-picker:focus-within .button { outline: 2px solid var(--green); outline-offset: 2px; }
.file-picker small { overflow-wrap: anywhere; padding: 4px; color: var(--muted); }
.media-dialog .alert { margin: 0; }
.admin-list { display: grid; gap: 5px; }
.admin-row { display: grid; grid-template-columns: 51px minmax(0, 1fr) auto minmax(112px, auto) 42px; align-items: center; gap: 11px; padding: 7px 4px; border-radius: 7px; }
.admin-row + .admin-row { border-top: 1px solid #ffffff13; }
.admin-row-title { min-width: 0; }
.admin-row strong { display: block; overflow-wrap: anywhere; font-size: 14px; }
.admin-row small { display: block; font-size: 11px; margin-top: 4px; color: var(--quiet); }
.admin-status { border: 1px solid #ffffff1e; border-radius: 6px; padding: 4px 6px; color: #d7ceec; background: #f4e0ff14; font-size: 10px; text-align: center; }
.admin-status.published { color: #a7ffcb; background: #80f0ad17; border-color: #80f0ad30; }
.admin-views { gap: 5px; }
.category-editor { max-width: 670px; }
.inline-form { display: flex; align-items: center; gap: 8px; }
.inline-form label { flex: 1; }
.add-category { border-top: 1px solid var(--line); padding-top: 13px; }

@media (max-width: 1150px) {
    body { --page-gutter: 18px; padding-inline: 24px; }
    .site-layout { grid-template-columns: minmax(0, 1fr) 228px; gap: 17px; padding-inline: 22px; }
    .topbar { padding-inline: 22px; }
    .footer { margin-inline: 22px; }
}
@media (max-width: 920px) {
    .site-layout { grid-template-columns: minmax(0, 1fr) 206px; gap: 13px; padding-inline: 16px; }
    .topbar { padding-inline: 16px; }
    .card-grid { gap: 9px; }
    .card-meta { gap: 6px; }
    .footer { margin-inline: 16px; }
}
@media (max-width: 760px) {
    body { --page-gutter: 13px; padding-inline: 12px; }
    .site-shell { border-radius: 15px; }
    .topbar { min-height: 62px; gap: 10px; padding: 9px 12px; }
    .topbar-actions { gap: 6px; }
    .search { min-width: 120px; height: 36px; }
    .topbar .icon-button { width: 36px; height: 36px; }
    .site-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "sidebar" "feed"; row-gap: 0; padding: 0 12px 20px; }
    .feed { padding-top: 15px; }
    .sidebar { padding: 0; }
    .sidebar-inner { padding-top: 12px; }
    .site-shell.has-mobile-menu .sidebar { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 280ms var(--ease), opacity 220ms; }
    .site-shell.has-mobile-menu .sidebar-inner { overflow: hidden; padding-top: 0; transition: padding 280ms var(--ease); }
    .site-shell.has-mobile-menu .sidebar.is-expanded { grid-template-rows: 1fr; opacity: 1; }
    .site-shell.has-mobile-menu .sidebar.is-expanded .sidebar-inner { padding-top: 12px; }
    .site-shell.has-mobile-menu .sidebar .popular { display: none; }
    .footer { margin-inline: 12px; }
    .admin-content { padding: 18px 12px 23px; }
    .edit-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
    .search { width: min(42vw, 180px); min-width: 0; padding-inline: 7px 3px; gap: 4px; }
    .search-submit { width: 25px; height: 26px; }
    .search-submit svg { width: 14px; height: 14px; }
    .search input { font-size: 11px; }
    .feed-section { margin-top: 18px; }
    .card-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
    .card-media { aspect-ratio: 2; }
    .post-card { padding: 6px; }
    .article { padding: 13px; }
    .rating-panel { padding: 11px; flex-wrap: wrap; }
    .admin-row { grid-template-columns: minmax(0, 1fr) auto 34px; gap: 6px; }
    .admin-row .popular-image, .admin-views { display: none; }
    .admin-row .icon-button { width: 33px; height: 33px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.source-toggle { min-height: 27px; padding: 3px 7px; font-size: 10px; }

.featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(17px, 1.76vw, 34px); }

.featured-card {
    --folder-tab: clamp(14px, 1.18vw, 23px);
    position: relative;
    isolation: isolate;
    display: grid;
    min-width: 0;
    padding-top: var(--folder-tab);
    border-radius: 12px;
}
.featured-card::before, .featured-card::after {
    content: "";
    position: absolute;
    height: calc(var(--folder-tab) + 12px);
    z-index: -1;
    pointer-events: none;
}
.featured-card::before {
    top: calc(var(--folder-tab) / 2);
    inset-inline: 16% 4%;
    border-radius: 11px 11px 0 0;
    background: #42435b;
}
.featured-card::after {
    top: 0;
    left: 0;
    width: 39%;
    border-radius: 12px 0 0 0;
    clip-path: polygon(0 0, 68% 0, 100% 77%, 100% 100%, 0 100%);
    background: #514f6d;
}
.featured-sheet {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    overflow: hidden;
    padding: clamp(7px, .6vw, 12px) clamp(7px, .6vw, 12px) 0;
    border: 1px solid #ded6f91c;
    border-radius: 0 13px 13px 13px;
    background: #44445d;
    box-shadow: 0 10px 25px #211e371f;
    transition: background var(--speed), border-color var(--speed);
}
a.featured-card:is(:hover, :focus-visible) .featured-sheet { background: #494a64; border-color: #ded6f93b; }
.featured-media { aspect-ratio: 2.18; overflow: hidden; background: #393752; border-radius: 7px; }
.featured-media .card-image { object-position: center 32%; }
a.featured-card:is(:hover, :focus-visible) .card-image { transform: scale(1.025); }
.section-heading :is(h1, h2) { font-size: clamp(19px, 1.7vw, 25px); letter-spacing: -.025em; font-weight: 800; }
.feed-more { margin-top: 20px; display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 39px; border: 1px solid #ffffff18; background: #5b577d9d; border-radius: 8px; font-size: 13px; font-weight: 800; transition: background var(--speed), color var(--speed); }
.feed-more:hover { color: var(--green); background: #6d6993a1; }
.feed-more svg { width: 16px; height: 16px; }
.average-rating { color: #ffdc9c; white-space: nowrap; }
.minimal-login { display: grid; place-items: center; min-height: calc(100dvh - 2 * clamp(12px, 2.3vw, 36px)); }
.minimal-login form { width: min(270px, 100%); }
.minimal-login input[type=password] { background: #272a3f; min-height: 43px; }
.minimal-login .alert { margin: 0; }
.seo-fields { padding: 8px 9px; background: #292940; border: 1px solid #ffffff20; border-radius: 7px; }
.seo-fields summary { display: flex; align-items: center; justify-content: space-between; min-height: 21px; cursor: pointer; font-size: 13px; font-weight: 750; }
.seo-fields summary::after { content: ""; display: block; width: 13px; height: 13px; background: url("caret.svg") center/contain no-repeat; transition: transform var(--speed); }
.seo-fields[open] summary::after { transform: rotate(180deg); }
.seo-fields > div { padding: 8px 0 3px; overflow-wrap: anywhere; }
@media (max-width: 920px) {
    .featured-grid { gap: 15px; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .featured-grid { gap: 8px; }
    .card-grid { grid-template-columns: minmax(0, 1fr); }
    .minimal-login { min-height: calc(100dvh - 26px); }
}

body:has(.public-shell) { background: #252537; }
.public-shell {
    --rail-width: clamp(225px, 16.5vw, 314px);
    --rail-duration: 415ms;
    --rail-track: var(--rail-width);
    --workspace-pad: clamp(18px, 1.62vw, 31px);
    --catalog-meta: #e0deee;
    max-width: 1770px;
    min-height: calc(100vh - 2 * var(--page-gutter));
    min-height: calc(100dvh - 2 * var(--page-gutter));
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 10% 4%, #be855b16, transparent 61%),
        radial-gradient(ellipse at 100% 12%, #45627734, transparent 56%),
        linear-gradient(115deg, #37344a, #33354b 54%, #313d51);
    border-color: #ffffff0a;
    border-left: 0;
    border-radius: 20px;
}
.public-shell.rail-hidden { --rail-track: 0px; }
.public-shell::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 auto 0 0;
    width: var(--rail-width);
    background: #22243732;
    border-radius: 19px 0 0 19px;
    transform-origin: left;
    transition: transform var(--rail-duration) var(--ease), opacity var(--rail-duration) var(--ease);
}
.public-shell.rail-hidden::before { transform: scaleX(.04); opacity: 0; }
.public-shell .topbar {
    min-height: clamp(67px, 4.75vw, 90px);
    display: grid;
    grid-template-columns: var(--rail-track) minmax(0, 1fr);
    gap: 0;
    border: 0;
    padding: 0;

}
.public-shell .topbar-actions {
    padding: 0 var(--workspace-pad);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
}
.public-shell .search {
    width: clamp(205px, 17.7vw, 339px);
    max-width: 100%;
    min-width: 0;
    height: clamp(39px, 2.56vw, 49px);
    gap: 3px;
    padding: 0 11px 0 8px;
    background: #29293e;
    justify-self: center;
}
.public-shell .search:focus-within { background: #27283f; }
.workspace-brand { min-width: 0; padding: 8px var(--workspace-pad); }
.sidebar-toggle { background: #ffffff06; border-color: #ffffff28; }
.sidebar-toggle svg { width: 21px; height: 21px; }
.sidebar-toggle > span {
    grid-area: 1 / 1;
    display: grid;
    place-items: center;
    transition: opacity var(--speed), transform var(--speed) var(--ease);
}
.sidebar-toggle[aria-expanded="true"] .sidebar-icon-closed,
.sidebar-toggle[aria-expanded="false"] .sidebar-icon-open { opacity: 0; transform: scale(.65) rotate(-9deg); }
.sidebar-toggle[aria-expanded="true"] .sidebar-icon-open,
.sidebar-toggle[aria-expanded="false"] .sidebar-icon-closed { opacity: 1; transform: scale(1); }

.public-shell .site-layout {
    flex: 1 0 auto;
    grid-template-columns: var(--rail-track) minmax(0, 1fr);
    grid-template-areas: "sidebar feed";
    gap: 0;
    padding: 0;
    align-items: stretch;
}
.public-shell .feed { padding: clamp(14px, 1.35vw, 26px) var(--workspace-pad) 30px; }
.public-shell .breadcrumbs {
    margin-bottom: clamp(17px, 1.45vw, 28px);
    gap: 12px;
    font-size: clamp(13px, .95vw, 17px);
    font-weight: 600;
}
.public-shell .breadcrumbs > svg { display: none; }
.public-shell .breadcrumbs a { color: #f1eefa; transition: color var(--speed) var(--ease); }
.public-shell .breadcrumbs a:hover { color: var(--green); }
.public-shell .footer { margin-inline: var(--workspace-pad); border-top: 0; color: var(--catalog-meta); font-size: clamp(12px, .78vw, 14px); }
.public-shell .empty { background: #2c2d44; border-color: #ffffff17; }

.public-shell .sidebar {
    display: grid;
    min-width: 0;
    padding: 0;
}
.public-shell .sidebar-inner {
    display: flex;
    flex-direction: column;
    padding: clamp(12px, 1.2vw, 23px) clamp(13px, 1.1vw, 21px) 30px;
    gap: 20px;
    transition: transform var(--rail-duration) var(--ease), opacity 340ms var(--ease);
}
.public-shell .side-panel {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
}
.public-shell .panel-title {
    font-size: clamp(15px, .99vw, 19px);
    padding: 3px 2px 8px;
}
.public-shell .panel-title > span { gap: 8px; }
.public-shell .category-list { display: grid; gap: 6px; }
.public-shell .category-row {
    grid-template-columns: 43px minmax(0, 1fr) auto;
    min-height: clamp(46px, 2.85vw, 54px);
    padding: 4px;
    gap: clamp(8px, .8vw, 15px);
    font-size: clamp(13px, .91vw, 17px);
    font-weight: 650;
}
.public-shell .category-row .category-icon {
    width: 43px;
    color: currentColor;
    height: 41px;
    border-radius: 10px;
    background: transparent;
    transition: background var(--speed) var(--ease), color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.public-shell .category-row .category-icon svg { width: 25px; height: 25px; }
.public-shell .category-row:is(.is-active, :hover, :focus-visible) {
    background: transparent;
    border-color: transparent;
    color: #73f3a2;
}
.public-shell .category-row:is(.is-active, :hover, :focus-visible) .category-icon {
    background: #675c86;
    color: #73f3a2;
}
.public-shell .category-row:is(:hover, :focus-visible):not(.is-active) .category-icon { transform: translateX(2px); }
.public-shell .count { font-size: 12px; color: var(--catalog-meta); background: #9597bb1a; transition: color var(--speed) var(--ease); }
.public-shell .is-active .count { color: var(--green); }
.public-shell .popular {
    overflow: visible;
    position: sticky;
    top: 16px;
    align-self: stretch;
    padding: 5px 4px 0;
    background: transparent;
    border: 0;
}
.popular .panel-title { margin-bottom: 5px; padding: 2px 2px 7px; font-weight: 680; }
.popular-list { list-style: none; margin: 0; padding: 0; gap: 5px; }
.popular-list li { min-width: 0; }
.popular-list .popular-row {
    grid-template-columns: 43px minmax(0, 1fr) 13px;
    gap: 8px;
    padding: 3px 2px;
    border-radius: 8px;
    color: var(--ink);
    background: transparent;
    align-items: center;
    transition: color var(--speed) var(--ease);
}
.popular-list .popular-row:is(:hover, :focus-visible) { color: var(--green); background: transparent; }
.popular-list .popular-row:focus-visible { outline-offset: -2px; }
.popular-list .popular-image { width: 43px; height: 45px; }
.popular-list .popular-lead { grid-template-columns: minmax(0, 1fr) 15px; }
.popular-list .popular-lead .popular-image {
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    aspect-ratio: 2.65;
}
.popular-list .popular-row strong {
    -webkit-line-clamp: 3;
    font-size: clamp(13px, .82vw, 15px);
    font-weight: 720;
    line-height: 1.35;
}
.popular-list .popular-lead strong { font-size: clamp(15px, .87vw, 17px); }
.popular-list .popular-row small { margin-top: 3px; font-size: clamp(12px, .64vw, 13px); color: var(--catalog-meta); }
.popular-arrow { color: #aaa7c4; transition: color var(--speed) var(--ease), transform var(--speed) var(--ease); }
.popular-arrow svg { width: 13px; height: 13px; }
.popular-row:is(:hover, :focus-visible) .popular-arrow { color: var(--green); transform: translateX(2px); }

:is(.featured-content, .card-body) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px 13px;
    min-width: 0;
}
.featured-content {
    grid-template-areas: "category action" "title action";
    grid-template-rows: auto 1fr;
    padding: clamp(12px, 1vw, 18px) 0 clamp(14px, 1.08vw, 20px);
}
.featured-category {
    grid-area: category;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 6px;
    background: #25263d58;
    color: #edeaf7;
    font-size: clamp(13px, .84vw, 15px);
    font-weight: 680;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.featured-category svg { width: 17px; height: 17px; color: var(--tone); }
:is(.featured-content, .card-body) h3 { grid-area: title; overflow-wrap: anywhere; }
.featured-content h3 { font-size: clamp(18px, 1.25vw, 24px); line-height: 1.29; font-weight: 750; }
.shop-tile {
    display: grid;
    align-content: center;
    min-width: 0;
    gap: clamp(14px, 1.55vw, 26px);
    padding: clamp(14px, 1.85vw, 34px);
    border: 1px solid #dbd6ee30;
    border-radius: 14px;
    background: #3c3c52;
}
.shop-title { display: flex; align-items: center; gap: 11px; }
.shop-title .category-icon { width: 39px; height: 39px; border-radius: 9px; }
.shop-title .category-icon svg { width: 23px; height: 23px; }
.shop-title h3 { font-size: clamp(20px, 1.55vw, 28px); font-weight: 750; }
.shop-offers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    gap: 9px;
    padding: 0;
    margin: 0;
}
.shop-offers > li { min-width: 0; }
.shop-offers > li:only-child { grid-column: 1 / -1; }
.shop-offer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    align-content: center;
    gap: 5px 6px;
    min-height: 100%;
    padding: clamp(9px, 1.04vw, 17px);
    border: 1px solid #ddd9f21d;
    border-radius: 9px;
    background: #343449;
}
.shop-offer strong { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: #f7f6ff; font-size: clamp(15px, 1.22vw, 21px); line-height: 1.25; overflow-wrap: anywhere; }
.shop-offer strong svg { width: 20px; height: 20px; color: #8eefb5; }
.shop-offer-price { color: #d9d6e7; font-size: clamp(12px, .91vw, 16px); line-height: 1.35; overflow-wrap: anywhere; }
.shop-offer-arrow { display: grid; place-items: center; color: #bebad4; transition: color var(--speed) var(--ease), transform var(--speed) var(--ease); }
.shop-offer-arrow svg { width: 15px; height: 15px; }
a.shop-offer { transition: background-color var(--speed) var(--ease), border-color var(--speed) var(--ease); }
a.shop-offer:is(:hover, :focus-visible) { border-color: #74efa38c; background-color: #36454c; }
a.shop-offer:is(:hover, :focus-visible) .shop-offer-arrow { color: var(--green); transform: translateX(2px); }
.public-shell .featured-section + .feed-section { margin-top: clamp(24px, 2.35vw, 45px); }
.public-shell .section-heading { margin-bottom: clamp(13px, 1.25vw, 24px); }
.public-shell .section-heading :is(h1, h2) { font-size: clamp(18px, 1.14vw, 22px); font-weight: 750; letter-spacing: -.01em; }
.public-shell .text-link { font-size: clamp(13px, .89vw, 17px); }
.public-shell .card-grid { gap: clamp(17px, 1.76vw, 34px); }
.home-shell .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.public-shell .post-card {
    padding: clamp(7px, .67vw, 12px);
    background: transparent;
    border-radius: 10px;
    transition: color var(--speed) var(--ease);
}
.public-shell .post-card:is(:hover, :focus-visible) { color: #d6fce6; }
.public-shell .card-media { aspect-ratio: 16 / 9; height: auto; }
.public-shell .post-card:is(:hover, :focus-visible) .card-image { transform: scale(1.025); }
.public-shell .card-body {
    grid-template-areas: "title action" "details action";
    grid-template-rows: auto 1fr;
    padding: 11px 0 3px;
}
.public-shell .card-body h3 { font-size: clamp(16px, 1.05vw, 20px); font-weight: 700; line-height: 1.38; letter-spacing: -.01em; }
.public-shell .card-meta {
    grid-area: details;
    color: var(--catalog-meta);
    font-size: clamp(13px, .8vw, 15px);
    font-weight: 600;
    gap: 6px 13px;
}
.card-category { color: #edeaf7; font-weight: 680; overflow-wrap: anywhere; }
.card-action {
    grid-area: action;
    align-self: start;
    display: grid;
    place-items: center;
    width: clamp(34px, 2.2vw, 42px);
    aspect-ratio: 1;
    border-radius: 9px;
    border: 1px solid #d9d5ef4a;
    background: #302f45;
    color: #e9e6f7;
    transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.card-action svg { width: 18px; height: 18px; transition: transform var(--speed) var(--ease); }
:is(.post-card, .featured-card):is(:hover, :focus-visible) .card-action { color: #8ef2b8; border-color: #71eaaa8a; background-color: #24343a; }
:is(.post-card, .featured-card):is(:hover, :focus-visible) .card-action svg { transform: translateX(2px); }
.public-shell .feed-more {
    margin-top: clamp(15px, 1.3vw, 25px);
    min-height: clamp(44px, 2.55vw, 49px);
    padding: 7px 12px;
    font-size: clamp(14px, .9vw, 17px);
    text-align: center;
}


.article-heading, .article-figure { max-width: 1000px; margin-inline: auto; }
.article-path { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 17px; margin-bottom: clamp(15px, 1.3vw, 24px); }
.article-category {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 4px 10px;
    border-radius: 7px;
    background: #524c6c;
    color: #faf7ff;
    font-size: clamp(13px, .85vw, 15px);
    font-weight: 700;
    line-height: 1.2;
    transition: background var(--speed);
}
.article-category:hover { background: #665d87; }
.article-heading .metadata {
    margin-top: 17px;
    gap: 9px 15px;
    font-size: clamp(13px, 1vw, 17px);
    line-height: 1.45;
    font-weight: 650;
    color: #e1dfee;
}
.article-heading .metadata svg { width: 17px; height: 17px; }
.article-figure { margin-block: 0; }
.article-cover {
    width: auto;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
    border-radius: 12px;
}

@media (max-width: 1150px) {
    .public-shell { --rail-width: 218px; }
    .public-shell .sidebar-inner { gap: 18px; }
    .minimal-login { min-height: calc(100dvh - 36px); }
}
@media (max-width: 920px) {
    .public-shell { --rail-width: 198px; --workspace-pad: 15px; }
    .public-shell .category-row { grid-template-columns: 37px minmax(0, 1fr) auto; }
    .public-shell .category-row .category-icon { width: 37px; height: 36px; }
}
@media (max-width: 760px) {
    .public-shell { --workspace-pad: 12px; }
    .public-shell::before { display: none; }
    .minimal-login { min-height: calc(100dvh - 26px); }
    .public-shell .topbar { grid-template-columns: minmax(0, auto) minmax(0, 1fr); padding: 9px var(--workspace-pad); gap: 10px; min-height: 62px; }
    .workspace-brand { grid-column: 1; grid-row: 1; padding: 0; max-width: min(34vw, 148px); }
    .sidebar-toggle { display: inline-grid; }
    .public-shell .topbar-actions { grid-column: 2; grid-row: 1; display: flex; justify-content: end; padding: 0; }
    .public-shell .search { width: min(100%, 270px); height: 36px; }
    .public-shell .site-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "sidebar" "feed"; }
    .public-shell .sidebar-inner { padding: 10px var(--workspace-pad); background: #2f314882; gap: 12px; }
    .public-shell .footer svg { display: none; }
}
@media (max-width: 520px) {
    .public-shell .topbar { gap: 7px; }
    .public-shell .search { gap: 0; padding: 0 5px 0 3px; }
    .public-shell .search-submit { width: 22px; }
    .public-shell .search-clear svg { width: 14px; height: 14px; }
    .public-shell .featured-grid { gap: 13px; }
    .public-shell .card-grid { gap: 15px; }
    .home-shell .card-grid { grid-template-columns: minmax(0, 1fr); }
    .public-shell .featured-media { aspect-ratio: 1.65; }
    .public-shell .featured-section + .feed-section { margin-top: 30px; }
}

@media (min-width: 761px) {
    .public-shell { overflow: clip; }
    .public-shell .sidebar-inner { min-width: var(--rail-width); min-height: 100%; }
    .public-shell .topbar {
        position: relative;
        grid-template-columns: minmax(0, 1fr);
    }
    .public-shell .topbar-actions {
        padding-inline-start: var(--rail-width);
    }
    .workspace-brand {
        position: absolute;
        inset: 0 auto 0 0;
        z-index: 1;
        display: flex;
        align-items: center;
        max-width: var(--rail-width);
        transition: transform var(--rail-duration) var(--ease);
    }
    .rail-hidden .workspace-brand { transform: translateX(23px); }
    .public-shell .feed { transform-origin: right top; }
    .public-shell .sidebar { width: var(--rail-width); }
    .rail-hidden .sidebar-inner { opacity: 0; transform: translateX(calc(-1 * var(--rail-width))); }
    .rail-hidden .sidebar { pointer-events: none; contain: size; }
    .public-shell .article-popular { display: none; }
    .public-shell.page-enter .feed { animation: page-in 330ms var(--ease) backwards; }
}
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
    .public-shell:has(.sidebar-toggle:is(:hover, :focus-visible)) :is(.feed, .sidebar-inner) { will-change: transform; }
}
@media (max-width: 760px) {
    .public-shell .sidebar-inner { padding-block: 0; }
    .public-shell.has-mobile-menu .sidebar.is-expanded .sidebar-inner { padding-block: 12px; }
}

.branding-form { width: min(100%, 590px); }
.branding-form fieldset { border: 1px solid var(--line); border-radius: 10px; min-width: 0; margin: 0; padding: 12px; }
.branding-form legend { padding-inline: 6px; font-size: 15px; font-weight: 750; }
.branding-form input[type="file"] { width: 100%; min-width: 0; font-size: 13px; padding-block: 5px; }
.branding-form input::file-selector-button { border: 1px solid var(--line); border-radius: 6px; padding: 7px; margin-right: 8px; background: #37344f; color: var(--ink); cursor: pointer; }
.branding-preview { display: flex; align-items: center; min-height: 49px; padding: 8px; background: #27273c; border-radius: 7px; }
.branding-preview img { height: auto; max-width: 100%; }
.branding-form > p { font-size: 13px; }
.branding-form > button { justify-self: start; }
.metrika-form { margin-top: 18px; }
.metrika-form textarea { resize: vertical; font-family: ui-monospace, monospace; white-space: pre-wrap; }

.shop-form { width: min(100%, 620px); gap: 12px; }
.shop-form .shop-switch { gap: 11px; font-size: 15px; }
.shop-switch-track {
    position: relative;
    width: 41px;
    height: 24px;
    flex: none;
    border: 1px solid #ffffff47;
    border-radius: 20px;
    background: #27283b;
    transition: background-color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.shop-switch-track::before {
    content: "";
    position: absolute;
    inset: 3px auto auto 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ddd8eb;
    transition: transform var(--speed) var(--ease), background-color var(--speed) var(--ease);
}
.shop-switch input:focus-visible + .shop-switch-track { outline: 2px solid var(--green); outline-offset: 3px; }
.shop-switch input:checked + .shop-switch-track { border-color: #8eefb5; background-color: #6ceba1; }
.shop-switch input:checked + .shop-switch-track::before { background-color: #18382b; transform: translateX(17px); }
.shop-help { font-size: 13px; margin-bottom: 6px; }
.shop-rows { display: grid; gap: 8px; }
.shop-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) 40px; gap: 8px; align-items: center; }
.shop-column-labels { color: #e8e5f4; font-size: 13px; font-weight: 740; }
.shop-row .shop-remove { width: 40px; height: 40px; }
.shop-remove:hover { color: #ffc2cf; border-color: #f99aaf5c; }
.shop-remove svg { width: 17px; height: 17px; }
.shop-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin-top: 3px; }

.video-settings { border: 1px solid #ffffff1e; border-radius: 8px; padding: 8px 10px; }
.video-settings summary { font-size: 13px; font-weight: 750; cursor: pointer; }
.video-settings[open] summary { margin-bottom: 10px; }
.video-poster-fields { min-width: 0; margin: 0; padding: 8px 10px; border: 1px solid #ffffff25; border-radius: 8px; }
.video-poster-fields legend { font-size: 13px; font-weight: 700; padding-inline: 5px; }

.public-shell .article-popular {
    position: static;
    margin-top: 25px;
    padding: 0 5px;
}
.article-popular .popular-list { gap: 7px; }
.article-popular .popular-list .popular-row { height: 100%; grid-template-columns: 49px minmax(0, 1fr) 13px; }
.article-popular .popular-list .popular-image { width: 49px; height: 51px; }

.featured-pages { display: none; }
@media (max-width: 760px) {
    .public-shell .featured-grid {
        position: relative;
        display: flex;
        min-width: 0;
        overflow: auto hidden;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        gap: 15px;
    }
    .featured-grid::-webkit-scrollbar { display: none; }
    .featured-grid > :is(.featured-card, .shop-tile) { flex: 0 0 100%; scroll-snap-align: start; }
    .featured-content h3 { font-size: clamp(18px, 4vw, 22px); }
    .featured-pages { display: flex; justify-content: center; gap: 5px; margin-top: 5px; }
    .featured-pages button {
        display: grid;
        place-items: center;
        width: 28px;
        height: 25px;
        border-radius: 5px;
    }
    .featured-pages button::after {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 999px;
        background: #8f88a8;
        transition: width var(--speed) var(--ease), background var(--speed);
    }
    .featured-pages button[aria-pressed="true"]::after { width: 17px; background: var(--green); }
    .featured-pages-labeled { gap: 7px; margin-top: 11px; }
    .featured-pages-labeled button {
        width: auto;
        height: auto;
        min-height: 34px;
        padding: 5px 12px;
        color: var(--muted);
        border: 1px solid #d4d2f02c;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 700;
        transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease), border-color var(--speed) var(--ease);
    }
    .featured-pages-labeled button::after { display: none; }
    .featured-pages-labeled button[aria-pressed="true"] { color: #a4f4c5; border-color: #81f3b461; background: #75f3b116; }
    .article-shell .sidebar .popular { display: none; }
    .public-shell .search input,
    .field-stack :is(input:not([type=checkbox], [type=file], [type=range]), textarea, select),
    .inline-form input, .toolbar select, .editable { font-size: 16px; }
    .video-controls button { width: 34px; height: 36px; }
    .video-time { font-size: 10px; }
}
@media (hover: none) {
    a.featured-card:hover .card-image, .public-shell .post-card:hover .card-image { transform: none; }
}
@keyframes page-in { from { opacity: .6; } }
