
/* study999-score-lesson-actions-final-v1 */

/* 黑色课名与紫色按钮同行，中间留出 16px */
#app .study999-score-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 16px;
    row-gap: 8px;
    margin-bottom: 10px;
}

#app .study999-score-heading h3 {
    margin: 0 !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
}

/* 课名可以点击，但仍保持原来的黑色加粗外观 */
#app .study999-score-lesson-link,
#app .study999-score-lesson-link:visited,
#app .study999-score-lesson-link:hover {
    color: #1e293b !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

#app .study999-score-lesson-link:focus-visible {
    outline: 2px solid #2563eb !important;
    outline-offset: 3px;
    border-radius: 3px;
}

/* 再测一次：缩小整个紫色按钮，高度 28px */
#app button.study999-score-retry {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;

    width: auto !important;
    height: 28px !important;
    min-height: 28px !important;
    box-sizing: border-box !important;

    padding: 0 9px !important;
    margin: 0 !important;

    border: 0 !important;
    border-radius: 7px !important;

    background: #7c3aed !important;
    color: #ffffff !important;

    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;

    box-shadow: 0 2px 5px rgba(15,23,42,.13) !important;
    cursor: pointer !important;
}

/* 图标保留清晰、协调的尺寸，不放大整个按钮 */
#app button.study999-score-retry::before {
    content: "" !important;
    display: inline-block !important;

    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    flex: 0 0 18px !important;

    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222.3%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%229%22%20y%3D%222%22%20width%3D%226%22%20height%3D%2213%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M5%2010v2a7%207%200%200%200%2014%200v-2%22%2F%3E%3Cpath%20d%3D%22M12%2019v3M8%2022h8%22%2F%3E%3C%2Fsvg%3E") !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

#app button.study999-score-retry:not(:disabled):hover {
    filter: brightness(1.08);
}

#app button.study999-score-retry:not(:disabled):active {
    transform: scale(.97);
}

#app button.study999-score-retry:disabled {
    opacity: .5 !important;
    cursor: not-allowed !important;
}

#app button.study999-score-retry:focus-visible {
    outline: 2px solid #93c5fd !important;
    outline-offset: 3px !important;
}
