/**
 * 晚夜深秋 · 授权管理 —— 前台样式（P4）
 *
 * 顶栏三卡（订单 / 导入 / 切换）统一骨架与高度；侧栏入口复用主题 colorful 动效。
 */

.wy-ls-front .pay-box + .pay-box {
    margin-top: 15px;
}

/* ---- 侧栏入口：子比 colorful-make 动态光斑（与 modal-colorful-header 同源） ---- */

.wy-ls-side-card {
    overflow: hidden;
}

.wy-ls-side-card > .colorful-make {
    animation: random1 120s linear infinite;
}

/* ---- 顶栏双卡（等高） ------------------------------------------------ */

.wy-ls-front .wy-ls-top {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 15px;
    align-items: stretch;
}

.wy-ls-front .wy-ls-top > .pay-box {
    margin-top: 0 !important;
    margin-bottom: 0;
}

.wy-ls-front .wy-ls-panel {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    min-height: 168px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.wy-ls-front .wy-ls-panel--solo,
.wy-ls-front .wy-ls-top--solo .wy-ls-panel {
    flex: 1 1 100%;
}

.wy-ls-front .wy-ls-panel__inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 4px;
    min-height: 120px;
}

.wy-ls-front .wy-ls-panel__title {
    font-weight: 700;
    font-size: 1.05em;
    line-height: 1.4;
    margin-bottom: 10px;
    padding-right: 72px; /* 避开右上角标 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wy-ls-front .wy-ls-panel__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.wy-ls-front .wy-ls-panel__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    justify-content: space-between;
}

.wy-ls-front .wy-ls-panel__action {
    text-align: center;
    margin-top: auto;
    padding-top: 4px;
}

.wy-ls-front .wy-ls-panel .form-control {
    width: 100%;
}

.wy-ls-front .author-set-left {
    min-width: 90px;
}

@media (max-width: 640px) {
    .wy-ls-front .wy-ls-top {
        flex-direction: column;
        gap: 15px;
    }

    .wy-ls-front .wy-ls-panel {
        flex: 1 1 100%;
        min-height: 0;
    }

    .wy-ls-front .wy-ls-panel__inner {
        min-height: 0;
    }

    .wy-ls-front .wy-ls-panel__title {
        white-space: normal;
    }

    .wy-ls-front .text-center .but.mm3 {
        display: inline-block;
        margin: 4px;
    }
}
