.zsg_svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.zsg_widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9000;
    font-family: inherit;
}

.zsg_trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(12, 12, 13, .62);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: #fafafa;
    font: inherit;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.zsg_trigger:hover {
    border-color: rgba(255, 255, 255, .26);
    background: rgba(24, 24, 27, .72);
}

.zsg_trigger svg {
    font-size: 1.6rem;
}

.zsg_trigger b {
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: 1.15rem;
    text-align: center;
}

.zsg_panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: min(340px, calc(100vw - 32px));
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    background: rgba(12, 12, 13, .72);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    color: #fafafa;
    opacity: 0;
    transform: translateY(8px) scale(.96) rotate(0.02deg);
    transform-origin: bottom right;
    transition: opacity .2s cubic-bezier(.2, .8, .2, 1), transform .2s cubic-bezier(.2, .8, .2, 1);
}

.zsg_panel[hidden] {
    display: none;
}

.zsg_panel.on {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0.02deg);
}

.zsg_stage {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    padding: 8px 6px;
}

.zsg_stage .zsg_svg {
    max-height: 100%;
}

.zsg_is_empty .zsg_stage {
    height: 184px;
}

.zsg_is_empty .zsg_meta {
    display: none;
}

.zsg_empty {
    max-width: 240px;
    margin: 0;
    color: #a1a1aa;
    font-size: 1.3rem;
    line-height: 1.45;
    text-align: center;
}

.zsg_meta {
    display: flex;
    justify-content: center;
    min-height: 30px;
    margin-top: 4px;
}

.zsg_who {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e4e4e7;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
}

.zsg_who:hover {
    color: #fff;
}

.zsg_avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.zsg_avatar_empty {
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .45);
    font-size: 1.4rem;
}

.zsg_nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.zsg_counter {
    min-width: 54px;
    color: #a1a1aa;
    font-size: 1.25rem;
    text-align: center;
}

.zsg_round {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: #fafafa;
    font-size: 1.6rem;
    cursor: pointer;
}

.zsg_round:disabled {
    opacity: .35;
    cursor: default;
}

.zsg_sign {
    margin-left: auto;
}

.zsg_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    color: #fafafa;
    font: inherit;
    font-size: 1.3rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s ease;
}

.zsg_btn:hover {
    background: rgba(255, 255, 255, .1);
}

.zsg_btn:disabled {
    opacity: .45;
    cursor: default;
}

.zsg_pri {
    border-color: #2f6df6;
    background: #2f6df6;
}

.zsg_pri:hover {
    background: #3d78f7;
}

.zsg_overlay {
    position: fixed;
    inset: 0;
    z-index: 1000001;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .2s ease;
}

.zsg_overlay.on {
    opacity: 1;
}

.zsg_pop {
    width: min(460px, 100%);
    padding: 20px;
    border: 1px solid #26262b;
    border-radius: 20px;
    background: #111113;
    color: #fafafa;
    transform: translateY(8px) scale(.97) rotate(0.02deg);
    transition: transform .22s cubic-bezier(.2, .8, .2, 1);
}

.zsg_overlay.on .zsg_pop {
    transform: translateY(0) scale(1) rotate(0.02deg);
}

.zsg_pop_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.zsg_pop_head h3 {
    font-size: 1.7rem;
    font-weight: 600;
}

.zsg_close {
    padding: 4px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #a1a1aa;
    font: inherit;
    font-size: 1.3rem;
    cursor: pointer;
}

.zsg_note {
    margin-top: 8px;
    color: #a1a1aa;
    font-size: 1.25rem;
}

.zsg_draw {
    position: relative;
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid #26262b;
    border-radius: 14px;
    background: #0c0c0d;
}

.zsg_draw canvas {
    position: static;
    top: auto;
    left: auto;
    display: block;
    width: 100%;
    aspect-ratio: 5 / 2;
    touch-action: none;
    cursor: crosshair;
}

.zsg_hint {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 0 16px;
    color: #71717a;
    font-size: 1.3rem;
    text-align: center;
    pointer-events: none;
    transition: opacity .2s ease;
}

.zsg_tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.zsg_tools .zsg_btn:nth-of-type(1) {
    margin-left: auto;
}

.zsg_color {
    width: 150px;
}

.zsg_color .zyo-color > input {
    height: 36px;
    border-radius: 10px;
    font-size: 13px;
    letter-spacing: .03em;
}

.zsg_color .zyo-color_swatch {
    width: 20px;
    height: 20px;
}

.zsg_pop > .zsg_sign,
.zsg_pop > .zsg_pri {
    width: 100%;
    margin-top: 12px;
}

.zsg_card {
    position: fixed;
    z-index: 1000002;
    width: 260px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: rgba(12, 12, 13, .78);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    color: #fafafa;
    opacity: 0;
    transform: translateY(4px) scale(.97) rotate(0.02deg);
    transition: opacity .18s ease, transform .18s cubic-bezier(.2, .8, .2, 1);
    pointer-events: none;
}

.zsg_card.on {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0.02deg);
    pointer-events: auto;
}

.zsg_card_head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zsg_card_avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    font-size: 2rem;
}

.zsg_card_head strong {
    display: block;
    font-size: 1.45rem;
}

.zsg_card_head em {
    color: #6ea0ff;
    font-size: 1.15rem;
    font-style: normal;
}

.zsg_card p {
    margin-top: 10px;
    color: #c4c4cc;
    font-size: 1.25rem;
    line-height: 1.4;
}

.zsg_card_foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    color: #a1a1aa;
    font-size: 1.2rem;
}

.zsg_card_foot a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.zsg_row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
    max-width: min(560px, 90vw);
    margin: 26px auto 0;
    pointer-events: auto;
}

.zsg_chip {
    width: 92px;
    height: 42px;
    padding: 4px 6px;
    border: 0;
    background: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(4px) rotate(0.02deg);
    transition: opacity .4s ease, transform .4s cubic-bezier(.2, .8, .2, 1);
    transition-delay: calc(var(--i, 0) * 70ms);
}

.zsg_row.on .zsg_chip {
    opacity: .75;
    transform: none;
}

.zsg_row.on .zsg_chip:hover,
.zsg_row.on .zsg_chip:focus-visible {
    opacity: 1;
    transition-delay: 0s;
}

@media (max-width: 600px) {
    .zsg_widget {
        right: 12px;
        bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zsg_panel,
    .zsg_pop,
    .zsg_card,
    .zsg_chip,
    .zsg_overlay {
        transition: none;
    }
}

.zsp {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 920px;
    margin-top: 8px;
    color: #ededed;
}

.zsp h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
}

.zsp p {
    margin-top: 2px;
    color: #8e8e93;
    font-size: 1.3rem;
    line-height: 1.4;
}

.zsp_card {
    padding: 22px;
    border: 1px solid #1a1a1d;
    border-radius: 14px;
    background: #0c0c0d;
}

.zsp_card[hidden] {
    display: none;
}

.zsp_switch_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
}

.zsp_switch {
    position: relative;
    flex: none;
    cursor: pointer;
}

.zsp_switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.zsp_switch span {
    display: block;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #2a2a2e;
    transition: background .2s ease;
}

.zsp_switch span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}

.zsp_switch input:checked + span {
    background: #2f6df6;
}

.zsp_switch input:checked + span::after {
    transform: translateX(18px);
}

.zsp_switch input:focus-visible + span {
    outline: 2px solid #6ea0ff;
    outline-offset: 2px;
}

.zsp_autograph {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 18px;
    border-top: 1px solid #1a1a1d;
}

.zsp_autograph_art {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 160px;
    height: 64px;
    padding: 6px;
    border: 1px solid #1a1a1d;
    border-radius: 12px;
    background: #111113;
}

.zsp_autograph_art .zsg_svg {
    max-height: 100%;
}

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

.zsp_actions {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    gap: 6px;
}

.zsp_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #26262b;
    border-radius: 10px;
    background: #151517;
    color: #ededed;
    font: inherit;
    font-size: 1.3rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s ease;
}

.zsp_btn:hover {
    background: #1c1c1f;
}

.zsp_btn:disabled {
    opacity: .5;
    cursor: default;
}

.zsp_btn[hidden] {
    display: none;
}

.zsp_pri {
    border-color: #2f6df6;
    background: #2f6df6;
    color: #fff;
}

.zsp_pri:hover {
    background: #3d78f7;
}

.zsp_stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid #1c1c1f;
    border-radius: 18px;
    background: #0f0f11;
}

.zsp_stats > div {
    padding: 16px 20px;
}

.zsp_stats > div + div {
    border-left: 1px solid #1c1c1f;
}

.zsp_stats b {
    display: block;
    color: #fff;
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1;
}

.zsp_stats span {
    display: block;
    margin-top: 8px;
    color: #8e8e93;
    font-size: 1.3rem;
}

.zsp_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.zsp_mute {
    color: #8e8e93;
    font-size: 1.25rem;
}

.zsp_list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zsp_row {
    display: flex;
    align-items: stretch;
    border-radius: 15px;
    background: #1c1c1c;
}

.zsp_body {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #1c1c1c;
    border-radius: 15px;
    background: #111;
}

.zsp_art {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 56px;
    padding: 4px;
    overflow: hidden;
}

.zsp_who {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.zsp_who a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
}

.zsp_who small {
    display: block;
    color: #8e8e93;
    font-size: 1.2rem;
}

.zsp_empty {
    padding: 18px 0 4px;
}

@media (max-width: 700px) {
    .zsp_autograph {
        flex-direction: column;
        align-items: stretch;
    }

    .zsp_autograph_art {
        width: 100%;
    }

    .zsp_body {
        flex-wrap: wrap;
    }

    .zsp_art {
        width: 100%;
        height: 72px;
    }

    .zsp_who {
        flex: 1 1 90px;
    }
}

.zsp_handle {
    display: flex;
    flex: none;
    align-items: center;
    padding: 0 4px;
    color: #656565;
    font-size: 1.6rem;
    cursor: grab;
    touch-action: none;
    transition: color .15s ease;
}

.zsp_handle:hover {
    color: #a1a1aa;
}

.zsp_handle:active {
    cursor: grabbing;
}

.zsp_ghost {
    opacity: .4;
}

.zsp_chosen {
    border-color: #2f6df6;
}

.zsp_chip {
    flex: none;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(142, 142, 147, .16);
    color: #8e8e93;
    font-size: 1.2rem;
    font-weight: 600;
}

.zsp_chip_approved {
    background: rgba(7, 149, 66, .16);
    color: #0ad406;
}

.zsp_chip_pending {
    background: rgba(47, 109, 246, .16);
    color: #6ea0ff;
}

.zsp_chip_rejected {
    background: rgba(220, 17, 1, .16);
    color: #ff4d3d;
}
