.lktable {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    overflow: hidden;
}

.lkrow {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    transition: background .15s ease;
}

.lkrow + .lkrow { border-top: 1px solid var(--border-soft); }
.lkrow:hover { background: var(--surface-2); }

/* desligado nao aparece no site, entao a linha inteira recua */
.lkrow.is-off .lkrow__text { opacity: .55; }

.lkrow__switch { flex-shrink: 0; }
.lkrow__text { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.lkrow__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }

.lkrow__name {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lkoff {
    flex-shrink: 0;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 700;
    color: var(--err-fg);
    border-radius: var(--radius-pill);
    background: var(--err-bg);
}

.lkrow__url {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    font-size: 13px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lkrow__url:hover { color: var(--brand-700); text-decoration: underline; }
.lkrow__url i { flex-shrink: 0; font-size: 10px; }
.lkrow__acts { display: flex; gap: 8px; flex-shrink: 0; }
.lkrow__form { display: none; }

.lkform { display: flex; flex-direction: column; gap: 16px; }
.lkform .sec__body { display: flex; flex-direction: column; gap: 16px; padding: 18px 22px 22px; }

.lkform__foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.lkform__submit .spin { display: none; }
.lkform.is-saving .lkform__submit .spin { display: block; }
.lkform.is-saving .sec { pointer-events: none; opacity: .6; }

@media (max-width: 620px) {
    .lkrow { grid-template-columns: auto minmax(0, 1fr); row-gap: 12px; }
    .lkrow__acts { grid-column: 1 / -1; justify-content: flex-end; }
}
