:root {
    --c-bg-page: #ffffff;
    --c-bg-header: #ededed;
    --c-bg-light: #f7f7f7;
    --c-bg-msg: #C3E6E1;
    --c-bg-btn-ph: #C3E6E1;
    --c-bg-link-btn: #dedede;
    --c-bg-thread-read: #e2f5dc;
    --c-bg-thread-read-hover: #daedd4;
    --c-bg-thread-item-hover: #f7f7f7b0;
    --c-bg-timg: #f7f7f7;
    --c-bg-code: #f7f7f7;
    --c-bg-link-hover: #748bff30;
    --c-bg-tooltip: #111;
    --c-bg-mark: bisque;

    --c-border-main: rgb(128 128 128 / 40%);
    --c-border-msg: #336656;
    --c-border-btn-ph: #336656;
    --c-border-code: #ddd;
    --c-border-thread-item-bottom: rgb(128 128 128 / 40%);

    --c-text-main: #000000;
    --c-text-link: #2c2cff;
    --c-text-tooltip: #fff;
    --c-text-accent: #E91E63;
    --c-text-icon: #4c4c4c;

    --uc: #f7f7f7;
    --ubc: rgb(128 128 128 / 40%);
}

.breadcrumb {
    margin-bottom: 15px;
    padding: 10px 15px;
    background: var(--c-bg-light);
    border-radius: 8px;
    border: 1px solid var(--c-border-main);
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb-link {
    color: var(--c-text-link);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.breadcrumb-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.breadcrumb-separator {
    color: var(--c-text-icon);
    opacity: 0.5;
}

.breadcrumb-current {
    color: var(--c-text-main);
    font-weight: 600;
}

.dark-toggle {
    width: 35px;
    height: 35px;
    padding: 5px;
    border-radius: 6px;
    background: var(--uc);
    border: 2px solid var(--ubc);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dark-toggle svg {
    width: 100%;
    height: 100%;
    color: var(--c-text-icon);
}

.dark-toggle:hover {
    background: var(--c-bg-thread-item-hover);
}

.contributors {
    margin: 20px 0;
    padding: 15px;
    background: var(--c-bg-light);
    border: 1px solid var(--c-border-main);
    border-radius: 8px;
}

.contributors-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--c-text-main);
}

.contributors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contributor-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    background: var(--c-bg-page);
    border: 1px solid var(--c-border-main);
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.contributor-item:hover {
    background: var(--c-bg-thread-item-hover);
}

.contributor-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--c-bg-btn-ph);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text-main);
}

.contributor-name {
    color: var(--c-text-main);
}

.contributor-link {
    color: var(--c-text-link);
    text-decoration: none;
    margin-right: 4px;
}

.contributor-link:hover {
    text-decoration: underline;
}

.contributor-role {
    font-size: 12px;
    color: var(--c-text-icon);
    opacity: 0.7;
}

.github-links {
    padding: 15px;
    background: var(--c-bg-light);
    border: 1px solid var(--c-border-main);
    border-radius: 8px;
    margin-bottom: 30px;
}

.github-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.github-edit {
    background: var(--c-bg-btn-ph);
    color: var(--c-text-main);
    border: 1px solid var(--c-border-btn-ph);
}

.github-edit:hover {
    background: var(--c-bg-thread-item-hover);
}

.github-view {
    background: var(--c-bg-page);
    color: var(--c-text-main);
    border: 1px solid var(--c-border-main);
}

.github-view:hover {
    background: var(--c-bg-thread-item-hover);
}

.github-link svg {
    flex-shrink: 0;
}

.github-contributors {
    margin: 20px 0 0;
    padding: 15px;
    background: var(--c-bg-light);
    border-top: 2px solid var(--c-border-main);
}

.contributor-github {
    text-decoration: none;
    transition: all 0.2s ease;
}

.contributor-github:hover {
    background: var(--c-bg-thread-item-hover);
}

.contributor-avatar-img {
    border-radius: 50%;
    border: 2px solid var(--c-border-main);
}


.giscus-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--c-border-main);
}

.giscus-container {
    margin-top: 15px;
}

@media (max-width: 600px) {
    .github-links > div.aliI-CE {
        flex-direction: column !important;
        gap: 5px;
    }
    
    .github-link {
        justify-content: center;
        width: 100%;
    }
}

.theme-dark {
    --c-bg-page: #181a1b;
    --c-bg-header: #222526;
    --c-bg-light: #242728;
    --c-bg-msg: #1f3a35;
    --c-bg-btn-ph: #1f3a35;
    --c-bg-link-btn: #2a2d2f;
    --c-bg-thread-read: #1e3329;
    --c-bg-thread-read-hover: #244235;
    --c-bg-thread-item-hover: #2a2d2f;
    --c-bg-timg: #242728;
    --c-bg-code: #242728;
    --c-bg-link-hover: #3b4fff33;
    --c-bg-tooltip: #2c2f31;
    --c-bg-mark: #3a3324;
    --c-border-main: rgba(255,255,255,0.08);
    --c-border-msg: #2f5e52;
    --c-border-btn-ph: #2f5e52;
    --c-border-code: rgba(255,255,255,0.12);
    --c-border-thread-item-bottom: rgba(255,255,255,0.08);
    --c-text-main: #e6e6e6;
    --c-text-link: #8ea6ff;
    --c-text-tooltip: #f1f1f1;
    --c-text-accent: #ff6fa1;
    --c-text-icon: #c9c9c9;
    --uc: #242728;
    --ubc: rgba(255,255,255,0.08);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.hidden {
    display: none;
}

.modal-box {
    position: relative;
    background: white;
    padding: 28px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    animation: modalPop .2s ease;
}

.modal-box h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.modal-box p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    border: none;
    cursor: pointer;
    color: #666;
    display: flex;
    justify-content: center;
    height: 32px;
    align-items: center;
    border-radius: 8px;
}

.modal-close:hover {
    color: #000;
}

#modal-media img,
#modal-media video,
#modal-media audio {
    width: 100%;
    margin-top: 12px;
    border-radius: 8px;
}

.modal-link-preview {
    margin-top: 12px;
    padding: 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    word-break: break-all;
    font-size: 13px;
    color: #333;
    direction: ltr;
}

.modal-link-url {
    color: #2c2cff;
    text-decoration: none;
}

.modal-link-url:hover {
    text-decoration: underline;
}

.modal-copy {
    margin-top: 16px;
    width: 100%;
    padding: 12px;
    border: none;
    background: #111;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.modal-copy:hover {
    opacity: .9;
    transform: scale(1.02);
}

.modal-copy.copied {
    background: #2e7d32;
}

.modal-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

#modal-social.modal-social a {
    font-size: 13px;
    padding: 4px 16px;
    border-radius: 6px;
    background: #000;
    color: #fff;
}

#modal-social.modal-social a:hover {
    opacity: .9;
}

.wrp {
    width: 800px;
    margin: 0 auto;
    padding-top: 40px;
}

header,footer {
    background: var(--c-bg-header);
    padding: 15px;
    border-radius: 12px;
}

.svg-cont {
    width: 35px;
    height: 35px;
    padding: 5px;
    border-radius: 6px;
    background: var(--uc);
    border: 2px solid var(--ubc);
}

.ph .but {
    padding: 10px;
    width: 100%;
    font-weight: 600;
    background: var(--c-bg-btn-ph);
    border: 2px solid var(--c-border-btn-ph);
    border-radius: 12px;
}

.ph {
    margin-bottom: 30px;
}

.msg-info {
    background: var(--c-bg-msg);
    border: 2px solid var(--c-border-msg);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    display: none;
}

.msg-info[data-read="true"] {
    display: block;
}

.c-box {
    display: inline-flex;
}

.svg-cont svg {
    width: 100%;
    height: 100%;
}

.thread-group,
.thread-detail,
.c-box .svg-cont {
    border: 2px solid var(--c-border-main);
    border-radius: 12px;
    margin-bottom: 30px;
}

.c-box .svg-cont {
    margin-bottom: 0;
    border-radius: 3px;
}

div#modal-media img {
    width: 100%;
    aspect-ratio: 1;
}

.thread-group:last-child {
    margin-bottom: 0;
}

.thread-group .h,
.thread-detail .h,
.ph {
    padding: 15px;
    background: var(--c-bg-light);
    border-bottom: 2px solid var(--c-border-main);
    border-radius: 12px 12px 0 0;
}

.ph {
    border-radius: 12px;
    border: 2px solid var(--c-border-main);
}

.x {
    font-size: 14px;
}

.thread-detail .h.f {
    border-radius: 0 0 12px 12px;
    border-bottom: 0;
    border-top: 2px solid var(--c-border-main);
}

.ph a {
    background: var(--c-bg-link-btn);
    padding: 5px 20px;
    border-radius: 6px;
}

.mdm {
    padding: 0 15px;
}

.thread-item[data-read="true"] {
    background: var(--c-bg-thread-read);
}

.thread-item[data-read="true"]:hover {
    background: var(--c-bg-thread-read-hover);
}

.tit {
    font-size: 18px;
    width: fit-content;
}

.content {
    font-size: 16px;
}

.thread-number-ini {
    padding: 20px 5px;
    background: var(--c-bg-light);
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    border-left: 2px solid var(--c-border-main);
}

.content details summary {
    padding: 10px;
    background: var(--c-bg-light);
    border: 2px solid var(--c-border-main);
    border-radius: 6px;
    font-weight: 600;
}

.content details[open] summary {
    margin-bottom: 15px;
}

.content details {
    margin: 15px 0 0;
}

a.more-threads {
    padding: 20px;
    border-radius: 0 0 12px 12px;
    font-weight: 600;
    background: var(--c-bg-light);
    color: var(--c-text-main);
    border-top: 2px solid var(--c-border-main);
}

.timg {
    margin: 0 auto 30px;
    border: 2px solid var(--c-border-main);
    background: var(--c-bg-timg);
    color: var(--c-text-accent);
    border-radius: 12px;
}

code {
    padding: 0 6px;
    background: var(--c-bg-code);
    border: 1px solid var(--c-border-code);
    color: var(--c-text-accent);
}

.content a {
    color: var(--c-text-link);
}

.content a:hover {
    background: var(--c-bg-link-hover);
    text-decoration: underline;
}

.content mark {
    background: var(--c-bg-mark);
}

.thread-item {
    gap: 15px;
    padding-left: 15px;
    border-top: 2px solid var(--c-border-thread-item-bottom);
}

.thread-item h2 {
    flex-grow: 1;
    font-weight: normal;
    font-size: 14px;
    white-space: nowrap;
    width: calc(100% - 143px);
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo-txt {
    font-size: 32px;
}

.thread-item:hover {
    background: var(--c-bg-thread-item-hover);
}

.actions {
    gap: 15px;
}

.thread-group .h h3 {
    font-size: 18px;
}

.thread-group .h h3:not(.mft):hover {
    text-decoration: underline;
}

.section-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: var(--c-bg-light);
    border-bottom: 2px solid var(--c-border-main);
    font-size: 13px;
}

.section-status-text {
    color: var(--c-text-main);
    width: calc(100% - 90px);
}

.status-badge {
    max-width: 80px;
    margin-right: 10px;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-done {
    background: #c8e6c9;
    color: #2e7d32;
}

.status-running {
    background: #fff3e0;
    color: #e65100;
}

.theme-dark .status-done {
    background: #1b3d1b;
    color: #81c784;
}

.theme-dark .status-running {
    background: #3d2e1b;
    color: #ffb74d;
}

footer.txt-C.wrp p {
    margin: 0;
    color:#000;
}

footer.txt-C.wrp {
    padding-top: 15px;
    margin-top: 30px;
    font-size: 14px;
}

footer.txt-C.wrp p a {
    color: #3700ff;
}

.actions .svg-cont,
.thread-group .h .svg-cont,
.thread-detail .h .svg-cont,
header div .svg-cont {
    --uc: var(--c-bg-light);
    color: var(--c-text-icon);
    --ubc: var(--c-border-main);
}

.thread-group .h .svg-cont svg {
    transform: scale(1.5);
}

.thread-item:first-child {
    border: 0;
}

.thread-item:last-child {
    border-radius: 0 0 12px 12px;
}

.thread-item:last-child .thread-number-ini {
    border-radius: 0 0 12px 0;
}

[data-tooltip-text] {
    position: relative;
    cursor: pointer;
}

[data-tooltip-text]::after {
    content: attr(data-tooltip-text);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) scale(.95);
    background: var(--c-bg-tooltip);
    color: var(--c-text-tooltip);
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
}

[data-tooltip-text]::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--c-bg-tooltip);
    opacity: 0;
    transition: opacity .15s ease;
}

[data-tooltip-text]:hover::after,
[data-tooltip-text]:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.content hr {
    border: 0;
    margin: 10px 0;
    height: 2px;
    background: var(--c-border-code);
}

@media (max-width:805px) {
    .wrp {
        width: 95%;
    }

    [data-tooltip-text]::after {
        display: none !important;
    }
}


@media (max-width:475px) {
    .logo-txt
    {
        font-size: 24px;
    }
}



@media (max-width:350px) {
    .logo-txt
    {
        font-size: 18px;
    }
}