/* Окно «Поделиться» (share.js). Базовые .lv-modal-* повторяют tools.css — в журнале tools.css не подключён,
   а на страницах инструментов правила совпадают и ничего не ломают. */
.lv-modal {
    position: fixed;
    inset: 0;
    background: rgba(27, 27, 24, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
}
.lv-modal[hidden] { display: none; }
.lv-modal-box {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    max-width: 480px;
    width: 100%;
}
.lv-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f2f4f7;
    border-radius: 8px;
    color: #4b5563;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lv-modal-close:hover { background: #e5e8ec; }
.lv-modal-title { margin: 0 0 8px; font-size: 20px; font-weight: 800; padding-right: 30px; }
.lv-modal-text { margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: #4b5563; }
.lv-modal-row { display: flex; gap: 8px; }
.lv-modal-input {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #dfe3ea;
    border-radius: 10px;
    font-size: 13px;
    background: #f7f8fa;
    color: #1b1b18;
}

/* журнальное окно: свой шрифт и кнопка «Копировать» (в инструментах она — .lv-tool-btn) */
.lv-share-modal { font-family: var(--sans, 'Inter', -apple-system, 'Segoe UI', sans-serif); color: #1b1b18; }
.lv-share-modal .lv-modal-title { font-family: var(--serif-display, inherit); font-size: 24px; color: #1b1b18; }
.lv-share-copy {
    padding: 10px 18px;
    border: 0;
    border-radius: 10px;
    background: #1b1b18;
    color: #ffffff;
    font: 600 14px/1.2 inherit;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}
.lv-share-copy:hover { background: #333; }

/* сервисы и «Другие приложения» */
.lv-share-extra { margin-top: 18px; padding-top: 16px; border-top: 1px solid #eef1f6; }
.lv-share-label { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: #4b5563; }
.lv-share-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.lv-modal a.lv-share-svc {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: filter .15s ease;
}
.lv-modal a.lv-share-svc:hover { filter: brightness(1.08); color: #ffffff; }
.lv-share-svc--vk { background: #0077ff; }
.lv-share-svc--telegram { background: #229ed9; }
.lv-share-svc--ok { background: #ee8208; }
.lv-share-svc--max { background: linear-gradient(135deg, #2b8cff 0%, #7b4dff 100%); }
.lv-share-native {
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #dfe3ea;
    border-radius: 10px;
    background: #ffffff;
    color: #1b1b18;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.lv-share-native:hover { background: #f7f8fa; }
@media (max-width: 420px) {
    .lv-modal-box { padding: 22px 18px; }
    .lv-modal-row { flex-direction: column; }
}
