
.olc-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 150ms cubic-bezier(0.4, 0, 1, 1);
}
.olc-overlay[hidden] { display: none; }
.olc-overlay.is-open { opacity: 1; transition: opacity 190ms cubic-bezier(0.22, 1, 0.36, 1); }

.olc-overlay, .olc-overlay * { box-sizing: border-box; }
.olc-card {
    min-width: 0;
    width: min(400px, 100%);
    padding: 18px 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, #17171a, #111113);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), inset 0 1px rgba(255, 255, 255, 0.05);
    color: #f2f3f5;
    text-align: center;
    transform: scale(0.96) translateY(8px);
    transition: transform 150ms cubic-bezier(0.4, 0, 1, 1);
}
.olc-overlay.is-open .olc-card { transform: none; transition: transform 190ms cubic-bezier(0.22, 1, 0.36, 1); }

.olc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 10px; }
.olc-title {
    margin: 0;
    min-width: 0;
    color: #f2f3f5;
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.3;
    text-align: start;
    overflow-wrap: anywhere;
}
@media (max-width: 420px) { .olc-title { font-size: 0.94rem; } }
.olc-close {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.olc-close svg { width: 16px; height: 16px; }
.olc-close:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.olc-label {
    margin: 0 0 10px;
    color: #f2f3f5;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
    font-size: 1.12rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}
.olc-url {
    display: inline-block;
    max-width: 100%;
    margin: 0 0 20px;
    padding: 7px 11px;
    overflow: hidden;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.86);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: ltr;
}

.olc-actions { display: flex; justify-content: center; gap: 10px; }
.olc-btn {
    min-width: 90px;
    height: 38px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.olc-btn:active { transform: scale(0.97); }
.olc-cancel { background: rgba(255, 255, 255, 0.08); color: #e7e9ec; }
.olc-cancel:hover { background: rgba(255, 255, 255, 0.13); }
.olc-visit { border-color: #ffffff; background: #eef1f4; color: #121214; box-shadow: 0 6px 18px rgba(255, 255, 255, 0.08); }
.olc-visit:hover { background: #ffffff; }
.olc-btn:focus-visible, .olc-close:focus-visible { outline: 2px solid #c4c8d6; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    .olc-overlay, .olc-card, .olc-btn { transition: none; }
    .olc-card { transform: none; }
}
