.lesson-feedback__toggle {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 10520;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #0CFE25;
    background: #010618;
    color: #0CFE25;
    box-shadow: 0 0 16px rgba(12, 254, 37, 0.28);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.lesson-feedback__toggle:hover,
.lesson-feedback__toggle:focus-visible,
.lesson-feedback__toggle[aria-expanded="true"] {
    background: #071021;
    box-shadow: 0 0 22px rgba(12, 254, 37, 0.45);
    outline: none;
}

.lesson-feedback__panel {
    position: fixed;
    left: 16px;
    bottom: 72px;
    z-index: 10500;
    width: min(380px, calc(100vw - 32px));
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    padding: 16px 18px 18px;
    box-sizing: border-box;
    background: #162136;
    color: #fff;
    border: 1px solid #0CFE25;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.lesson-feedback__panel[hidden] {
    display: none;
}

body:has(.lesson-search.is-left) .lesson-feedback__toggle,
body:has(.lesson-search.is-left) .lesson-feedback__panel {
    left: auto;
    right: 16px;
}

.lesson-feedback__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.lesson-feedback__head h3 {
    margin: 0;
    color: #0CFE25;
    font-size: 1.1rem;
}

.lesson-feedback__close {
    background: none;
    border: none;
    color: #ccc;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.lesson-feedback__close:hover,
.lesson-feedback__close:focus-visible {
    color: #fff;
}

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

.lesson-feedback__targets {
    border: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lesson-feedback__targets legend,
.lesson-feedback__label {
    width: 100%;
    margin: 0 0 6px;
    color: #cfd8e3;
    font-size: 0.85rem;
}

.lesson-feedback__targets label,
.lesson-feedback__number-list label {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid #243044;
    border-radius: 999px;
    background: #0d1525;
    color: #cfd8e3;
    font-size: 0.85rem;
    cursor: pointer;
}

.lesson-feedback__number-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lesson-feedback__number-list label {
    min-width: 34px;
    justify-content: center;
    padding: 6px 0;
}

.lesson-feedback__targets input,
.lesson-feedback__number-list input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lesson-feedback__targets label:has(input:checked),
.lesson-feedback__number-list label:has(input:checked) {
    border-color: #0CFE25;
    background: #0CFE25;
    color: #000;
    font-weight: bold;
}

.lesson-feedback__targets label:has(input:focus-visible),
.lesson-feedback__number-list label:has(input:focus-visible) {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.lesson-feedback__numbers[hidden] {
    display: none;
}

.lesson-feedback__form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    background: #0d1525;
    color: #fff;
    border: 1px solid #243044;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
}

.lesson-feedback__form textarea:focus {
    border-color: #0CFE25;
    outline: none;
}

.lesson-feedback__send {
    align-self: flex-end;
    padding: 8px 22px;
    border: none;
    border-radius: 8px;
    background: #0CFE25;
    color: #000;
    font-weight: bold;
    cursor: pointer;
}

.lesson-feedback__status {
    margin: 0;
    min-height: 1.2em;
    color: #0CFE25;
    font-size: 0.85rem;
}

.lesson-feedback__login {
    margin: 0;
    color: #cfd8e3;
}

.lesson-feedback__login a {
    color: #0CFE25;
}
