@charset "UTF-8";
@font-face {
  font-family: 'DingTalk JinBu';
  src: url('/fonts/dingding-jinbu.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alpsoft-Qolyazma4';
  src: url('/fonts/ALPSOFTQOLYAZMA4.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* 阿拉伯字体工具类，文章内使用 */
.font-arabic {
  font-family: 'Alpsoft-Qolyazma4', 'DingTalk JinBu', serif;
}
header nav ul {
    margin: 0;
    padding: 0;
    list-style: none
}

header nav a {
    text-decoration: none;
    color: var(--color-card-foreground)
}

header nav a:hover {
    text-decoration: none
}

header button {
    background: 0 0;
    border: none;
    cursor: pointer;
    color: var(--color-card-foreground)
}

.logo-section {
    display: flex;
    align-items: center;
    height: 100%
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    height: 32px
}

.logo-svg {
    color: var(--color-foreground)
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s cubic-bezier(.4,0,.2,1)
}

.status-badge i {
    transition: transform .2s ease
}

.status-recommend {
    display: inline-flex;
    align-items: center;
    gap: .125rem;
    padding: 0;
    background: 0 0;
    color: #f97316;
    border: none;
    border-radius: 0;
    text-shadow: 0 0 8px rgba(249,115,22,.4);
    font-size: .625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .025em;
    margin-right: .25rem;
    vertical-align: baseline;
    transform: translateY(-.2em)
}

.status-recommend i {
    font-size: .625rem;
    animation: none;
    transition: transform .3s ease
}

.status-recommend .badge-text {
    font-size: .5rem;
    font-weight: 700;
    line-height: 1
}

.dark .status-recommend {
    color: #fb923c;
    text-shadow: 0 0 8px rgba(251,146,60,.5)
}

.tag-link {
    position: relative;
    display: inline-block;
    padding: .25rem .5rem;
    font-size: .75rem;
    text-decoration: none;
    background-color: var(--color-card);
    color: var(--color-foreground);
    border-radius: .125rem;
    font-weight: 400;
    transition: all .2s ease
}

.tag-link::before {
    content: '';
    position: absolute;
    inset: -2px;
    --s: 4px;
    border: 1px solid var(--color-primary);
    border-radius: 2px;
    mask: conic-gradient(#000 0 0)content-box,conic-gradient(at var(--s) var(--s),#0000 75%,#000 0)0 0/calc(100% - var(--s))calc(100% - var(--s));
    transition: .2s cubic-bezier(.4,0,.2,1)all;
    pointer-events: none;
    opacity: 0;
    transform: scale(.8)
}

.tag-link:hover {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground)
}

.tag-link:hover::before {
    transform: scale(1);
    opacity: 1
}

@keyframes sparkle {
    0%,100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .7;
        transform: scale(1.1)
    }
}

header .grid {
    align-items: center
}

header nav ul {
    align-items: center
}

header .corner-effect,header .btn,header .footer-link,header .redirect-btn {
    display: inline-flex;
    align-items: center
}

header .corner-effect span:last-child,header .btn span:last-child,header .footer-link span:last-child,header .redirect-btn span:last-child {
    display: flex;
    align-items: center;
    min-height: 32px
}

header .theme-toggle span:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    min-width: 32px
}

.category-badge {
    display: inline-block;
    font-size: .625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .025em;
    margin-left: .5rem;
    color: var(--color-muted)
}

.post-header .category-badge,.post-meta .category-badge {
    border: 1px solid;
    border-radius: .25rem;
    padding: .125rem .375rem
}

.category-badge.category-tech,.category-badge.category-technology {
    background: linear-gradient(135deg,#667eea 0%,#764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent
}

.post-header .category-badge.category-tech,.post-meta .category-badge.category-tech,.post-header .category-badge.category-technology,.post-meta .category-badge.category-technology {
    border-color: #667eea
}

.category-badge.category-thoughts,.category-badge.category-thinking {
    color: #ff6b6b
}

.category-badge.category-daily {
    color: #6c5ce7
}

.category-badge.category-life {
    color: #00f2fe
}

.dark .category-badge.category-tech,.dark .category-badge.category-technology {
    background: linear-gradient(135deg,#8b9aff 0%,#9a7bc8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent
}

.post-header .dark .category-badge.category-tech,.post-meta .dark .category-badge.category-tech,.post-header .dark .category-badge.category-technology,.post-meta .dark .category-badge.category-technology {
    border-color: #8b9aff
}

.dark .category-badge.category-thoughts,.dark .category-badge.category-thinking {
    color: #ff8989
}

.dark .category-badge.category-daily {
    color: #8a7ff0
}

.dark .category-badge.category-life {
    color: #4facfe
}

.alert {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: var(--color-card);
    transition: padding .3s ease
}

.alert .alert-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
    font-weight: 500;
    font-size: .9rem;
    letter-spacing: .01em
}

.alert .alert-icon {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    opacity: .9
}

.alert .alert-title {
    flex: 1;
    color: inherit
}

.alert .alert-toggle,.alert .alert-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: .5rem;
    background: 0 0;
    border: none;
    cursor: pointer;
    opacity: .6;
    font-size: 1rem;
    color: inherit;
    transition: opacity .2s ease,transform .2s ease
}

.alert .alert-toggle:hover,.alert .alert-close:hover {
    opacity: 1
}

.alert .alert-toggle:focus,.alert .alert-close:focus {
    outline: none;
    opacity: 1
}

.alert .alert-toggle {
    margin-left: auto;
    margin-right: .25rem
}

.alert .alert-toggle i {
    transition: transform .3s ease
}

.alert .alert-content {
    color: var(--color-text-secondary);
    line-height: 1.6;
    transition: max-height .3s ease,opacity .3s ease,padding .3s ease,margin .3s ease;
    overflow: hidden
}

.alert .alert-content>*:first-child {
    margin-top: 0
}

.alert .alert-content>*:last-child {
    margin-bottom: 0
}

.alert .alert-content p {
    margin: .5rem 0
}

.alert .alert-content p:first-child {
    margin-top: 0
}

.alert .alert-content p:last-child {
    margin-bottom: 0
}

.alert .alert-content ul,.alert .alert-content ol {
    margin: .5rem 0;
    padding-left: 1.5rem
}

.alert .alert-content ul li,.alert .alert-content ol li {
    margin: .25rem 0
}

.alert .alert-content pre {
    margin: .75rem 0;
    background: rgba(0,0,0,3%)!important
}

.alert .alert-content code {
    background: rgba(0,0,0,6%);
    padding: .125rem .375rem;
    font-size: .85em;
    font-family: "Cascadia Code","Fira Code",Consolas,monospace
}

.alert .alert-content a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: initial;
    text-underline-offset: 2px
}

.alert .alert-content a:hover {
    text-decoration-thickness: 2px
}

.alert .alert-content strong {
    font-weight: 600;
    color: var(--color-text)
}

.alert-collapsible .alert-header-clickable {
    cursor: pointer;
    user-select: none
}

.alert-collapsible .alert-header-clickable:hover {
    opacity: .8
}

.alert-collapsible .alert-header {
    transition: margin-bottom .3s ease
}

.alert-collapsible .alert-content {
    max-height: none;
    transition: max-height .3s ease,opacity .3s ease,padding .3s ease,margin .3s ease
}

.alert-collapsible.collapsed .alert-content {
    max-height: 0!important;
    opacity: 0!important;
    margin: 0!important;
    padding: 0!important;
    overflow: hidden!important
}

.alert-collapsible.collapsed .alert-toggle i {
    transform: rotate(-90deg)
}

.alert-collapsible.collapsed .alert-header {
    margin-bottom: 0
}

.alert-tip {
    background: rgba(96,165,250,3%)
}

.alert-tip .alert-header {
    color: #2563eb
}

.alert-tip .alert-icon {
    color: #60a5fa
}

.alert-warning {
    background: rgba(251,191,36,3%)
}

.alert-warning .alert-header {
    color: #d97706
}

.alert-warning .alert-icon {
    color: #fbbf24
}

.alert-error {
    background: rgba(248,113,113,3%)
}

.alert-error .alert-header {
    color: #dc2626
}

.alert-error .alert-icon {
    color: #f87171
}

.alert-info {
    background: rgba(34,211,238,3%)
}

.alert-info .alert-header {
    color: #0891b2
}

.alert-info .alert-icon {
    color: #22d3ee
}

.alert-note {
    background: rgba(148,163,184,3%)
}

.alert-note .alert-header {
    color: #475569
}

.alert-note .alert-icon {
    color: #94a3b8
}

.dark .alert {
    background: var(--color-card)
}

.dark .alert .alert-toggle,.dark .alert .alert-close {
    color: var(--color-text-secondary)
}

.dark .alert .alert-toggle:hover,.dark .alert .alert-close:hover {
    color: var(--color-text)
}

.dark .alert .alert-content {
    color: var(--color-text-secondary)
}

.dark .alert .alert-content code {
    background: rgba(255,255,255,8%)
}

.dark .alert .alert-content pre {
    background: rgba(255,255,255,5%)!important
}

.dark .alert-tip {
    background: rgba(96,165,250,8%)
}

.dark .alert-tip .alert-header {
    color: #93c5fd
}

.dark .alert-tip .alert-icon {
    color: #93c5fd
}

.dark .alert-warning {
    background: rgba(251,191,36,8%)
}

.dark .alert-warning .alert-header {
    color: #fcd34d
}

.dark .alert-warning .alert-icon {
    color: #fcd34d
}

.dark .alert-error {
    background: rgba(248,113,113,8%)
}

.dark .alert-error .alert-header {
    color: #fca5a5
}

.dark .alert-error .alert-icon {
    color: #fca5a5
}

.dark .alert-info {
    background: rgba(34,211,238,8%)
}

.dark .alert-info .alert-header {
    color: #67e8f9
}

.dark .alert-info .alert-icon {
    color: #67e8f9
}

.dark .alert-note {
    background: rgba(148,163,184,8%)
}

.dark .alert-note .alert-header {
    color: #cbd5e1
}

.dark .alert-note .alert-icon {
    color: #cbd5e1
}

@media(max-width: 768px) {
    .alert {
        margin:1rem 0;
        padding: .875rem 1rem
    }

    .alert .alert-header {
        gap: .625rem;
        margin-bottom: .625rem;
        font-size: .85rem
    }

    .alert .alert-icon {
        font-size: 1rem
    }

    .alert .alert-content {
        font-size: .9rem;
        line-height: 1.55
    }

    .alert-collapsible.collapsed {
        padding-bottom: .5rem
    }
}

@media print {
    .alert {
        break-inside: avoid;
        border: 1px solid
    }

    .alert .alert-header {
        color: inherit!important
    }

    .alert .alert-icon {
        color: inherit!important
    }
}

.prose {
    max-width: none;
    color: var(--color-foreground);
    line-height: 1.7
}

.prose h1,.prose h2,.prose h3,.prose h4,.prose h5,.prose h6 {
    color: var(--color-foreground);
    font-weight: 600;
    line-height: 1.25;
    margin-top: 2rem;
    margin-bottom: 1rem
}

.prose h1:first-child,.prose h2:first-child,.prose h3:first-child,.prose h4:first-child,.prose h5:first-child,.prose h6:first-child {
    margin-top: 0
}

.prose h1 {
    font-size: 1.875rem
}

.prose h2 {
    font-size: 1.625rem
}

.prose h3 {
    font-size: 1.375rem
}

.prose h4 {
    font-size: 1.125rem
}

.prose h5 {
    font-size: 1rem
}

.prose h6 {
    font-size: .9rem
}

.prose p {
    margin-top: 0;
    margin-bottom: 1.25rem
}

.prose p:last-child {
    margin-bottom: 0
}

.prose a:not(.shortcode a):not([class*=shortcode]):not([class*=highlight]):not([class*=music]):not([class*=alert]) {
    position: relative;
    color: var(--color-muted);
    text-decoration: none;
    transition: all .3s ease
}

.prose a:not(.shortcode a):not([class*=shortcode]):not([class*=highlight]):not([class*=music]):not([class*=alert])::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 3px;
    opacity: .4;
    transition: all .3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 3'%3E%3Cpath d='M0,2 Q25,0 50,1.5 T100,2' stroke='%236c6c6c' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%
}

.prose a:not(.shortcode a):not([class*=shortcode]):not([class*=highlight]):not([class*=music]):not([class*=alert]):hover {
    color: var(--color-primary);
    text-decoration: none
}

.prose a:not(.shortcode a):not([class*=shortcode]):not([class*=highlight]):not([class*=music]):not([class*=alert]):hover::after {
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 3'%3E%3Cpath d='M0,2 Q25,0 50,1.5 T100,2' stroke='%23272727' stroke-width='1.5' fill='none'/%3E%3C/svg%3E")
}

.prose .shortcode a,.prose [class*=shortcode] a,.prose [class*=highlight] a,.prose [class*=music] a,.prose [class*=alert] a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: var(--color-border);
    text-underline-offset: .2em;
    transition: .15s ease all
}

.prose .shortcode a:hover,.prose [class*=shortcode] a:hover,.prose [class*=highlight] a:hover,.prose [class*=music] a:hover,.prose [class*=alert] a:hover {
    text-decoration-color: var(--color-primary)
}

.prose .shortcode a::after,.prose [class*=shortcode] a::after,.prose [class*=highlight] a::after,.prose [class*=music] a::after,.prose [class*=alert] a::after {
    display: none
}

.prose ul,.prose ol {
    margin-top: 0;
    margin-bottom: 1.25rem;
    padding-left: 1.625rem
}

.prose ul li,.prose ol li {
    margin-top: .5rem;
    margin-bottom: .5rem
}

.prose ul li:first-child,.prose ol li:first-child {
    margin-top: 0
}

.prose ul li:last-child,.prose ol li:last-child {
    margin-bottom: 0
}

.prose ul ul,.prose ul ol,.prose ol ul,.prose ol ol {
    margin-top: .75rem;
    margin-bottom: .75rem
}

.prose ul {
    list-style-type: disc
}

.prose ol {
    list-style-type: decimal
}

.prose blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--color-muted)!important;
    font-family: 'DingTalk JinBu',serif!important
}

.prose blockquote p {
    margin: 0;
    color: var(--color-muted)!important
}

.prose blockquote cite {
    font-style: normal;
    font-size: .875rem;
    color: var(--color-muted)
}

.prose blockquote cite:before {
    content: "— "
}

.prose code {
    font-family: var(--font-mono);
    font-size: .875em;
    background-color: var(--color-card);
    color: var(--color-foreground);
    padding: .25rem .375rem;
    border-radius: .125rem;
    border: 1px solid var(--color-border)
}

.prose .code-block-wrapper {
    position: relative;
    margin: 1.5rem 0;
    border: 1px solid var(--color-border);
    border-radius: .25rem;
    background-color: var(--color-card);
    overflow: hidden
}

.prose .code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 1rem;
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    font-size: .75rem
}

.prose .code-language {
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-muted);
    font-family: var(--font-mono)
}

.prose .code-copy-btn {
    display: flex;
    align-items: center;
    gap: .25rem;
    background: 0 0;
    border: none;
    color: var(--color-muted);
    cursor: pointer;
    padding: .25rem;
    border-radius: .125rem;
    transition: .2s ease all
}

.prose .code-copy-btn:hover {
    color: var(--color-foreground);
    background-color: var(--color-card)
}

.prose .code-copy-btn svg {
    width: 16px;
    height: 16px
}

.prose .highlight {
    overflow-x: auto;
    margin: 1.5rem 0!important;
    padding: 0!important;
    border: none!important;
    border-radius: 0!important;
    background-color: transparent!important
}

.prose .highlight pre {
    margin: 0!important;
    padding: 1rem!important;
    background-color: var(--color-card)!important;
    border: 1px solid var(--color-border)!important;
    border-radius: .25rem!important;
    font-family: var(--font-mono);
    font-size: .875rem;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre
}

.prose .highlight pre code {
    background: 0 0!important;
    border: none!important;
    padding: 0!important;
    font-size: inherit;
    white-space: pre;
    word-wrap: normal;
    overflow-wrap: normal
}

.prose .highlight .ln,.prose .highlight .lnt {
    display: none!important
}

.prose .highlight .lntd:first-child {
    display: none!important
}

.prose .highlight .lntable td:first-child {
    display: none!important
}

.prose pre:not(.highlight pre) {
    font-family: var(--font-mono);
    font-size: .875rem;
    line-height: 1.5;
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: .25rem;
    overflow-x: auto;
    white-space: pre
}

.prose pre:not(.highlight pre) code {
    background: 0 0;
    border: none;
    padding: 0;
    font-size: inherit
}

.prose .chroma {
    overflow-x: auto;
    background-color: var(--color-card)!important
}

.prose .chroma .lntd:first-child {
    display: none!important
}

.prose .chroma .ln {
    display: none!important
}

.prose table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    font-size: .875rem
}

.prose th,.prose td {
    padding: .75rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border)
}

.prose th {
    font-weight: 600;
    color: var(--color-foreground);
    background-color: var(--color-card)
}

.prose td {
    color: var(--color-foreground)
}

.prose img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: .25rem;
    transition: all .3s ease;
    filter: brightness(.9)contrast(.95)
}

.prose img:hover {
    filter: brightness(1)contrast(1)
}

.prose .image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0
}

.prose .image-gallery img {
    margin: 0;
    border-radius: .25rem;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
    transition: all .3s ease;
    filter: brightness(.9)contrast(.95)
}

.prose .image-gallery img:hover {
    filter: brightness(1)contrast(1)
}

.prose .gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0
}

.prose .gallery img {
    margin: 0;
    border-radius: .25rem;
    transition: all .3s ease;
    filter: brightness(.9)contrast(.95)
}

.prose .gallery img:hover {
    filter: brightness(1)contrast(1)
}

@media(max-width: 768px) {
    .prose .image-gallery,.prose .gallery {
        gap:.75rem
    }

    .prose .image-gallery img,.prose .gallery img {
        height: 150px!important
    }
}

@media(max-width: 480px) {
    .prose .image-gallery,.prose .gallery {
        flex-direction:column;
        gap: 1rem
    }

    .prose .image-gallery img,.prose .gallery img {
        width: 100%!important;
        height: 200px!important;
        object-fit: cover!important
    }
}

.prose figure {
    margin: 2rem 0;
    text-align: center
}

.prose figure img {
    margin: 0
}

.prose figure figcaption {
    margin-top: .75rem;
    font-size: .875rem;
    color: var(--color-muted);
    font-style: italic;
    line-height: 1.5;
    text-align: center;
    padding: 0 1rem
}

.prose hr {
    border: none;
    height: 1px;
    background-color: var(--color-border);
    margin: 3rem 0
}

.prose strong {
    font-weight: 600;
    color: var(--color-foreground)
}

.prose em {
    font-style: italic
}

.prose mark {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
    padding: .125rem .25rem;
    border-radius: .125rem
}

.prose small {
    font-size: .875em;
    color: var(--color-muted)
}

.chroma {
    background-color: var(--color-card)
}

.chroma .k {
    color: #d73a49
}

.chroma .s,.chroma .s1,.chroma .s2 {
    color: #032f62
}

.chroma .c,.chroma .c1,.chroma .cm {
    color: #6a737d
}

.chroma .m,.chroma .mi,.chroma .mf {
    color: #005cc5
}

.chroma .n {
    color: #24292e
}

.chroma .nt {
    color: #22863a
}

.chroma .na {
    color: #6f42c1
}

.chroma .nf {
    color: #6f42c1
}

.chroma .o {
    color: #d73a49
}

.dark {
}

.dark .prose a:not(.shortcode a):not([class*=shortcode]):not([class*=highlight]):not([class*=music]):not([class*=alert])::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 3'%3E%3Cpath d='M0,2 Q25,0 50,1.5 T100,2' stroke='%236c6c6c' stroke-width='1.5' fill='none'/%3E%3C/svg%3E")
}

.dark .prose a:not(.shortcode a):not([class*=shortcode]):not([class*=highlight]):not([class*=music]):not([class*=alert]):hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 3'%3E%3Cpath d='M0,2 Q25,0 50,1.5 T100,2' stroke='%23ffffff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E")
}

.dark .chroma {
    background-color: var(--color-card)!important;
    color: #f8f8f2!important
}

.dark .chroma .k {
    color: #ff79c6!important
}

.dark .chroma .s,.dark .chroma .s1,.dark .chroma .s2 {
    color: #f1fa8c!important
}

.dark .chroma .c,.dark .chroma .c1,.dark .chroma .cm {
    color: #6272a4!important
}

.dark .chroma .m,.dark .chroma .mi,.dark .chroma .mf {
    color: #bd93f9!important
}

.dark .chroma .n {
    color: #f8f8f2!important
}

.dark .chroma .nt {
    color: #ff79c6!important
}

.dark .chroma .na {
    color: #50fa7b!important
}

.dark .chroma .nf {
    color: #50fa7b!important
}

.dark .chroma .o {
    color: #ff79c6!important
}

.dark .highlight pre {
    background-color: var(--color-card)!important;
    border: 1px solid var(--color-border)!important
}

code block collapse styles .code-block-collapsible {
    position: relative;
    margin: 1.5rem 0
}

code block collapse styles .code-block-collapsible .highlight,code block collapse styles .code-block-collapsible pre {
    margin: 0!important;
    position: relative
}

code block collapse styles .code-block-collapsible .code-fade-overlay {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent,var(--color-card));
    pointer-events: none;
    opacity: 1;
    transition: opacity 300ms ease-in-out;
    z-index: 2
}

code block collapse styles .code-block-collapsible.expanded .code-fade-overlay {
    opacity: 0
}

.code-collapse-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--color-card);
    border: none;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: .875rem;
    font-family: var(--font-mono);
    transition: all .2s ease;
    z-index: 3
}

.code-collapse-btn:hover {
    color: var(--color-foreground);
    background: var(--color-background)
}

.code-collapse-btn .collapse-icon {
    width: 16px;
    height: 16px;
    transition: transform .2s ease
}

.code-collapse-btn.expanded .collapse-icon {
    transform: rotate(180deg)
}

.code-block-collapsible.expanded pre,.code-block-collapsible.expanded .highlight pre {
    padding-bottom: 70px!important
}

.code-block-collapsible.expanded code {
    padding-bottom: 70px!important
}

@media(max-width: 768px) {
    .code-collapse-btn {
        height:45px;
        font-size: .8rem
    }

    .code-collapse-btn .collapse-icon {
        width: 14px;
        height: 14px
    }

    .code-block-collapsible .code-fade-overlay {
        bottom: 45px;
        height: 45px
    }

    .code-block-collapsible.expanded pre {
        padding-bottom: 55px!important
    }
}

.dark .code-fade-overlay {
    background: linear-gradient(transparent,var(--color-card))
}

.dark .code-collapse-btn {
    background: var(--color-card);
    border-color: var(--color-border)
}

.dark .code-collapse-btn:hover {
    background: var(--color-background)
}

.posts-list-page .card {
    border-radius: 0!important
}

.posts-list-page .page-header {
    margin-bottom: 1rem
}

.posts-list-page .page-description {
    color: var(--color-muted);
    line-height: 1.6
}

.posts-list-page .posts-count {
    color: var(--color-muted);
    font-size: .875rem;
    margin-top: 1rem
}

.posts-list-page .section-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--color-foreground)
}

.posts-list-page .featured-posts {
    margin-bottom: 1rem
}

.posts-list-page .featured-posts-container {
    display: flex;
    flex-direction: column;
    gap: 2rem
}

.posts-list-page .large-post-card {
    background-color: var(--color-card);
    color: var(--color-card-foreground);
    border: 1px solid var(--color-border);
    border-radius: 0;
    padding: 1.5rem;
    transition: all .3s ease
}

.posts-list-page .large-post-card:hover {
    border-color: var(--color-primary)
}

.posts-list-page .large-post-card:hover .status-recommend i {
    transform: scaleX(-1)
}

.posts-list-page .large-post-card .featured-card-content {
    display: flex;
    gap: 2rem;
    align-items: stretch
}

.posts-list-page .large-post-card .featured-card-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.posts-list-page .large-post-card .featured-card-date {
    display: flex;
    align-items: center;
    gap: .75rem
}

.posts-list-page .large-post-card .featured-card-date .post-date {
    display: flex;
    align-items: center;
    gap: .375rem;
    font-size: .875rem;
    color: var(--color-muted)
}

.posts-list-page .large-post-card .featured-card-date .post-date .date-icon {
    width: 14px;
    height: 14px;
    color: var(--color-muted)
}

.posts-list-page .large-post-card .featured-card-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.4
}

.posts-list-page .large-post-card .featured-card-link {
    color: var(--color-foreground);
    text-decoration: none
}

.posts-list-page .large-post-card .featured-card-link .title-content {
    display: inline;
    color: inherit
}

.posts-list-page .large-post-card .featured-card-description {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1rem * 1.6 * 2)
}

.posts-list-page .large-post-card .featured-card-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.posts-list-page .large-post-card .featured-right-section {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.posts-list-page .large-post-card .featured-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 0;
    margin: 0
}

.posts-list-page .large-post-card .featured-image-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg,var(--color-muted) 0%,var(--color-border) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    margin: 0
}

.posts-list-page .large-post-card .featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
    padding: 0;
    display: block
}

.posts-list-page .large-post-card .placeholder-text {
    color: var(--color-muted);
    font-size: .875rem;
    margin: 0;
    padding: 0
}

.posts-list-page .meta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap
}

.posts-list-page .post-date {
    font-size: .875rem;
    color: var(--color-muted)
}

.posts-list-page .read-more-btn {
    font-size: .875rem
}

.posts-list-page .btn-content {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground)
}

.posts-list-page .posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 1.5rem
}

.posts-list-page .small-card {
    min-height: 120px;
    transition: all .3s ease
}

.posts-list-page .small-card:hover {
    border-color: var(--color-primary)
}

.posts-list-page .small-card:hover .status-recommend i {
    transform: scaleX(-1)
}

.posts-list-page .small-card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%
}

.posts-list-page .small-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4
}

.posts-list-page .small-card-link {
    color: var(--color-foreground);
    text-decoration: none
}

.posts-list-page .small-card-link .title-content {
    display: inline;
    color: inherit
}

.posts-list-page .small-card-meta {
    display: flex;
    align-items: center;
    gap: .5rem
}

.posts-list-page .small-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem
}

.posts-list-page .read-link {
    font-size: .875rem;
    color: var(--color-primary);
    text-decoration: none
}

.posts-list-page .hidden-posts {
    display: none
}

.posts-list-page .loading-indicator {
    text-align: center;
    margin-top: 3rem;
    display: none
}

.posts-list-page .loading-content {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--color-muted);
    font-size: .875rem
}

.posts-list-page .loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--color-border);
    border-top: 2px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite
}

.posts-list-page .load-more-trigger {
    height: 1px;
    margin-top: 2rem
}

.posts-list-page .no-posts-message {
    color: var(--color-muted);
    margin: 0
}

@media(max-width: 768px) {
    .posts-list-page .large-post-card .featured-card-content {
        flex-direction:column;
        gap: 1rem
    }

    .posts-list-page .large-post-card .featured-card-left {
        order: 2
    }

    .posts-list-page .large-post-card .featured-right-section {
        flex: none;
        width: 100%;
        order: 1
    }

    .posts-list-page .large-post-card .featured-image,.posts-list-page .large-post-card .featured-image-placeholder {
        width: 100%;
        height: 120px
    }

    .posts-list-page .posts-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width: 480px) {
    .posts-list-page .section-title {
        font-size:1.125rem
    }

    .posts-list-page .featured-card-title {
        font-size: 1.125rem
    }

    .posts-list-page .small-card-title {
        font-size: .875rem
    }
}

@keyframes spin {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

.post-item.fade-in {
    animation: fadeIn .5s ease-in-out
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.post-article {
    position: relative
}

.post-article .card {
    border-radius: 0!important
}

.post-divider {
    margin: .5rem 0 0;
    grid-column-start: 2
}

.post-header {
    padding: 1.5rem 1.5rem 1rem;
    margin-top: 0
}

@media(min-width: 640px) {
    .post-header {
        padding-left:2rem;
        padding-right: 2rem
    }
}

.post-header-container {
    max-width: 64rem;
    margin: 0 auto
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    font-size: .875rem;
    color: var(--color-muted);
    margin-bottom: 1rem
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: .375rem
}

.post-meta-item i {
    font-size: 1rem;
    color: var(--color-muted)
}

.post-meta .status-badge {
    margin-left: .25rem
}

.post-meta .status-badge i {
    font-size: 1rem
}

.page-view-item .page-view-count {
    font-weight: 500;
    color: var(--color-foreground);
    opacity: .5;
    transition: opacity .3s ease
}

.page-view-item .page-view-count.loaded {
    opacity: 1
}

.page-view-item .page-view-label {
    color: var(--color-muted)
}

.post-title-cover {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center
}

.cover-split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start
}

@media(min-width: 768px) {
    .cover-split-layout {
        display:flex;
        align-items: center;
        gap: 2rem
    }

    .cover-split-layout .post-title-section {
        flex: 3
    }

    .cover-split-layout .post-featured-image {
        flex: 2
    }
}

.post-title-section {
    width: 100%
}

.cover-split-layout .post-title-section {
    margin-bottom: 0
}

.no-cover-layout .post-title-section {
    margin-bottom: 1rem
}

.post-title {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.3
}

.post-title .title-content {
    background: linear-gradient(to right,var(--color-foreground),var(--color-muted));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline;
    vertical-align: baseline
}

.post-title .status-recommend {
    vertical-align: baseline;
    position: relative;
    top: .2em;
    transform: translateY(-50%)
}

.post-description {
    font-size: 1rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin-top: 1rem
}

.post-tags {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    padding-top: .5rem
}

.post-tags.centered {
    justify-content: center
}

.post-featured-image {
    width: 100%;
    aspect-ratio: 1200/630;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background-color: var(--color-background);
    border-radius: 0!important
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0!important
}

.no-cover-layout {
    text-align: center;
    max-width: 48rem
}

.no-cover-layout .post-description {
    font-size: .875rem;
    margin-bottom: 1rem
}

.no-cover-layout .post-title {
    margin-bottom: 1rem
}

.post-main {
    padding: 2rem 1.5rem 1rem;
    max-width: 56rem;
    margin: 0 auto
}

@media(min-width: 640px) {
    .post-main {
        padding-left:2rem;
        padding-right: 2rem
    }
}

.post-content {
    max-width: 48rem;
    margin: 0 auto
}

.prose {
    max-width: none;
    line-height: 1.7
}

.post-navigation-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border)
}

.post-navigation-modern:has(.nav-card:only-child) {
    grid-template-columns: 1fr
}

.post-navigation-modern:has(.nav-card:only-child) .nav-card {
    max-width: 50%
}

.post-navigation-modern:has(.nav-card:only-child) .nav-card.nav-next {
    margin-left: auto
}

.nav-card {
    position: relative;
    display: block;
    text-decoration: none;
    background: 0 0;
    border: 1px solid var(--color-border);
    border-radius: 0;
    overflow: hidden;
    transition: border-color .3s ease
}

.nav-card:hover {
    border-color: var(--color-primary);
    text-decoration: none
}

.nav-card.nav-next .nav-direction {
    justify-content: flex-end
}

.nav-card.nav-next .nav-title {
    text-align: right
}

.nav-card.nav-next .nav-meta {
    text-align: right
}

.nav-card-inner {
    position: relative;
    z-index: 2;
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.nav-card-bg {
    display: none
}

.nav-direction {
    display: flex;
    align-items: center;
    gap: .5rem
}

.nav-direction .nav-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--color-muted);
    font-weight: 500
}

.nav-direction .nav-arrow {
    width: 16px;
    height: 16px;
    color: var(--color-muted)
}

.nav-title {
    font-size: .875rem;
    font-weight: 500;
    color: var(--color-foreground);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.nav-meta {
    margin-top: auto
}

.nav-meta time {
    font-size: .75rem;
    color: var(--color-muted);
    font-family: var(--font-mono)
}

.section-divider {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    z-index: 1;
    margin: 1.5rem 0
}

.section-divider .divider-pattern {
    height: 6px;
    width: 100%;
    background: repeating-linear-gradient(-45deg,var(--color-border),var(--color-border) 1px,transparent 1px,transparent 6px);
    opacity: .6
}

.dark .section-divider {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border)
}

.dark .section-divider .divider-pattern {
    background: repeating-linear-gradient(-45deg,rgba(255,255,255,.1),rgba(255,255,255,.1) 1px,transparent 1px,transparent 6px);
    opacity: .8
}

section.post-main {
    padding-top: 0
}

.comments-container {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0
}

#gitalk-container .gt-container .gt-header {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
    margin-bottom: 1rem
}

#gitalk-container .gt-container .gt-btn {
    background: var(--color-primary);
    color: var(--color-primary-foreground);
    border: none;
    border-radius: 0
}

#gitalk-container .gt-container .gt-btn:hover {
    background: var(--color-foreground);
    color: var(--color-background)
}

#gitalk-container .gt-container .gt-ico {
    fill: var(--color-muted)
}

#gitalk-container .gt-container .gt-comment-content {
    background: 0 0;
    border: 1px solid var(--color-border)
}

#gitalk-container .gt-container .gt-comment-content:hover {
    border-color: var(--color-primary)
}

#gitalk-container .gt-container .gt-header-textarea {
    background-color: var(--color-card)!important;
    color: var(--color-foreground)!important;
    border: 1px solid var(--color-border)!important;
    border-radius: 0!important
}

#gitalk-container .gt-container .gt-header-textarea:focus {
    border-color: var(--color-primary)!important;
    outline: none!important
}

#gitalk-container .gt-container .gt-header-textarea::placeholder {
    color: var(--color-muted)!important
}

#gitalk-container .gt-container .gt-comment {
    border-bottom: 1px solid var(--color-border)
}

#gitalk-container .gt-container .gt-comment .gt-comment-content {
    background-color: var(--color-card);
    color: var(--color-foreground)
}

#gitalk-container .gt-container .gt-comment .gt-comment-username {
    color: var(--color-primary)
}

#gitalk-container .gt-container .gt-comment .gt-comment-text {
    color: var(--color-foreground)
}

#gitalk-container .gt-container .gt-comment .gt-comment-date {
    color: var(--color-muted)
}

#gitalk-container .gt-container .gt-user .gt-user-name {
    color: var(--color-foreground)
}

#gitalk-container .gt-container a {
    color: var(--color-primary)
}

#gitalk-container .gt-container a:hover {
    color: var(--color-foreground)
}

.dark .form-input,.dark .form-textarea {
    background: var(--color-card)!important;
    color: var(--color-foreground)!important;
    border-color: var(--color-border)!important
}

.dark #gitalk-container .gt-container {
    background-color: transparent!important
}

.dark #gitalk-container .gt-container .gt-header-textarea,.dark #gitalk-container .gt-container textarea,.dark #gitalk-container .gt-container input[type=text],.dark #gitalk-container .gt-container input[type=email] {
    background-color: var(--color-card)!important;
    color: var(--color-foreground)!important;
    border: 1px solid var(--color-border)!important
}

.dark #gitalk-container .gt-container .gt-header-textarea::placeholder,.dark #gitalk-container .gt-container textarea::placeholder,.dark #gitalk-container .gt-container input[type=text]::placeholder,.dark #gitalk-container .gt-container input[type=email]::placeholder {
    color: var(--color-muted)!important
}

.dark #gitalk-container .gt-container .gt-comment-content,.dark #gitalk-container .gt-container .gt-comment-body {
    background-color: var(--color-card)!important;
    color: var(--color-foreground)!important
}

.dark #gitalk-container .gt-container .gt-meta {
    color: var(--color-muted)!important
}

@media(max-width: 768px) {
    .post-header {
        padding:1.5rem 1rem 2rem
    }

    .post-main {
        padding: 2rem 1rem
    }

    .post-navigation-modern {
        grid-template-columns: 1fr;
        gap: 1.5rem
    }

    .post-navigation-modern .nav-card {
        max-width: 100%!important;
        margin-left: 0!important
    }

    .post-navigation-modern .nav-card.nav-next .nav-direction {
        justify-content: flex-start
    }

    .post-navigation-modern .nav-card.nav-next .nav-title,.post-navigation-modern .nav-card.nav-next .nav-meta {
        text-align: left
    }
}

@media(max-width: 768px) {
    .itboy-divider {
        margin:2rem 0 1.5rem;
        padding: 0 1rem
    }

    .itboy-divider .divider-content {
        padding: 0 1rem
    }

    .itboy-divider .divider-text {
        font-size: .75rem;
        padding: 0 .75rem
    }
}

@media(prefers-color-scheme: dark) {
    .itboy-divider .divider-line::before {
        background:linear-gradient(to right,transparent 0%,rgba(255,255,255,.1) 50%,transparent 100%)
    }
}

@media(max-width: 768px) {
    .comments-container {
        padding:0
    }

    #gitalk-container .gt-container .gt-header-textarea {
        font-size: .875rem
    }
}

.back-to-top-mobile {
    position: fixed;
    bottom: 3.5rem;
    right: 1.5rem;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background-color: rgba(var(--color-primary-rgb,39,39,39),.04);
    color: rgba(var(--color-primary-rgb,39,39,39),.7);
    border: none;
    cursor: pointer;
    transition: all .2s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem)
}

.back-to-top-mobile:hover {
    background-color: rgba(var(--color-primary-rgb,39,39,39),.1);
    color: var(--color-primary)
}

.back-to-top-mobile i {
    font-size: 1rem;
    transition: transform .2s ease
}

.back-to-top-mobile:hover i {
    transform: translateY(-.125rem)
}

@media(min-width: 1280px) {
    .back-to-top-mobile {
        display:none
    }
}

.desktop-nav-buttons {
    position: fixed;
    bottom: 6rem;
    right: calc(50% - 24rem);
    transform: translateX(100%);
    padding: 1rem;
    z-index: 50
}

@media(max-width: 1279px) {
    .desktop-nav-buttons {
        display:none
    }
}

.nav-buttons-group {
    display: flex;
    align-items: center;
    gap: .5rem
}

.back-button {
    display: flex;
    align-items: center;
    gap: .5rem;
    height: 2.25rem;
    padding: 0 .75rem;
    background-color: rgba(var(--color-primary-rgb,39,39,39),.04);
    color: rgba(var(--color-primary-rgb,39,39,39),.7);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    transition: all .2s ease
}

.back-button:hover {
    background-color: rgba(var(--color-primary-rgb,39,39,39),.1);
    color: var(--color-primary);
    text-decoration: none
}

.back-button i {
    font-size: 1rem;
    transition: transform .2s ease
}

.back-button:hover i {
    transform: translateX(-.125rem)
}

.back-to-top-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background-color: rgba(var(--color-primary-rgb,39,39,39),.04);
    color: rgba(var(--color-primary-rgb,39,39,39),.7);
    border: none;
    cursor: pointer;
    transition: all .3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem)
}

.back-to-top-desktop:hover {
    background-color: rgba(var(--color-primary-rgb,39,39,39),.1);
    color: var(--color-primary)
}

.back-to-top-desktop i {
    font-size: 1rem;
    transition: transform .2s ease
}

.back-to-top-desktop:hover i {
    transform: translateY(-.125rem)
}

.dark .back-to-top-mobile,.dark .back-button,.dark .back-to-top-desktop {
    background-color: rgba(255,255,255,.1);
    color: rgba(255,255,255,.8)
}

.dark .back-to-top-mobile:hover,.dark .back-button:hover,.dark .back-to-top-desktop:hover {
    background-color: rgba(255,255,255,.15);
    color: #fff
}

.toc-desktop {
    display: none;
    position: fixed;
    top: 0;
    right: calc(50% - 24rem);
    transform: translateX(100%);
    width: clamp(12rem,18vw,18rem);
    z-index: 20;
    transition: top .3s ease
}

@media(min-width: 1280px) {
    .toc-desktop {
        display:block
    }
}

.toc-desktop .toc-nav {
    padding: 1rem
}

.toc-desktop .toc-title {
    font-size: .875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--color-muted);
    display: flex;
    align-items: center;
    gap: .5rem;
    padding-left: .5rem
}

.toc-desktop .toc-title i {
    width: 1rem;
    height: 1rem;
    opacity: .85
}

.toc-desktop .toc-container {
    position: relative;
    height: calc(100vh - 24rem);
    overflow: hidden
}

.toc-desktop .toc-content {
    position: absolute;
    width: 100%;
    transition: transform .3s ease-out;
    will-change: transform
}

.toc-desktop .toc-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    space-y: .5rem
}

.toc-desktop .toc-content ul li {
    margin-bottom: .5rem
}

.toc-desktop .toc-content ul li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: .875rem;
    min-height: 1.75rem;
    width: 100%;
    overflow: hidden;
    position: relative;
    color: var(--color-muted);
    transition: all .2s cubic-bezier(.4,0,.2,1);
    border-radius: .25rem
}

.toc-desktop .toc-content ul li a:hover {
    background: linear-gradient(to right,rgba(39,39,39,.1),transparent);
    color: var(--color-primary)
}

.toc-desktop .toc-content ul li a[data-active] {
    background: linear-gradient(to right,rgba(39,39,39,.1),transparent);
    color: var(--color-primary)
}

.dark .toc-desktop .toc-content ul li a:hover {
    background: linear-gradient(to right,rgba(255,255,255,.1),transparent)
}

.dark .toc-desktop .toc-content ul li a[data-active] {
    background: linear-gradient(to right,rgba(255,255,255,.1),transparent)
}

.toc-desktop .toc-content ul li a .toc-number {
    font-family: "Cascadia Code","Fira Code",monospace;
    display: flex;
    align-items: center;
    padding: 0 .5rem;
    font-size: .75rem;
    color: rgba(39,39,39,.5);
    min-width: 2rem;
    transition: color .2s cubic-bezier(.4,0,.2,1)
}

.dark .toc-desktop .toc-content ul li a .toc-number {
    color: rgba(255,255,255,.5)
}

.toc-desktop .toc-content ul li a .toc-text {
    line-height: 1.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: .5rem;
    transition: color .2s cubic-bezier(.4,0,.2,1)
}

.toc-desktop .toc-content ul li a:hover .toc-number,.toc-desktop .toc-content ul li a[data-active] .toc-number {
    color: var(--color-primary)
}

.toc-desktop .toc-content ul li a:hover .toc-text,.toc-desktop .toc-content ul li a[data-active] .toc-text {
    color: var(--color-primary)
}

.toc-desktop .toc-content ul li.toc-h1 a {
    margin-left: 0;
    font-weight: 500;
    color: var(--color-foreground)
}

.toc-desktop .toc-content ul li.toc-h2 a {
    margin-left: 1rem
}

.toc-desktop .toc-content ul li.toc-h3 a {
    margin-left: 2rem
}

.toc-desktop .toc-content ul li.toc-h4 a {
    margin-left: 3rem
}

.toc-desktop .toc-content ul li.toc-h5 a {
    margin-left: 4rem
}

.toc-desktop .toc-content ul li.toc-h6 a {
    margin-left: 5rem
}

.toc-mobile {
    display: block;
    position: sticky;
    top: 0;
    z-index: 30
}

@media(min-width: 1280px) {
    .toc-mobile {
        display:none
    }
}

.toc-mobile .toc-mobile-wrapper {
    position: relative
}

.toc-mobile .toc-toggle {
    display: flex;
    width: 100%;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    position: relative;
    background: rgba(250,250,250,.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(227,227,227,.6);
    padding: .75rem 1.5rem;
    border: none;
    user-select: none
}

.dark .toc-mobile .toc-toggle {
    background: rgba(10,10,10,.95);
    border-bottom: 1px solid rgba(39,39,39,.6)
}

@media(min-width: 640px) {
    .toc-mobile .toc-toggle {
        padding:.75rem 2rem;
        background: 0 0
    }
}

.toc-mobile .toc-toggle .toc-toggle-content {
    display: flex;
    gap: 1rem;
    align-items: center;
    min-width: 0;
    flex: 1
}

.toc-mobile .toc-toggle .toc-toggle-content .progress-ring-container {
    flex-shrink: 0
}

.toc-mobile .toc-toggle .toc-toggle-content .current-section {
    font-size: .875rem;
    font-weight: 500;
    color: var(--color-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.toc-mobile .toc-toggle .toc-toggle-arrow {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding-left: .5rem
}

.toc-mobile .toc-toggle .toc-toggle-arrow i {
    width: 1rem;
    height: 1rem;
    color: rgba(39,39,39,.7);
    transition: transform .2s cubic-bezier(.4,0,.2,1)
}

.dark .toc-mobile .toc-toggle .toc-toggle-arrow i {
    color: rgba(255,255,255,.7)
}

.toc-mobile .toc-content-wrapper {
    background: rgba(250,250,250,.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(227,227,227,.3);
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease-in-out
}

.dark .toc-mobile .toc-content-wrapper {
    background: rgba(10,10,10,.98);
    border-bottom: 1px solid rgba(39,39,39,.3)
}

@media(min-width: 768px) {
    .toc-mobile .toc-content-wrapper {
        background:0 0
    }
}

.toc-mobile .toc-content-wrapper.open {
    max-height: 31vh
}

.toc-mobile .toc-content-wrapper .toc-fade-overlay {
    position: relative
}

.toc-mobile .toc-content-wrapper .toc-fade-overlay .fade-top,.toc-mobile .toc-content-wrapper .toc-fade-overlay .fade-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 2rem;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity .2s ease
}

.toc-mobile .toc-content-wrapper .toc-fade-overlay .fade-top {
    top: 0;
    background: linear-gradient(to bottom,rgba(250,250,250,.98),transparent)
}

.dark .toc-mobile .toc-content-wrapper .toc-fade-overlay .fade-top {
    background: linear-gradient(to bottom,rgba(10,10,10,.98),transparent)
}

.toc-mobile .toc-content-wrapper .toc-fade-overlay .fade-bottom {
    bottom: 0;
    background: linear-gradient(to top,rgba(250,250,250,.98),transparent)
}

.dark .toc-mobile .toc-content-wrapper .toc-fade-overlay .fade-bottom {
    background: linear-gradient(to top,rgba(10,10,10,.98),transparent)
}

.toc-mobile .toc-content-wrapper .toc-fade-overlay.show-fade-top .fade-top {
    opacity: 1
}

.toc-mobile .toc-content-wrapper .toc-fade-overlay.show-fade-bottom .fade-bottom {
    opacity: 1
}

.toc-mobile .toc-content-wrapper .toc-scroll-area {
    max-height: 30vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none
}

.toc-mobile .toc-content-wrapper .toc-scroll-area::-webkit-scrollbar {
    display: none
}

.toc-mobile .toc-content-wrapper .toc-content-mobile {
    padding: .5rem 1.5rem
}

@media(min-width: 640px) {
    .toc-mobile .toc-content-wrapper .toc-content-mobile {
        padding:.5rem 2rem
    }
}

.toc-mobile .toc-content-wrapper .toc-content-mobile ul {
    list-style: none;
    padding: 0;
    margin: 0;
    space-y: .5rem
}

.toc-mobile .toc-content-wrapper .toc-content-mobile ul li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    min-width: 0;
    margin-bottom: .5rem
}

.toc-mobile .toc-content-wrapper .toc-content-mobile ul li .mobile-toc-number {
    color: rgba(39,39,39,.4);
    font-family: "Cascadia Code","Fira Code",monospace;
    font-size: .75rem;
    margin-top: .25rem;
    min-width: 1.5rem;
    transition: color .2s cubic-bezier(.4,0,.2,1);
    flex-shrink: 0
}

.dark .toc-mobile .toc-content-wrapper .toc-content-mobile ul li .mobile-toc-number {
    color: rgba(255,255,255,.4)
}

.toc-mobile .toc-content-wrapper .toc-content-mobile ul li .mobile-toc-number.active {
    color: var(--color-primary);
    font-weight: 600
}

.toc-mobile .toc-content-wrapper .toc-content-mobile ul li a {
    font-size: .875rem;
    color: var(--color-muted);
    text-decoration: none;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .2s cubic-bezier(.4,0,.2,1)
}

.toc-mobile .toc-content-wrapper .toc-content-mobile ul li a:hover {
    color: var(--color-primary);
    text-decoration: underline
}

.toc-mobile .toc-content-wrapper .toc-content-mobile ul li a.active {
    color: var(--color-primary);
    font-weight: 600
}

.toc-mobile .toc-content-wrapper .toc-content-mobile ul li.toc-h1 {
    color: var(--color-foreground);
    font-weight: 500;
    margin-left: 0
}

.toc-mobile .toc-content-wrapper .toc-content-mobile ul li.toc-h2 {
    margin-left: 1rem
}

.toc-mobile .toc-content-wrapper .toc-content-mobile ul li.toc-h3 {
    margin-left: 2rem
}

.toc-mobile .toc-content-wrapper .toc-content-mobile ul li.toc-h4 {
    margin-left: 3rem
}

.toc-mobile .toc-content-wrapper .toc-content-mobile ul li.toc-h5 {
    margin-left: 4rem
}

.toc-mobile .toc-content-wrapper .toc-content-mobile ul li.toc-h6 {
    margin-left: 5rem
}

.progress-ring {
    display: inline-block
}

.progress-ring .progress-ring-svg {
    transform: rotate(-90deg)
}

.progress-ring .progress-ring-bg {
    color: rgba(227,227,227,.8)
}

.dark .progress-ring .progress-ring-bg {
    color: rgba(39,39,39,.8)
}

.progress-ring .progress-ring-progress {
    color: var(--color-primary);
    transition: stroke-dashoffset .15s ease
}

.back-to-top-mobile,.back-to-top-desktop {
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);
    transition: all .3s ease-in-out
}

.back-to-top-mobile.show,.back-to-top-desktop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.back-to-top-mobile.show {
    transform: translateY(0);
    pointer-events: auto
}

.back-to-top-mobile:not(.show) {
    transform: translateY(120px);
    pointer-events: none
}

.pwa-update-prompt {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    margin: 0 auto;
    background: var(--color-primary);
    color: var(--color-primary-foreground);
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    z-index: 1001;
    animation: slideDown .3s cubic-bezier(.4,0,.2,1)
}

@media(min-width: 768px) {
    .pwa-update-prompt {
        left:auto;
        right: 20px;
        max-width: 350px
    }
}

.pwa-update-content {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1rem
}

.pwa-update-content span {
    flex: 1;
    font-size: .9rem;
    font-weight: 500
}

.pwa-update-btn {
    padding: .5rem 1rem;
    background: var(--color-primary-foreground);
    color: var(--color-primary);
    border: none;
    border-radius: 0;
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity .2s ease
}

.pwa-update-btn:hover {
    opacity: .9
}

.pwa-update-dismiss {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 0 0;
    border: none;
    color: var(--color-primary-foreground);
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
    opacity: .8;
    transition: opacity .2s ease
}

.pwa-update-dismiss:hover {
    opacity: 1
}

@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

.pwa-installed {
}

.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #f39c12;
    color: #fff;
    text-align: center;
    padding: .5rem;
    font-size: .8rem;
    z-index: 1002;
    transform: translateY(-100%);
    transition: transform .3s ease
}

.offline-indicator.show {
    transform: translateY(0)
}

@media(max-width: 768px) {
    .pwa-update-prompt {
        left:10px;
        right: 10px;
        bottom: 10px
    }

    .pwa-update-content {
        padding: .75rem;
        gap: .75rem
    }

    .pwa-update-btn {
        padding: .4rem .8rem;
        font-size: .75rem
    }
}

.dark .pwa-update-prompt {
    box-shadow: 0 4px 20px rgba(0,0,0,.3)
}

.dark .offline-indicator {
    background: #e67e22
}

@media(display-mode:standalone) {
    body {
    }
}

.logo-section .logo-link {
    display: inline-block
}

.logo-section .logo-link:hover {
    text-decoration: none
}

.logo-section .logo-svg {
    display: block
}

.logo-section .logo-svg .logo-path-mask {
    transition: opacity .6s ease-out,stroke-dashoffset 1.5s ease-out;
    opacity: 1;
    stroke: currentColor;
    stroke-width: 28;
    stroke-miterlimit: 10;
    fill: none
}

.logo-scrolled .logo-path-mask {
    opacity: 0
}

.logo-scrolled .logo-link {
    opacity: .3;
    pointer-events: none
}

.logo-loading .logo-path-mask {
    stroke-dasharray: 1e3;
    stroke-dashoffset: 1e3
}

@keyframes logo-pulse {
    0%,100% {
        opacity: 1
    }

    50% {
        opacity: .6
    }
}

.logo-pulse .logo-path-mask {
    animation: logo-pulse .8s ease-in-out
}

@media(max-width: 768px) {
    .logo-section .logo-svg {
        width:26px;
        height: 26px
    }
}

@media(min-width: 1024px) {
    .logo-section .logo-svg {
        width:28px;
        height: 28px
    }
}

.dark .logo-section .logo-path-mask {
    stroke: var(--color-foreground)
}

@media(prefers-reduced-motion:reduce) {
    .logo-section .logo-link,.logo-section .logo-svg,.logo-section .logo-path-mask {
        transition: none!important;
        animation: none!important
    }
}

@media(prefers-contrast:high) {
    .logo-section .logo-path-mask {
        stroke-width: 32
    }
}

@media print {
    .logo-section .logo-path-mask {
        opacity: 1!important;
        stroke-dasharray: none!important;
        stroke-dashoffset: 0!important
    }
}

.about-page {
    position: relative;
    width: 100%
}

.about-page .card {
    border-radius: 0!important
}

.about-intro {
    position: relative;
    z-index: 1;
    padding: 1rem;
    max-width: 56rem;
    margin: 0 auto
}

.about-description {
    color: var(--color-muted);
    margin-bottom: 1.5rem;
    line-height: 1.625;
    font-style: italic
}

.about-image-container {
    margin-bottom: .5rem;
    width: 100%
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 0;
    border: 1px solid var(--color-border)
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%)contrast(1.1)brightness(.9);
    transition: filter .7s ease-in-out,opacity .3s ease
}

.about-image:hover {
    filter: grayscale(0%)contrast(1)brightness(1)
}

.dark .about-image {
    filter: grayscale(100%)contrast(1.2)brightness(.8)
}

.dark .about-image:hover {
    filter: grayscale(0%)contrast(1.1)brightness(.95)
}

.about-image-caption {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 10;
    padding: .375rem .75rem;
    font-size: .875rem;
    color: #fff;
    background-color: rgba(0,0,0,.7);
    backdrop-filter: blur(8px);
    border-radius: 0;
    opacity: 0;
    transition: opacity .3s ease
}

@media(max-width: 768px) {
    .about-image-caption {
        bottom:.75rem;
        right: .75rem;
        padding: .375rem .75rem;
        font-size: .875rem
    }
}

@media(max-width: 480px) {
    .about-image-caption {
        bottom:.5rem;
        right: .5rem;
        padding: .25rem .5rem;
        font-size: .8rem
    }
}

.about-image-wrapper:hover .about-image-caption {
    opacity: 1
}

.about-image-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-card);
    display: flex;
    align-items: center;
    justify-content: center
}

.about-image-loader .loader-text {
    color: var(--color-muted)
}

.about-default-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,#3b82f6,#8b5cf6,#ec4899);
    display: flex;
    align-items: center;
    justify-content: center
}

.about-default-bg .about-default-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 300;
    opacity: .8
}

@media(min-width: 768px) {
    .about-default-bg .about-default-text {
        font-size:1.875rem
    }
}

.about-content-section {
    width: 100%;
    padding: 0 1rem 2.5rem
}

.about-content {
    position: relative;
    z-index: 20;
    max-width: 48rem;
    margin: 0 auto
}

.about-prose {
    max-width: none;
    line-height: 1.7;
    color: var(--color-foreground)
}

.about-prose h1,.about-prose h2,.about-prose h3,.about-prose h4,.about-prose h5,.about-prose h6 {
    color: var(--color-foreground);
    margin-top: 2rem;
    margin-bottom: 1rem
}

.about-prose h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem
}

.about-prose h2 {
    font-size: 1.5rem
}

.about-prose h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: .75rem
}

.about-prose p {
    margin-bottom: 1rem;
    color: var(--color-foreground)
}

.about-prose ul,.about-prose ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem
}

.about-prose ul li,.about-prose ol li {
    margin-bottom: .5rem;
    color: var(--color-foreground)
}

.about-prose strong {
    font-weight: 600;
    color: var(--color-foreground)
}

.about-prose em {
    font-style: italic;
    color: var(--color-muted)
}

.about-prose a {
    color: var(--color-primary);
    text-decoration: none
}

.about-prose a:hover {
    color: var(--color-primary);
    opacity: .8;
    text-decoration: underline
}

.about-prose hr {
    border: none;
    height: 1px;
    background-color: var(--color-border);
    margin: 2rem 0
}

.about-prose code {
    background-color: var(--color-card);
    padding: .125rem .25rem;
    border-radius: .125rem;
    font-size: .875rem;
    font-family: var(--font-mono);
    color: var(--color-foreground)
}

.about-prose pre {
    background-color: var(--color-card);
    padding: 1rem;
    border-radius: .25rem;
    overflow-x: auto;
    margin: 1rem 0
}

.about-prose pre code {
    background: 0 0;
    padding: 0
}

.about-prose span[style*="border-bottom: 1px double"] {
    border-bottom: 1px double #a47864!important;
    padding-bottom: 1px
}

@media(max-width: 768px) {
    .about-prose h1 {
        font-size:1.75rem
    }

    .about-prose h2 {
        font-size: 1.25rem
    }

    .about-prose h3 {
        font-size: 1.125rem
    }
}

.stack-container {
    max-width: 100%;
    overflow-x: hidden
}

.hardware-section {
    width: 100%;
    overflow: hidden
}

.stack-description {
    font-size: 1rem;
    line-height: 1.6
}

.last-updated {
    font-size: .9rem;
    color: var(--color-muted);
    opacity: .8
}

.hardware-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 1.5rem;
    max-width: 100%;
    margin-bottom: 1rem
}

.hardware-card {
    position: relative;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 0;
    overflow: hidden;
    padding: 2rem;
    height: 300px;
    transition: all .3s ease
}

.hardware-card:hover {
    border-color: var(--color-primary)
}

.wishlist-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: 0 0;
    color: #ff6b6b;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: .75rem;
    font-weight: 600;
    z-index: 30;
    box-shadow: none;
    text-shadow: 0 0 8px rgba(255,107,107,.4);
    text-transform: uppercase;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: .2rem;
    line-height: 1
}

.wishlist-icon {
    width: 8px;
    height: 8px;
    transition: transform .8s ease-in-out;
    flex-shrink: 0
}

.hardware-card:hover .wishlist-icon {
    transform: scale(1.05)rotate(180deg)
}

.hardware-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle,transparent 0%,transparent 50%,var(--color-card) 60%,var(--color-card));
    transition: transform 300ms ease-in-out;
    z-index: 1;
    user-select: none
}

.hardware-card:hover .hardware-overlay {
    transform: scale(1.2)
}

.hardware-pattern {
    position: absolute;
    inset: 0;
    margin: auto;
    z-index: 2;
    user-select: none;
    pointer-events: none;
    width: 90%;
    height: 90%;
    mask: radial-gradient(ellipse at center,black 30%,transparent 80%);
    -webkit-mask: radial-gradient(ellipse at center,black 30%,transparent 80%)
}

.hardware-card .pattern-lines {
    stroke: var(--color-border);
    opacity: .08;
    transition: all 300ms ease-in-out
}

.hardware-card .pattern-joins {
    fill: var(--color-border);
    opacity: .08;
    transition: all 300ms ease-in-out
}

.hardware-card:hover .pattern-lines {
    stroke: var(--color-primary);
    opacity: .3
}

.hardware-card:hover .pattern-joins {
    fill: var(--color-primary);
    opacity: .3
}

.hardware-content {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 30;
    text-decoration: none;
    color: inherit
}

.hardware-content:hover {
    text-decoration: none;
    color: inherit
}

.hardware-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: .25rem
}

.hardware-title {
    font-size: .95rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
    color: var(--color-foreground);
    transition: color .2s ease;
    flex: 1;
    text-align: left
}

.hardware-card:hover .hardware-title {
    color: var(--color-primary)
}

.hardware-type {
    font-size: .8rem;
    color: var(--color-muted)!important;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 500;
    margin: 0;
    text-align: left
}

.hardware-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 15;
    width: auto;
    max-width: 200px;
    max-height: 180px;
    height: auto;
    user-select: none;
    transition: transform .3s ease;
    opacity: .9;
    object-fit: contain
}

.hardware-card:hover .hardware-image {
    transform: translate(-50%,-50%)scale(1.05);
    opacity: 1
}

.category-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin: .8rem 0 1rem;
    padding: .6rem 0;
    position: relative;
    text-align: center;
    display: flex;
    align-items: center
}

.category-title::before,.category-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: repeating-linear-gradient(to right,var(--color-border) 0,var(--color-border) 8px,transparent 8px,transparent 16px)
}

.category-title::before {
    margin-right: .8rem
}

.category-title::after {
    margin-left: .8rem
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
    gap: 1rem
}

.software-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 0;
    overflow: hidden;
    transition: all .3s ease
}

.software-card:hover {
    border-color: var(--color-primary)
}

.software-link {
    display: flex;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    align-items: center;
    gap: .75rem
}

.software-link:hover {
    text-decoration: none
}

.software-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    background: 0 0
}

.software-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.software-info {
    flex: 1;
    min-width: 0
}

.software-title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin: 0 0 .35rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: .4rem
}

.recommended-badge {
    background: 0 0;
    color: #ff6b6b;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: .7rem;
    font-weight: 600;
    box-shadow: none;
    text-shadow: 0 0 8px rgba(255,107,107,.4);
    text-transform: uppercase;
    letter-spacing: .5px
}

.software-description {
    font-size: .8rem;
    color: var(--color-muted);
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden
}

@media(max-width: 768px) {
    .hardware-grid {
        grid-template-columns:1fr;
        gap: 1.5rem
    }

    .hardware-card {
        height: 280px;
        padding: 1.5rem
    }

    .hardware-content {
        bottom: 1rem;
        left: 1rem;
        right: 1rem
    }

    .hardware-image {
        max-width: 160px;
        max-height: 140px
    }

    .software-grid {
        grid-template-columns: 1fr;
        gap: .8rem
    }

    .software-link {
        padding: .8rem
    }

    .category-title {
        font-size: 1rem
    }
}

@media(max-width: 480px) {
    .hardware-grid {
        grid-template-columns:1fr;
        gap: 1rem
    }

    .hardware-card {
        height: 240px;
        padding: 1rem
    }

    .hardware-content {
        bottom: .75rem;
        left: .75rem;
        right: .75rem
    }

    .hardware-image {
        max-width: 120px;
        max-height: 100px
    }

    .hardware-title {
        font-size: 1rem
    }

    .hardware-type {
        font-size: .8rem
    }
}

@media(prefers-color-scheme: dark) {
    .wishlist-badge,.recommended-badge {
        color:#ff4757;
        text-shadow: 0 0 8px rgba(255,71,87,.5)
    }

    .hardware-card {
        border-color: rgba(255,255,255,.1)
    }

    .hardware-card:hover {
        border-color: var(--color-primary)
    }
}

.hardware-card,.software-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp .6s ease forwards
}

.hardware-card:nth-child(1) {
    animation-delay: .1s
}

.hardware-card:nth-child(2) {
    animation-delay: .2s
}

.hardware-card:nth-child(3) {
    animation-delay: .3s
}

.hardware-card:nth-child(4) {
    animation-delay: .4s
}

.hardware-card:nth-child(5) {
    animation-delay: .5s
}

.hardware-card:nth-child(6) {
    animation-delay: .6s
}

.hardware-card:nth-child(7) {
    animation-delay: .7s
}

.hardware-card:nth-child(8) {
    animation-delay: .8s
}

.hardware-card:nth-child(9) {
    animation-delay: .9s
}

.hardware-card:nth-child(10) {
    animation-delay: 1s
}

.hardware-card:nth-child(11) {
    animation-delay: 1.1s
}

.hardware-card:nth-child(12) {
    animation-delay: 1.2s
}

.hardware-card:nth-child(13) {
    animation-delay: 1.3s
}

.hardware-card:nth-child(14) {
    animation-delay: 1.4s
}

.hardware-card:nth-child(15) {
    animation-delay: 1.5s
}

.hardware-card:nth-child(n+16) {
    animation-delay: 1.6s
}

.software-card:nth-child(1) {
    animation-delay: .1s
}

.software-card:nth-child(2) {
    animation-delay: .2s
}

.software-card:nth-child(3) {
    animation-delay: .3s
}

.software-card:nth-child(4) {
    animation-delay: .4s
}

.software-card:nth-child(5) {
    animation-delay: .5s
}

.software-card:nth-child(6) {
    animation-delay: .6s
}

.software-card:nth-child(7) {
    animation-delay: .7s
}

.software-card:nth-child(8) {
    animation-delay: .8s
}

.software-card:nth-child(9) {
    animation-delay: .9s
}

.software-card:nth-child(10) {
    animation-delay: 1s
}

.software-card:nth-child(11) {
    animation-delay: 1.1s
}

.software-card:nth-child(12) {
    animation-delay: 1.2s
}

.software-card:nth-child(13) {
    animation-delay: 1.3s
}

.software-card:nth-child(14) {
    animation-delay: 1.4s
}

.software-card:nth-child(15) {
    animation-delay: 1.5s
}

.software-card:nth-child(16) {
    animation-delay: 1.6s
}

.software-card:nth-child(17) {
    animation-delay: 1.7s
}

.software-card:nth-child(18) {
    animation-delay: 1.8s
}

.software-card:nth-child(19) {
    animation-delay: 1.9s
}

.software-card:nth-child(20) {
    animation-delay: 2s
}

.software-card:nth-child(n+21) {
    animation-delay: 2.1s
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.hardware-card {
    cursor: pointer
}

.hardware-content {
    transition: all .2s ease
}

@media(prefers-reduced-motion:reduce) {
    .hardware-card,.software-card {
        animation: none;
        opacity: 1;
        transform: none
    }

    .hardware-image img {
        transition: none
    }

    .hardware-card:hover .hardware-image img {
        transform: none
    }
}

@media print {
    .hardware-card,.software-card {
        break-inside: avoid
    }

    .wishlist-badge,.recommended-badge {
        color: #000!important;
        text-shadow: none!important
    }
}

.roll-container {
    max-width: 100%
}

.friend-link .external-link-icon,.no-external-icon .external-link-icon,[data-no-redirect] .external-link-icon {
    display: none!important
}

.roll-description {
    font-size: 1rem;
    line-height: 1.6
}

.friends-section {
    margin-top: 2rem
}

.friends-group {
    margin-bottom: 3rem
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
    gap: .8rem
}

.friend-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 0;
    overflow: hidden;
    transition: border-color .3s ease
}

.friend-card:hover {
    border-color: var(--color-primary)
}

.friend-link {
    display: flex;
    flex-direction: row-reverse;
    padding: .8rem;
    text-decoration: none;
    color: inherit;
    height: 100%;
    align-items: center;
    gap: .6rem
}

.friend-link:hover {
    text-decoration: none
}

.friend-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--color-background);
    border: 2px solid var(--color-border)
}

.friend-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease
}

.friend-card:hover .friend-avatar img {
    transform: scale(1.1)
}

.friend-info {
    flex: 1;
    min-width: 0
}

.friend-name {
    font-size: .95rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin: 0 0 .2rem;
    line-height: 1.2
}

.friend-intro {
    font-size: .8rem;
    color: var(--color-muted);
    line-height: 1.25;
    margin: 0;
    height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden
}

.roll-content {
    background: 0 0;
    border: none;
    border-radius: 0;
    padding: 2rem 0
}

.roll-content h1,.roll-content h2,.roll-content h3,.roll-content h4,.roll-content h5,.roll-content h6 {
    color: var(--color-foreground);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3
}

.roll-content h1:first-child,.roll-content h2:first-child,.roll-content h3:first-child,.roll-content h4:first-child,.roll-content h5:first-child,.roll-content h6:first-child {
    margin-top: 0
}

.roll-content h1 {
    font-size: 1.5rem
}

.roll-content h2 {
    font-size: 1.375rem
}

.roll-content h3 {
    font-size: 1.125rem
}

.roll-content h4 {
    font-size: 1rem
}

.roll-content h5 {
    font-size: .9rem
}

.roll-content h6 {
    font-size: .8rem
}

.roll-content p {
    color: var(--color-foreground);
    line-height: 1.6;
    margin-bottom: 1rem
}

.roll-content a {
    color: var(--color-primary);
    text-decoration: none
}

.roll-content a:hover {
    text-decoration: underline
}

.roll-content ul,.roll-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
    color: var(--color-foreground)
}

.roll-content ul li,.roll-content ol li {
    margin-bottom: .5rem;
    line-height: 1.6
}

.roll-content code {
    background: var(--color-background);
    color: var(--color-primary);
    padding: .2rem .4rem;
    border-radius: 3px;
    font-size: .9em;
    font-family: var(--font-mono)
}

.roll-content pre {
    background: var(--color-background);
    color: var(--color-foreground);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1rem 0
}

.roll-content pre code {
    background: 0 0;
    padding: 0;
    color: inherit
}

.roll-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0
}

.roll-content table th,.roll-content table td {
    padding: .75rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-foreground)
}

.roll-content table th {
    font-weight: 600;
    background: var(--color-background)
}

.roll-content table tr:hover {
    background: var(--color-background)
}

.roll-content hr {
    border: none;
    height: 1px;
    background: var(--color-border);
    margin: 2rem 0
}

.roll-content strong,.roll-content b {
    font-weight: 600;
    color: var(--color-foreground)
}

.roll-content em,.roll-content i {
    font-style: italic;
    color: var(--color-foreground)
}

.roll-content del,.roll-content s {
    text-decoration: line-through;
    color: var(--color-muted)
}

.roll-search {
    max-width: 400px;
    margin: 0 auto
}

.roll-search .search-input {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 0;
    background: var(--color-card);
    color: var(--color-foreground);
    font-size: .9rem;
    transition: border-color .3s ease
}

.roll-search .search-input:focus {
    outline: none;
    border-color: var(--color-primary)
}

.roll-search .search-input::placeholder {
    color: var(--color-muted)
}

.friend-status {
    position: absolute;
    top: .5rem;
    right: .5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745
}

.friend-status.offline {
    background: #dc3545
}

.friend-status.unknown {
    background: #ffc107
}

.friends-group-title {
    position: relative;
    font-size: 1.25rem!important
}

.friends-group-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px;
    height: 2px;
    background: var(--color-primary)
}

@media(max-width: 768px) {
    .friends-group-title {
        font-size:1.1rem!important
    }
}

.friend-card {
    position: relative
}

.friend-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,transparent 30%,rgba(255,255,255,.1) 50%,transparent 70%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none
}

.friend-card:hover::before {
    opacity: 1
}

.roll-stats {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 0
}

.roll-stats .stat-item {
    display: inline-block;
    margin: 0 1rem
}

.roll-stats .stat-item .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary)
}

.roll-stats .stat-item .stat-label {
    font-size: .8rem;
    color: var(--color-muted);
    text-transform: uppercase
}

.roll-apply-form {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 0;
    padding: 2rem;
    margin-top: 2rem
}

.roll-apply-form .form-group {
    margin-bottom: 1.5rem
}

.roll-apply-form .form-group label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 500;
    color: var(--color-foreground)
}

.roll-apply-form .form-group input,.roll-apply-form .form-group textarea {
    width: 100%;
    padding: .75rem;
    border: 1px solid var(--color-border);
    border-radius: 0;
    background: var(--color-background);
    color: var(--color-foreground);
    font-size: .9rem
}

.roll-apply-form .form-group input:focus,.roll-apply-form .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary)
}

.roll-apply-form .form-group textarea {
    resize: vertical;
    min-height: 100px
}

.roll-apply-form .form-submit {
    background: var(--color-primary);
    color: var(--color-primary-foreground);
    border: none;
    padding: .75rem 2rem;
    border-radius: 0;
    cursor: pointer;
    font-size: .9rem;
    transition: opacity .3s ease
}

.roll-apply-form .form-submit:hover {
    opacity: .9
}

.roll-apply-form .form-submit:disabled {
    opacity: .6;
    cursor: not-allowed
}

@media(max-width: 768px) {
    .friends-grid {
        grid-template-columns:1fr;
        gap: .6rem
    }

    .friend-link {
        padding: .6rem;
        gap: .4rem
    }

    .friend-avatar {
        width: 40px;
        height: 40px
    }

    .friend-name {
        font-size: .9rem
    }

    .friend-intro {
        font-size: .75rem;
        height: 2.5em
    }

    .roll-stats .stat-item {
        display: block;
        margin: .5rem 0
    }

    .roll-apply-form {
        padding: 1.5rem
    }
}

@media(prefers-color-scheme: dark) {
}

.friend-card,.org-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp .6s ease forwards
}

.friend-card:nth-child(1) {
    animation-delay: .1s
}

.friend-card:nth-child(2) {
    animation-delay: .2s
}

.friend-card:nth-child(3) {
    animation-delay: .3s
}

.friend-card:nth-child(4) {
    animation-delay: .4s
}

.friend-card:nth-child(5) {
    animation-delay: .5s
}

.friend-card:nth-child(6) {
    animation-delay: .6s
}

.friend-card:nth-child(7) {
    animation-delay: .7s
}

.friend-card:nth-child(8) {
    animation-delay: .8s
}

.friend-card:nth-child(9) {
    animation-delay: .9s
}

.friend-card:nth-child(10) {
    animation-delay: 1s
}

.friend-card:nth-child(11) {
    animation-delay: 1.1s
}

.friend-card:nth-child(12) {
    animation-delay: 1.2s
}

.friend-card:nth-child(13) {
    animation-delay: 1.3s
}

.friend-card:nth-child(14) {
    animation-delay: 1.4s
}

.friend-card:nth-child(15) {
    animation-delay: 1.5s
}

.friend-card:nth-child(16) {
    animation-delay: 1.6s
}

.friend-card:nth-child(17) {
    animation-delay: 1.7s
}

.friend-card:nth-child(18) {
    animation-delay: 1.8s
}

.friend-card:nth-child(19) {
    animation-delay: 1.9s
}

.friend-card:nth-child(20) {
    animation-delay: 2s
}

.friend-card:nth-child(21) {
    animation-delay: 2.1s
}

.friend-card:nth-child(22) {
    animation-delay: 2.2s
}

.friend-card:nth-child(23) {
    animation-delay: 2.3s
}

.friend-card:nth-child(24) {
    animation-delay: 2.4s
}

.friend-card:nth-child(25) {
    animation-delay: 2.5s
}

.friend-card:nth-child(26) {
    animation-delay: 2.6s
}

.friend-card:nth-child(27) {
    animation-delay: 2.7s
}

.friend-card:nth-child(28) {
    animation-delay: 2.8s
}

.friend-card:nth-child(29) {
    animation-delay: 2.9s
}

.friend-card:nth-child(30) {
    animation-delay: 3s
}

.friend-card:nth-child(31) {
    animation-delay: 3.1s
}

.friend-card:nth-child(32) {
    animation-delay: 3.2s
}

.friend-card:nth-child(33) {
    animation-delay: 3.3s
}

.friend-card:nth-child(34) {
    animation-delay: 3.4s
}

.friend-card:nth-child(35) {
    animation-delay: 3.5s
}

.friend-card:nth-child(36) {
    animation-delay: 3.6s
}

.friend-card:nth-child(37) {
    animation-delay: 3.7s
}

.friend-card:nth-child(38) {
    animation-delay: 3.8s
}

.friend-card:nth-child(39) {
    animation-delay: 3.9s
}

.friend-card:nth-child(40) {
    animation-delay: 4s
}

.friend-card:nth-child(n+41) {
    animation-delay: 4.1s
}

.org-card:nth-child(1) {
    animation-delay: 4.2s
}

.org-card:nth-child(2) {
    animation-delay: 4.3s
}

.org-card:nth-child(3) {
    animation-delay: 4.4s
}

.org-card:nth-child(4) {
    animation-delay: 4.5s
}

.org-card:nth-child(5) {
    animation-delay: 4.6s
}

.org-card:nth-child(6) {
    animation-delay: 4.7s
}

.org-card:nth-child(7) {
    animation-delay: 4.8s
}

.org-card:nth-child(8) {
    animation-delay: 4.9s
}

.org-card:nth-child(9) {
    animation-delay: 5s
}

.org-card:nth-child(10) {
    animation-delay: 5.1s
}

.org-card:nth-child(n+11) {
    animation-delay: 5.2s
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes spin {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

.animate-spin {
    animation: spin 1s linear infinite
}

@media(prefers-reduced-motion:reduce) {
    .friend-card,.org-card {
        animation: none;
        opacity: 1;
        transform: none
    }

    .friend-avatar img {
        transition: none
    }

    .friend-card:hover .friend-avatar img {
        transform: none
    }
}

.friend-avatar-img {
    transition: opacity .3s ease,filter .3s ease;
    position: relative
}

.friend-avatar-img:not([src]),.friend-avatar-img[src=""] {
    background: var(--color-background-secondary)
}

.friend-avatar-img:not([src])::before,.friend-avatar-img[src=""]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-background-secondary);
    border-radius: 50%
}

.friend-avatar-img[data-is-placeholder=true] {
    filter: brightness(.8);
    opacity: .8;
    transition: opacity .3s ease,filter .3s ease
}

.friend-avatar-img[data-is-placeholder=true]:hover {
    filter: brightness(.9);
    opacity: .9
}

.friend-avatar-img:not([data-is-placeholder=true]) {
    object-fit: cover;
    border-radius: 50%;
    opacity: 1
}

.friend-avatar-img[src^="data:image/webp;base64,"] {
    object-fit: cover;
    border-radius: 50%
}

.rss-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    max-width: 100%;
    margin: 1rem 0
}

.rss-list a {
    text-decoration: none!important;
    border-bottom: none!important
}

.rss-list a:hover,.rss-list a:focus,.rss-list a:active,.rss-list a:visited {
    text-decoration: none!important;
    border-bottom: none!important
}

.rss-placeholder,.rss-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-muted);
    font-style: italic
}

.rss-refresh-container {
    text-align: center;
    margin-top: 1rem
}

.rss-copyright {
    text-align: right;
    margin-top: 2rem;
    padding: .5rem 0;
    font-size: .7rem;
    color: var(--color-muted)
}

.rss-copyright p {
    margin: 0
}

.rss-copyright a {
    color: var(--color-primary);
    text-decoration: none
}

.rss-copyright a:hover {
    text-decoration: underline
}

.refresh-btn {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
    border: none;
    padding: .5rem 1rem;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 auto;
    font-weight: 500;
    font-size: .875rem;
    transition: all .3s cubic-bezier(.4,0,.2,1)
}

.refresh-btn:hover {
    background-color: var(--color-primary);
    opacity: .9
}

.refresh-btn:disabled {
    opacity: .6;
    cursor: not-allowed
}

.rss-item {
    position: relative;
    border: 1px solid var(--color-border);
    border-radius: 0;
    padding: 1rem;
    background: var(--color-card);
    color: var(--color-card-foreground);
    transition: all .3s cubic-bezier(.4,0,.2,1)
}

.rss-item:hover {
    border-color: var(--color-primary)
}

.rss-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,transparent 30%,rgba(255,255,255,.1) 50%,transparent 70%);
    opacity: 0;
    transition: opacity .3s cubic-bezier(.4,0,.2,1);
    pointer-events: none
}

.rss-item:hover::before {
    opacity: 1
}

.rss-title {
    font-weight: 400;
    font-size: .95rem;
    color: var(--color-foreground);
    margin-bottom: .125rem;
    line-height: 1.3
}

.rss-title a {
    text-decoration: none;
    color: inherit;
    border-bottom: none
}

.rss-title a:hover {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: none
}

.rss-title a:focus {
    outline: none;
    text-decoration: none;
    border-bottom: none
}

.rss-title a:active {
    text-decoration: none;
    border-bottom: none
}

.rss-title a:visited {
    text-decoration: none;
    border-bottom: none
}

.rss-summary {
    font-size: .875rem;
    color: var(--color-muted);
    line-height: 1.4;
    margin-bottom: .5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.rss-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: var(--color-muted)
}

.rss-favicon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    cursor: pointer;
    opacity: .6;
    transition: opacity .3s ease;
    position: relative;
    position: relative
}

.rss-favicon:hover {
    opacity: 1
}

@media(max-width: 768px) {
    .rss-item {
        padding:.75rem
    }

    .rss-title {
        font-size: .9rem;
        margin-bottom: .1rem
    }

    .rss-summary {
        font-size: .8rem;
        line-height: 1.3;
        margin-bottom: .375rem;
        -webkit-line-clamp: 2
    }

    .rss-meta {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: .375rem;
        font-size: .75rem
    }

    .rss-favicon {
        width: 14px;
        height: 14px
    }

    .rss-favicon[data-tooltip]:hover::before {
        font-size: .7rem;
        padding: 4px 6px
    }

    .rss-favicon[data-tooltip]:hover::after {
        border-width: 3px
    }
}

.rss-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp .6s ease forwards
}

.rss-item:nth-child(1) {
    animation-delay: .1s
}

.rss-item:nth-child(2) {
    animation-delay: .2s
}

.rss-item:nth-child(3) {
    animation-delay: .3s
}

.rss-item:nth-child(4) {
    animation-delay: .4s
}

.rss-item:nth-child(5) {
    animation-delay: .5s
}

.rss-item:nth-child(6) {
    animation-delay: .6s
}

.rss-item:nth-child(7) {
    animation-delay: .7s
}

.rss-item:nth-child(8) {
    animation-delay: .8s
}

.rss-item:nth-child(9) {
    animation-delay: .9s
}

.rss-item:nth-child(10) {
    animation-delay: 1s
}

.rss-item:nth-child(n+11) {
    animation-delay: 1.1s
}

.rss-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 0;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    z-index: 1000;
    max-width: 300px;
    font-size: .875rem;
    color: var(--color-foreground);
    animation: slideInRight .3s cubic-bezier(.4,0,.2,1)
}

.rss-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,transparent 30%,rgba(255,255,255,.1) 50%,transparent 70%);
    opacity: .5;
    pointer-events: none
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0
    }

    to {
        transform: translateX(0);
        opacity: 1
    }
}

@media print {
    .roll-search,.roll-apply-form,.rss-refresh-container {
        display: none
    }

    .friend-card {
        break-inside: avoid
    }

    .friend-card::before {
        display: none
    }

    .rss-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc
    }

    .rss-notification {
        display: none
    }
}

.redirect-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0
}

.redirect-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 0;
    padding: 3rem 2rem;
    text-align: center;
    position: relative
}

.redirect-icon {
    margin: 0 auto 2rem;
    width: 48px;
    height: 48px;
    color: var(--color-muted)
}

.redirect-icon svg {
    width: 100%;
    height: 100%
}

.redirect-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin: 0 0 1.5rem;
    line-height: 1.3
}

.redirect-description {
    font-size: 1rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin: 0 0 2rem
}

.redirect-url {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 0;
    padding: 1rem;
    margin: 0 0 2rem;
    text-align: left;
    position: relative;
    cursor: pointer;
    transition: all .2s ease
}

.redirect-url:hover {
    border-color: var(--color-primary);
    background: var(--color-card)
}

.redirect-url.copied {
    border-color: var(--color-primary);
    background: rgba(var(--color-primary-rgb,39,39,39),.05)
}

.redirect-url .redirect-url-label {
    display: block;
    font-size: .875rem;
    color: var(--color-muted);
    margin-bottom: .5rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 500
}

.redirect-url .redirect-url-value {
    display: block;
    font-family: var(--font-mono);
    font-size: .875rem;
    color: var(--color-foreground);
    word-break: break-all;
    line-height: 1.4;
    padding-right: 2rem
}

.redirect-url .copy-indicator {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: var(--color-muted);
    transition: all .2s ease
}

.redirect-url .copy-indicator svg {
    width: 16px;
    height: 16px
}

.redirect-url:hover .copy-indicator {
    color: var(--color-primary)
}

.redirect-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap
}

.redirect-btn {
    text-decoration: none
}

.redirect-btn .btn-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    font-size: .875rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 0;
    transition: all .2s ease
}

.redirect-btn .btn-content svg {
    width: 16px;
    height: 16px
}

.redirect-btn.redirect-btn-primary .btn-content {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
    border: 1px solid var(--color-primary)
}

.redirect-btn.redirect-btn-secondary .btn-content {
    background-color: var(--color-background);
    color: var(--color-foreground);
    border: 1px solid var(--color-border)
}

.redirect-btn:hover {
    text-decoration: none
}

.redirect-countdown {
    font-size: .875rem;
    color: var(--color-muted);
    padding: 1rem;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 0;
    margin: 0
}

.redirect-countdown #countdown {
    font-weight: 600;
    color: var(--color-primary);
    font-family: var(--font-mono)
}

@media(max-width: 768px) {
    .redirect-container {
        padding:1rem 0
    }

    .redirect-card {
        padding: 2rem 1.5rem
    }

    .redirect-title {
        font-size: 1.25rem
    }

    .redirect-actions {
        flex-direction: column;
        align-items: center
    }

    .redirect-actions .redirect-btn {
        width: 100%;
        max-width: 200px
    }
}

@media(max-width: 480px) {
    .redirect-card {
        padding:1.5rem 1rem
    }

    .redirect-url {
        padding: .75rem
    }

    .redirect-btn .btn-content {
        padding: .75rem 1rem;
        font-size: .8rem
    }
}

@media(prefers-color-scheme: dark) {
    .redirect-card {
        border-color:rgba(255,255,255,.1)
    }
}

.external-link {
    position: relative
}

.external-link::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: .25rem;
    background-image: url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><polyline points="15,3 21,3 21,9" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><line x1="10" y1="14" x2="21" y2="3" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: .6;
    vertical-align: text-top
}

.redirect-card .external-link-icon,.redirect-card .external-link::after {
    display: none!important
}

@media print {
    .redirect-countdown,.redirect-actions {
        display: none!important
    }

    .redirect-url-value {
        color: #000!important
    }
}

.album-container.p-4 {
    max-width: 80rem;
    padding: 1rem;
    margin: 0 auto
}

@media(max-width: 1280px) {
    .album-container.p-4 {
        max-width:70rem
    }
}

@media(max-width: 1024px) {
    .album-container.p-4 {
        max-width:60rem
    }
}

@media(max-width: 768px) {
    .album-container.p-4 {
        max-width:56rem
    }
}

.album-description {
    font-size: 1rem;
    line-height: 1.6
}

.album-description .text-muted {
    color: var(--color-muted)
}

.album-container .line-divider {
    margin: 2rem 0
}

.mb-6 {
    margin-bottom: 1.5rem
}

.text-muted {
    color: var(--color-muted)
}

.last-updated {
    display: inline-block;
    margin-top: 15px;
    font-size: .9em;
    font-style: oblique;
    color: var(--color-primary);
    background: var(--color-card);
    padding: 4px 10px;
    border-radius: 4px;
    text-align: left;
    position: relative;
    left: 0;
    border: 1px solid var(--color-border)
}

.post-description p {
    margin: .5em 0;
    position: relative;
    z-index: 2;
    color: var(--color-foreground)
}

.post-description a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all .3s ease
}

.post-description a:hover {
    text-decoration: underline
}

.post-description strong,.post-description b {
    font-weight: 600
}

.post-description em,.post-description i {
    font-style: italic
}

.album-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    transition: filter .3s ease
}

.album-container.blur {
    filter: blur(8px)
}

.page-header {
    margin-bottom: 2rem
}

.album-categories {
    width: 100%;
    padding: 0
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 20px;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto
}

.category-cards:has(.category-card:hover) .category-card:not(:hover) {
    filter: blur(5px);
    transition: filter .3s ease
}

.category-card {
    position: relative;
    cursor: pointer;
    border-radius: 0;
    overflow: hidden;
    transition: all .3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp .6s ease forwards;
    border: 1px solid var(--color-border)
}

.category-card:hover {
    filter: blur(0)!important;
    border-color: var(--color-primary)
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.category-cards .category-card:nth-child(1) {
    animation-delay: .1s
}

.category-cards .category-card:nth-child(2) {
    animation-delay: .2s
}

.category-cards .category-card:nth-child(3) {
    animation-delay: .3s
}

.category-cards .category-card:nth-child(4) {
    animation-delay: .4s
}

.category-cards .category-card:nth-child(5) {
    animation-delay: .5s
}

.card-image {
    position: relative;
    width: 100%;
    height: 120px
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter .3s ease;
    filter: blur(0)
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.2);
    transition: background .3s ease;
    z-index: 1
}

.category-card:hover .card-image img {
    filter: blur(3px)
}

.category-card:hover .card-image::after {
    background: rgba(0,0,0,.4)
}

.card-album-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: 0 0;
    color: #fff;
    padding: 10px;
    font-size: 1.8rem;
    font-family: -apple-system,BlinkMacSystemFont,segoe ui,Roboto,sans-serif;
    font-style: italic;
    font-weight: 700;
    text-align: center;
    filter: blur(2px);
    transition: all .3s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,.7);
    width: 100%;
    z-index: 2
}

.category-card:hover .card-album-title {
    filter: blur(0);
    color: rgba(255,255,255,.8)
}

.overlay-gallery {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.9);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    opacity: 0;
    transition: opacity .3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px)
}

.overlay-gallery.show {
    opacity: 1
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    margin-bottom: 20px
}

.close-btn {
    background: 0 0;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer
}

.year-archive {
    padding: 10px 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,.1)
}

.year-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap
}

.year-item {
    padding: 5px 15px;
    border-radius: 15px;
    background: rgba(255,255,255,.1);
    color: #fff;
    cursor: pointer;
    transition: all .3s ease
}

.year-item:hover {
    background: rgba(255,255,255,.2)
}

.year-item.active {
    background: rgba(255,255,255,.3)
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 4px;
    padding: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box
}

@media(max-width: 1600px) {
    .masonry-grid {
        grid-template-columns:repeat(4,1fr)
    }
}

@media(max-width: 1200px) {
    .masonry-grid {
        grid-template-columns:repeat(3,1fr)
    }
}

@media(max-width: 768px) {
    .masonry-grid {
        grid-template-columns:repeat(2,1fr)
    }
}

@media(max-width: 480px) {
    .masonry-grid {
        grid-template-columns:1fr
    }
}

.masonry-item {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .3s ease,transform .5s ease
}

.masonry-item.visible {
    opacity: 1;
    transform: translateY(0)
}

.masonry-item figure {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    background: var(--color-card)
}

.masonry-item figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease,opacity .3s ease;
    opacity: 0;
    filter: blur(10px);
    transform: scale(1.1)
}

.masonry-item figure img.loaded {
    opacity: 1;
    filter: blur(0);
    transform: scale(1)
}

.masonry-item figure:hover img {
    transform: scale(1.05)
}

.masonry-item figure:hover .photo-info {
    opacity: 1
}

.masonry-item .photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(to top,rgba(0,0,0,.8),transparent);
    color: #fff;
    opacity: 0;
    transition: opacity .3s ease
}

.masonry-item .photo-info h3 {
    margin: 0 0 3px;
    font-size: .9em;
    font-weight: 500
}

.masonry-item .photo-info .date {
    margin: 0;
    font-size: .8em;
    opacity: .8
}

.loading-placeholder {
    background: linear-gradient(90deg,var(--color-card) 25%,var(--color-border) 50%,var(--color-card) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    width: 100%;
    height: 200px;
    border-radius: 8px
}

@keyframes loading {
    0% {
        background-position: 200% 0
    }

    100% {
        background-position: -200% 0
    }
}

@media(max-width: 768px) {
    .category-cards {
        grid-template-columns:repeat(2,1fr);
        gap: 1rem;
        padding: 1rem 0
    }

    .card-album-title {
        font-size: 1.2rem;
        bottom: 15px
    }
}

@media(max-width: 480px) {
    .category-cards {
        grid-template-columns:1fr;
        padding: .8rem 0
    }
}

.dark .loading-placeholder {
    background: linear-gradient(90deg,#2a2a2a 25%,#333333 50%,#2a2a2a 75%)
}

.no-photos {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-muted)
}

.no-photos p {
    margin: .5rem 0;
    font-family: var(--font-mono);
    font-size: .875rem
}

.media-container.p-4 {
    max-width: 80rem;
    padding: 1rem;
    margin: 0 auto
}

@media(max-width: 1280px) {
    .media-container.p-4 {
        max-width:70rem
    }
}

@media(max-width: 1024px) {
    .media-container.p-4 {
        max-width:60rem
    }
}

@media(max-width: 768px) {
    .media-container.p-4 {
        max-width:56rem
    }
}

.media-description {
    font-size: 1rem;
    line-height: 1.6
}

.media-description .text-muted {
    color: var(--color-muted)
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.media-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: flex-start
}

.media-tabs .tab-button {
    position: relative;
    display: inline-block;
    background: 0 0;
    border: none;
    cursor: pointer;
    text-decoration: none
}

.media-tabs .tab-button .corner {
    position: absolute;
    inset: -2px;
    --s: 6px;
    border: 1px solid var(--color-primary);
    border-radius: 2px;
    mask: conic-gradient(#000 0 0)content-box,conic-gradient(at var(--s) var(--s),#0000 75%,#000 0)0 0/calc(100% - var(--s))calc(100% - var(--s));
    transition: .2s cubic-bezier(.4,0,.2,1)all;
    pointer-events: none;
    opacity: 0;
    transform: scale(.7)
}

.media-tabs .tab-button:hover .corner {
    transform: scale(1);
    opacity: 1
}

.media-tabs .tab-button .btn-content {
    position: relative;
    z-index: 10;
    display: block;
    padding: .25rem .5rem;
    font-size: .7rem;
    text-transform: uppercase;
    white-space: nowrap;
    background-color: var(--color-background);
    color: var(--color-foreground);
    border: 1px solid var(--color-border)
}

.media-tabs .tab-button.active .btn-content {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
    border-color: var(--color-primary)
}

#media_page {
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(auto-fill,minmax(200px,1fr))
}

@media(max-width: 768px) {
    #media_page {
        grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
        grid-gap: .5rem
    }
}

.movies_bankuai {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 3/4;
    border: 1px solid var(--color-border);
    transition: all .3s ease;
    opacity: 0;
    transform: translateY(30px);
    background: var(--color-card)
}

.movies_bankuai.animate {
    animation: slideUp .6s ease forwards
}

.movies_bankuai:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary)
}

.movies_bankuai:hover img {
    filter: blur(3px)
}

.movies_bankuai:hover .movies-nrong {
    opacity: 1;
    transform: scale(1.02)
}

.movies_bankuai a {
    display: block;
    width: 100%;
    height: 100%
}

.movies_bankuai img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: middle;
    transition: filter .3s ease
}

.music_bankuai {
    aspect-ratio: 1/1!important
}

.music_bankuai img {
    object-position: center
}

.music_bankuai .movies-nrong {
    padding: 30px 15px 15px
}

.movies-nrong {
    display: none
}

@media(min-width: 768px) {
    .movies-nrong {
        display:block;
        padding: 50px 15px 15px;
        color: #fff;
        font-size: .85rem;
        position: absolute;
        transition: all .3s ease;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,.7);
        opacity: 0
    }
}

.movies-nrong .movie-title {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1rem;
    margin: 6px 0;
    line-height: 1.3
}

.movies-nrong .movie-title a {
    color: #fff;
    text-decoration: none;
    transition: color .3s ease
}

.movies-nrong .movie-title a:hover {
    color: var(--color-primary-light,#ffd700)
}

.movies-nrong .movie-info {
    line-height: 1.5;
    color: #fff;
    text-align: justify;
    font-size: .8rem;
    opacity: .9
}

.movie-time {
    color: #c7c7c7;
    margin-top: 7px;
    font-size: .75rem;
    opacity: .8
}

.media_loadMore {
    width: 100%;
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center
}

.movies_loadMore {
    position: relative;
    display: inline-block;
    background: 0 0;
    border: none;
    cursor: pointer;
    text-decoration: none
}

.movies_loadMore .corner {
    position: absolute;
    inset: -2px;
    --s: 6px;
    border: 1px solid var(--color-primary);
    border-radius: 2px;
    mask: conic-gradient(#000 0 0)content-box,conic-gradient(at var(--s) var(--s),#0000 75%,#000 0)0 0/calc(100% - var(--s))calc(100% - var(--s));
    transition: .2s cubic-bezier(.4,0,.2,1)all;
    pointer-events: none;
    opacity: 0;
    transform: scale(.7)
}

.movies_loadMore:hover .corner {
    transform: scale(1);
    opacity: 1
}

.movies_loadMore .btn-content {
    position: relative;
    z-index: 10;
    display: block;
    padding: .25rem .5rem;
    font-size: .7rem;
    text-transform: uppercase;
    white-space: nowrap;
    background-color: var(--color-primary);
    color: var(--color-primary-foreground)
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: var(--color-muted);
    font-size: 1.1rem;
    grid-column: 1/-1;
    font-family: var(--font-mono)
}

.error {
    text-align: center;
    color: var(--color-danger,#dc3545);
    padding: 3rem;
    grid-column: 1/-1;
    font-family: var(--font-mono)
}

@media(max-width: 768px) {
    .media-tabs {
        gap:.5rem
    }

    .media-tabs .tab-button .btn-content {
        padding: .2rem .4rem;
        font-size: .65rem
    }

    .movies_loadMore .btn-content {
        padding: .2rem .4rem;
        font-size: .65rem
    }
}

@media(max-width: 480px) {
    #media_page {
        grid-template-columns:repeat(2,1fr)
    }

    .media-tabs {
        flex-wrap: wrap
    }

    .media-tabs .tab-button {
        flex: 1;
        min-width: 80px
    }
}

.dark .movies_bankuai {
    background: var(--color-card);
    border-color: var(--color-border)
}

.dark .media-tabs .tab-button .btn-content {
    background: var(--color-card);
    color: var(--color-foreground);
    border-color: var(--color-border)
}

.dark .media-tabs .tab-button.active .btn-content {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
    border-color: var(--color-primary)
}

/* ===== Movie Cards (suus.me original style) ===== */
.movie-card {
    background: 0 0;
    border: 1px solid var(--color-border);
    border-radius: 0;
    overflow: hidden;
    transition: border-color .3s ease;
    position: relative
}

.movie-card:hover {
    border-color: var(--color-primary)
}

.movie-card-link {
    display: block;
    text-decoration: none!important;
    color: inherit
}

.movie-card-link:hover {
    color: inherit;
    text-decoration: none!important
}

.movie-card-link:focus {
    text-decoration: none!important
}

.movie-card-link:active {
    text-decoration: none!important
}

.movie-card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    min-height: 120px
}

@media(max-width: 480px) {
    .movie-card-content {
        gap: .75rem;
        padding: .75rem
    }
}

.movie-poster {
    flex-shrink: 0;
    width: 80px;
    height: 120px;
    overflow: hidden
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

@media(max-width: 480px) {
    .movie-poster {
        display: none
    }

    .movie-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: var(--poster-url);
        background-size: cover;
        background-position: center;
        filter: blur(20px);
        opacity: .25;
        pointer-events: none;
        z-index: 0;
        transition: opacity .3s ease
    }

    .movie-card-content {
        position: relative;
        z-index: 1;
        background: 0 0
    }
}

.movie-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-width: 0
}

.movie-title {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    color: var(--color-foreground)
}

.movie-comment {
    font-size: .875rem;
    line-height: 1.5;
    color: var(--color-muted);
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.movie-watch-time {
    font-size: .75rem;
    color: var(--color-muted);
    margin-top: auto
}

.dark .movie-card {
    background: 0 0;
    border-color: var(--color-border)
}

.dark .movie-card:hover {
    border-color: var(--color-primary)
}

.dark .movie-title {
    color: var(--color-foreground)
}

.dark .dark .movie-comment {
    color: var(--color-muted)
}

.dark .movie-watch-time {
    color: var(--color-muted)
}

.movie-skeleton {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-card);
    animation: pulse 1.5s ease-in-out infinite alternate
}

.movie-skeleton-poster {
    width: 100px;
    height: 150px;
    background: var(--color-border);
    border-radius: 4px;
    flex-shrink: 0
}

.movie-skeleton-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .75rem
}

.movie-skeleton-title {
    height: 1.25rem;
    background: var(--color-border);
    border-radius: 0;
    width: 70%
}

.movie-skeleton-rating {
    height: 1rem;
    background: var(--color-border);
    border-radius: 0;
    width: 50%
}

.movie-skeleton-comment {
    height: .875rem;
    background: var(--color-border);
    border-radius: 0;
    width: 90%
}

.movie-skeleton-date {
    height: .75rem;
    background: var(--color-border);
    border-radius: 0;
    width: 40%;
    margin-top: auto
}

@keyframes pulse {
    0% { opacity: 1 }
    100% { opacity: .6 }
}

@media(max-width: 768px) {
    .movie-skeleton {
        padding: 1rem;
        gap: 1rem;
        min-height: 120px
    }

    .movie-card-content {
        min-height: 120px
    }

    .movie-info {
        min-height: 105px
    }
}

.bb-timeline {
    margin-bottom: 2rem
}

.bb-list-ul {
    list-style: none;
    padding: 0;
    margin: 0
}

.bb-list-li {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: 0 0;
    border: 1px solid var(--color-border);
    border-radius: 0;
    transition: border-color .3s ease
}

.bb-list-li:hover {
    border-color: var(--color-primary)
}

.memos-pl {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem
}

.memos_diaoyong_time {
    font-size: .85rem;
    color: var(--color-muted)
}

.datacont {
    line-height: 1.6;
    color: var(--color-foreground);
    margin-bottom: .75rem
}

.datacont p {
    margin: 0 0 .5rem
}

.datacont p:last-child {
    margin-bottom: 0
}

.datacont a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    transition: all .2s ease
}

.datacont a:hover {
    text-decoration-thickness: 2px;
    color: var(--color-foreground)
}

.datacont img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    margin: 0
}

.datacont code {
    background: var(--color-card);
    padding: .125rem .25rem;
    border-radius: 0;
    font-size: .9em;
    border: 1px solid var(--color-border)
}

.datacont pre {
    background: var(--color-card);
    padding: 1rem;
    border-radius: 0;
    overflow-x: auto;
    border: 1px solid var(--color-border)
}

.datacont pre code {
    background: 0 0;
    padding: 0;
    border: none
}

.datacont blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--color-muted)!important;
    font-family: 'DingTalk JinBu',serif!important
}

.datacont blockquote p {
    margin: 0;
    color: var(--color-muted)!important
}

.datacont h1,.datacont h2,.datacont h3,.datacont h4,.datacont h5,.datacont h6 {
    margin: 1rem 0 .5rem;
    font-weight: 600;
    color: var(--color-foreground)
}

.datacont h1:first-child,.datacont h2:first-child,.datacont h3:first-child,.datacont h4:first-child,.datacont h5:first-child,.datacont h6:first-child {
    margin-top: 0
}

.datacont h1 {
    font-size: 1.5rem
}

.datacont h2 {
    font-size: 1.3rem
}

.datacont h3 {
    font-size: 1.1rem
}

.datacont h4 {
    font-size: 1rem
}

.datacont h5 {
    font-size: .9rem
}

.datacont h6 {
    font-size: .85rem
}

.datacont hr {
    margin: 1rem 0;
    border: none;
    border-top: 1px solid var(--color-border)
}

.datacont table {
    width: 100%;
    border-collapse: collapse;
    margin: .75rem 0
}

.datacont table th,.datacont table td {
    padding: .5rem;
    border: 1px solid var(--color-border);
    text-align: left
}

.datacont table th {
    background: var(--color-card);
    font-weight: 600
}

.memos_diaoyong_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem
}

.memos-tag-wz {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem
}

.memos-tag-dg {
    display: inline-block;
    padding: .125rem .375rem;
    background: var(--color-background);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: 0;
    font-size: .75rem;
    cursor: pointer;
    transition: all .2s ease
}

.memos-tag-dg:hover {
    background: var(--color-primary);
    color: var(--color-primary-foreground);
    text-decoration: none
}

.resimg {
    display: grid;
    grid-row-gap: .125rem!important;
    grid-column-gap: .125rem!important;
    gap: .125rem!important;
    margin: 0
}

.resimg:not([class*=grid]) {
    grid-template-columns: 1fr;
    max-width: 25%;
    margin: 0;
    justify-self: start
}

@media(max-width: 768px) {
    .resimg:not([class*=grid]) {
        max-width:35%
    }
}

.resimg.grid-2 {
    grid-template-columns: repeat(3,1fr)
}

.resimg.grid-2 .gallery-thumbnail:first-child {
    grid-column: 1/3;
    grid-row: 1/3
}

.resimg.grid-2 .gallery-thumbnail:nth-child(2) {
    grid-column: 3;
    grid-row: 1
}

.resimg.grid-3 {
    grid-template-columns: repeat(3,1fr)
}

.resimg.grid-4,.resimg.grid-5,.resimg.grid-6,.resimg.grid-7,.resimg.grid-8,.resimg.grid-9,.resimg[class*=grid-]:not(.grid-2):not(.grid-3) {
    grid-template-columns: repeat(3,1fr);
    transition: all .3s ease
}

.resimg.grid-4:not(.expanded),.resimg.grid-5:not(.expanded),.resimg.grid-6:not(.expanded),.resimg.grid-7:not(.expanded),.resimg.grid-8:not(.expanded),.resimg.grid-9:not(.expanded),.resimg[class*=grid-]:not(.grid-2):not(.grid-3):not(.expanded) {
}

.resimg.grid-4:not(.expanded) .gallery-thumbnail:nth-child(n+4),.resimg.grid-5:not(.expanded) .gallery-thumbnail:nth-child(n+4),.resimg.grid-6:not(.expanded) .gallery-thumbnail:nth-child(n+4),.resimg.grid-7:not(.expanded) .gallery-thumbnail:nth-child(n+4),.resimg.grid-8:not(.expanded) .gallery-thumbnail:nth-child(n+4),.resimg.grid-9:not(.expanded) .gallery-thumbnail:nth-child(n+4),.resimg[class*=grid-]:not(.grid-2):not(.grid-3):not(.expanded) .gallery-thumbnail:nth-child(n+4) {
    display: none!important
}

.resimg.grid-4:not(.expanded) .gallery-thumbnail:nth-child(3),.resimg.grid-5:not(.expanded) .gallery-thumbnail:nth-child(3),.resimg.grid-6:not(.expanded) .gallery-thumbnail:nth-child(3),.resimg.grid-7:not(.expanded) .gallery-thumbnail:nth-child(3),.resimg.grid-8:not(.expanded) .gallery-thumbnail:nth-child(3),.resimg.grid-9:not(.expanded) .gallery-thumbnail:nth-child(3),.resimg[class*=grid-]:not(.grid-2):not(.grid-3):not(.expanded) .gallery-thumbnail:nth-child(3) {
    position: relative;
    cursor: pointer
}

.resimg.grid-4:not(.expanded) .gallery-thumbnail:nth-child(3)::before,.resimg.grid-5:not(.expanded) .gallery-thumbnail:nth-child(3)::before,.resimg.grid-6:not(.expanded) .gallery-thumbnail:nth-child(3)::before,.resimg.grid-7:not(.expanded) .gallery-thumbnail:nth-child(3)::before,.resimg.grid-8:not(.expanded) .gallery-thumbnail:nth-child(3)::before,.resimg.grid-9:not(.expanded) .gallery-thumbnail:nth-child(3)::before,.resimg[class*=grid-]:not(.grid-2):not(.grid-3):not(.expanded) .gallery-thumbnail:nth-child(3)::before {
    content: "+" attr(data-remaining);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    backdrop-filter: blur(2px);
    z-index: 2;
    transition: all .2s ease
}

.resimg.grid-4:not(.expanded) .gallery-thumbnail:nth-child(3):hover::before,.resimg.grid-5:not(.expanded) .gallery-thumbnail:nth-child(3):hover::before,.resimg.grid-6:not(.expanded) .gallery-thumbnail:nth-child(3):hover::before,.resimg.grid-7:not(.expanded) .gallery-thumbnail:nth-child(3):hover::before,.resimg.grid-8:not(.expanded) .gallery-thumbnail:nth-child(3):hover::before,.resimg.grid-9:not(.expanded) .gallery-thumbnail:nth-child(3):hover::before,.resimg[class*=grid-]:not(.grid-2):not(.grid-3):not(.expanded) .gallery-thumbnail:nth-child(3):hover::before {
    background: rgba(0,0,0,.8);
    font-size: 1.3rem
}

.resimg.grid-4.expanded .gallery-thumbnail,.resimg.grid-5.expanded .gallery-thumbnail,.resimg.grid-6.expanded .gallery-thumbnail,.resimg.grid-7.expanded .gallery-thumbnail,.resimg.grid-8.expanded .gallery-thumbnail,.resimg.grid-9.expanded .gallery-thumbnail,.resimg[class*=grid-]:not(.grid-2):not(.grid-3).expanded .gallery-thumbnail {
    display: block!important
}

.gallery-thumbnail {
    margin: 0;
    overflow: hidden
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    cursor: pointer;
    aspect-ratio: 1;
    display: block;
    transition: opacity .2s ease
}

.gallery-thumbnail img:hover {
    opacity: .9
}

.bb-load {
    text-align: left;
    margin: 2rem 0
}

.button-load {
    position: relative;
    display: inline-block;
    background: 0 0;
    border: none;
    cursor: pointer;
    text-decoration: none
}

.button-load .corner {
    position: absolute;
    inset: -4px;
    --s: 6px;
    border: 1px solid var(--color-primary);
    border-radius: 0;
    mask: conic-gradient(#000 0 0)content-box,conic-gradient(at var(--s) var(--s),#0000 75%,#000 0)0 0/calc(100% - var(--s))calc(100% - var(--s));
    transition: .2s cubic-bezier(.4,0,.2,1)all;
    pointer-events: none;
    opacity: 0;
    transform: scale(.7)
}

.button-load:hover .corner {
    transform: scale(1);
    opacity: 1
}

.button-load .btn-content {
    position: relative;
    z-index: 10;
    display: block;
    padding: .5rem 1rem;
    font-size: .75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
    border-radius: 0;
    background-color: var(--color-primary);
    color: var(--color-primary-foreground)
}

.memos-tag-sc-2 {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: .75rem;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 0;
    cursor: pointer
}

.memos-tag-sc-2:hover {
    border-color: var(--color-primary)
}

.memos-tag-sc-1 {
    font-size: .9rem;
    color: var(--color-muted)
}

.memos-tag-sc {
    display: flex;
    align-items: center;
    margin-left: .5rem;
    padding: .25rem .5rem;
    background: var(--color-primary);
    color: var(--color-primary-foreground);
    border-radius: 0;
    font-size: .85rem
}

.memos-tag-sc svg {
    width: 1rem;
    height: 1rem;
    margin-left: .25rem;
    opacity: .7
}

.memos-tag-sc:hover {
    text-decoration: line-through
}

.memos-edit {
    position: relative
}

.memos-menu {
    cursor: pointer;
    padding: .25rem;
    color: var(--color-muted)
}

.memos-menu:hover {
    color: var(--color-foreground)
}

.memos-menu-d {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    display: none;
    z-index: 10
}

.memos-menu-d .edit-btn,.memos-menu-d .delete-btn {
    padding: .5rem 1rem;
    cursor: pointer;
    font-size: .85rem;
    border-bottom: 1px solid var(--color-border)
}

.memos-menu-d .edit-btn:last-child,.memos-menu-d .delete-btn:last-child {
    border-bottom: none
}

.memos-menu-d .edit-btn:hover,.memos-menu-d .delete-btn:hover {
    background: var(--color-background)
}

.memos-menu-d .delete-btn:hover {
    background: #fee;
    color: #dc3545
}

.memos-edit:hover .memos-menu-d {
    display: block
}

@media(max-width: 768px) {
    .bb-list-li {
        padding:.75rem;
        margin-bottom: 1rem
    }

    .resimg {
        grid-row-gap: .0625rem!important;
        grid-column-gap: .0625rem!important;
        gap: .0625rem!important;
        margin: 0
    }

    .resimg:not([class*=grid]) {
        max-width: 40%;
        margin: 0;
        justify-self: start
    }

    .resimg.grid-2 {
        grid-template-columns: repeat(2,1fr)
    }

    .resimg.grid-2 .gallery-thumbnail:first-child {
        grid-column: 1;
        grid-row: 1
    }

    .resimg.grid-2 .gallery-thumbnail:nth-child(2) {
        grid-column: 2;
        grid-row: 1
    }

    .resimg.grid-3,.resimg.grid-4,.resimg.grid-5,.resimg.grid-6,.resimg.grid-7,.resimg.grid-8,.resimg.grid-9,.resimg[class*=grid-]:not(.grid-2) {
        grid-template-columns: repeat(3,1fr)
    }

    .resimg.grid-3:not(.expanded) .gallery-thumbnail:nth-child(n+4),.resimg.grid-4:not(.expanded) .gallery-thumbnail:nth-child(n+4),.resimg.grid-5:not(.expanded) .gallery-thumbnail:nth-child(n+4),.resimg.grid-6:not(.expanded) .gallery-thumbnail:nth-child(n+4),.resimg.grid-7:not(.expanded) .gallery-thumbnail:nth-child(n+4),.resimg.grid-8:not(.expanded) .gallery-thumbnail:nth-child(n+4),.resimg.grid-9:not(.expanded) .gallery-thumbnail:nth-child(n+4),.resimg[class*=grid-]:not(.grid-2):not(.expanded) .gallery-thumbnail:nth-child(n+4) {
        display: none!important
    }

    .resimg.grid-3.expanded .gallery-thumbnail,.resimg.grid-4.expanded .gallery-thumbnail,.resimg.grid-5.expanded .gallery-thumbnail,.resimg.grid-6.expanded .gallery-thumbnail,.resimg.grid-7.expanded .gallery-thumbnail,.resimg.grid-8.expanded .gallery-thumbnail,.resimg.grid-9.expanded .gallery-thumbnail,.resimg[class*=grid-]:not(.grid-2).expanded .gallery-thumbnail {
        display: block!important
    }
}

.dark .bb-list-li {
    background: 0 0;
    border-color: var(--color-border)
}

.dark .bb-list-li:hover {
    border-color: var(--color-primary)
}

.dark .memos-menu-d {
    background: var(--color-card);
    border-color: var(--color-border);
    box-shadow: 0 4px 12px rgba(0,0,0,.3)
}

.memos-editor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center
}

.memos-editor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px)
}

.memos-editor-modal {
    position: relative;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 0;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
    animation: modalSlideIn .3s ease-out
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px)scale(.95)
    }

    to {
        opacity: 1;
        transform: translateY(0)scale(1)
    }
}

.memos-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-background)
}

.memos-editor-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-foreground)
}

.memos-editor-close {
    background: 0 0;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-muted);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0
}

.memos-editor-close:hover {
    color: var(--color-foreground);
    background: var(--color-border)
}

.memos-editor-body {
    padding: 1.5rem
}

.memos-editor-form {
    margin-bottom: 1.5rem
}

.form-group {
    margin-bottom: 1rem
}

.form-group:last-child {
    margin-bottom: 0
}

.form-group label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 500;
    color: var(--color-foreground);
    font-size: .9rem
}

.form-group input {
    width: 100%;
    padding: .75rem;
    border: 1px solid var(--color-border);
    border-radius: 0;
    background: var(--color-background);
    color: var(--color-foreground);
    font-size: .9rem;
    transition: border-color .2s ease;
    box-sizing: border-box
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb,39,39,39),.1)
}

.form-group input::placeholder {
    color: var(--color-muted)
}

.token-help {
    margin-top: .5rem
}

.token-help small {
    color: var(--color-muted);
    font-size: .8rem;
    line-height: 1.4
}

.memos-editor-actions {
    display: flex;
    gap: .75rem;
    justify-content: flex-end
}

.btn-cancel,.btn-save {
    padding: .75rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 0;
    cursor: pointer;
    font-size: .9rem;
    transition: all .2s ease
}

.btn-cancel {
    background: var(--color-background);
    color: var(--color-foreground)
}

.btn-cancel:hover {
    background: var(--color-border)
}

.btn-save {
    background: var(--color-primary);
    color: var(--color-primary-foreground);
    border-color: var(--color-primary)
}

.btn-save:hover {
    opacity: .9
}

.memos-edit {
    opacity: 0;
    transition: opacity .2s ease
}

.bb-list-li:hover .memos-edit {
    opacity: 1
}

.memos-menu {
    cursor: pointer;
    padding: .25rem;
    color: var(--color-muted);
    display: flex;
    align-items: center;
    justify-content: center
}

.memos-menu svg {
    width: 16px;
    height: 16px;
    transition: color .2s ease
}

.memos-menu:hover {
    color: var(--color-foreground)
}

.memos-menu-d {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    display: none;
    z-index: 10;
    min-width: 120px
}

.memos-menu-d .edit-btn,.memos-menu-d .delete-btn {
    padding: .75rem 1rem;
    cursor: pointer;
    font-size: .85rem;
    border-bottom: 1px solid var(--color-border);
    transition: background-color .2s ease
}

.memos-menu-d .edit-btn:last-child,.memos-menu-d .delete-btn:last-child {
    border-bottom: none
}

.memos-menu-d .edit-btn:hover,.memos-menu-d .delete-btn:hover {
    background: var(--color-background)
}

.memos-menu-d .delete-btn:hover {
    background: #fee;
    color: #dc3545
}

.memos-edit:hover .memos-menu-d {
    display: block
}

@media(max-width: 768px) {
    .memos-editor-modal {
        width:95%;
        max-width: none;
        margin: 1rem
    }

    .memos-editor-body {
        padding: 1rem
    }

    .memos-editor-actions {
        flex-direction: column;
        gap: .5rem
    }

    .memos-editor-actions .btn-cancel,.memos-editor-actions .btn-save {
        width: 100%
    }
}

.dark .memos-editor-modal {
    background: var(--color-card);
    border-color: var(--color-border);
    box-shadow: 0 10px 30px rgba(0,0,0,.5)
}

.dark .memos-editor-header {
    background: var(--color-background);
    border-color: var(--color-border)
}

.dark .form-group input {
    background: var(--color-background);
    border-color: var(--color-border);
    color: var(--color-foreground)
}

.dark .memos-menu-d {
    background: var(--color-card);
    border-color: var(--color-border);
    box-shadow: 0 4px 12px rgba(0,0,0,.3)
}

.memos-publish-box {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 0;
    margin-bottom: 2rem;
    transition: border-color .3s ease
}

.memos-publish-box:hover {
    border-color: var(--color-primary)
}

.publish-header {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-background)
}

.publish-body {
    padding: 1rem
}

.publish-textarea {
    width: 100%;
    min-height: 80px;
    padding: .75rem;
    border: 1px solid var(--color-border);
    border-radius: 0;
    background: var(--color-background);
    color: var(--color-foreground);
    font-size: .9rem;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    transition: border-color .2s ease;
    box-sizing: border-box;
    margin-bottom: .75rem
}

.publish-textarea:focus {
    outline: none;
    border-color: var(--color-primary)
}

.publish-textarea::placeholder {
    color: var(--color-muted)
}

.publish-toolbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: .5rem
}

@media(max-width: 768px) {
    .publish-toolbar {
        gap:.25rem;
        padding: 0 .25rem
    }
}

.toolbar-group {
    display: flex;
    gap: .5rem
}

@media(max-width: 768px) {
    .toolbar-group {
        gap:.25rem
    }
}

.toolbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: 0 0;
    border: 1px solid var(--color-border);
    border-radius: 0;
    cursor: pointer;
    color: var(--color-muted);
    transition: all .2s ease;
    position: relative
}

.toolbar-btn:hover {
    background: var(--color-background);
    color: var(--color-foreground);
    border-color: var(--color-primary)
}

.toolbar-btn:active {
    transform: translateY(1px)
}

.toolbar-btn svg {
    width: 16px;
    height: 16px
}

.file-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0
}

.publish-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem
}

@media(max-width: 768px) {
    .publish-actions {
        flex-direction:column;
        align-items: stretch;
        gap: .75rem
    }
}

.publish-tools {
    display: flex;
    align-items: center;
    gap: .75rem
}

.shortcut-tip {
    font-size: .75rem;
    color: var(--color-muted)
}

.visibility-select {
    padding: .5rem .75rem;
    border: 1px solid var(--color-border);
    border-radius: 0;
    background: var(--color-background);
    color: var(--color-foreground);
    font-size: .85rem;
    cursor: pointer
}

.visibility-select:focus {
    outline: none;
    border-color: var(--color-primary)
}

.publish-btn {
    padding: .75rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-primary-foreground);
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 500;
    transition: all .2s ease
}

.publish-btn:hover:not(:disabled) {
    opacity: .9;
    transform: translateY(-1px)
}

.publish-btn:active {
    transform: translateY(0)
}

.publish-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none
}

.publish-shortcut-tip {
    font-size: .75rem;
    color: var(--color-muted);
    margin-top: .5rem
}

@media(max-width: 768px) {
    .publish-header {
        padding:.5rem .75rem
    }

    .publish-header .publish-toolbar {
        flex-direction: row;
        gap: .25rem;
        flex-wrap: nowrap;
        overflow-x: auto
    }

    .publish-header .publish-toolbar .toolbar-group {
        justify-content: center;
        flex-shrink: 0;
        gap: .25rem
    }

    .publish-tools {
        justify-content: flex-start
    }

    .publish-tools .shortcut-tip {
        display: none
    }

    .publish-btn {
        width: 100%
    }

    .memos-publish-box {
        margin-bottom: 1.5rem
    }

    .publish-body {
        padding: .75rem
    }
}

.publish-btn.edit-mode {
    background: #000;
    color: #fff;
    border: 1px solid #000
}

.publish-btn.edit-mode:hover:not(:disabled) {
    background: #333;
    color: #fff
}

.edit-buttons-container {
    display: flex;
    gap: .75rem;
    align-items: center;
    justify-content: flex-start
}

@media(min-width: 769px) {
    .edit-buttons-container {
        flex-direction:row;
        width: auto
    }
}

.cancel-btn {
    padding: .75rem 1.5rem;
    background: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 0;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 500;
    transition: all .2s ease
}

.cancel-btn:hover:not(:disabled) {
    background: #f8f9fa;
    color: #000;
    transform: translateY(-1px)
}

.cancel-btn:active {
    transform: translateY(0)
}

.toolbar-btn.active {
    background: var(--color-primary);
    color: var(--color-primary-foreground);
    border-color: var(--color-primary)
}

.edit-mode-indicator {
    position: absolute;
    top: -10px;
    left: 10px;
    background: #28a745;
    color: #fff;
    padding: 2px 8px;
    font-size: .75rem;
    border-radius: 0
}

.edit-mode-indicator::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 8px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #28a745
}

.dark .memos-publish-box {
    background: var(--color-card);
    border-color: var(--color-border)
}

.dark .publish-header {
    background: var(--color-background);
    border-color: var(--color-border)
}

.dark .publish-textarea,.dark .visibility-select {
    background: var(--color-background);
    border-color: var(--color-border);
    color: var(--color-foreground)
}

.dark .publish-toolbar {
    border-color: var(--color-border)
}

.dark .toolbar-btn {
    border-color: var(--color-border)
}

.dark .toolbar-btn:hover {
    background: var(--color-background);
    border-color: var(--color-primary)
}

.dark .toolbar-btn.active {
    background: var(--color-primary);
    color: var(--color-primary-foreground)
}

.dark .cancel-btn {
    background: #000;
    color: #fff;
    border: 1px solid #fff
}

.dark .cancel-btn:hover:not(:disabled) {
    background: #333;
    color: #fff
}

.dark .publish-btn.edit-mode {
    background: #fff;
    color: #000;
    border: 1px solid #fff
}

.dark .publish-btn.edit-mode:hover:not(:disabled) {
    background: #f8f9fa;
    color: #000
}

.dark .edit-buttons-container .cancel-btn {
    background: #000;
    color: #fff;
    border: 1px solid #fff
}

.dark .edit-buttons-container .cancel-btn:hover:not(:disabled) {
    background: #333;
    color: #fff
}

.dark .edit-buttons-container .publish-btn.edit-mode {
    background: #fff;
    color: #000;
    border: 1px solid #fff
}

.dark .edit-buttons-container .publish-btn.edit-mode:hover:not(:disabled) {
    background: #f8f9fa;
    color: #000
}

.memos-image-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .75rem 0;
    min-height: 20px
}

.imagelist-item {
    position: relative;
    cursor: pointer;
    border-radius: 0;
    overflow: hidden;
    transition: opacity .3s ease
}

.imagelist-item:hover {
    opacity: .8
}

.imagelist-item[draggable=true] {
    cursor: move
}

.memos-up-image {
    width: 4rem;
    height: 4rem;
    background-size: cover;
    background-position: 50%;
    background-repeat: no-repeat;
    border: 1px solid var(--color-border);
    border-radius: 0;
    position: relative
}

.memos-up-image::after {
    content: '×';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    opacity: 0;
    transition: opacity .2s ease
}

.imagelist-item:hover .memos-up-image::after {
    opacity: 1
}

.imagelist-item.dragging {
    opacity: .5;
    transform: rotate(5deg)
}

.dark .memos-up-image {
    border-color: var(--color-border)
}

.memos-tag-list.d-none {
    display: none!important
}

.memos-tag {
    display: inline-block
}

.memos-tag a {
    display: inline-block;
    padding: .25rem .5rem;
    background: var(--color-card);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: 0;
    font-size: .75rem;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease
}

.memos-tag a:hover {
    background: var(--color-primary);
    color: var(--color-primary-foreground);
    text-decoration: none
}

#memos-tag-menu {
    position: absolute;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    z-index: 1000;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    min-width: 150px
}

.tag-option {
    padding: .5rem .75rem;
    cursor: pointer;
    font-size: .85rem;
    color: var(--color-foreground);
    border-bottom: 1px solid var(--color-border);
    transition: background-color .2s ease
}

.tag-option:last-child {
    border-bottom: none
}

.tag-option:hover,.tag-option.selected {
    background: var(--color-background);
    color: var(--color-primary)
}

.publish-body {
    position: relative
}

.tag-selector-wrapper {
    position: relative;
    cursor: pointer
}

.tag-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    z-index: 1001;
    display: none;
    min-width: 250px;
    max-height: 300px;
    overflow: hidden
}

.tag-search-wrapper {
    padding: .75rem;
    border-bottom: 1px solid var(--color-border)
}

.tag-search-input {
    width: 100%;
    padding: .5rem;
    border: 1px solid var(--color-border);
    border-radius: 0;
    background: var(--color-background);
    color: var(--color-foreground);
    font-size: .85rem;
    outline: none;
    box-sizing: border-box
}

.tag-search-input:focus {
    border-color: var(--color-primary)
}

.tag-search-input::placeholder {
    color: var(--color-muted)
}

.tag-options-list {
    max-height: 200px;
    overflow-y: auto
}

.tag-option-item {
    padding: .75rem;
    cursor: pointer;
    font-size: .85rem;
    color: var(--color-foreground);
    border-bottom: 1px solid var(--color-border);
    transition: background-color .2s ease;
    display: flex;
    align-items: center
}

.tag-option-item:last-child {
    border-bottom: none
}

.tag-option-item:hover,.tag-option-item.selected {
    background: var(--color-background);
    color: var(--color-primary)
}

.tag-option-item::before {
    content: '#';
    margin-right: .5rem;
    color: var(--color-primary);
    font-weight: 500
}

.no-tags-message {
    padding: 1rem;
    text-align: center;
    color: var(--color-muted);
    font-size: .85rem;
    font-style: italic
}

.dark .memos-tag a {
    background: var(--color-card);
    border-color: var(--color-border)
}

.dark .memos-tag a:hover {
    background: var(--color-primary);
    color: var(--color-primary-foreground)
}

.dark #memos-tag-menu {
    background: var(--color-card);
    border-color: var(--color-border);
    box-shadow: 0 4px 12px rgba(0,0,0,.3)
}

.dark .tag-option {
    border-color: var(--color-border)
}

.dark .tag-option:hover,.dark .tag-option.selected {
    background: var(--color-background)
}

.dark .tag-dropdown {
    background: var(--color-card);
    border-color: var(--color-border);
    box-shadow: 0 4px 12px rgba(0,0,0,.3)
}

.dark .tag-search-wrapper {
    border-color: var(--color-border)
}

.dark .tag-search-input {
    background: var(--color-background);
    border-color: var(--color-border);
    color: var(--color-foreground)
}

.dark .tag-search-input:focus {
    border-color: var(--color-primary)
}

.dark .tag-option-item {
    border-color: var(--color-border)
}

.dark .tag-option-item:hover,.dark .tag-option-item.selected {
    background: var(--color-background)
}

.memos-config-interface {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 0;
    margin-bottom: 2rem;
    text-align: center;
    padding: 2rem
}

.config-header {
    margin-bottom: 1.5rem
}

.config-header h4 {
    margin: 0 0 .5rem;
    font-size: 1.1rem;
    color: var(--color-foreground);
    font-weight: 500
}

.config-header p {
    margin: 0;
    color: var(--color-muted);
    font-size: .9rem
}

.config-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-primary-foreground);
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 500;
    transition: all .2s ease
}

.config-btn:hover {
    opacity: .9;
    transform: translateY(-1px)
}

.config-btn svg {
    width: 16px;
    height: 16px
}

.config-tip {
    margin-top: 1rem
}

.config-tip small {
    color: var(--color-muted);
    font-size: .8rem
}

.tag-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none
}

.tag-suggestion-item {
    padding: .5rem .75rem;
    cursor: pointer;
    font-size: .9rem;
    color: var(--color-foreground);
    border-bottom: 1px solid var(--color-border);
    transition: background-color .2s ease
}

.tag-suggestion-item:last-child {
    border-bottom: none
}

.tag-suggestion-item:hover,.tag-suggestion-item.active {
    background: var(--color-background);
    color: var(--color-primary)
}

.publish-body {
    position: relative
}

@media(max-width: 768px) {
    .memos-config-interface {
        padding:1.5rem;
        margin-bottom: 1.5rem
    }

    .config-btn {
        width: 100%;
        justify-content: center
    }

    .tag-suggestions {
        font-size: .85rem
    }

    .tag-dropdown {
        min-width: 180px;
        left: -80px;
        right: auto
    }
}

@media(max-width: 768px) and (max-width:480px) {
    .tag-dropdown {
        left:auto;
        right: 0;
        min-width: 160px
    }
}

@media(max-width: 768px) {
    .tag-search-wrapper {
        padding:.5rem
    }

    .tag-search-input {
        font-size: 16px
    }

    .toolbar-btn {
        width: 28px;
        height: 28px;
        min-width: 28px;
        padding: 0
    }

    .toolbar-btn svg {
        width: 14px;
        height: 14px
    }

    .tag-selector-wrapper {
        width: 28px;
        height: 28px;
        min-width: 28px
    }

    .edit-buttons-container {
        flex-direction: row;
        gap: .5rem;
        width: 100%
    }

    .edit-buttons-container .cancel-btn,.edit-buttons-container .publish-btn {
        flex: 1;
        width: auto
    }

    .edit-buttons-container .cancel-btn {
        background: #fff;
        color: #000;
        border: 1px solid #000
    }

    .edit-buttons-container .cancel-btn:hover:not(:disabled) {
        background: #f8f9fa;
        color: #000
    }

    .edit-buttons-container .publish-btn.edit-mode {
        background: #000;
        color: #fff;
        border: 1px solid #000
    }

    .edit-buttons-container .publish-btn.edit-mode:hover:not(:disabled) {
        background: #333;
        color: #fff
    }
}

.dark .memos-config-interface {
    background: var(--color-card);
    border-color: var(--color-border)
}

.dark .tag-suggestions {
    background: var(--color-card);
    border-color: var(--color-border)
}

.dark .tag-suggestion-item {
    border-color: var(--color-border)
}

.dark .tag-suggestion-item:hover,.dark .tag-suggestion-item.active {
    background: var(--color-background)
}


/* Thoughts / Memos - font size reduced ~25% */
#bber .memos-item {
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

#bber .memos-item:last-child {
    border-bottom: none;
}

#bber .memos-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

#bber .memos-time {
    font-size: 0.7rem;
    color: var(--color-muted);
    font-family: var(--font-mono);
}

#bber .memos-content {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-foreground);
}

.memos-skeleton-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem
}

.memos-skeleton-item {
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 0;
    background: var(--color-card);
    animation: pulse 1.5s ease-in-out infinite alternate
}

.memos-skeleton-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem
}

.memos-skeleton-time {
    height: .875rem;
    background: var(--color-border);
    border-radius: 0;
    width: 120px
}

.memos-skeleton-content {
    margin-bottom: .75rem;
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.memos-skeleton-line {
    height: 1rem;
    background: var(--color-border);
    border-radius: 0
}

.memos-skeleton-line.short {
    width: 60%
}

.memos-skeleton-line.medium {
    width: 80%
}

.memos-skeleton-line.long {
    width: 95%
}

.memos-skeleton-line:not(.short):not(.medium):not(.long) {
    width: 100%
}

.memos-skeleton-tags {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap
}

.memos-skeleton-tag {
    height: 1.5rem;
    background: var(--color-border);
    border-radius: 0;
    width: 60px
}

.memos-skeleton-tag:nth-child(2) {
    width: 80px
}

.memos-skeleton-tag:nth-child(3) {
    width: 70px
}

@media(max-width: 768px) {
    .memos-skeleton-item {
        padding:.75rem
    }

    .memos-skeleton-time {
        width: 100px
    }

    .memos-skeleton-tag {
        width: 50px
    }

    .memos-skeleton-tag:nth-child(2) {
        width: 65px
    }

    .memos-skeleton-tag:nth-child(3) {
        width: 55px
    }
}

.dark .memos-skeleton-item {
    background: var(--color-card);
    border-color: var(--color-border)
}

.dark .memos-skeleton-time,.dark .memos-skeleton-line,.dark .memos-skeleton-tag {
    background: var(--color-border)
}

.like-button-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0 2rem
}

.like-button-container .like-button {
    display: inline-flex!important;
    align-items: center;
    gap: .5rem;
    background: 0 0;
    border: none;
    padding: .5rem 0;
    font-size: 1rem;
    color: var(--color-foreground);
    cursor: pointer;
    transition: all .3s ease-in-out
}

.like-button-container .like-button svg {
    width: 24px;
    height: 24px;
    transition: all .3s cubic-bezier(.68,-.55,.265,1.55);
    stroke: currentColor;
    fill: transparent;
    transform-origin: center
}

.like-button-container .like-button:hover {
    transform: translateY(-2px);
    color: var(--color-primary)
}

.like-button-container .like-button:hover svg {
    transform: scale(1.15)rotate(-5deg)
}

.like-button-container .like-button.liked {
    color: var(--color-primary)
}

.like-button-container .like-button.liked svg {
    fill: currentColor;
    stroke: currentColor
}

.like-button-container .like-count {
    font-size: .9rem;
    font-weight: 500
}

@keyframes heart-burst {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.5)rotate(12deg)
    }

    100% {
        transform: scale(1)rotate(0)
    }
}

.heart-animation svg {
    animation: heart-burst .6s cubic-bezier(.17,.89,.32,1.49)
}

.like-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: rgba(0,0,0,.9);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    font-size: .875rem;
    z-index: 10000;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.1)
}

@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%,-40%)
    }

    to {
        opacity: 1;
        transform: translate(-50%,-50%)
    }
}

.like-toast {
    animation: toastFadeIn .3s ease-in-out ease forwards
}

.dark .like-toast {
    background: rgba(255,255,255,.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
    box-shadow: 0 8px 24px rgba(0,0,0,.5)
}

@media(max-width: 768px) {
    .like-button-container {
        margin:2rem 0 1.5rem
    }

    .like-button-container .like-button {
        padding: .75rem 0
    }

    .like-button-container .like-button svg {
        width: 20px;
        height: 20px
    }

    .like-button-container .like-count {
        font-size: .8rem
    }

    .like-toast {
        padding: .75rem 1rem;
        font-size: .8125rem
    }
}

.music-shortcode {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: .5rem;
    margin: 1.5rem 0
}

@media(min-width: 768px) {
    .music-shortcode {
        flex-direction:row;
        align-items: center
    }
}

.music-shortcode-info {
    display: flex;
    gap: 1.25rem;
    align-items: center
}

.music-shortcode-cover {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: .5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,5%);
    margin: 0!important;
    flex-shrink: 0;
    cursor: default!important
}

.music-shortcode-cover[title] {
    cursor: default!important
}

.music-shortcode-details {
    display: flex;
    flex-direction: column;
    gap: .25rem
}

.music-shortcode-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
    color: var(--color-foreground)
}

.music-shortcode-artist {
    margin: 0;
    font-size: .875rem;
    line-height: 1.25rem;
    color: var(--color-muted)
}

.music-shortcode-links {
    display: flex;
    gap: .5rem;
    align-items: center;
    flex-wrap: wrap
}

.music-shortcode-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    border-radius: 9999px;
    padding: .75rem 1rem;
    background-color: rgba(229,229,229,.5);
    text-decoration: none!important;
    font-size: .75rem;
    line-height: 1rem;
    transition: background-color .2s ease;
    cursor: pointer;
    overflow: visible!important
}

.music-shortcode-link:hover {
    background-color: #e5e5e5;
    text-decoration: none!important
}

.music-shortcode-link[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + .5rem);
    left: 50%;
    transform: translateX(-50%)translateY(.25rem);
    background-color: rgba(0,0,0,.8);
    color: #fff;
    padding: .375rem .625rem;
    border-radius: .25rem;
    font-size: .75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    pointer-events: none;
    z-index: 1000
}

.music-shortcode-link[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%)translateY(0)
}

@media(min-width: 768px) {
    .music-shortcode-link {
        padding:1rem;
        width: 3rem;
        height: 3rem;
        overflow: visible!important
    }
}

.dark .music-shortcode-link {
    background-color: rgba(82,82,82,.5)
}

.dark .music-shortcode-link:hover {
    background-color: #525252
}

.dark .music-shortcode-link[data-tooltip]::before {
    background-color: rgba(255,255,255,.9);
    color: #000
}

.music-shortcode-link-icon {
    display: block;
    width: 1.25rem!important;
    height: 1.25rem!important;
    margin: 0!important;
    max-width: none!important;
    max-height: none!important;
    object-fit: contain!important;
    transform: scale(1.05)
}

@media(min-width: 768px) {
    .music-shortcode-link-icon {
        width:1.25rem!important;
        height: 1.25rem!important;
        max-width: none!important;
        max-height: none!important;
        object-fit: contain!important;
        transform: scale(1.15)
    }
}

.music-shortcode-link-text {
    display: inline;
    color: var(--color-foreground)
}

@media(min-width: 768px) {
    .music-shortcode-link-text {
        display:none
    }
}

.umami-stats-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all .3s cubic-bezier(.4,0,.2,1)
}

.umami-stats-panel.visible {
    opacity: 1;
    visibility: visible
}

.umami-stats-panel.visible .umami-stats-modal {
    transform: translateY(0)scale(1)
}

.umami-stats-panel .umami-stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px)
}

.umami-stats-panel .umami-stats-modal {
    position: relative;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 0;
    width: 90%;
    max-width: 700px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
    animation: modalSlideIn .3s ease-out;
    transform: translateY(-20px)scale(.95);
    transition: transform .3s cubic-bezier(.4,0,.2,1)
}

@media(max-width: 768px) {
    .umami-stats-panel .umami-stats-modal {
        width:95%;
        max-width: 600px
    }
}

@media(max-width: 480px) {
    .umami-stats-panel .umami-stats-modal {
        width:95%;
        max-width: none
    }
}

.umami-stats-panel .stats-header {
    text-align: center;
    margin-bottom: 1rem
}

@media(max-width: 600px) {
    .umami-stats-panel .stats-header {
        margin-bottom:.8rem
    }
}

@media(max-width: 400px) {
    .umami-stats-panel .stats-header {
        margin-bottom:.6rem
    }
}

.umami-stats-panel .stats-header .stats-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-foreground);
    margin: 0;
    font-family: var(--font-sans)
}

@media(max-width: 600px) {
    .umami-stats-panel .stats-header .stats-title {
        font-size:1.1rem
    }
}

@media(max-width: 400px) {
    .umami-stats-panel .stats-header .stats-title {
        font-size:1rem
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px)scale(.95)
    }

    to {
        opacity: 1;
        transform: translateY(0)scale(1)
    }
}

.umami-stats-panel .umami-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-background)
}

.umami-stats-panel .umami-stats-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-foreground)
}

.umami-stats-panel .umami-stats-header .umami-stats-close {
    background: 0 0;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-muted);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0
}

.umami-stats-panel .umami-stats-header .umami-stats-close:hover {
    color: var(--color-foreground);
    background: var(--color-border)
}

.umami-stats-panel .umami-stats-body {
    padding: 1.5rem
}

@media(max-width: 768px) {
    .umami-stats-panel .umami-stats-body {
        padding:1rem
    }
}

@media(max-width: 480px) {
    .umami-stats-panel .umami-stats-body {
        padding:.75rem
    }
}

.umami-stats-panel .stats-container {
    display: flex;
    flex-direction: column;
    gap: .8rem
}

.umami-stats-panel .stats-section {
    padding: 0
}

.umami-stats-panel .stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: .8rem
}

@media(max-width: 900px) {
    .umami-stats-panel .stats-grid {
        grid-template-columns:repeat(3,1fr);
        gap: .6rem
    }
}

@media(max-width: 600px) {
    .umami-stats-panel .stats-grid {
        grid-template-columns:repeat(2,1fr);
        gap: .5rem
    }
}

@media(max-width: 400px) {
    .umami-stats-panel .stats-grid {
        grid-template-columns:repeat(2,1fr);
        gap: .4rem
    }
}

.umami-stats-panel .loading {
    grid-column: span 4;
    text-align: center;
    color: var(--color-muted);
    font-size: .875rem;
    padding: 1.5rem
}

@media(max-width: 900px) {
    .umami-stats-panel .loading {
        grid-column:span 3
    }
}

@media(max-width: 600px) {
    .umami-stats-panel .loading {
        grid-column:span 2;
        padding: 1rem;
        font-size: .8rem
    }
}

.umami-stats-panel .error {
    grid-column: span 4;
    text-align: center;
    color: #ff6b6b;
    font-size: .875rem;
    padding: 1.5rem
}

@media(max-width: 900px) {
    .umami-stats-panel .error {
        grid-column:span 3
    }
}

@media(max-width: 600px) {
    .umami-stats-panel .error {
        grid-column:span 2;
        padding: 1rem;
        font-size: .8rem
    }
}

.umami-stats-panel .stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: .5rem .25rem;
    background: 0 0;
    border: none;
    box-shadow: none;
    min-height: 60px;
    justify-content: center
}

@media(max-width: 600px) {
    .umami-stats-panel .stats-item {
        padding:.4rem .2rem;
        min-height: 50px
    }
}

@media(max-width: 400px) {
    .umami-stats-panel .stats-item {
        padding:.3rem .1rem;
        min-height: 45px
    }
}

.umami-stats-panel .stats-item .stats-label {
    font-family: var(--font-sans);
    font-size: .75rem;
    color: var(--color-muted);
    margin-bottom: .2rem;
    line-height: 1.2
}

@media(max-width: 600px) {
    .umami-stats-panel .stats-item .stats-label {
        font-size:.7rem;
        margin-bottom: .15rem
    }
}

@media(max-width: 400px) {
    .umami-stats-panel .stats-item .stats-label {
        font-size:.65rem;
        margin-bottom: .1rem
    }
}

.umami-stats-panel .stats-item .stats-value {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--color-foreground);
    font-weight: 600;
    line-height: 1
}

@media(max-width: 600px) {
    .umami-stats-panel .stats-item .stats-value {
        font-size:1rem
    }
}

@media(max-width: 400px) {
    .umami-stats-panel .stats-item .stats-value {
        font-size:.9rem
    }
}

.umami-stats-panel .retry-btn {
    position: relative;
    display: inline-block;
    background: 0 0;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: none
}

.umami-stats-panel .retry-btn .corner {
    position: absolute;
    inset: -4px;
    --s: 6px;
    border: 1px solid var(--color-primary);
    border-radius: 2px;
    mask: conic-gradient(#000 0 0)content-box,conic-gradient(at var(--s) var(--s),#0000 75%,#000 0)0 0/calc(100% - var(--s))calc(100% - var(--s));
    transition: .2s cubic-bezier(.4,0,.2,1)all;
    pointer-events: none;
    opacity: 0;
    transform: scale(.7)
}

.umami-stats-panel .retry-btn:hover .corner {
    transform: scale(1);
    opacity: 1
}

.umami-stats-panel .retry-btn .btn-content {
    position: relative;
    z-index: 10;
    display: block;
    padding: .5rem 1rem;
    font-size: .75rem;
    text-transform: uppercase;
    white-space: nowrap;
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
    border: 1px solid var(--color-primary);
    border-radius: 0;
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: .5px
}

@keyframes spin {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

body.umami-stats-open {
    overflow: hidden
}

.dark .umami-stats-panel .umami-stats-modal {
    background: var(--color-card);
    border-color: var(--color-border);
    box-shadow: 0 10px 30px rgba(0,0,0,.5)
}

.dark .umami-stats-panel .umami-stats-header {
    background: var(--color-background);
    border-color: var(--color-border)
}

.bookmark-section-header {
    margin: .5rem 0
}

.bookmark-section-header .line-divider {
    position: relative;
    height: 1px;
    z-index: 1;
    margin: 0;
    overflow: visible
}

.bookmark-section-header .line-divider::before {
    content: '';
    position: absolute;
    top: 0;
    right: 100%;
    width: calc((90vw - 100%)/2);
    height: 1px;
    background: linear-gradient(to left,var(--color-border),transparent)
}

.bookmark-section-header .line-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: calc((90vw - 100%)/2);
    height: 1px;
    background: linear-gradient(to right,var(--color-border),transparent)
}

.bookmark-section-header .line-divider .line-svg {
    width: 100%;
    height: 1px;
    display: block
}

.bookmark-section-header .line-divider .line-svg line {
    stroke: var(--color-border);
    stroke-dasharray: 8 8
}

.bookmark-section-header .line-divider .line-stars {
    position: relative;
    height: 0
}

.bookmark-section-header .line-divider .line-stars::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: calc(100% - 1.5px);
    z-index: 1;
    margin: auto;
    width: 4px;
    height: 4px;
    transform: rotate(-45deg);
    background-color: #c8c8c8;
    box-shadow: 0 0 12px 4px rgba(255,255,255,.16)
}

.bookmark-section-header .line-divider .line-stars::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(100% - 1.5px);
    z-index: 1;
    margin: auto;
    width: 4px;
    height: 4px;
    transform: rotate(-45deg);
    background-color: #c8c8c8;
    box-shadow: 0 0 12px 4px rgba(255,255,255,.16)
}

.dark .bookmark-section-header .line-divider .line-stars::before,.dark .bookmark-section-header .line-divider .line-stars::after {
    background-color: #fff
}

.bookmark-section-title {
    padding: 1rem;
    font-size: .75rem;
    text-transform: uppercase;
    font-family: var(--font-mono);
    margin: 0
}

.bookmark-section-title .bookmark-index {
    color: var(--color-muted);
    margin-right: .5rem
}

.bookmark-section-title .bookmark-title-text {
    color: var(--color-foreground)
}

.bookmark-section-title .bookmark-total-count {
    color: var(--color-muted);
    margin-left: .5rem
}

.bookmark-category-title {
    padding: 1rem;
    font-size: .75rem;
    text-transform: uppercase;
    font-family: var(--font-mono);
    margin: 0
}

.bookmark-category-title .category-index {
    color: var(--color-muted);
    margin-right: .5rem
}

.bookmark-category-title .category-name {
    color: var(--color-foreground)
}

.bookmark-category-title .bookmark-count {
    margin-left: .5rem;
    color: var(--color-muted)
}

.bookmark-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-muted)
}

.bookmark-container {
    position: relative;
    min-height: 200px
}

.bookmark-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center
}

.bookmark-loading .loading-spinner {
    margin-bottom: 1rem;
    display: inline-block
}

.bookmark-loading .loading-spinner i {
    font-size: 2rem;
    color: var(--color-primary);
    display: inline-block;
    animation: spin 1s linear infinite
}

.bookmark-loading p {
    color: var(--color-muted);
    font-size: .9rem;
    margin: 0
}

.bookmark-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center
}

.bookmark-error .error-icon {
    margin-bottom: 1rem
}

.bookmark-error .error-icon i {
    font-size: 2rem;
    color: var(--color-error)
}

.bookmark-error p {
    color: var(--color-muted);
    font-size: .9rem;
    margin-bottom: 1rem
}

.bookmark-error .retry-button {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: .5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: .85rem;
    transition: background-color .3s ease
}

.bookmark-error .retry-button:hover {
    background: var(--color-primary-dark)
}

.bookmark-category-heading {
    margin: .5rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border)
}

.bookmark-list {
    list-style: none;
    padding: 0;
    margin: 0
}

.bookmark-list-item {
    margin: 0;
    border-bottom: 1px solid var(--color-border-light)
}

.bookmark-list-item:last-child {
    border-bottom: none
}

.bookmark-list-item:hover {
    background: var(--color-background-muted)
}

.bookmark-link {
    display: flex;
    align-items: center;
    padding: .5rem;
    text-decoration: none;
    color: inherit;
    transition: all .2s ease;
    gap: .5rem;
    border-radius: 4px
}

.bookmark-link:hover {
    text-decoration: none;
    background: var(--color-background-muted)
}

.bookmark-link .favorite-star {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: .25rem
}

.bookmark-link .favorite-star svg {
    width: 100%;
    height: 100%;
    fill: orange;
    stroke: orange;
    stroke-width: 1.5;
    transition: transform .3s ease
}

.bookmark-link:hover .favorite-star svg {
    transform: scaleX(-1)
}

.bookmark-link:not(:has(.favorite-star))::before {
    content: '';
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-right: .25rem;
    visibility: hidden
}

.bookmark-avatar {
    flex-shrink: 0;
    position: relative;
    width: 20px;
    height: 20px
}

.bookmark-avatar .favicon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover
}

.bookmark-avatar .fallback-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--color-background-muted);
    border-radius: 50%
}

.bookmark-avatar .fallback-icon svg {
    width: 12px;
    height: 12px;
    fill: var(--color-muted)
}

.bookmark-content {
    flex: 1;
    min-width: 0
}

.bookmark-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .25rem;
    gap: .75rem
}

.bookmark-title {
    font-size: .9rem;
    font-weight: 300;
    color: var(--color-foreground);
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.bookmark-title .favorite-star {
    color: gold;
    margin-right: .25rem;
    font-size: .8em;
    vertical-align: middle
}

.bookmark-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    flex-shrink: 0
}

.bookmark-tags .tag {
    font-size: .7rem;
    color: var(--color-muted);
    background: var(--color-background-muted);
    padding: .125rem .375rem;
    border-radius: 3px;
    line-height: 1;
    border: 1px solid var(--color-border-light);
    white-space: nowrap
}

.bookmark-notes {
    font-size: .85rem;
    color: var(--color-muted);
    line-height: 1.4;
    margin-bottom: .25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.bookmark-meta {
    display: flex;
    align-items: center;
    gap: 1rem
}

.bookmark-meta .meta-item {
    font-size: .75rem;
    color: var(--color-muted-light)
}

.bookmark-meta .meta-item:first-child {
    color: var(--color-primary);
    font-weight: 500
}

.bookmark-controls-container {
    padding: 1rem;
    margin-bottom: 1rem
}

.bookmark-controls {
    margin-bottom: 0
}

.bookmark-controls .search-container {
    margin-top: 1.5rem;
    margin-bottom: 0
}

.bookmark-controls .search-container .search-input-wrapper {
    position: relative;
    width: 100%
}

.bookmark-controls .search-container .search-input-wrapper .search-icon {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-muted);
    font-size: 1rem
}

.bookmark-controls .search-container .search-input-wrapper .search-input {
    width: 100%;
    padding: .75rem 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-background);
    color: var(--color-foreground);
    font-size: .9rem;
    transition: all .3s ease
}

.bookmark-controls .search-container .search-input-wrapper .search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb),.1)
}

.bookmark-controls .search-container .search-input-wrapper .search-input::placeholder {
    color: var(--color-muted)
}

.bookmark-controls .search-container .search-input-wrapper .clear-search-btn {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    background: 0 0;
    border: none;
    color: var(--color-muted);
    cursor: pointer;
    padding: .25rem;
    border-radius: 4px;
    transition: all .2s ease
}

.bookmark-controls .search-container .search-input-wrapper .clear-search-btn:hover {
    color: var(--color-foreground);
    background: var(--color-background-muted)
}

.bookmark-controls .filter-container {
    margin-bottom: 0
}

.bookmark-controls .filter-container .filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem
}

.bookmark-controls .filter-container .filter-header .filter-label {
    font-size: .85rem;
    color: var(--color-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px
}

.bookmark-controls .filter-container .filter-header .clear-filter-btn {
    font-size: .8rem;
    color: var(--color-primary);
    background: 0 0;
    border: none;
    cursor: pointer;
    padding: .25rem .5rem;
    border-radius: 4px;
    transition: all .2s ease
}

.bookmark-controls .filter-container .filter-header .clear-filter-btn:hover {
    background: var(--color-background-muted)
}

.bookmark-controls .filter-container .tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem
}

.bookmark-controls .filter-container .tag-filter .tag-filter-btn {
    font-size: .8rem;
    color: var(--color-muted);
    background: var(--color-background);
    border: 1px solid var(--color-border);
    padding: .375rem .75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s ease
}

.bookmark-controls .filter-container .tag-filter .tag-filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary)
}

.bookmark-controls .filter-container .tag-filter .tag-filter-btn.active {
    background: var(--color-primary);
    color: var(--color-primary-foreground);
    border-color: var(--color-primary)
}

.bookmark-controls .filter-container .tag-filter .tag-filter-btn .tag-count {
    display: none
}

.bookmark-list-item.filtered-out {
    display: none
}

.bookmark-category.filtered-out {
    display: none
}

.bookmark-category:empty {
    display: none
}

.bookmark-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center
}

.bookmark-empty-state .empty-icon {
    margin-bottom: 1rem
}

.bookmark-empty-state .empty-icon i {
    font-size: 3rem;
    color: var(--color-muted)
}

.bookmark-empty-state p {
    color: var(--color-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem
}

.bookmark-empty-state .clear-all-filters-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: .75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: .9rem;
    transition: background-color .3s ease
}

.bookmark-empty-state .clear-all-filters-btn:hover {
    background: var(--color-primary-dark)
}

.no-tags {
    font-size: .85rem;
    color: var(--color-muted);
    font-style: italic
}

@keyframes spin {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.bookmark-list-item {
    opacity: 0;
    animation: slideUp .6s ease forwards
}

@media(max-width: 768px) {
    .bookmark-category-heading {
        margin:1.5rem 0 .75rem
    }

    .bookmark-link {
        padding: .5rem;
        gap: .4rem;
        align-items: center
    }

    .bookmark-avatar {
        width: 24px;
        height: 24px;
        flex-shrink: 0
    }

    .bookmark-avatar .fallback-icon {
        font-size: .8rem
    }

    .bookmark-content {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: .3rem
    }

    .bookmark-title-row {
        display: flex;
        align-items: center;
        gap: .3rem;
        min-width: 0
    }

    .bookmark-title {
        font-size: .85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        min-width: 0
    }

    .bookmark-tags {
        display: flex;
        flex-wrap: nowrap;
        gap: .2rem;
        flex-shrink: 0
    }

    .bookmark-tags .tag {
        font-size: .6rem;
        padding: .05rem .25rem;
        white-space: nowrap;
        flex-shrink: 0
    }

    .bookmark-tags .tag:nth-child(n+2) {
        display: none
    }

    .bookmark-notes {
        font-size: .75rem;
        -webkit-line-clamp: 2;
        line-clamp: 2
    }

    .bookmark-meta {
        flex-direction: row;
        align-items: center;
        gap: .5rem;
        font-size: .7rem
    }

    .bookmark-meta .meta-item {
        font-size: .7rem
    }
}

:root {
    --outer-container-width: 780px;
    --font-sans: 'DingTalk JinBu', 'Alpsoft-Qolyazma4', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "Cascadia Code", "Fira Code", Consolas, monospace;
    --container-3xl: var(--outer-container-width);
    --color-background: #FAFAFA;
    --color-foreground: #272727;
    --color-card: #F0F0F0;
    --color-card-foreground: var(--color-foreground);
    --color-primary: #272727;
    --color-primary-foreground: #ffffff;
    --color-muted: #a6a6a6;
    --color-border: #E3E3E3;
    --color-background-muted: rgba(0, 0, 0, 0.05)
}

.dark {
    --color-background: #0A0A0A;
    --color-foreground: #ffffff;
    --color-card: #141414;
    --color-card-foreground: var(--color-foreground);
    --color-primary: #ffffff;
    --color-primary-foreground: #0A0A0A;
    --color-muted: #6c6c6c;
    --color-border: #272727;
    --color-background-muted: rgba(255, 255, 255, 0.1)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans)
}

@media screen and (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    background-color: var(--color-background);
    color: var(--color-foreground);
    line-height: 1.6;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTE5NyIgaGVpZ2h0PSIxMTk3IiB2aWV3Qm94PSIwIDAgMTE5NyAxMTk3IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxjaXJjbGUgb3BhY2l0eT0iLjQiIGN4PSI1OTguNSIgY3k9IjU5OC41IiByPSI1OTcuNSIgc3Ryb2tlPSIjRTNFM0UzIi8+PC9zdmc+);
    background-position: 50% 8rem;
    background-repeat: no-repeat;
    background-attachment: fixed
}

body.dark {
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTE5NyIgaGVpZ2h0PSIxMTk3IiB2aWV3Qm94PSIwIDAgMTE5NyAxMTk3IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxjaXJjbGUgb3BhY2l0eT0iLjgiIGN4PSI1OTguNSIgY3k9IjU5OC41IiByPSI1OTcuNSIgc3Ryb2tlPSIjMjcyNzI3Ii8+PC9zdmc+)
}

::selection {
    background-color: #272727!important;
    color: #fff!important
}

::-moz-selection {
    background-color: #272727!important;
    color: #fff!important
}

.dark ::selection {
    background-color: #fff!important;
    color: #0a0a0a!important
}

.dark ::-moz-selection {
    background-color: #fff!important;
    color: #0a0a0a!important
}

.site-container {
    display: grid;
    min-height: 100vh;
    grid-template-rows: auto 1fr auto auto;
    grid-template-columns: minmax(1em,1fr)minmax(0,var(--outer-container-width))minmax(1em,1fr)
}

@media(max-width: 780px) {
    .site-container {
        grid-template-columns:minmax(1rem,1fr)minmax(0,calc(100vw - 2rem))minmax(1rem,1fr)
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--outer-container-width);
    height: 100vh;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    pointer-events: none;
    z-index: -1
}

@media(max-width: 780px) {
    body::before {
        width:calc(100vw - 2rem);
        min-width: 320px
    }
}

.site-main {
    grid-column-start: 2;
    background-color: var(--color-background)
}

.line-container {
    grid-column-start: 2;
    position: relative
}

.site-footer {
    grid-column: 1/-1;
    background: repeating-linear-gradient(-32deg,transparent 0,transparent 4px,#f2f2f2 4px,#f2f2f2 8px)
}

.dark .site-footer {
    background: repeating-linear-gradient(-32deg,transparent 0,transparent 4px,#161616 4px,#161616 8px)
}

.footer-content {
    max-width: var(--outer-container-width);
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    text-align: left;
    flex-wrap: nowrap
}

.footer-text {
    margin: 0;
    color: var(--color-muted);
    font-size: .875rem;
    line-height: 1.5;
    flex-shrink: 1;
    min-width: 0
}

@media(max-width: 480px) {
    .footer-text {
        font-size:.75rem
    }
}

.footer-links {
    display: flex;
    gap: .5rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0
}

.footer-link {
    font-size: .75rem;
    text-decoration: none!important
}

.footer-link:hover {
    text-decoration: none!important
}

.footer-link .footer-link-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem 1rem;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: 0;
    background-color: var(--color-background);
    color: var(--color-foreground);
    border: 1px solid var(--color-border);
    min-height: 32px
}

.footer-link .footer-link-content i {
    font-size: 14px;
    color: var(--color-foreground)
}

.footer-link .footer-link-content svg {
    width: 14px;
    height: 14px;
    color: var(--color-foreground)
}

.footer-link[title*=Atom] .footer-link-content,.footer-link[title*=atom] .footer-link-content,.footer-link[title*=Roll] .footer-link-content,.footer-link[title*=roll] .footer-link-content,.footer-link[title*=Bookmarks] .footer-link-content,.footer-link[title*=bookmarks] .footer-link-content,.footer-link[title*=GitHub] .footer-link-content,.footer-link[title*=github] .footer-link-content {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    min-height: auto
}

.corner-effect,.btn,.redirect-btn,.footer-link {
    position: relative;
    display: inline-block;
    text-decoration: none
}

.corner-effect .corner,.btn .corner,.redirect-btn .corner,.footer-link .corner {
    position: absolute;
    inset: -4px;
    --s: 6px;
    border: 1px solid var(--color-primary);
    border-radius: 2px;
    mask: conic-gradient(#000 0 0)content-box,conic-gradient(at var(--s) var(--s),#0000 75%,#000 0)0 0/calc(100% - var(--s))calc(100% - var(--s));
    transition: .2s cubic-bezier(.4,0,.2,1)all;
    pointer-events: none;
    opacity: 0;
    transform: scale(.7)
}

.corner-effect:hover .corner,.btn:hover .corner,.redirect-btn:hover .corner,.footer-link:hover .corner {
    transform: scale(1);
    opacity: 1
}

.btn .btn-content {
    position: relative;
    z-index: 10;
    display: block;
    padding: .5rem 1rem;
    font-size: .75rem;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: 0
}

.btn.btn-primary .btn-content {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground)
}

.btn.btn-secondary .btn-content {
    background-color: var(--color-background);
    color: var(--color-foreground);
    border: 1px solid var(--color-border)
}

h1,h2,h3,h4,h5,h6 {
    margin: 0 0 1rem;
    line-height: 1.2;
    font-weight: 600
}

h1 {
    font-size: 2rem
}

h2 {
    font-size: 1.75rem
}

h3 {
    font-size: 1.375rem
}

h4 {
    font-size: 1.125rem
}

h5 {
    font-size: 1rem
}

h6 {
    font-size: .9rem
}

p {
    margin: 0 0 1rem
}

a {
    color: var(--color-primary);
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0
}

.select-none {
    user-select: none
}

.relative {
    position: relative
}

.z-10 {
    z-index: 10
}

.block {
    display: block
}

.flex {
    display: flex
}

.items-center {
    align-items: center
}

.justify-end {
    justify-content: flex-end
}

.gap-4 {
    gap: 1rem
}

.gap-6 {
    gap: 1.5rem
}

.gap-7 {
    gap: 1.75rem
}

.rounded-sm {
    border-radius: .125rem
}

.bg-card {
    background-color: var(--color-card)
}

.px-2 {
    padding-left: .5rem;
    padding-right: .5rem
}

.py-1 {
    padding-top: .25rem;
    padding-bottom: .25rem
}

.text-xs {
    font-size: .75rem;
    line-height: 1rem
}

.uppercase {
    text-transform: uppercase
}

.border-x {
    border-left-width: 1px;
    border-right-width: 1px
}

.border-border {
    border-color: var(--color-border)
}

.col-start-2 {
    grid-column-start: 2
}

.p-4 {
    padding: 1rem;
    max-width: 56rem;
    margin: 0 auto
}

.header-padding {
    padding: 1rem
}

.w-full {
    width: 100%
}

.h-full {
    height: 100%
}

.flex {
    display: flex
}

.flex-direction-column {
    flex-direction: column
}

.justify-content-between {
    justify-content: space-between
}

.items-center {
    align-items: center
}

.gap-2 {
    gap: .5rem
}

.gap-6 {
    gap: 1.5rem
}

.mb-2 {
    margin-bottom: .5rem
}

.mt-auto {
    margin-top: auto
}

.font-medium {
    font-weight: 500
}

.site-header {
    padding: 1rem
}

.site-header .logo-svg {
    color: var(--color-foreground);
    transition: color .2s ease
}

.site-header .corner-effect:hover .logo-svg,.site-header .redirect-btn:hover .logo-svg,.site-header .footer-link:hover .logo-svg,.site-header .btn:hover .logo-svg {
    color: var(--color-primary)
}

header {
    padding: 1rem 1rem .5rem!important
}

.site-main>div:first-child {
    margin: .5rem 0!important
}

.text-muted {
    color: var(--color-muted)
}

.text-center {
    text-align: center
}

.mb-0 {
    margin-bottom: 0
}

.mb-1 {
    margin-bottom: .25rem
}

.mb-2 {
    margin-bottom: .5rem
}

.mb-3 {
    margin-bottom: .75rem
}

.mb-4 {
    margin-bottom: 1rem
}

.mb-6 {
    margin-bottom: 1.5rem
}

.mt-0 {
    margin-top: 0
}

.mt-1 {
    margin-top: .25rem
}

.mt-2 {
    margin-top: .5rem
}

.mt-3 {
    margin-top: .75rem
}

.mt-4 {
    margin-top: 1rem
}

.mt-6 {
    margin-top: 1.5rem
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem
}

.grid {
    display: grid;
    gap: 1rem
}

.grid-cols-1 {
    grid-template-columns: repeat(1,minmax(0,1fr))
}

.grid-cols-2 {
    grid-template-columns: repeat(2,minmax(0,1fr))
}

@media(min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns:repeat(2,minmax(0,1fr))
    }
}

@media(min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns:repeat(2,minmax(0,1fr))
    }
}

.site-header {
    position: relative;
    z-index: 100
}

.site-header nav {
    position: relative;
    z-index: 10
}

.site-header .nav-link,.site-header .theme-toggle {
    position: relative;
    z-index: 10
}

.nav-link {
    position: relative;
    display: inline-block;
    background: 0 0;
    border: none;
    cursor: pointer;
    text-decoration: none
}

.nav-link .corner {
    position: absolute;
    inset: -2px;
    --s: 6px;
    border: 1px solid var(--color-primary);
    border-radius: 2px;
    mask: conic-gradient(#000 0 0)content-box,conic-gradient(at var(--s) var(--s),#0000 75%,#000 0)0 0/calc(100% - var(--s))calc(100% - var(--s));
    transition: .2s cubic-bezier(.4,0,.2,1)all;
    pointer-events: none;
    opacity: 0;
    transform: scale(.7)
}

.nav-link:hover .corner {
    transform: scale(1);
    opacity: 1
}

.nav-link .btn-content {
    position: relative;
    z-index: 10;
    display: block;
    padding: .25rem .5rem;
    font-size: .7rem;
    text-transform: uppercase;
    white-space: nowrap;
    background-color: var(--color-card);
    color: var(--color-foreground)
}

.theme-toggle {
    background: 0 0;
    border: none;
    cursor: pointer;
    padding: .25rem;
    color: var(--color-foreground);
    transition: color .2s ease
}

.theme-toggle:hover {
    color: var(--color-primary);
    transform: scale(1.05)
}

.theme-toggle:active {
    transform: scale(.9)
}

.theme-toggle-container {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center
}

.theme-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0)rotate(180deg);
    transition: all .2s ease-in-out
}

.theme-icon.active {
    opacity: 1;
    transform: scale(1)rotate(0)
}

.theme-icon svg {
    width: 20px;
    height: 20px;
    display: block
}

html.disable-transition,html.disable-transition * {
    transition: none!important
}

.card {
    background-color: var(--color-card);
    color: var(--color-card-foreground);
    border-radius: 0;
    padding: 1.5rem;
    border: 1px solid var(--color-border)
}

.recent-post-card {
    position: relative;
    background: 0 0;
    border: 1px solid var(--color-border);
    border-radius: 0;
    padding: 1.5rem;
    min-height: 120px;
    overflow: hidden;
    transition: all .3s ease
}

.recent-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: 50%;
    background-repeat: no-repeat;
    opacity: 0;
    filter: blur(8px)brightness(.7);
    transform: scale(1.1);
    transition: opacity .3s ease;
    z-index: 1
}

.recent-post-card.has-image:hover::before {
    opacity: 1
}

.recent-post-card:hover {
    border-color: var(--color-primary)
}

.recent-post-link {
    position: relative;
    z-index: 2;
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%
}

.recent-post-link:hover {
    text-decoration: none
}

.recent-post-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    z-index: 3
}

.recent-post-title {
    margin: 0 0 .5rem;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--color-foreground);
    font-weight: 500
}

.recent-post-card:hover .recent-post-title {
    color: #fff;
    text-shadow: 0 0 3px rgba(0,0,0,.5)
}

.recent-post-title .title-content {
    display: inline
}

.recent-post-date {
    font-size: .875rem;
    color: var(--color-muted);
    margin-top: auto
}

.recent-post-card:hover .recent-post-date {
    color: rgba(255,255,255,.9);
    text-shadow: 0 0 2px rgba(0,0,0,.5)
}

.line-divider {
    position: relative;
    height: 1px;
    z-index: 1;
    margin: 0;
    overflow: visible
}

.line-divider::before {
    content: '';
    position: absolute;
    top: 0;
    right: 100%;
    width: calc((90vw - 100%)/2);
    height: 1px;
    background: linear-gradient(to left,var(--color-border),transparent)
}

.line-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: calc((90vw - 100%)/2);
    height: 1px;
    background: linear-gradient(to right,var(--color-border),transparent)
}

.line-divider .line-svg {
    width: 100%;
    height: 1px;
    display: block
}

.line-divider .line-svg line {
    stroke: var(--color-border);
    stroke-dasharray: 8 8
}

.line-divider .line-stars {
    position: relative;
    height: 0
}

.line-divider .line-stars::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: calc(100% - 1.5px);
    z-index: 1;
    margin: auto;
    width: 4px;
    height: 4px;
    transform: rotate(-45deg);
    background-color: #c8c8c8;
    box-shadow: 0 0 12px 4px rgba(255,255,255,.16)
}

.line-divider .line-stars::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(100% - 1.5px);
    z-index: 1;
    margin: auto;
    width: 4px;
    height: 4px;
    transform: rotate(-45deg);
    background-color: #c8c8c8;
    box-shadow: 0 0 12px 4px rgba(255,255,255,.16)
}

.dark .line-divider .line-stars::before,.dark .line-divider .line-stars::after {
    background-color: #fff
}

.line-separator {
    width: 100%;
    height: 1px;
    background-color: var(--color-border);
    margin: 2rem 0
}

body.loading .corner-effect .corner,body.loading .redirect-btn .corner,body.loading .footer-link .corner,body.loading .btn .corner {
    transition: none
}

body.loaded .corner-effect .corner,body.loaded .redirect-btn .corner,body.loaded .footer-link .corner,body.loaded .btn .corner {
    transition: .2s cubic-bezier(.4,0,.2,1)all
}

.corner-effect:focus-visible,.redirect-btn:focus-visible,.footer-link:focus-visible,.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: .125rem
}

button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: .125rem
}

@media print {
    .site-header,.site-footer,.theme-toggle,.corner,.post-nav {
        display: none!important
    }

    body {
        background: #fff!important;
        color: #000!important
    }

    .site-main {
        border: none!important
    }

    a {
        color: #000!important;
        text-decoration: underline!important
    }
}

.new-badge {
    display: inline-block;
    background: 0 0;
    color: #ff6b6b;
    font-size: .625rem;
    font-weight: 600;
    padding: 0;
    border: none;
    border-radius: 0;
    margin-right: .5rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    vertical-align: middle;
    box-shadow: none;
    animation: none;
    position: relative;
    flex-shrink: 0;
    text-shadow: 0 0 8px rgba(255,107,107,.4);
    overflow: hidden
}

.new-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,transparent 0%,rgba(255,255,255,.6) 50%,transparent 100%);
    transition: left .6s ease-in-out;
    z-index: 1
}

.recent-post-card:hover .new-badge::before {
    left: 100%
}

.dark .new-badge {
    color: #ff4757;
    text-shadow: 0 0 8px rgba(255,71,87,.5)
}

.date-with-star {
    display: flex;
    align-items: center;
    gap: .5rem
}

.featured-image-section {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.featured-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .5rem;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 0
}

.featured-tag {
    font-size: .75rem;
    background-color: var(--color-background);
    color: var(--color-muted);
    padding: .125rem .375rem;
    border: 1px solid var(--color-border);
    border-radius: 0;
    text-decoration: none;
    transition: all .2s ease
}

.featured-tag:hover {
    color: var(--color-foreground);
    border-color: var(--color-primary);
    background-color: var(--color-card)
}

.featured-tags-more {
    font-size: .75rem;
    color: var(--color-muted)
}

@media(max-width: 768px) {
    .featured-image-section {
        flex:none;
        width: 100%
    }

    .featured-tags-container {
        margin-top: .5rem
    }
}

/* ===== Comments Section ===== */
.back-nav-row {
    padding: 0 0 1rem;
}
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--color-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}
.back-btn:hover { color: var(--color-primary); }

.comments-container {
    margin-top: 2rem;
}
.comments-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-form {
    margin-bottom: 2rem;
}
.comment-form input[type="text"] {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-fg);
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 0.75rem;
}
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--color-primary);
}
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-fg);
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    min-height: 100px;
}
.comment-submit-btn {
    margin-top: 0.75rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
    border: 1px solid var(--color-primary);
    background: var(--color-primary);
    color: var(--color-primary-fg, #fff);
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.comment-submit-btn:hover {
    opacity: 0.85;
}
.comment-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.emoji-bar {
    position: relative;
    margin-bottom: 0.5rem;
}
.emoji-toggle-btn {
    background: none;
    border: 1px solid var(--color-border);
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    color: var(--color-muted);
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}
.emoji-toggle-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-fg);
}
.emoji-panel {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem;
    border: 1px solid var(--color-border);
    background: var(--color-card);
    z-index: 20;
    max-width: 280px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.emoji-item {
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.2rem 0.3rem;
    transition: transform 0.15s;
    user-select: none;
    line-height: 1;
}
.emoji-item:hover {
    transform: scale(1.3);
}

.comments-list {
    margin-top: 1.5rem;
}
.comment-item {
    display: flex;
    gap: 0.85rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}
.comment-item:last-child {
    border-bottom: none;
}
.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-primary-fg, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
    text-transform: uppercase;
}
.comment-body {
    flex: 1;
    min-width: 0;
}
.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}
.comment-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-fg);
}
.comment-time {
    font-size: 0.7rem;
    color: var(--color-muted);
}
.comment-content {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--color-fg);
    word-break: break-word;
}
.no-comments {
    text-align: center;
    color: var(--color-muted);
    font-size: 0.85rem;
    padding: 2rem 0;
}

@media (max-width: 640px) {
    .comment-item {
        gap: 0.6rem;
        padding: 0.85rem 0;
    }
    .comment-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    .comment-author { font-size: 0.8rem; }
    .comment-content { font-size: 0.85rem; }
    .emoji-panel { max-width: 240px; }
    .emoji-item { font-size: 1.15rem; }
}

/* ===== Bookmark Page ===== */
.bookmark-page {
    padding: 2.5rem 0 3rem;
}
.bookmark-header {
    margin-bottom: 1.5rem;
}
.bookmark-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--color-foreground);
    line-height: 1.3;
}
.bookmark-intro {
    font-size: 0.875rem;
    color: var(--color-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0;
}
.bookmark-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    align-items: center;
}
.bookmark-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.bookmark-tag {
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-weight: 500;
}
.bookmark-tag:hover {
    color: var(--color-foreground);
    background-color: var(--color-background-muted);
}
.bookmark-tag.active {
    background: var(--color-foreground);
    color: var(--color-background);
}
.bookmark-search {
    flex: 1;
    min-width: 200px;
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: transparent;
    color: var(--color-foreground);
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}
.bookmark-search:focus {
    border-color: var(--color-foreground);
}
.bookmark-search::placeholder {
    color: var(--color-muted);
}
.bookmark-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.85rem;
}
.bookmark-card {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.bookmark-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.dark .bookmark-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.bookmark-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: var(--color-border);
}
.bookmark-card-noimg {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-background-muted);
    color: var(--color-muted);
    opacity: 0.35;
}
.bookmark-card-body {
    padding: 0.75rem 0.85rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.bookmark-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-foreground);
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bookmark-card-title:hover {
    text-decoration: underline;
}
.bookmark-card-desc {
    font-size: 0.75rem;
    color: var(--color-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin: 0;
}
.bookmark-card-domain {
    font-size: 0.68rem;
    color: var(--color-muted);
    opacity: 0.7;
    margin-top: auto;
}
.bookmark-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.3rem;
}
.bookmark-card-tag {
    font-size: 0.6rem;
    padding: 0.08rem 0.4rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-muted);
    opacity: 0.8;
}
.bookmark-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-muted);
    font-size: 0.85rem;
}
.bookmark-empty svg {
    opacity: 0.25;
    stroke: var(--color-foreground);
}
.bookmark-loading {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--color-muted);
    font-size: 0.85rem;
}
.bookmark-loading i {
    font-size: 1.1rem;
    vertical-align: middle;
}
@media (max-width: 640px) {
    .bookmark-grid {
        grid-template-columns: 1fr;
    }
    .bookmark-page {
        padding: 1.5rem 0 2rem;
    }
    .bookmark-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ============================================================
   Admin Panel Styles — integrated with suus theme variables
   ============================================================ */

/* ---------- CSS variable bridge: admin uses suus theme colors ---------- */
#admin-panel,
#login-panel {
  --sidebar-bg: #1a202c;
  --sidebar-hover: #2d3748;
  --sidebar-active: var(--color-primary);
  --sidebar-text: #a0aec0;
  --sidebar-width: 230px;
  --content-bg: var(--color-background);
  --card-bg: var(--color-card);
  --accent: var(--color-primary);
  --accent-light: var(--color-background-muted);
  --text-primary: var(--color-foreground);
  --text-secondary: var(--color-muted);
  --border: var(--color-border);
  --danger: #e53e3e;
  --success: #38a169;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --font: var(--font-sans);
  --mono: var(--font-mono);
}

/* ---------- Login Panel ---------- */
#login-panel {
  max-width: 400px;
  margin: 140px auto 0;
  padding: 2.5rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
#login-panel h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  text-align: center;
  color: var(--text-primary);
}
#login-panel .login-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}
#login-panel label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
}
#login-panel input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  outline: none;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
#login-panel input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
#login-panel button {
  width: 100%;
  padding: 0.65rem;
  background: var(--accent);
  color: var(--color-primary-foreground);
  border: none;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
#login-panel button:hover { background: #2b6cb0; }
.login-error { color: var(--danger); font-size: 0.8rem; margin-top: 0.5rem; display: none; text-align: center; }

/* ---------- Admin Layout ---------- */
#admin-panel { min-height: 100vh; }
.admin-layout { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.admin-sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
}
.sidebar-brand {
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-brand h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: 1px;
}
.sidebar-brand .sidebar-subtitle {
  font-size: 0.7rem;
  color: var(--sidebar-text);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sidebar-nav { flex: 1; padding: 0.75rem 0; }
.sidebar-nav .tab-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 1.25rem;
  font-size: 0.82rem;
  border: none;
  background: none;
  color: var(--sidebar-text);
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.sidebar-nav .tab-btn:hover { background: var(--sidebar-hover); color: #e2e8f0; }
.sidebar-nav .tab-btn.active {
  background: rgba(49,130,206,0.15);
  color: #fff;
  border-left-color: var(--accent);
  font-weight: 500;
}
.sidebar-nav .tab-btn i { font-size: 1.1rem; width: 20px; text-align: center; }
.sidebar-footer { padding: 0.75rem 0; border-top: 1px solid rgba(255,255,255,0.08); }
.sidebar-footer a,
.sidebar-footer button {
  display: flex; align-items: center; gap: 0.65rem;
  width: 100%; padding: 0.55rem 1.25rem;
  font-size: 0.78rem; border: none; background: none;
  color: var(--sidebar-text); cursor: pointer; font-family: var(--font); text-align: left;
  transition: all 0.15s;
}
.sidebar-footer a:hover,
.sidebar-footer button:hover { background: var(--sidebar-hover); color: #e2e8f0; text-decoration: none; }
.sidebar-footer a i, .sidebar-footer button i { font-size: 1rem; width: 20px; text-align: center; }

/* ---------- Main Content Area ---------- */
.admin-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
}
.admin-topbar {
  background: var(--card-bg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-topbar h1 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}
.admin-topbar .topbar-actions { display: flex; gap: 0.5rem; align-items: center; }
.main-content { padding: 1.5rem; }

/* ---------- Stats Cards ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
}
.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.4rem; flex-shrink: 0;
}
.stat-card .stat-number { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.stat-card .stat-label { font-size: 0.78rem; color: var(--text-secondary); margin-top: 0.1rem; }

/* ---------- Toast ---------- */
#toast-container {
  position: fixed; top: 1rem; right: 1rem; z-index: 9999;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.toast {
  padding: 0.75rem 1.25rem; font-size: 0.85rem;
  border-radius: var(--radius-sm);
  min-width: 280px; max-width: 420px;
  animation: slideIn 0.3s ease;
  display: flex; align-items: center; gap: 0.5rem;
  box-shadow: var(--shadow-md);
}
.toast.success { background: #f0fff4; color: #22543d; border: 1px solid #c6f6d5; }
.toast.error { background: #fff5f5; color: #742a2a; border: 1px solid #fed7d7; }
.toast.info { background: #ebf8ff; color: #2a4365; border: 1px solid #bee3f8; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---------- Section & Forms ---------- */
.section-title {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  color: var(--text-secondary); letter-spacing: 0.05em;
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: 0.78rem; font-weight: 500;
  color: var(--text-secondary); margin-bottom: 0.3rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.55rem 0.75rem; font-size: 0.85rem;
  border: 1px solid var(--border); background: var(--card-bg);
  color: var(--text-primary); font-family: var(--font); outline: none;
  border-radius: var(--radius-sm); transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  padding: 0.45rem 1rem; font-size: 0.78rem;
  border: 1px solid var(--border); background: var(--card-bg);
  color: var(--text-primary); cursor: pointer; font-family: var(--font);
  transition: all 0.15s; display: inline-flex; align-items: center; gap: 0.35rem;
  border-radius: var(--radius-sm);
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--color-primary-foreground); border-color: var(--accent); }
.btn-primary:hover { opacity: 0.85; color: var(--color-primary-foreground); border-color: var(--accent); }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 0.25rem 0.6rem; font-size: 0.72rem; }
.btn-group { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* ---------- Card ---------- */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--color-background);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--color-background-muted); }
.table-actions { display: flex; gap: 0.35rem; }

/* ---------- Edit Panel ---------- */
.edit-panel {
  margin-top: 1rem; padding: 1.25rem;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  display: none;
}
.edit-panel.open { display: block; }

/* ---------- File Grid / Upload ---------- */
.file-upload-zone {
  border: 2px dashed var(--border); padding: 2rem; text-align: center;
  cursor: pointer; transition: all 0.2s; margin-bottom: 1rem;
  border-radius: var(--radius); background: var(--card-bg);
}
.file-upload-zone:hover, .file-upload-zone.drag-over { border-color: var(--accent); background: var(--accent-light); }
.file-upload-zone i { font-size: 2rem; color: var(--text-secondary); }
.file-upload-zone p { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.5rem; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; margin-top: 1rem; }
.file-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow 0.2s; box-shadow: var(--shadow);
}
.file-card:hover { box-shadow: var(--shadow-md); }
.file-card-preview {
  width: 100%; height: 130px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-background); overflow: hidden; position: relative;
}
.file-card-preview img, .file-card-preview video { width: 100%; height: 100%; object-fit: cover; }
.file-card-preview i { font-size: 2rem; color: var(--text-secondary); }
.file-card-info { padding: 0.65rem; font-size: 0.72rem; }
.file-card-info .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 0.25rem; font-weight: 500; }
.file-card-actions { display: flex; gap: 0.25rem; margin-top: 0.35rem; flex-wrap: wrap; }

/* ---------- Nav Links ---------- */
.nav-link-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0; border-bottom: 1px solid var(--border);
}
.nav-link-item input { flex: 1; }
.nav-link-item .handle { cursor: grab; color: var(--text-secondary); user-select: none; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 9998; display: none; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 1.5rem; max-width: 400px; width: 90%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.modal h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.modal p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1.25rem; }
.modal-actions { display: flex; gap: 0.5rem; justify-content: flex-end; }

/* ---------- Empty State ---------- */
.empty { text-align: center; padding: 2rem; color: var(--text-secondary); font-size: 0.85rem; }

/* ---------- Loading Spinner ---------- */
.spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Filter Bar ---------- */
.filter-bar { margin-bottom: 1rem; }

/* ---------- Dashboard-specific styles (top navbar) ---------- */
.admin-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
}
.header-actions { display: flex; align-items: center; gap: 16px; }
.toolbar {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.toolbar-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* ---------- Admin Responsive ---------- */
@media (max-width: 768px) {
  .admin-sidebar { width: 60px; }
  .sidebar-brand h2, .sidebar-brand .sidebar-subtitle,
  .sidebar-nav .tab-btn span, .sidebar-footer a span, .sidebar-footer button span {
    display: none;
  }
  .sidebar-nav .tab-btn { padding: 0.75rem; justify-content: center; }
  .sidebar-nav .tab-btn i { margin: 0; }
  .admin-main { margin-left: 60px; }
  .stats-row { grid-template-columns: 1fr; }
}

