﻿.lk-social { --social-blue: #1976d2; --social-line: #e3e7eb; background: #fff; border: 1px solid var(--social-line); border-radius: 8px; color: #263238; margin: 0 auto; font-size: 14px; }
.lk-social [x-cloak] { display: none !important; }
.lk-social h1, .lk-social h2 { font-size: 20px; font-weight: 600; margin: 0; line-height: 1.4; }
.lk-social p { margin: 6px 0 0; }
.lk-social button { font: inherit; cursor: pointer; }
.lk-social button:disabled, .lk-social select:disabled { opacity: .45; cursor: default; }
.lk-social button:focus-visible, .lk-social select:focus-visible, .lk-social input:focus-visible, .lk-social textarea:focus-visible { outline: 2px solid var(--social-blue); outline-offset: 2px; }
.lk-social svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.lk-social__heading { padding: 18px 20px 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lk-social__heading p, .lk-social__rule-heading p { color: #66727c; font-size: 12px; }
.lk-social__tabs { display: flex; border-bottom: 1px solid var(--social-line); padding: 0 12px; gap: 8px; }
.lk-social__tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: #67717a; padding: 12px 14px; text-transform: uppercase; font-weight: 500; }
.lk-social__tabs button.is-active { border-bottom-color: var(--social-blue); color: var(--social-blue); }
.lk-social__panel { padding: 16px; }
.lk-social__registry { max-width: 900px; border: 1px solid var(--social-line); border-radius: 6px; box-shadow: 0 1px 3px #0000000d; overflow: hidden; }
.lk-social__user-grid { display: grid; grid-template-columns: minmax(120px, 1.2fr) minmax(105px, 1fr) minmax(210px, 1.6fr) 92px 36px; align-items: center; gap: 12px; }
.lk-social__rule-grid { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(170px, 2fr) 80px; align-items: center; gap: 16px; }
.lk-social__labels { padding: 12px 14px; background: #fafafa; font-weight: 600; border-bottom: 1px solid var(--social-line); }
.lk-social__row { padding: 9px 14px; border-bottom: 1px solid var(--social-line); min-height: 56px; }
.lk-social__row:last-child { border-bottom: 0; }
.lk-social__identity { display: flex; align-items: center; min-width: 0; gap: 4px; overflow-wrap: anywhere; }
.lk-social__messenger-id { color: #626d77; font-size: 13px; overflow-wrap: anywhere; }
.lk-social__icon { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; width: 34px; height: 34px; padding: 6px; background: transparent; color: var(--social-blue); flex-shrink: 0; }
.lk-social__icon--small { width: 26px; height: 26px; padding: 4px; }
.lk-social__icon--small svg { width: 17px; height: 17px; }
.lk-social__icon:hover:not(:disabled), .lk-social__rights:hover:not(:disabled) { background: #1976d210; }
.lk-social__danger { color: #c62828 !important; }
.lk-social__select { display: flex; align-items: center; border: 1px solid #bac2c8; border-radius: 4px; min-width: 0; }
.lk-social__select select { border: 0; width: 100%; min-width: 0; padding: 8px; background: transparent; color: inherit; font: inherit; }
.lk-social__select .lk-social__icon { margin-right: 3px; }
.lk-social__rights { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; padding: 6px 2px; color: #37474f; border-radius: 4px; }
.lk-social__rule-heading { padding: 16px; display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.lk-social__rule-heading h2 { font-size: 18px; }
.lk-social__primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--social-blue) !important; color: white !important; border: 0; border-radius: 4px; padding: 8px 12px; }
.lk-social__rule-actions { display: flex; justify-content: flex-end; gap: 4px; }
.lk-social__description { color: #68747d; overflow-wrap: anywhere; }
.lk-social__row strong { font-weight: 500; overflow-wrap: anywhere; }
.lk-social__pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 10px 14px; color: #67717a; font-size: 12px; }
.lk-social__pagination label { display: flex; align-items: center; gap: 8px; }
.lk-social__pagination select { background: #fff; color: inherit; border: 0; padding: 4px; }
.lk-social__empty { padding: 24px; text-align: center; color: #68747d; }
.lk-social__loading { position: fixed; inset: 0; z-index: 1090; display: grid; place-items: center; background: transparent; }
.lk-social__loading-card { display: flex; align-items: center; gap: 12px; background: #fff; padding: 18px 24px; border-radius: 8px; box-shadow: 0 8px 32px #0003; color: #263238; font-size: 14px; font-weight: 500; }
.lk-social__spinner { width: 26px; height: 26px; border: 3px solid #d6e4f0; border-top-color: var(--social-blue); border-radius: 50%; animation: lk-social-spin .8s linear infinite; flex-shrink: 0; }
@keyframes lk-social-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lk-social__spinner { animation-duration: 2s; } }
.lk-social__error { padding: 12px; margin: 12px; border-radius: 5px; background: #fff0f0; color: #a72121; overflow-wrap: anywhere; }
.lk-social__error button { display: block; margin-top: 8px; background: transparent; color: inherit; border: 0; text-decoration: underline; }
.lk-social__modal { border: 0; border-radius: 8px; padding: 22px; width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow: auto; color: inherit; box-shadow: 0 18px 70px #0004; }
.lk-social__modal::backdrop { background: #0006; }
.lk-social__modal-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.lk-social__modal-heading h2 { overflow-wrap: anywhere; }
.lk-social__modal .lk-social__error { margin: 0 0 16px; }
.lk-social__field { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; font-size: 13px; }
.lk-social__field input, .lk-social__field select, .lk-social__field textarea { width: 100%; border: 1px solid #bac2c8; border-radius: 4px; padding: 10px; font: inherit; color: inherit; background: #fff; }
.lk-social__field small { text-align: right; color: #68747d; }
.lk-social__footer { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.lk-social__footer button { border: 0; background: transparent; color: var(--social-blue); border-radius: 4px; padding: 8px 12px; }
.lk-social__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 20px; }
.lk-social__chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 16px; padding: 4px 6px 4px 12px; background: #eceff1; max-width: 100%; overflow-wrap: anywhere; }
.lk-social__chip--blue { background: var(--social-blue); color: white; }
.lk-social__chip button { border: 0; background: transparent; color: inherit; padding: 0; display: flex; }
.lk-social__chip svg { width: 18px; height: 18px; }
.lk-social__toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 1100; display: flex; align-items: center; gap: 14px; width: max-content; max-width: min(540px, calc(100vw - 24px)); padding: 12px 16px; background: #24764c; color: white; border-radius: 6px; box-shadow: 0 4px 20px #0003; }
.lk-social__toast.is-error { background: #b72d35; }
.lk-social__toast button { border: 0; padding: 0; display: flex; background: transparent; color: inherit; }
.lk-social__mobile { display: none; }
@media (min-width: 768px) { .lk-social__row.is-off-page { display: none; } }
@media (max-width: 767px) {
    .lk-social__desktop, .lk-social__labels, .lk-social__pagination { display: none; }
    .lk-social__mobile { display: inline; }
    .lk-social__heading { padding: 14px; }
    .lk-social__tabs { margin: 0 14px 12px; padding: 3px; background: #eee; border: 0; border-radius: 5px; gap: 0; }
    .lk-social__tabs button { flex: 1; padding: 7px 10px; text-transform: none; border: 0; border-radius: 4px; }
    .lk-social__tabs button.is-active { color: white; background: var(--social-blue); }
    .lk-social__panel { padding: 12px; border-top: 1px solid var(--social-line); }
    .lk-social__registry { border: 0; box-shadow: none; overflow: visible; }
    .lk-social__row { border: 1px solid var(--social-line); border-radius: 6px; margin-bottom: 10px; padding: 10px; }
    .lk-social__user-grid { grid-template-columns: minmax(0, 1fr) 36px; gap: 4px 8px; }
    .lk-social__identity { grid-column: 1; grid-row: 1; font-weight: 500; }
    .lk-social__messenger-id { grid-column: 1; grid-row: 2; font-size: 12px; }
    .lk-social__select { grid-column: 1 / -1; grid-row: 3; margin-top: 6px; }
    .lk-social__rights { grid-column: 1 / -1; grid-row: 4; justify-self: start; margin-top: 4px; }
    .lk-social__delete { grid-column: 2; grid-row: 1 / 3; }
    .lk-social__rule-heading { padding: 4px 0 16px; }
    .lk-social__rule-heading .lk-social__primary { border-radius: 50%; width: 36px; height: 36px; padding: 6px; flex-shrink: 0; }
    .lk-social__rule-grid { grid-template-columns: minmax(0, 1fr) 80px; gap: 4px 8px; }
    .lk-social__rule-grid strong { grid-column: 1; grid-row: 1; }
    .lk-social__rule-grid .lk-social__description { grid-column: 1; grid-row: 2; font-size: 12px; }
    .lk-social__rule-actions { grid-column: 2; grid-row: 1 / 3; }
    .lk-social__modal { padding: 18px; }
}
