.lessonlink-dev-cache-panel {
    position: fixed;
    right: 0.5rem;
    bottom: 3.25rem;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    font: 12px/1.35 system-ui, -apple-system, Segoe UI, sans-serif;
    pointer-events: none;
}

.lessonlink-dev-cache-panel__toggle,
.lessonlink-dev-cache-panel__actions button,
.lessonlink-dev-cache-stale-banner {
    pointer-events: auto;
}

.lessonlink-dev-cache-panel--indicator-hidden {
    display: none !important;
}

.lessonlink-dev-cache-panel__toggle {
    border: 1px solid rgba(15, 118, 110, 0.35);
    background: rgba(255, 255, 255, 0.94);
    color: #0f766e;
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.lessonlink-dev-cache-panel__toggle:focus-visible,
.lessonlink-dev-cache-panel__actions button:focus-visible,
.lessonlink-dev-cache-stale-banner:focus-visible {
    outline: 2px solid #0f766e;
    outline-offset: 2px;
}

.lessonlink-dev-cache-panel__actions {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.45rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(15, 118, 110, 0.25);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    min-width: 14rem;
    max-width: min(22rem, calc(100vw - 1.5rem));
}

.lessonlink-dev-cache-panel--open .lessonlink-dev-cache-panel__actions {
    display: flex;
}

.lessonlink-dev-cache-panel__actions button {
    border: 1px solid rgba(15, 118, 110, 0.2);
    background: #fff;
    color: #134e4a;
    border-radius: 0.35rem;
    padding: 0.28rem 0.45rem;
    text-align: left;
    cursor: pointer;
}

.lessonlink-dev-cache-panel__meta {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    color: #475569;
    font-size: 11px;
    padding: 0.1rem 0.2rem 0.2rem;
}

.lessonlink-dev-cache-panel__meta-line {
    display: block;
    white-space: nowrap;
}

.lessonlink-dev-cache-panel__meta-line--url {
    white-space: normal;
    word-break: break-all;
}

.lessonlink-dev-cache-stale-banner {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0.65rem;
    z-index: 10060;
    max-width: min(34rem, calc(100vw - 1rem));
    border: 1px solid #b45309;
    background: #fff7ed;
    color: #9a3412;
    border-radius: 0.5rem;
    padding: 0.45rem 0.7rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    text-align: center;
}

.lessonlink-dev-cache-stale-banner[hidden] {
    display: none !important;
}
