/* 10.11.2026: prezentacja systemu: pasek konta próbnego i samouczek (tour.js). */
.demo-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 1rem;
    background: #1f3864;
    color: #fff;
    font-size: .9rem;
}

.demo-bar-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.demo-bar-btn {
    border: 1px solid rgba(255, 255, 255, .6);
    background: transparent;
    color: #fff;
    border-radius: 6px;
    padding: .2rem .7rem;
    font-size: .85rem;
    cursor: pointer;
}

.demo-bar-btn:hover,
.demo-bar-btn:focus-visible {
    background: #fff;
    color: #1f3864;
}

.lmt-root {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
}

.lmt-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .5);
    pointer-events: auto;
    display: none;
}

.lmt-ring {
    position: fixed;
    border-radius: 10px;
    border: 3px solid #e4572e;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, .38);
    pointer-events: none;
    transition: top .15s, left .15s, width .15s, height .15s;
    display: none;
}

.lmt-card {
    position: fixed;
    width: min(380px, calc(100vw - 24px));
    background: #fff;
    color: #1b2433;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, .35);
    padding: 14px 16px 12px;
    pointer-events: auto;
    font-size: .95rem;
    line-height: 1.45;
}

.lmt-card.lmt-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(520px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    overflow-y: auto;
}

.lmt-card.lmt-corner {
    right: 16px;
    bottom: 16px;
}

.lmt-card.lmt-bottom {
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
}

.lmt-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}

.lmt-card:not(.lmt-center):not(.lmt-bottom) .lmt-head {
    cursor: move;
    touch-action: none;
}

.lmt-title {
    font-weight: 700;
    font-size: 1.05rem;
    flex: 1 1 auto;
}

.lmt-count {
    font-size: .78rem;
    color: #5b6678;
    white-space: nowrap;
}

.lmt-text {
    margin: 0 0 8px;
}

.lmt-note {
    margin: 8px 0 0;
    font-size: .8rem;
    color: #5b6678;
}

.lmt-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.lmt-btn {
    border-radius: 8px;
    border: 1px solid #c5ccd8;
    background: #fff;
    color: #1b2433;
    padding: 6px 14px;
    font-size: .9rem;
    cursor: pointer;
}

.lmt-btn.lmt-primary {
    background: #e4572e;
    border-color: #e4572e;
    color: #fff;
    font-weight: 600;
}

.lmt-btn:hover,
.lmt-btn:focus-visible {
    filter: brightness(.94);
    outline: 2px solid #1f3864;
    outline-offset: 1px;
}

.lmt-btn.lmt-close {
    border: none;
    padding: 0 6px;
    font-size: 1.3rem;
    line-height: 1;
    color: #5b6678;
}

.lmt-topics {
    display: grid;
    gap: 8px;
    margin: 10px 0 4px;
}

.lmt-topic {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
    border: 1px solid #c5ccd8;
    border-radius: 10px;
    background: #f6f8fb;
    padding: 9px 12px;
    cursor: pointer;
    color: #1b2433;
}

.lmt-topic:hover,
.lmt-topic:focus-visible {
    border-color: #1f3864;
    background: #eaf0f8;
}

.lmt-topic-title {
    font-weight: 600;
}

.lmt-topic-desc {
    font-size: .82rem;
    color: #5b6678;
}

.lmt-topic.lmt-done .lmt-topic-title {
    color: #1a7f4b;
}

@media (prefers-reduced-motion: reduce) {
    .lmt-ring {
        transition: none;
    }
}
