body:not(.authenticated)>.app {
    display: none
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 46% 54%;
    background: #faf9f6
}

.login-story {
    background: #1a2744;
    color: #fff;
    padding: 64px 70px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 50px
}

.login-story .brand {
    padding: 0
}

.login-story h1 {
    font-size: 43px;
    line-height: 1.65;
    font-weight: 600;
    letter-spacing: -1px
}

.login-eyebrow {
    font-size: 11px;
    letter-spacing: 2.5px;
    color: #86a6cb;
    margin-bottom: 26px
}

.login-story h1+p {
    margin-top: 28px;
    font-size: 15px;
    line-height: 2.1;
    color: #9eb3ce
}

.login-story small {
    font-size: 12px;
    color: #677f9f
}

.login-main {
    display: grid;
    place-items: center;
    padding: 60px 30px
}

.login-main form {
    width: 100%;
    max-width: 360px
}

.login-main h2 {
    font-size: 30px;
    color: #1a2744;
    margin: 6px 0 12px;
    letter-spacing: -.6px
}

.login-main h2+p {
    font-size: 13px;
    color: #8b9bb0;
    margin-bottom: 37px
}

.login-main .field {
    margin-bottom: 23px
}

.login-main .field input {
    font-size: 14px;
    padding: 13px 15px;
    background: white
}

.login-main .primary {
    width: 100%;
    min-height: 44px
}

.login-error {
    min-height: 25px;
    color: #b5635c;
    font-size: 12px;
    margin-bottom: 10px
}

.login-help {
    display: block;
    text-align: center;
    color: #9ba8b9;
    font-size: 11px;
    margin-top: 22px
}

.settings-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 26px
}

.paper-copy:empty:before {
    content: attr(data-placeholder);
    color: #a2afbf;
    pointer-events: none
}

.agent-progress {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #7a95b8;
    font-size: 12px;
    margin-bottom: 12px
}

.progress-dot {
    width: 7px;
    height: 7px;
    background: #87a7ca;
    border-radius: 50%;
    animation: breathing 1.6s ease-in-out infinite
}

.schedule-selects {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.schedule-selects select {
    border: 1px solid #e0e7f0;
    background: #fff;
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 12px;
    color: #6683a7;
    max-width: 180px
}

.run-steps {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 25px;
    border-top: 1px solid #e7eef6;
    padding-top: 17px
}

.run-steps span {
    font-size: 11px;
    color: #8ea9c8;
    background: #f2f6fb;
    padding: 4px 8px;
    border-radius: 5px
}

.account-row {
    padding: 13px 0;
    border-bottom: 1px solid #eaf0f7
}

.account-row strong {
    display: block;
    color: #627e9f;
    font-size: 13px;
    font-weight: 500
}

.account-row small {
    display: block;
    font-size: 11px;
    color: #9aafc8;
    margin-top: 5px
}

.source-address {
    margin-top: 15px;
    overflow-wrap: anywhere
}

.source-address .icon {
    width: 12px;
    height: 12px
}

.account-list {
    max-height: 48vh;
    overflow: auto
}

.page-actions {
    flex-wrap: wrap;
    justify-content: flex-end
}

.schedule-toolbar {
    flex-wrap: wrap
}

.dialog-content {
    overflow-wrap: anywhere
}

@keyframes breathing {
    50% {
        opacity: .35
    }
}

@media(prefers-reduced-motion:reduce) {
    .progress-dot {
        animation: none
    }
}

@media(max-width:1050px) {
    .login-story {
        padding: 50px 40px
    }

    .login-story h1 {
        font-size: 33px
    }

    .page-header {
        align-items: flex-start
    }

    .page-actions {
        max-width: 65%
    }
}

@media(max-width:760px) {
    .login-shell {
        grid-template-columns: 1fr
    }

    .login-story {
        padding: 35px 28px;
        gap: 30px;
        min-height: 265px
    }

    .login-story h1 {
        font-size: 27px
    }

    .login-story .brand {
        font-size: 23px
    }

    .login-story h1+p,
    .login-story small,
    .login-eyebrow {
        display: none
    }

    .login-main {
        padding: 38px 28px 55px
    }

    .login-main h2 {
        font-size: 27px
    }

    .page-actions {
        max-width: 100%;
        justify-content: flex-start
    }

    .schedule-selects {
        gap: 6px
    }

    .schedule-selects select {
        max-width: 140px
    }

    .page-header {
        flex-wrap: wrap
    }
}

@media print {
    .login-shell {
        display: none !important
    }
}

.form-error {
    padding: 12px 14px;
    margin: 12px 0;
    border: 1px solid #e1c9c5;
    border-radius: 8px;
    background: #fbf4f2;
    color: #8c514c;
    font-size: 13px;
    line-height: 1.7
}

/* 学情分析：可点击统计卡 */
.stat-action { cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.stat-action:hover { border-color: var(--steel); transform: translateY(-1px); }
.stat-action:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }
.stat-action.is-disabled { cursor: default; opacity: .7; }
.stat-action.is-disabled:hover { transform: none; border-color: inherit; }
.stat-hint { display: inline-block; margin-left: 6px; font-size: 11px; color: var(--steel); font-weight: 500; }
.stat-hint.on { color: var(--amber, #b8860b); }

/* 成绩分布柱状图（纯 CSS，无外部依赖） */
.chart-caption { margin: 0 0 14px; color: var(--ink-soft, #556); font-size: 13px; }
.score-chart { display: flex; align-items: flex-end; gap: 14px; height: 190px; padding: 8px 4px 0; }
.score-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.score-count { font-size: 12px; font-weight: 600; color: var(--ink, #223); margin-bottom: 4px; }
.score-bar { width: 100%; max-width: 56px; border-radius: 6px 6px 2px 2px; min-height: 3px; transition: height .25s ease; }
.score-bar.low { background: linear-gradient(180deg, #e06a5a, #c9483a); }
.score-bar.mid-low { background: linear-gradient(180deg, #e8a94a, #d08f28); }
.score-bar.mid { background: linear-gradient(180deg, #6fa8dc, #4d86bd); }
.score-bar.good { background: linear-gradient(180deg, #63b48a, #3f9169); }
.score-bar.best { background: linear-gradient(180deg, #2d5a87, #1a2744); }
.score-col small { margin-top: 8px; font-size: 11px; color: var(--ink-soft, #667); white-space: nowrap; }
.chart-note { margin: 16px 0 0; font-size: 12px; color: var(--ink-soft, #778); }


/* module switch transition: fade + slight rise */
@keyframes zdPageIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
#content.page-enter{animation:zdPageIn .42s cubic-bezier(.22,.61,.36,1) both}
@media (prefers-reduced-motion: reduce){#content.page-enter{animation:none}}
