.ek-active-recall {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 17px;
    border: 1px solid rgba(185, 133, 61, .28);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 252, 245, .96),
            rgba(247, 241, 228, .94)
        );
    box-shadow: 0 10px 30px rgba(45, 38, 27, .05);
}

.ek-active-recall__head {
    display: grid;
    gap: 5px;
}

.ek-active-recall__head > span:first-child {
    color: #916b28;
    font-size: 11px;
    font-weight: 900;
}

.ek-active-recall__head h2 {
    margin: 0;
    color: #21394e;
    font-size: 17px;
}

.ek-active-recall__head p {
    margin: 0;
    color: #71685d;
    font-size: 12px;
    line-height: 1.9;
}

.ek-active-recall__position {
    justify-self: start;
    padding: 4px 8px;
    border-radius: 999px;
    background: #17334d;
    color: #fff;
    font-size: 10px;
    font-weight: 850;
}

.ek-active-recall__locked {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(23, 51, 77, .06);
    color: #314b60;
}

.ek-active-recall__locked span {
    color: #75818b;
    font-size: 11px;
}

.ek-active-recall__card {
    display: grid;
    gap: 12px;
}

.ek-active-recall__card[hidden] {
    display: none !important;
}

.ek-active-recall__card h3 {
    margin: 0;
    color: #243a4e;
    font-size: 15px;
}

.ek-active-recall__prompt {
    margin: 0;
    color: #222f3a;
    font-weight: 750;
    line-height: 2;
}

.ek-active-recall__scenario {
    padding: 11px 12px;
    border-right: 3px solid #b9853d;
    border-radius: 9px;
    background: rgba(255,255,255,.62);
    color: #5d554d;
    line-height: 2;
    white-space: pre-wrap;
}

.ek-active-recall__draft {
    display: grid;
    gap: 6px;
}

.ek-active-recall__draft > span {
    font-size: 12px;
    font-weight: 800;
    color: #3a4c5a;
}

.ek-active-recall__draft textarea {
    width: 100%;
    resize: vertical;
    box-sizing: border-box;
    padding: 10px 11px;
    border: 1px solid #d7cec0;
    border-radius: 10px;
    background: #fff;
    color: #263743;
    font: inherit;
    line-height: 1.9;
}

.ek-active-recall__draft small {
    color: #8a8177;
    font-size: 10px;
}

.ek-active-recall__reveal,
.ek-active-recall__next,
.ek-active-recall__rates button {
    appearance: none;
    border: 1px solid #17334d;
    border-radius: 10px;
    padding: 8px 11px;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.ek-active-recall__reveal {
    justify-self: start;
    background: #17334d;
    color: #fff;
}

.ek-active-recall__answer {
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid rgba(57, 128, 87, .24);
    border-radius: 12px;
    background: rgba(233, 247, 238, .72);
}

.ek-active-recall__answer[hidden],
.ek-active-recall__rates[hidden],
.ek-active-recall__next[hidden],
.ek-active-recall__summary[hidden] {
    display: none !important;
}

.ek-active-recall__model-answer {
    color: #30483b;
    line-height: 2;
    white-space: pre-wrap;
}

.ek-active-recall__support {
    padding-top: 8px;
    border-top: 1px dashed rgba(65, 108, 81, .26);
    color: #51675a;
    font-size: 11px;
}

.ek-active-recall__support ul {
    margin: 7px 0 0;
    padding-right: 19px;
}

.ek-active-recall__rates {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.ek-active-recall__rates button {
    border-color: #d4c9ba;
    background: #fff;
    color: #51483f;
}

.ek-active-recall__rates button[data-recall-rate="correct"] {
    border-color: rgba(46, 132, 82, .38);
}

.ek-active-recall__rates button[data-recall-rate="wrong"] {
    border-color: rgba(168, 81, 67, .36);
}

.ek-active-recall__status {
    min-height: 18px;
    color: #776f65;
    font-size: 10px;
}

.ek-active-recall__card.is-rated.is-correct {
    --recall-result: #2f8053;
}

.ek-active-recall__card.is-rated.is-partial {
    --recall-result: #a17929;
}

.ek-active-recall__card.is-rated.is-wrong {
    --recall-result: #a35447;
}

.ek-active-recall__card.is-rated
.ek-active-recall__status {
    color: var(--recall-result);
    font-weight: 800;
}

.ek-active-recall__next {
    justify-self: end;
    background: transparent;
    color: #17334d;
}

.ek-active-recall__summary {
    display: grid;
    gap: 3px;
    padding: 11px 12px;
    border-radius: 11px;
    background: rgba(47, 128, 83, .1);
    color: #2f6648;
}

.ek-active-recall__summary span {
    font-size: 11px;
}

/* Admin */

.ek-academic-card.is-active-recall {
    border-color: rgba(48, 112, 93, .34);
    background:
        linear-gradient(
            145deg,
            rgba(248, 253, 250, .98),
            rgba(238, 247, 242, .95)
        );
}

.ek-recall-admin {
    display: grid;
    gap: 14px;
}

.ek-recall-admin__selectors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ek-recall-admin__selectors label {
    display: grid;
    gap: 5px;
}

.ek-recall-admin__selectors span,
.ek-recall-admin h3 {
    color: #4b5b65;
    font-size: 11px;
    font-weight: 850;
}

.ek-recall-admin__selectors select,
.ek-recall-admin__search input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 9px;
    border: 1px solid #d8cfc3;
    border-radius: 9px;
    background: #fff;
    font: inherit;
}

.ek-recall-admin__chosen,
.ek-recall-admin__search {
    display: grid;
    gap: 8px;
}

.ek-recall-admin__chosen h3 {
    margin: 0;
}

.ek-recall-admin__selected,
.ek-recall-admin__candidate {
    display: grid;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid #ded7cc;
    border-radius: 11px;
    background: #fff;
}

.ek-recall-admin__selected {
    grid-template-columns: 28px minmax(0,1fr) auto;
}

.ek-recall-admin__selected > span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #17334d;
    color: #fff;
}

.ek-recall-admin__selected div,
.ek-recall-admin__candidate div {
    min-width: 0;
}

.ek-recall-admin__selected strong,
.ek-recall-admin__candidate strong {
    display: block;
    color: #293f50;
}

.ek-recall-admin__selected small,
.ek-recall-admin__candidate span,
.ek-recall-admin__candidate p {
    display: block;
    margin: 3px 0 0;
    color: #7b7268;
    font-size: 10px;
    line-height: 1.75;
}

.ek-recall-admin__selected button,
.ek-recall-admin__candidate button,
.ek-recall-admin__search > div:first-child button,
.ek-recall-admin__footer button {
    appearance: none;
    border: 1px solid #17334d;
    border-radius: 8px;
    background: #17334d;
    color: #fff;
    padding: 6px 8px;
    font: inherit;
    font-size: 10px;
    cursor: pointer;
}

.ek-recall-admin__candidate {
    grid-template-columns: minmax(0,1fr) auto;
}

.ek-recall-admin__candidate button:disabled {
    opacity: .42;
    cursor: default;
}

.ek-recall-admin__search > div:first-child {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
}

.ek-recall-admin__empty {
    padding: 10px;
    border-radius: 10px;
    background: #f7f4ef;
    color: #7a7167;
    font-size: 11px;
}

.ek-recall-admin__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee7dc;
}

.ek-recall-admin__footer p {
    margin: 0;
    color: #756c62;
    font-size: 10px;
}

@media (max-width: 700px) {
    .ek-recall-admin__selectors {
        grid-template-columns: 1fr;
    }

    .ek-recall-admin__footer {
        display: grid;
    }

    .ek-recall-admin__footer button {
        width: 100%;
    }

    .ek-active-recall__rates {
        display: grid;
        grid-template-columns: 1fr;
    }
}

